:root {
  --site-content-max: min(1440px, 96vw);
}

.site-header {
  background: var(--header-bg);
  border-bottom: var(--header-border, 4px solid var(--border-play));
  box-shadow: var(--header-shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  max-width: var(--site-content-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-left: auto;
  flex-wrap: wrap;
  min-width: 0;
}

.site-header__welcome {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}

.site-header__welcome-text {
  color: var(--link);
}

.site-header__logout-form {
  margin: 0;
  display: inline-flex;
}

.site-header__logout-btn {
  appearance: none;
  border: 3px solid var(--border-play);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(45, 31, 61, 0.1);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.site-header__logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 rgba(45, 31, 61, 0.12);
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  text-decoration: none;
  text-shadow: 2px 2px 0 #fff, 3px 3px 0 rgba(124, 92, 255, 0.35);
  transform: rotate(-1.5deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 3px solid transparent;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
}
.site-nav a:hover {
  text-decoration: none;
  border-color: var(--border-play);
  box-shadow: 3px 3px 0 rgba(45, 31, 61, 0.1);
  transform: translateY(-1px);
}

.site-nav__report {
  font-weight: 800;
  background: rgba(254, 243, 199, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.site-nav__cart .badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  border: 2px solid var(--border-play);
  vertical-align: middle;
}

.site-nav__dashboard-switch {
  margin: 0;
}

.site-nav__dashboard-switch-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 3px solid transparent;
  background: rgba(255, 255, 255, 0.65);
  font-weight: 700;
}

.site-nav__dashboard-switch-text {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.site-nav__dashboard-switch-select {
  min-width: 7.5rem;
  max-width: 11rem;
  padding: 0.15rem 0.4rem;
  border: 2px solid var(--border-play);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.unread-badge--inline {
  margin-left: 0.45rem;
}

.site-main {
  max-width: var(--site-content-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.site-footer {
  border-top: 4px solid var(--border-play);
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 2rem 1rem 2.25rem;
  font-size: 0.95rem;
}

.site-footer__brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--footer-brand);
  letter-spacing: 0.04em;
}

.site-footer__contact {
  margin: 0 0 1rem;
  font-weight: 700;
  opacity: 0.95;
}

.site-footer__note {
  margin: 0 0 1rem;
  opacity: 0.88;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__eula {
  margin: 0 0 1rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.82;
  font-weight: 600;
}

.site-footer__copyright {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--footer-accent);
  letter-spacing: 0.12em;
}

.site-footer a {
  color: var(--footer-link);
}

.flash-list {
  max-width: var(--site-content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.flash {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--flash-bg, #ecfccb);
  color: var(--flash-text, #365314);
  border: 3px solid var(--border-play);
  box-shadow: var(--shadow-pop);
  transition: opacity 0.35s ease;
}

.flash--error {
  background: var(--flash-error-bg, #ffe4e6);
  color: var(--flash-error-text, #9f1239);
  border-color: var(--border-play);
}

.flash--success {
  background: var(--flash-success-bg, #ecfccb);
  color: var(--flash-success-text, #365314);
}

.flash--info {
  background: var(--flash-info-bg, #e0f2fe);
  color: var(--flash-info-text, #0c4a6e);
}

.flash--warning {
  background: var(--flash-warning-bg, #fef9c3);
  color: var(--flash-warning-text, #854d0e);
}

.flash__lead {
  margin: 0;
}

.flash__meta {
  margin: 0.5rem 0 0;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--hero-text, var(--text));
  border-radius: var(--radius-blob);
  padding: 2.25rem 1.75rem 2.5rem;
  margin-bottom: 2.25rem;
  border: 4px solid var(--border-play);
  box-shadow: var(--shadow-pop);
  background: var(--hero-bg);
}

.hero--playful .hero__content {
  position: relative;
  z-index: 1;
}

.hero__cloud {
  position: absolute;
  border-radius: 50%;
  background: var(--hero-cloud-bg, rgba(255, 255, 255, 0.55));
  border: 3px solid var(--hero-cloud-border, rgba(45, 31, 61, 0.08));
  pointer-events: none;
}
.hero__cloud--1 {
  width: 120px;
  height: 64px;
  top: 12%;
  right: 6%;
  box-shadow: var(--hero-cloud-shadow, 24px 10px 0 -6px rgba(255, 255, 255, 0.5));
}
.hero__cloud--2 {
  width: 80px;
  height: 44px;
  bottom: 14%;
  left: 8%;
  opacity: 0.9;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
  background: var(--sun);
  border: 3px solid var(--border-play);
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(45, 31, 61, 0.12);
}

.server-info__list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.server-info__row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8rem) 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(45, 31, 61, 0.06);
}

.server-info__row dt {
  margin: 0;
  font-weight: 800;
  color: var(--muted);
}

.server-info__row dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.server-info__address {
  font-size: 0.95em;
  background: #eef2ff;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  color: #4338ca;
}

.server-info__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.server-status__dot {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.server-status__dot--ok {
  background: #22c55e;
}

.server-status__dot--down {
  background: #ef4444;
}

.server-status__dot--loading {
  background: #94a3b8;
  animation: server-status-pulse 1.1s ease-in-out infinite;
}

.server-status__dot--error {
  background: #64748b;
}

.c9-data-loader__text--loading {
  color: var(--muted);
}

.c9-data-loader__text--error {
  color: #b91c1c;
}

@keyframes server-status-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.hero__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 3px 3px 0 #fff, 4px 4px 0 rgba(124, 92, 255, 0.25);
}

.hero__lead {
  max-width: 38rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #453456;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 3px solid var(--border-play);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: var(--shadow-pop);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-pop-hover);
  text-decoration: none;
}

a.btn--primary,
button.btn--primary,
.btn--primary,
a.btn--primary:link,
a.btn--primary:visited,
a.btn--primary:active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text, #ffffff);
}

a.btn--primary:hover,
a.btn--primary:focus-visible,
button.btn--primary:hover,
button.btn--primary:focus-visible,
.btn--primary:hover,
.btn--primary:focus-visible {
  color: var(--btn-primary-text, #ffffff);
  text-decoration: none;
}

.btn--sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.88rem;
}

.btn--file {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

a.btn--ghost,
button.btn--ghost,
.btn--ghost {
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-text, var(--text));
}

a.btn--ghost:hover,
a.btn--ghost:focus-visible,
button.btn--ghost:hover,
button.btn--ghost:focus-visible,
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--btn-ghost-text, var(--text));
  text-decoration: none;
}

a.btn--secondary,
button.btn--secondary,
.btn--secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

a.btn--secondary:hover,
a.btn--secondary:focus-visible,
button.btn--secondary:hover,
button.btn--secondary:focus-visible,
.btn--secondary:hover,
.btn--secondary:focus-visible {
  color: var(--btn-secondary-text);
  text-decoration: none;
}

a.btn--danger,
button.btn--danger,
.btn--danger {
  background: var(--btn-danger-bg);
  border-color: var(--btn-danger-border);
  color: var(--btn-danger-text);
}

a.btn--danger:hover,
a.btn--danger:focus-visible,
button.btn--danger:hover,
button.btn--danger:focus-visible,
.btn--danger:hover,
.btn--danger:focus-visible {
  color: var(--btn-danger-text);
  text-decoration: none;
}

.btn--link {
  background: none;
  border: none;
  color: var(--link);
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: none;
}
.btn--link:hover {
  transform: none;
  box-shadow: none;
}

.btn--link.btn--sm {
  font-size: 0.88rem;
}

.btn--link.danger {
  color: #be123c;
}

.section {
  margin-bottom: 2.25rem;
}

.section--playful .section__title {
  text-align: center;
}

.section--playful .section__intro {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.section--muted {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 4px solid var(--border-play);
  box-shadow: var(--shadow-pop);
}

.section--board {
  background: var(--section-board-bg);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
}

.section__title--big {
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
}

.section__intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  position: relative;
  background: var(--surface-2);
  border: 4px solid var(--border-play);
  border-radius: 20px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow-pop);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.feature-card:hover {
  transform: translate(-3px, -3px) rotate(-0.3deg);
  box-shadow: var(--shadow-pop-hover);
}

.feature-card__icon {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 8px;
  border: 2px solid var(--border-play);
  background: #fff;
}

.feature-card__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.home-board {
  align-items: start;
}

@media (min-width: 720px) {
  .home-board {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.home-featured-shop .product-mini-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.post-teaser-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.post-teaser-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 2px dashed rgba(45, 31, 61, 0.15);
}

.post-teaser-list__tag {
  justify-self: start;
  margin: 0;
  white-space: nowrap;
}

.post-teaser-list__title {
  min-width: 0;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
}

.post-teaser-list__title:hover {
  color: var(--accent-2);
}

.post-teaser-list__date {
  justify-self: end;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.text-link {
  font-weight: 800;
  display: inline-block;
  margin-top: 0.25rem;
}

.text-link--pop {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 3px solid var(--border-play);
  background: #fff;
  box-shadow: 3px 3px 0 rgba(45, 31, 61, 0.1);
}
.text-link--pop:hover {
  text-decoration: none;
  transform: translate(-1px, -1px);
}

.product-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-mini {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #fff;
  border-radius: 16px;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  border: 3px solid var(--border-play);
  box-shadow: 3px 3px 0 rgba(45, 31, 61, 0.08);
}
.product-mini:hover {
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(45, 31, 61, 0.1);
}

.product-mini__title.mc-color-text--title span {
  text-shadow: inherit;
}

.product-mini__img,
.product-mini__ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #e9d5ff;
  border: 2px solid var(--border-play);
}

.product-mini__img--grant {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: contain;
  background: transparent;
}

.page-head {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 4px solid var(--border-play);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}

.page-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  align-items: center;
}

.category-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-ui);
  border-radius: var(--category-pill-radius, 999px);
  border: 2px solid var(--border-play);
  background: var(--category-pill-bg, var(--surface-2));
  color: var(--category-pill-text, var(--text));
  text-decoration: none;
  line-height: 1.2;
}

a.category-pill {
  color: var(--category-pill-text, var(--text));
}

a.category-pill:hover {
  text-decoration: none;
  border-color: var(--category-pill-hover-border, var(--accent-2));
  color: var(--category-pill-hover-text, var(--accent-2));
}

.category-pill.is-active,
a.category-pill.is-active {
  background: var(--category-pill-active-bg);
  color: var(--category-pill-active-text, var(--text));
  border-color: var(--category-pill-active-border, var(--accent-2));
  box-shadow: var(--category-pill-active-shadow, 2px 2px 0 rgba(45, 31, 61, 0.12));
}

a.category-pill.is-active:link,
a.category-pill.is-active:visited,
a.category-pill.is-active:hover,
a.category-pill.is-active:focus-visible {
  color: var(--category-pill-active-text, var(--text));
  text-decoration: none;
}

.category-pill--inline {
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  vertical-align: middle;
}

.category-pill--tiny {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  vertical-align: middle;
}

.category-pill--card {
  margin: 0 1rem 0.35rem;
  font-size: 0.78rem;
  align-self: flex-start;
}

.article-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 0.4rem;
}

.article-list__meta time {
  font-style: normal;
}

.article-list__item h2 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list__item a {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 2px dashed rgba(45, 31, 61, 0.12);
  color: inherit;
  text-decoration: none;
}

.article-list__item a:hover h2 {
  color: var(--accent-2);
}

.article-list__thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 3px solid var(--border-play);
}

.article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 4px solid var(--border-play);
  box-shadow: var(--shadow-pop);
}

.article__head h1 {
  margin: 0.35rem 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.article__cover {
  margin: 1rem 0 0;
  width: 100%;
  line-height: 0;
}

.article__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 3px solid var(--border-play);
}

.rich-body {
  margin-top: 1.5rem;
}

.rich-body img {
  max-width: 100%;
  height: auto;
}

.rich-body img.ce-img--original {
  width: auto;
}

.rich-body img.ce-img--scale {
  max-width: 75%;
  width: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.rich-body img.ce-img--fit {
  max-width: 100%;
  width: 100%;
  display: block;
}

.rich-body .mc-profile {
  margin: 1.75rem 0;
  padding: 1.25rem;
  border-radius: 16px;
  border: 2px solid var(--border-play, #e2e8f0);
  background: var(--surface-muted, #f8fafc);
}

.rich-body .mc-profile__layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  width: 100%;
}

.rich-body .mc-profile__head {
  border-radius: 10px;
  image-rendering: pixelated;
  flex-shrink: 0;
  border: 2px solid var(--border-play, #e2e8f0);
  background: #fff;
  width: 80px;
  height: 80px;
}

.rich-body .mc-profile__head--sm,
.rich-body .mc-profile[data-mc-head-size="sm"] .mc-profile__head {
  width: 48px;
  height: 48px;
}

.rich-body .mc-profile__head--lg,
.rich-body .mc-profile[data-mc-head-size="lg"] .mc-profile__head {
  width: 128px;
  height: 128px;
}

.rich-body .mc-profile__main {
  flex: 1;
  min-width: 0;
}

.rich-body .mc-profile__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.rich-body .mc-profile__name {
  font-weight: 800;
}

.rich-body .mc-profile__suffix {
  margin-left: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.75;
}

.rich-body .mc-profile__suffix:not([hidden])::before {
  content: "· ";
}

.rich-body .mc-profile__content {
  margin-top: 0.25rem;
}

.rich-body .md-block {
  margin: 1.75rem 0;
}

.rich-body .md-block__content > :first-child {
  margin-top: 0;
}

.rich-body .md-block__content > :last-child {
  margin-bottom: 0;
}

.rich-body .md-block__content p,
.rich-body .md-block__content ul,
.rich-body .md-block__content ol,
.rich-body .md-block__content blockquote,
.rich-body .md-block__content pre {
  margin: 0.55rem 0;
}

.rich-body .md-block__content h1,
.rich-body .md-block__content h2,
.rich-body .md-block__content h3,
.rich-body .md-block__content h4 {
  margin: 0.75rem 0 0.45rem;
  line-height: 1.3;
}

.rich-body .md-block__content ul,
.rich-body .md-block__content ol {
  padding-left: 1.35rem;
}

.rich-body .md-block__content blockquote {
  padding: 0.45rem 0.75rem;
  border-left: 3px solid var(--border-play, #cbd5e1);
  opacity: 0.92;
}

.rich-body .md-block__content code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.rich-body .md-block__content pre {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  overflow-x: auto;
}

.rich-body .md-block__content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.rich-body .md-block__content a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-body .md-block__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}

.rich-body .md-block__content th,
.rich-body .md-block__content td {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border-play, #e2e8f0);
  text-align: left;
}

.rich-body .md-block__content th {
  background: rgba(15, 23, 42, 0.04);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.product-grid__item {
  display: flex;
  flex-direction: column;
}

.shop-product-grant__qty {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #7c3aed;
}

.shop-product-grant__line + .shop-product-grant__line {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(61, 47, 74, 0.14);
}

.product-card {
  background: var(--surface);
  border-radius: 20px;
  border: 4px solid var(--border-play);
  overflow: hidden;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pop);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-pop-hover);
}

.product-card__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product-card__link:hover {
  text-decoration: none;
}

.product-card__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem 0.85rem;
  margin-top: -0.35rem;
}

.product-card__detail-btn {
  appearance: none;
  border: 2px solid var(--border-play);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f8f4ff 100%);
  color: var(--link);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--border-play);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.product-card__detail-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border-play);
}

.product-card__detail-btn[aria-expanded="true"] {
  background: linear-gradient(180deg, #ede9fe 0%, #ddd6fe 100%);
}

.product-card__grant-panel {
  border-top: 3px dashed rgba(91, 63, 212, 0.22);
  padding: 0.75rem 1rem 1rem;
  background: #faf8ff;
}

.product-card__img,
.product-card__ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #fde68a;
  border-bottom: 3px solid var(--border-play);
}

.product-card__img--grant,
.product-detail__slide-img--grant {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.product-detail__slide-img--grant {
  object-fit: contain;
  background: transparent;
}

.product-detail__slide--grant {
  background: transparent;
}

.product-card__ph--no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.product-card__ph-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 14rem;
}

.product-card__ph-line {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--link);
  line-height: 1.45;
}

.product-card__ph--large .product-card__ph-line {
  font-size: 1rem;
}

.product-card__ph--large {
  min-height: 280px;
}

.product-card h2,
.product-card__title {
  margin: 0.75rem 1rem 0.25rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.product-card__title.mc-color-text--title span {
  text-shadow: inherit;
}

.product-card__price {
  margin: 0 1rem 0.65rem;
  font-weight: 800;
  color: var(--link);
}

/* C9GrantEntry — 商城商品發放內容（與後台共用元件樣式） */
.shop-product-grant .c9-grant-entry__card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.shop-product-grant .c9-grant-entry__icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(61, 47, 74, 0.15);
  background: #f3f0f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 2px;
  box-sizing: border-box;
}

.shop-product-grant .c9-grant-entry__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.shop-product-grant .c9-grant-entry__icon--empty {
  font-size: 0.68rem;
  color: #8b7a9a;
  text-align: center;
  line-height: 1.2;
  padding: 2px;
}

.shop-product-grant .c9-grant-entry__body {
  min-width: 0;
}

.shop-product-grant .c9-grant-entry__title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
  min-width: 0;
}

.shop-product-grant .c9-grant-entry__title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  color: #3d2f4a;
  word-break: break-word;
}

