@font-face {
  font-family: "Sphere Seals";
  src: url("/static/miniapp/assets/fonts/noto-serif-sc-seals-v4.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root { --font-han: "Sphere Seals", "Noto Serif SC", serif; }
:root[data-theme="light"] { --gold: #805c20; --gold-light: #805c20; }
.sphere-catalog-card h3 { font-size: 12px; line-height: 1.5; }
.eclipse-ritual > .sphere-art { width: 120px; height: 120px; }

/* The same art frame and seal appear in offers, inventory and the canon. */
.sphere-art {
  position: relative; display: inline-block; width: 48px; height: 48px;
  flex: 0 0 auto; vertical-align: middle; background: transparent;
}
.sphere-art > img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; filter: none; animation: none; }
.sphere-seal {
  position: absolute; right: 0; bottom: 0; display: grid; place-items: center;
  width: 19px; height: 21px; border: 1px solid #dbbf81; border-radius: 2px;
  background: #17201c; color: #fff0cd; font: normal 600 14px/1 "Sphere Seals", serif;
  box-shadow: 0 1px 3px #0003; pointer-events: none;
}
.sphere-stage > .sphere-art { width: 100%; height: 100%; }
.sphere-stage .sphere-seal { width: 23px; height: 26px; font-size: 18px; right: 0; bottom: 0; }
.home-special-card > .sphere-art { width: 62px; height: 62px; margin: 0 auto 6px; }
.home-special-card > span:not(.sphere-art) { display: block; }
.collection-cell > .sphere-art { width: 38px; height: 38px; margin-inline: auto; }
.collection-cell .sphere-seal { width: 15px; height: 17px; font-size: 11px; }
.round-row .sphere-art { width: 31px; height: 31px; margin-left: -3px; }
.round-row .sphere-seal { width: 12px; height: 14px; font-size: 9px; }
.result-spectrum .sphere-art { position: relative; right: auto; bottom: auto; width: 52px; min-width: 0; height: 52px; border-radius: 0; background: transparent; }
.score-row > .sphere-art { width: 44px; height: 44px; display: block; }
.catalog-sphere-art > .sphere-art { position: relative; top: auto; left: auto; width: 114px; height: 114px; }
.catalog-sphere-art .sphere-seal { width: 26px; height: 29px; font-size: 21px; }
.special-meter > .sphere-art { width: 38px; height: 38px; }
.rule-row > .sphere-art { width: 45px; height: 45px; }
.sphere-rules > article > .sphere-art { width: 45px; height: 45px; }
.screen.active .result-copy { animation: none; }
.offer-card { transition: border-color 140ms ease, background-color 140ms ease; }
.offer-card:active { transform: none; }
.offer-card b { font-size: 12px; font-weight: 650; line-height: 1.25; }
.offer-card .sphere-stage { top: 10%; left: 8%; width: 84%; }
.command b { font-family: var(--font-ui); font-weight: 650; }
.command { border-radius: 5px; box-shadow: none; }
.command::after, .china-button::after { opacity: .12; }
.command:active { transform: none; }
.command:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.command.primary > img { filter: brightness(0) invert(1); }
.command small { opacity: 1; }
.brand b { color: var(--ivory); }
.home-hero-copy { color: #fff5df; animation: none !important; }
.home-hero-copy h1 { color: #fff5df; font-size: 32px; line-height: 1.16; }
.home-hero-copy > .eyebrow { color: #f2ce84; }
.home-hero-copy > p { color: #f2ede3; font-size: 14px; line-height: 1.5; font-weight: 450; }
:root[data-theme="light"] .eyebrow { color: #805c20; }
:root[data-theme="light"] .home-hero-copy > .eyebrow { color: #f2ce84; }
:root[data-theme="light"] .home-hero-copy h1 { color: #fff5df; }
:root[data-theme="light"] .hero-shop-copy > b, :root[data-theme="light"] .shop-filters [aria-pressed="true"] { color: #17201c; }
:root[data-theme="light"] .shop-wallet > p, :root[data-theme="light"] .hero-shop-copy > small, :root[data-theme="light"] .shop-filters button { color: #645e50; }
.header-actions { flex-shrink: 0; }
.home-master-token img, .hero-shop-card img { filter: none; }
.shop-screen { padding-bottom: 100px; overflow-anchor: none; }
.shop-wallet { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 0 16px 18px; padding-block: 14px; border-block: 1px solid var(--line); }
.shop-wallet > span { font-size: 14px; color: var(--muted); align-self: center; }
.shop-wallet > b { font-size: 22px; color: var(--gold); }
.shop-wallet > p { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--muted); }
.shop-filters { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 0 16px 18px; border-bottom: 1px solid var(--line); }
.shop-filters button { min-height: 42px; font: 600 12px var(--font-ui); color: var(--muted); border-bottom: 2px solid transparent; }
.shop-filters [aria-pressed="true"] { border-color: var(--gold); color: var(--ivory); }
.hero-shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-inline: 16px; }
.hero-shop-card { display: block; min-width: 0; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: 5px; background: var(--ink-soft); }
.hero-shop-card > img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%; }
.hero-shop-copy { display: grid; gap: 5px; padding: 12px; min-height: 108px; }
.hero-shop-copy > b { font: 650 16px/1.2 var(--font-ui); color: var(--ivory); }
.hero-shop-copy > small { min-height: 30px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.hero-price { font-size: 12px; color: var(--gold); font-weight: 650; }
.hero-price.owned { color: var(--green); }
.hero-shop-card:hover { border-color: var(--gold); }
.shop-empty { padding: 24px; color: var(--muted); text-align: center; }
.shop-link { display: flex; align-items: center; gap: 9px; width: calc(100% - 32px); margin: 18px 16px; padding: 12px 0; border-block: 1px solid var(--line); color: var(--ivory); font: 600 13px var(--font-ui); }
.shop-link > img { width: 20px; height: 20px; }
.shop-link > img:last-child { margin-left: auto; transform: rotate(180deg); }
.setup-screen .master-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hero-dialog {
  position: fixed; inset: 0; width: min(480px, calc(100% - 24px));
  max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow-y: auto;
  background: var(--ink); color: var(--ivory); border: 1px solid var(--line-strong); border-radius: 6px;
  overscroll-behavior: contain;
}
.hero-dialog::backdrop { background: #050908c9; }
.hero-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: #0c1414e6; }
.hero-close > img { filter: brightness(0) invert(1) !important; }
.hero-dialog-art { height: 300px; background: #101816; }
.hero-dialog-art img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-dialog-copy { padding: 20px; }
.hero-dialog-copy h2 { margin: 5px 0 3px; font-size: 28px; line-height: 1.2; }
.hero-dialog-copy > p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.hero-ability { margin-block: 18px 12px; padding-block: 14px; border-block: 1px solid var(--line); }
.hero-ability > b { color: var(--gold); font-size: 12px; }
.hero-ability > p { margin-top: 7px; font-size: 14px; line-height: 1.55; }
.hero-lore { margin-bottom: 20px; }
.hero-dialog .command { min-height: 66px; width: 100%; }
.hero-dialog .command b { font-size: 16px; }
.hero-dialog .command small { font-size: 11px; }
:root[data-theme="light"] .hero-price.owned { color: #176049; }
:root[data-theme="light"] .shop-link > img { filter: brightness(0); }
@media (max-width: 350px) {
  .brand > img { width: 26px; height: 26px; }
  .brand b { font-size: 11px; }
  .app-header { gap: 6px; }
  .hero-shop-copy { padding: 9px; }
  .hero-shop-copy > b { font-size: 14px; }
  .hero-dialog-art { height: 250px; }
  .hero-dialog-copy { padding: 16px; }
  .offer-card b { font-size: 11px; }
  .catalog-sphere-art > .sphere-art { width: 85px; height: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  .command, .hero-shop-card, .offer-card { transition: none; }
}
