/* U.C.M - TCG App page (2026-11-14). Builds on site.css: same night sky, gold + cyan lines, Cinzel. Only what the long overview page needs on top. */

body[data-kind="tcgapp"] { --band: url(/img/tcg-scan-1344.webp); --band-s: url(/img/tcg-scan-720.webp); }
body[data-kind="tcgapp"] .page { max-width: 1120px; }
body[data-kind="tcgapp"] .page::before { content: ""; position: absolute; z-index: -1; top: 0; left: 50%; width: 100vw; margin-left: -50vw; height: 640px; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 9, 24, .92) 0%, rgba(6, 9, 24, .55) 42%, rgba(6, 9, 24, .05) 78%), linear-gradient(180deg, rgba(6, 9, 24, .1) 0%, rgba(6, 9, 24, .2) 45%, rgba(6, 9, 24, .78) 100%), var(--band) 62% top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 56%, transparent 100%); mask-image: linear-gradient(180deg, #000 56%, transparent 100%); }
@media (max-width: 700px) { body[data-kind="tcgapp"] .page::before { height: 520px; background-image: linear-gradient(180deg, rgba(6, 9, 24, .62) 0%, rgba(6, 9, 24, .5) 55%, rgba(6, 9, 24, .85) 100%), var(--band-s); background-position: 70% top; } }

/* hero */
.tcg-hero { min-height: 420px; display: flex; flex-direction: column; justify-content: center; padding: 18px 0 8px; }
.tcg-hero .lead { max-width: 58ch; }
.tcg-hero h1 { max-width: 15ch; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
html:not(:lang(en)) .tcg-hero h1 { max-width: 100%; }
@media (max-width: 420px) { .tcg-hero h1 { font-size: clamp(25px, 7.4vw, 30px); } }
.tcg-hero .cta-row { margin-top: 6px; }
.tcg-hero .small { margin-top: 14px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); padding: 14px 22px; border-radius: 14px; background: rgba(10, 13, 34, .6); border: 1px solid var(--gold-line); transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; background: rgba(230, 180, 90, .18); box-shadow: 0 0 22px rgba(255, 196, 96, .3); transform: translateY(-2px); outline: none; }

/* numbers strip */
.statbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.statbar li { padding: 18px 14px 16px; text-align: center; border-radius: 16px; border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(24, 28, 64, .8), rgba(9, 11, 28, .85)) padding-box, linear-gradient(135deg, rgba(230, 180, 90, .55), rgba(159, 216, 255, .2) 50%, rgba(230, 180, 90, .4)) border-box; box-shadow: 0 8px 26px rgba(0, 0, 0, .38); }
.statbar b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: .01em; background: linear-gradient(180deg, #fff 8%, var(--gold-hi) 60%, #d9a14a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statbar span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
@media (max-width: 1020px) { .statbar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .statbar li { padding: 14px 10px 12px; } }
.statbar li { min-width: 0; }
.statbar li.word b { font-size: clamp(16px, 1.75vw, 22px); overflow-wrap: anywhere; }
.statnote { margin: 12px 2px 0; font-size: 12.5px; color: var(--ink-3); }

/* sticky section bar */
.tsub { position: sticky; top: 70px; z-index: 50; margin: 26px calc(50% - 50vw) 0; padding: 10px max(16px, calc((100vw - 1120px) / 2 + 22px)); display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  background: linear-gradient(90deg, rgba(10, 13, 24, .92), rgba(7, 9, 26, .92)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(230, 180, 90, .18); border-bottom: 1px solid rgba(230, 180, 90, .3); }
.tsub::-webkit-scrollbar { display: none; }
.tsub-l { flex: none; font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; white-space: nowrap; }
.tsub a { flex: none; white-space: nowrap; text-decoration: none; font-size: 13.5px; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.tsub a:hover, .tsub a:focus-visible { color: #fff; background: rgba(230, 180, 90, .14); outline: none; }
.tsub a[aria-current="true"] { color: var(--gold-hi); background: rgba(230, 180, 90, .14); border-color: rgba(230, 180, 90, .45); }
@media (max-width: 899px) { .tsub { top: 70px; } .tsub-l { display: none; } }
@media (max-width: 440px) { .tsub { top: 70px; } }

/* sections */
.tsec { scroll-margin-top: 140px; overflow-x: clip; }
.tsec > h2 { margin-top: 64px; }
.tsec-intro { color: var(--ink-2); font-size: clamp(15.5px, 1.8vw, 17.5px); max-width: 70ch; margin: -6px 0 22px; }
.tart { position: relative; margin: 0 0 22px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(230, 180, 90, .45); box-shadow: 0 16px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(var(--accent-rgb), .14); aspect-ratio: 16 / 5.4; background: #060918; }
.tart img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 9, 24, .55), rgba(6, 9, 24, 0) 55%); pointer-events: none; }
@media (max-width: 700px) { .tart { aspect-ratio: 16 / 8; border-radius: 16px; } }
.h-sub { margin: 30px 0 14px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* grids of cards (reuse the section card look from site.css) */
.features.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .features.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features.two, .features.four { grid-template-columns: 1fr; } }
.features section h3 + p { margin-top: 2px; }

/* games */
.gamegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.gamegrid section { margin: 0; display: flex; flex-direction: column; padding: 22px 22px 20px; }
.gamegrid section::before { background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .95), transparent); opacity: .9; }
.gcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gcard-top h3 { margin: 0; color: var(--accent); font-size: 18px; }
.gcard-top h3::before { display: none; }
.gcard-n { text-align: right; font-family: var(--display); font-weight: 600; font-size: 20px; color: #fff; line-height: 1.1; white-space: nowrap; }
.gcard-n small { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 400; font-size: 11px; color: var(--ink-3); letter-spacing: 0; }
.gamegrid section:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.gamegrid section:last-child:nth-child(3n + 1) ul.plain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; }
@media (max-width: 760px) { .gamegrid section:last-child:nth-child(3n + 1) ul.plain { grid-template-columns: 1fr; } }
.gamegrid p { margin-bottom: 12px; }
.gamegrid ul.plain { margin-bottom: 16px; }
.gamegrid .gcard-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 13.5px; color: #1a1205; padding: 8px 15px; border-radius: 10px; background: linear-gradient(95deg, #f8dc95, #e6a94a); }
.gamegrid .gcard-link:hover, .gamegrid .gcard-link:focus-visible { color: #1a1205; box-shadow: 0 0 22px rgba(255, 196, 96, .5); outline: none; }
.g-pokemon { --accent: #ffd54a; --accent-rgb: 255, 213, 74; } .g-onepiece { --accent: #ff7a6b; --accent-rgb: 255, 122, 107; } .g-yugioh { --accent: #c3a2ff; --accent-rgb: 195, 162, 255; }
.g-mtg { --accent: #ffa95a; --accent-rgb: 255, 169, 90; } .g-lorcana { --accent: #7cc4ff; --accent-rgb: 124, 196, 255; } .g-dragonball { --accent: #ffb13d; --accent-rgb: 255, 177, 61; } .g-digimon { --accent: #5fe0ff; --accent-rgb: 95, 224, 255; }

/* "honest" callout */
.honest { margin: 22px 0 0; padding: 20px 24px; border-radius: 18px; border: 1px solid rgba(230, 180, 90, .45); border-left: 4px solid #f2c46f; background: linear-gradient(160deg, rgba(40, 30, 96, .5), rgba(10, 12, 32, .75)); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.honest h3 { margin: 0 0 8px; }
.honest p { font-size: 15px; }

/* feature + screenshot rows */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.split.flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split.flip .shots { order: -1; }
.split.solo { grid-template-columns: minmax(0, 1fr); }
.shots { display: flex; justify-content: center; gap: 16px; position: sticky; top: 150px; align-self: start; }
.shot { position: relative; margin: 0; flex: 1 1 0; max-width: 270px; }
.shot::before { content: ""; position: absolute; inset: -10% -10%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .36) 0%, rgba(var(--accent-rgb), .1) 44%, transparent 68%); filter: blur(10px); }
.shot img { display: block; width: 100%; height: auto; border-radius: 24px; border: 1px solid rgba(255, 224, 160, .55); box-shadow: 0 0 0 5px rgba(8, 10, 26, .85), 0 0 0 6px rgba(230, 180, 90, .45), 0 24px 60px rgba(0, 0, 0, .65); }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip .shots { order: 0; } .shots { position: static; } .shot { max-width: 220px; } .shot::before { inset: -6% -4%; } }
.stack { display: grid; gap: 16px; }
.stack section { margin: 0; }

/* plans table */
.plans .tablewrap { margin-top: 4px; }
.plans table { min-width: 560px; }
.plans th:not(:first-child), .plans td:not(:first-child) { text-align: center; }
.plans td { white-space: normal; }
.plans td:first-child { min-width: 220px; }
.ck { font-weight: 700; font-size: 16px; color: #8ee6b0; }
.nk { color: var(--ink-3); }
.plans .tcol-ultra { color: var(--gold-hi); }
.plan-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

/* leaderboards */
.boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.boards section { margin: 0; padding: 16px 16px 14px; }
.boards h3 { font-size: 14.5px; }
@media (max-width: 900px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* closing call to action */
.tcg-cta { margin: 64px 0 0; padding: clamp(26px, 5vw, 48px); border-radius: 26px; text-align: center; border: 1px solid rgba(230, 180, 90, .5); position: relative; overflow: hidden;
  background: radial-gradient(700px 260px at 50% 0%, rgba(120, 80, 255, .3), transparent 70%), linear-gradient(160deg, rgba(30, 26, 80, .75), rgba(8, 10, 28, .9)); box-shadow: 0 20px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07); }
.tcg-cta h2 { display: block; margin: 0 0 10px; }
.tcg-cta h2::before, .tcg-cta h2::after { display: none; }
.tcg-cta p { max-width: 52ch; margin: 0 auto 22px; font-size: 16px; }
.tcg-cta .cta-row { justify-content: center; }
.tcg-cta .qr-card { margin: 26px auto 0; text-align: left; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn-ghost, .tsub a { transition: none; } }

/* Japanese: strict line-breaking rules and balanced lines */
html:lang(ja) .tcg-hero h1, html:lang(ja) .tsec h2, html:lang(ja) .tsec-intro, html:lang(ja) .hero p { line-break: strict; text-wrap: balance; }