.shop-product-grant .c9-grant-entry__badge {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}

.shop-product-grant .c9-grant-entry__desc {
  margin: 0 0 0.35rem;
  color: #6b5b7a;
  font-size: 0.85rem;
}

.shop-product-grant .c9-grant-entry__lores {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.82rem;
}

.shop-product-grant .c9-grant-entry__lores:not(.c9-grant-entry__lores--mc) {
  color: #5c4d6d;
}

.shop-product-grant .c9-grant-entry__lores li {
  margin: 0.1rem 0;
}

.shop-product-grant .c9-grant-entry__lores--empty {
  list-style: none;
  padding-left: 0;
  color: #8b7a9a;
  font-size: 0.82rem;
}

.shop-product-grant .c9-grant-entry__package-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.shop-product-grant .c9-grant-entry__package-item {
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(61, 47, 74, 0.14);
}

.shop-product-grant .c9-grant-entry__package-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.shop-product-grant .c9-grant-entry__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.shop-product-grant .c9-grant-entry__item .c9-grant-entry__icon {
  width: 40px;
  height: 40px;
}

.shop-product-grant .c9-grant-entry__amount {
  flex: 0 0 auto;
  font-weight: 800;
  color: #7c3aed;
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
}

.shop-product-grant .c9-grant-entry__package-empty,
.shop-product-grant .c9-grant-entry__missing {
  margin: 0.2rem 0 0;
  color: #8b7a9a;
  font-size: 0.82rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail__gallery-outer,
.product-detail__info {
  min-width: 0;
}

.product-detail__carousel {
  position: relative;
  width: 100%;
  border-radius: 16px;
  border: 3px solid var(--border-play);
  box-shadow: var(--shadow-pop);
  background: var(--surface-2);
  overflow: hidden;
}

.product-detail__gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  cursor: grab;
  overscroll-behavior-x: contain;
}

.product-detail__gallery.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  scroll-behavior: auto;
}

.product-detail__gallery::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.product-detail__slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
  min-height: 220px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.65rem;
}

.product-detail__slide img {
  width: 100%;
  max-width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: none;
  box-shadow: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.product-detail__slide--empty {
  padding: 1.5rem;
}

.product-detail__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 3px solid var(--border-play);
  background: rgba(255, 253, 248, 0.94);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.product-detail__nav:hover {
  transform: translateY(-50%);
  box-shadow: var(--shadow-pop-hover);
  filter: brightness(1.03);
}

.product-detail__nav--prev {
  left: 0.45rem;
}

.product-detail__nav--next {
  right: 0.45rem;
}

.product-detail__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(255, 253, 248, 0.98) 40%, rgba(255, 253, 248, 0));
  pointer-events: none;
}

.product-detail__dots .product-detail__dot {
  pointer-events: auto;
}

.product-detail__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--border-play);
  padding: 0;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.product-detail__dot.is-active {
  background: linear-gradient(180deg, #ffe566 0%, var(--sun) 100%);
  transform: scale(1.15);
}

.product-detail__price {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--link);
}

.product-detail__grant-panel {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border-radius: 16px;
  border: 3px solid var(--border-play);
  box-shadow: var(--shadow-pop);
  min-width: 0;
}

.product-detail__grant-panel .shop-product-grant {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-detail__grant-title,
.product-detail__description-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #3d2f4a;
}

.product-detail__description-panel {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border-radius: 16px;
  border: 3px solid var(--border-play);
  box-shadow: var(--shadow-pop);
  min-width: 0;
}

.product-detail__description-body {
  margin: 0;
  line-height: 1.65;
  color: var(--text);
  overflow-wrap: anywhere;
}

.cart-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin: 1rem 0 1.5rem;
}

.cart-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
}

.cart-inline-form input[type="number"],
.cart-add-form input[type="number"] {
  width: 4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  border: 3px solid var(--border-play);
  font-weight: 700;
}


.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--border-play);
  box-shadow: var(--shadow-pop);
}

.cart-table th,
.cart-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px dashed rgba(45, 31, 61, 0.12);
}

.cart-total {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.cart-note {
  margin-top: 1rem;
}

.cart-checkout {
  margin-top: 1.25rem;
}

.cart-checkout-note {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.cart-qty-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cart-qty {
  min-width: 1.5rem;
  font-weight: 800;
}

.cart-item-grant {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px dashed rgba(45, 31, 61, 0.12);
}

.cart-item-grant__label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-table .shop-product-grant .c9-grant-entry__card {
  max-width: none;
}

.c9-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.c9-modal[hidden] {
  display: none !important;
}

.c9-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 31, 61, 0.45);
}

.c9-modal__dialog {
  position: relative;
  width: min(100%, 26rem);
  padding: 1.35rem 1.5rem;
  border: 4px solid var(--border-play);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.c9-modal__dialog--wide {
  width: min(100%, 40rem);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
}

.c9-modal__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.c9-modal__product {
  margin: 0 0 1rem;
  font-weight: 700;
}

.c9-modal__field {
  display: block;
  margin: 0 0 0.5rem;
}

.c9-modal__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.c9-modal__qty-input {
  max-width: 8rem;
}

.c9-modal__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.c9-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.c9-modal__terms-wrap {
  margin: 0 0 0.85rem;
}

.c9-modal__terms-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.c9-modal__terms {
  max-height: 14rem;
  overflow: auto;
  padding: 0.85rem 1rem;
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.c9-modal__terms h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
}

.c9-modal__terms h3:first-child {
  margin-top: 0;
}

.c9-modal__terms ol {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.25rem;
}

.c9-modal__terms p {
  margin: 0 0 0.65rem;
}

.c9-modal__agree {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.c9-modal__agree input {
  margin-top: 0.2rem;
}

.c9-modal__actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-pop);
}

body.c9-modal-open {
  overflow: hidden;
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 3px solid var(--border-play);
  font: inherit;
  font-weight: 600;
}

.form-error {
  color: #be123c;
  font-weight: 700;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 商城／購物車 — Mojang 商業指引常見款項聲明 */
.shop-legal-notice {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  background: rgba(255, 254, 249, 0.92);
  border: 3px dashed var(--border-play);
  border-radius: 14px;
  box-shadow: 3px 3px 0 rgba(45, 31, 61, 0.08);
}

.shop-legal-notice p {
  margin: 0;
}

.shop-legal-notice strong {
  font-weight: 800;
}

/* 會員登入／註冊 */
.account-page {
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.account-card {
  padding: 1.35rem 1.25rem;
  background: rgba(255, 254, 249, 0.95);
  border: 3px solid var(--border-play);
  border-radius: 16px;
  box-shadow: 4px 4px 0 rgba(45, 31, 61, 0.1);
}

.account-card h1,
.account-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.account-foot {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.account-form label {
  display: block;
  margin-top: 0.85rem;
  font-weight: 700;
}

.account-form__legal {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.account-form__legal .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-weight: 600;
  line-height: 1.45;
}

.account-form__legal .form-check-input {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--accent, #7c3aed);
}

.account-form__legal .form-check a {
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-doc__body {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 4px solid var(--border-play);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  line-height: 1.65;
}

.legal-doc__body h2 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.legal-doc__body ul,
.legal-doc__body ol {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.35rem;
}

.site-footer__legal {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.account-form__submit {
  width: 100%;
  margin-top: 1rem;
}

.form-help {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.form-error-list {
  margin: 0.75rem 0 0;
}

.page-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-profile,
.account-bind,
.account-orders,
.account-support,
.account-support-tickets,
.account-support-new {
  margin-top: 1.75rem;
}

.account-support-tickets h3,
.account-support-new h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.account-support-tickets-table {
  margin-top: 0.5rem;
}

.account-support-detail__back {
  margin: 0 0 0.75rem;
}

.account-support-detail h3 {
  font-family: var(--font-display);
  margin: 1.25rem 0 0.65rem;
  font-size: 1.05rem;
}

.account-support-detail__meta {
  margin-top: 0.75rem;
}

.account-support-detail__body {
  padding: 1rem 1.15rem;
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-support-detail__body p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.account-support-detail__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.account-support-detail__gallery-item {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.account-support-detail__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-bind h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.account-bind__pending {
  background: var(--surface);
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 1rem 1.25rem;
}

.account-bind__status {
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.account-bind__lookup-error {
  margin: 0 0 0.75rem;
}

.account-profile h2,
.account-orders h2,
.account-support h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.account-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
}

.account-dl dt {
  font-weight: 800;
  color: var(--text-muted, #64748b);
}

.account-dl dd {
  margin: 0;
  font-weight: 700;
}

.account-2fa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.account-2fa__note {
  flex-basis: 100%;
  margin: 0;
  font-weight: 600;
}

.account-2fa-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.account-2fa-backup {
  margin: 1rem 0;
}

.account-2fa-backup__list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.account-2fa-backup__list code {
  display: block;
  text-align: center;
  padding: 0.4rem 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  letter-spacing: 0.06em;
}

.account-orders-invoice-note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.account-orders-invoice-note__title {
  margin: 0;
}

.account-orders-invoice-note__list {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.account-orders-invoice-note__list li + li {
  margin-top: 0.2rem;
}

.account-orders-table {
  margin-top: 0.5rem;
}

.account-order-status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--border-play);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-order-status--pending {
  background: #fde68a;
  color: #92400e;
}

.account-order-status--paid {
  background: #bbf7d0;
  color: #166534;
}

.order-invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  white-space: nowrap;
}

.order-invoice-status__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.order-invoice-status--failed {
  color: #b91c1c;
}

.order-invoice-status--failed .order-invoice-status__icon {
  background: #ef4444;
  color: #fff;
}

.order-invoice-status--void {
  color: #9a3412;
}

.account-order-status--failed {
  background: #fecdd3;
  color: #9f1239;
}

.account-order-status--expired {
  background: #e5e7eb;
  color: #4b5563;
}

.account-order-status--refunded {
  background: #fde68a;
  color: #78350f;
}

.order-test-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 2px solid #d97706;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 800;
  vertical-align: middle;
}

.account-order-detail > td {
  padding-top: 0;
  border-top: none;
}

.account-order-detail__panel {
  margin: 0.35rem 0 0.85rem;
  padding: 0.85rem 1rem;
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.account-order-detail__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.account-order-detail__table {
  margin: 0;
}

.account-order-detail__lines {
  display: grid;
  gap: 0.85rem;
}

.offline-payment-instructions {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px dashed var(--border-play);
}

.offline-payment-instructions:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.offline-payment-instructions__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.offline-payment-instructions__hint {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.offline-payment-instructions__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.offline-payment-instructions__list > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) 1fr;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
}

.offline-payment-instructions__list dt {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
}

.offline-payment-instructions__list dd {
  margin: 0;
  font-size: 0.95rem;
}

.offline-payment-instructions__value {
  font-size: 0.95rem;
  font-weight: 700;
  word-break: break-all;
}

.checkout-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.checkout-offline-payment-panel {
  margin-top: 1rem;
}

.checkout-offline-payment-panel .offline-payment-instructions {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.account-order-line__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.account-order-line__name {
  font-family: var(--font-display);
  font-weight: 800;
}

.account-order-line__grants {
  margin-top: 0.35rem;
}

.account-logout-form {
  margin: 0;
}

.account-center {
  display: grid;
  grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  margin-top: 1.25rem;
}

.account-center__sidebar {
  position: sticky;
  top: 1rem;
  padding: 0.85rem 0.75rem;
  background: rgba(255, 254, 249, 0.95);
  border: 3px solid var(--border-play);
  border-radius: 16px;
  box-shadow: 4px 4px 0 rgba(45, 31, 61, 0.1);
}

.account-center__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.account-center__nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 3px solid transparent;
  color: var(--account-nav-text, var(--text));
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--account-nav-bg, rgba(255, 255, 255, 0.55));
  text-decoration: none;
}

a.account-center__nav-item {
  color: var(--account-nav-text, var(--text));
}

.account-center__nav-item:hover,
a.account-center__nav-item:hover {
  text-decoration: none;
  border-color: var(--border-play);
  box-shadow: 3px 3px 0 rgba(45, 31, 61, 0.08);
}

.account-center__nav-item.is-active,
a.account-center__nav-item.is-active {
  border-color: var(--account-nav-active-border, var(--border-play));
  background: var(--account-nav-active-bg, var(--btn-primary-bg));
  color: var(--account-nav-active-text, #ffffff);
  box-shadow: var(--shadow-pop);
}

a.account-center__nav-item.is-active:link,
a.account-center__nav-item.is-active:visited,
a.account-center__nav-item.is-active:hover,
a.account-center__nav-item.is-active:focus-visible {
  color: var(--account-nav-active-text, #ffffff);
  text-decoration: none;
}

.account-center__content {
  min-width: 0;
}

.account-panel {
  padding: 1.35rem 1.25rem;
  background: rgba(255, 254, 249, 0.95);
  border: 3px solid var(--border-play);
  border-radius: 16px;
  box-shadow: 4px 4px 0 rgba(45, 31, 61, 0.1);
}

.account-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
}

.account-panel h3 {
  margin: 1.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.account-panel > .muted:first-of-type {
  margin-top: 0;
}

.account-table-wrap {
  overflow-x: auto;
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-stats-summary {
  margin-bottom: 1rem;
}

.account-skin-viewer {
  margin-top: 0.75rem;
  width: min(220px, 100%);
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #e8f4fc 0%, #f8fafc 100%);
  overflow: hidden;
}

.account-skin-viewer__canvas {
  display: block;
  width: 100%;
  height: auto;
}

.account-skin-viewer__status {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
}

.c9-skin-viewer__status--error {
  color: #b91c1c;
}

.account-stats-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--border-play);
  font-size: 0.82rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
}

.account-stats-badge--online {
  background: #bbf7d0;
  color: #166534;
}

.account-stats-empty {
  margin-top: 0.75rem;
}

.account-stats-empty form {
  margin-top: 0.85rem;
}

@media (max-width: 760px) {
  .account-center {
    grid-template-columns: 1fr;
  }

  .account-center__sidebar {
    position: static;
  }

  .account-center__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* 問題回報表單 */
.support-page {
  max-width: 36rem;
  margin: 0 auto;
}

.page-head--center {
  text-align: center;
}

.error-page {
  max-width: 36rem;
  margin: 2rem auto;
}

.error-page__code {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.25rem 0 0;
}

.page-head--center .muted {
  margin-left: auto;
  margin-right: auto;
}

.support-form {
  width: 100%;
}

.support-form__section {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem 1.15rem;
  border: 3px solid var(--border-play);
  border-radius: 14px;
  background: rgba(255, 254, 249, 0.95);
  box-shadow: 3px 3px 0 rgba(45, 31, 61, 0.06);
}

.support-form__section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--text);
  text-align: left;
}

.support-form label {
  display: block;
  margin-top: 0.85rem;
  font-weight: 700;
}

.support-form__section-title + label {
  margin-top: 0;
}

.support-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.support-form__actions .btn {
  min-width: 10rem;
}

.support-form__upload {
  max-width: 100%;
}

.support-form__upload .c9-img-upload__label {
  text-align: left;
  font-size: 0.95rem;
}

.support-status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--border-play);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.support-status-badge--open {
  background: #dbeafe;
  color: #1d4ed8;
}

.support-status-badge--closed {
  background: #e2e8f0;
  color: #475569;
}

.account-support-reply {
  margin-top: 1.5rem;
}

.account-support-reply--closed,
.account-support-bind-required {
  padding: 0.85rem 1rem;
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  background: #f8fafc;
}

.account-support-bind-required .btn {
  margin-top: 0.85rem;
}

.account-support-reply h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.support-reply-form label {
  display: block;
  font-weight: 700;
}

.support-reply-form__actions {
  margin-top: 0.85rem;
}

.support-thread {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.support-thread__item {
  padding: 0.9rem 1rem;
  border: 3px solid var(--border-play);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-thread__item--user {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.support-thread__item--staff {
  border-color: #86efac;
  background: #f0fdf4;
}

.support-thread__item--unread {
  border-color: #fb923c;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.2);
}

.support-thread__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}

.support-thread__author {
  font-weight: 800;
  color: var(--text);
}

.support-thread__body p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-thread__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.support-thread__gallery-item {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  border: 2px solid var(--border-play);
  border-radius: 10px;
  overflow: hidden;
}

.support-thread__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-theme-switch {
  display: inline-flex;
  align-items: center;
}

.site-theme-switch__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.site-theme-switch__select {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.45rem;
  border: 2px solid var(--border-play);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.site-theme-switch__select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.site-theme-switch {
  display: inline-flex;
  align-items: center;
}

.site-theme-switch__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.site-theme-switch__select {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.45rem;
  border: 2px solid var(--border-play);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.site-theme-switch__select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
