/* Freigeist TCG · PvP Arena (2026-09-28). Mobile-first, battery-friendly: no backdrop blur, no infinite animations,
   only short one-shot transforms/opacity. */
.tcgh[data-screen="pvp"] .tcgh-screen[data-screen="pvp"] { display: block; animation: tcgh-in .28s ease-out; }
:root { --pvp-me: #38bdf8; --pvp-foe: #fb7185; --pvp-gold: #fbbf24; }

/* hub tile */
.tcgh-tile.t-pvp { grid-column: 1 / -1; min-height: 170px; color: #fff; overflow: hidden; flex-direction: row; align-items: flex-end; flex-wrap: wrap;
  background: linear-gradient(100deg, #0b2a4a 0%, #16183a 48%, #4a1030 100%); border-color: rgba(255,255,255,.14); }
.tcgh-tile.t-pvp .txt { flex: 1 1 240px; }
.tcgh-tile.t-pvp .duo { position: absolute !important; inset: 0; z-index: 1 !important; pointer-events: none; }
.tcgh-tile.t-pvp .duo img { position: absolute; bottom: -6%; height: 118%; width: auto; max-width: none; opacity: .9; }
.tcgh-tile.t-pvp .duo img.l { right: 30%; transform: scaleX(-1); -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.tcgh-tile.t-pvp .duo img.r { right: -2%; -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); }
.tcgh-tile.t-pvp .duo .vs { position: absolute; right: 23%; top: 50%; transform: translate(50%, -50%) skewX(-8deg); font: 900 italic 44px/1 var(--skin-display, "Space Grotesk", Inter, sans-serif);
  color: #fff; text-shadow: 0 0 18px rgba(251,191,36,.7), 3px 3px 0 #b45309; letter-spacing: -.04em; }
.tcgh-tile.t-pvp::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,8,20,.88) 0%, rgba(5,8,20,.55) 45%, transparent 75%); }
.tcgh-tile.t-pvp .soon { position: absolute; right: 18px; top: 18px; font: 800 12px var(--skin-font, Inter, sans-serif); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--pvp-gold); color: #3b2300; }
@media (max-width: 640px) {
  .tcgh-tile.t-pvp { min-height: 150px; }
  .tcgh-tile.t-pvp .duo img.l { right: 26%; } .tcgh-tile.t-pvp .duo .vs { font-size: 32px; right: 20%; }
  .tcgh-tile.t-pvp .soon { right: 12px; top: 12px; font-size: 10px; }
}

/* screen */
.tcgp { max-width: 720px; margin: 0 auto; padding: 4px 2px 28px; display: flex; flex-direction: column; gap: 14px; color: var(--tcgh-text); }
.tcgp-card { background: var(--tcgh-surface); border: 1px solid var(--tcgh-line); border-radius: 18px; padding: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.tcgp-card.tight { padding: 12px 12px 10px; }
.tcgp-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 800 13px var(--skin-font, Inter, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--tcgh-muted); }
.tcgp-card h3 .hint { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12px; }
.tcgp-card h3 .tcgp-ic { margin-left: auto; }
.tcgp-card.soon { opacity: .8; border-style: dashed; } .tcgp-card.soon p { margin: 0; color: var(--tcgh-muted); font-size: 14px; line-height: 1.45; }
.tcgp-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--tcgh-line); background: var(--tcgh-surface-2); color: var(--tcgh-text); cursor: pointer; font-size: 15px; flex: none; }
.tcgp-ic.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.tcgp-ic:active { transform: scale(.94); }
.tcgp .cta.sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.tcgp-empty { margin: 4px 0; color: var(--tcgh-muted); font-size: 14px; line-height: 1.5; }
.tcgp-err { min-height: 0; margin: 0; font-size: 13px; color: var(--pvp-gold); text-align: center; }
.tcgp-err:empty { display: none; }

/* hero */
.tcgp-hero { position: relative; overflow: hidden; min-height: 190px; border-radius: 22px; padding: 18px; display: flex; align-items: flex-end;
  background: linear-gradient(115deg, #0b2a4a 0%, #16183a 50%, #4a1030 100%); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 44px rgba(0,0,0,.3); }
.tcgp-hero .art { position: absolute; inset: 0; }
.tcgp-hero .art img { position: absolute; bottom: -8%; height: 112%; width: auto; max-width: none; }
.tcgp-hero .art img.l { left: -6%; transform: scaleX(-1); -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent); mask-image: linear-gradient(270deg, #000 60%, transparent); }
.tcgp-hero .art img.r { right: -6%; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.tcgp-hero .art .vs { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%) skewX(-8deg); font: 900 italic 54px/1 var(--skin-display, "Space Grotesk", Inter, sans-serif);
  color: #fff; text-shadow: 0 0 22px rgba(251,191,36,.75), 4px 4px 0 #b45309; animation: tcgp-stamp .5s cubic-bezier(.2,1.6,.4,1) .15s both; }
.tcgp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,8,20,.9) 100%); }
.tcgp-hero .tt { position: relative; z-index: 2; }
.tcgp-hero .kick { display: inline-block; margin-bottom: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(251,191,36,.18); color: var(--pvp-gold); font: 800 10px var(--skin-font, Inter, sans-serif); letter-spacing: .18em; text-transform: uppercase; }
.tcgp-hero b { display: block; font: 900 34px/1 var(--skin-display, "Space Grotesk", Inter, sans-serif); color: #fff; }
.tcgp-hero em { display: block; margin-top: 6px; font-style: normal; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.85); max-width: 46ch; }
@keyframes tcgp-stamp { from { opacity: 0; transform: translate(-50%, -50%) skewX(-8deg) scale(2.2); } to { opacity: 1; transform: translate(-50%, -50%) skewX(-8deg) scale(1); } }

/* bracket + host/join */
.tcgp-segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tcgp-seg { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 6px; border-radius: 14px; border: 1.5px solid var(--tcgh-line); background: var(--tcgh-surface-2); color: var(--tcgh-text); cursor: pointer; }
.tcgp-seg b { font: 900 20px/1 var(--skin-display, "Space Grotesk", Inter, sans-serif); }
.tcgp-seg em { font-style: normal; font-size: 11px; color: var(--tcgh-muted); text-align: center; line-height: 1.25; }
.tcgp-seg.on { border-color: var(--pvp-gold); background: color-mix(in srgb, var(--pvp-gold) 14%, var(--tcgh-surface-2)); box-shadow: 0 0 0 1px var(--pvp-gold) inset; }
.tcgp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.tcgp-big { flex: 1 1 100%; padding: 15px 20px !important; font-size: 16px !important; }
.tcgp-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tcgh-muted); cursor: pointer; }
.tcgp-chk input { width: 18px; height: 18px; accent-color: var(--pvp-gold); }
.tcgp-join { display: flex; gap: 8px; margin-top: 12px; }
.tcgp-join input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 13px; border: 1.5px solid var(--tcgh-line); background: var(--tcgh-surface-2); color: var(--tcgh-text);
  font: 800 20px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .35em; text-transform: uppercase; text-align: center; }
.tcgp-join input:focus { outline: none; border-color: var(--pvp-gold); }
.tcgp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tcgp-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: var(--tcgh-surface-2); border: 1px solid var(--tcgh-line); }
.tcgp-list .av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--pvp-foe) 25%, transparent); color: var(--pvp-foe); flex: none; }
.tcgp-list .tx { flex: 1; min-width: 0; } .tcgp-list .tx b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tcgp-list .tx em { font-style: normal; font-size: 12px; color: var(--tcgh-muted); }

/* room */
.tcgp-rhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tcgp-rhead .rc { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 14px; background: var(--tcgh-surface); border: 1px solid var(--tcgh-line); }
.tcgp-rhead .rc em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tcgh-muted); }
.tcgp-rhead .rc b { font: 900 22px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .18em; color: var(--pvp-gold); }
.tcgp-rhead .chips { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.tcgp-rhead .chip { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--tcgh-surface-2); border: 1px solid var(--tcgh-line); }
.tcgp-rhead .chip.br { border-color: color-mix(in srgb, var(--pvp-gold) 60%, transparent); color: var(--pvp-gold); }

.tcgp-duel { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; }
.tcgp-duel > .vs { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%) skewX(-8deg); padding: 4px 10px; border-radius: 10px;
  font: 900 italic 22px/1 var(--skin-display, "Space Grotesk", Inter, sans-serif); color: #fff; background: #111827; border: 2px solid var(--pvp-gold); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.tcgp-plate { position: relative; display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "av nm st" "mini mini mini"; align-items: center; gap: 8px 12px; padding: 12px;
  border-radius: 18px; border: 1.5px solid var(--tcgh-line); background: var(--tcgh-surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tcgp-plate.me { background: linear-gradient(100deg, color-mix(in srgb, var(--pvp-me) 20%, var(--tcgh-surface)) 0%, var(--tcgh-surface) 70%); }
.tcgp-plate.foe { background: linear-gradient(260deg, color-mix(in srgb, var(--pvp-foe) 20%, var(--tcgh-surface)) 0%, var(--tcgh-surface) 70%); }
.tcgp-plate.rdy.me { border-color: var(--pvp-me); box-shadow: 0 0 0 1px var(--pvp-me) inset, 0 0 22px color-mix(in srgb, var(--pvp-me) 30%, transparent); }
.tcgp-plate.rdy.foe { border-color: var(--pvp-foe); box-shadow: 0 0 0 1px var(--pvp-foe) inset, 0 0 22px color-mix(in srgb, var(--pvp-foe) 30%, transparent); }
.tcgp-plate .av { grid-area: av; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--tcgh-surface-2); color: var(--tcgh-muted); font-size: 20px; }
.tcgp-plate .av img { width: 100%; height: 100%; object-fit: cover; }
.tcgp-plate .nm { grid-area: nm; min-width: 0; } .tcgp-plate .nm b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcgp-plate .nm b .fa-crown { color: var(--pvp-gold); font-size: 12px; } .tcgp-plate .nm em { font-style: normal; font-size: 12.5px; color: var(--tcgh-muted); }
.tcgp-plate .st { grid-area: st; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tcgh-muted); }
.tcgp-plate.rdy .st { color: #4ade80; } .tcgp-plate.rdy .st i { animation: tcgp-pop .35s cubic-bezier(.2,1.8,.4,1); }
.tcgp-plate .mini { grid-area: mini; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tcgp-plate .mini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--tcgh-surface-2); }
.tcgp-plate .mini.none { display: block; font-size: 12px; color: var(--tcgh-muted); }
.tcgp-plate.wait { border-style: dashed; } .tcgp-plate.wait .nm em b { color: var(--pvp-gold); letter-spacing: .12em; }
@keyframes tcgp-pop { from { transform: scale(0); } to { transform: scale(1); } }

.tcgp-decks { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tcgp-deck { flex: 0 0 172px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 7px; padding: 10px; text-align: left; border-radius: 14px; border: 1.5px solid var(--tcgh-line);
  background: var(--tcgh-surface-2); color: var(--tcgh-text); cursor: pointer; }
.tcgp-deck .nm { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcgp-deck .th { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; } .tcgp-deck .th img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.tcgp-deck .pw { font-size: 12px; color: var(--tcgh-muted); } .tcgp-deck .pw s { opacity: .6; }
.tcgp-deck.on { border-color: var(--pvp-me); box-shadow: 0 0 0 1px var(--pvp-me) inset; background: color-mix(in srgb, var(--pvp-me) 12%, var(--tcgh-surface-2)); }
.tcgp-deck[disabled] { cursor: default; opacity: .55; } .tcgp-deck.on[disabled] { opacity: 1; }

.tcgp-readyrow { display: flex; }
.tcgp-ready { flex: 1; padding: 17px 18px; border-radius: 16px; border: 0; cursor: pointer; font: 900 18px/1 var(--skin-display, "Space Grotesk", Inter, sans-serif); letter-spacing: .02em;
  color: #1c1300; background: linear-gradient(180deg, #fcd34d, #f59e0b); box-shadow: 0 10px 26px rgba(245,158,11,.35), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .12s, filter .15s; }
.tcgp-ready:active:not([disabled]) { transform: scale(.98); }
.tcgp-ready.on { color: #052e16; background: linear-gradient(180deg, #86efac, #22c55e); box-shadow: 0 10px 26px rgba(34,197,94,.3); }
.tcgp-ready.idle, .tcgp-ready[disabled] { color: var(--tcgh-muted); background: var(--tcgh-surface-2); box-shadow: none; border: 1px solid var(--tcgh-line); cursor: default; }

/* chat */
.tcgp-msgs { height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 2px 6px; overscroll-behavior: contain; }
.tcgp-msgs .m { margin: 0; max-width: 86%; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: var(--tcgh-surface-2); font-size: 14px; line-height: 1.35; word-break: break-word; align-self: flex-start; }
.tcgp-msgs .m b { display: block; font-size: 11px; color: var(--pvp-foe); margin-bottom: 1px; }
.tcgp-msgs .m.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--pvp-me) 20%, var(--tcgh-surface-2)); } .tcgp-msgs .m.me b { color: var(--pvp-me); }
.tcgp-msgs .m.phrase span { font-weight: 700; }
.tcgp-msgs .m.sys { align-self: center; max-width: 100%; background: none; padding: 2px 6px; font-size: 12px; color: var(--tcgh-muted); text-align: center; }
.tcgp-msgs .m.emo { display: flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; animation: tcgp-pop .3s cubic-bezier(.2,1.6,.4,1); transform-origin: left center; }
.tcgp-msgs .m.emo.me { flex-direction: row-reverse; padding: 5px 5px 5px 11px; transform-origin: right center; }
.tcgp-msgs .m.emo img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.tcgp-phr { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 4px; -webkit-overflow-scrolling: touch; }
.tcgp-chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--tcgh-line); background: var(--tcgh-surface-2); color: var(--tcgh-text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tcgp-chip:active { transform: scale(.95); } .tcgp-chip[disabled] { opacity: .4; }
.tcgp-emos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 4px 0; }
.tcgp-emo { padding: 0; border: 1.5px solid var(--tcgh-line); border-radius: 12px; overflow: hidden; background: var(--tcgh-surface-2); cursor: pointer; aspect-ratio: 1; }
.tcgp-emo img { width: 100%; height: 100%; object-fit: cover; display: block; } .tcgp-emo:active { transform: scale(.9); }
.tcgp-say { display: flex; gap: 8px; margin-top: 8px; }
.tcgp-say input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--tcgh-line); background: var(--tcgh-surface-2); color: var(--tcgh-text); font-size: 15px; }
.tcgp-say input:focus { outline: none; border-color: var(--pvp-me); }

/* countdown */
.tcgp-cd { position: fixed; inset: 0; z-index: 1040; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(4,7,18,.72); pointer-events: none; }
.tcgp-cd[hidden] { display: none; }
.tcgp-cd .n { font: 900 120px/1 var(--skin-display, "Space Grotesk", Inter, sans-serif); color: #fff; text-shadow: 0 0 30px rgba(251,191,36,.8), 5px 5px 0 #b45309; animation: tcgp-cd .6s cubic-bezier(.2,1.5,.4,1) both; }
.tcgp-cd em { font-style: normal; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--pvp-gold); font-size: 13px; }
@keyframes tcgp-cd { from { opacity: 0; transform: scale(2); } to { opacity: 1; transform: scale(1); } }

/* VS intro */
.tcgp-intro { position: fixed; inset: 0; z-index: 1100; overflow: hidden; background: #060913; color: #fff; --dur: 4s; transition: opacity .35s; }
.tcgp-intro.out { opacity: 0; }
.tcgp-intro .half { position: absolute; left: 0; right: 0; height: 56%; overflow: hidden; }
.tcgp-intro .half.foe { top: 0; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); background: linear-gradient(200deg, #7f1d3a 0%, #3b0a1e 55%, #12060d 100%); animation: tcgp-infoe .5s cubic-bezier(.2,.9,.3,1) both; }
.tcgp-intro .half.me { bottom: 0; clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%); background: linear-gradient(20deg, #0c4a6e 0%, #0b1f3f 55%, #060b18 100%); animation: tcgp-inme .5s cubic-bezier(.2,.9,.3,1) both; }
.tcgp-intro .hero { position: absolute; height: 92%; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,.6)); }
.tcgp-intro .foe .hero { right: -4%; top: 2%; animation: tcgp-herof .7s cubic-bezier(.2,.9,.3,1) .1s both; }
.tcgp-intro .me .hero { left: -4%; bottom: 0; transform: scaleX(-1); animation: tcgp-herom .7s cubic-bezier(.2,.9,.3,1) .1s both; }
.tcgp-intro .who { position: absolute; z-index: 2; max-width: 62%; }
.tcgp-intro .foe .who { left: 18px; top: calc(env(safe-area-inset-top, 0px) + 22px); }
.tcgp-intro .me .who { right: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); text-align: right; }
.tcgp-intro .who em { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.tcgp-intro .who b { display: block; margin: 4px 0; font: 900 34px/1.02 var(--skin-display, "Space Grotesk", Inter, sans-serif); text-shadow: 0 4px 18px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.tcgp-intro .who .pw { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.4); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.tcgp-intro .row { position: absolute; z-index: 2; display: flex; gap: 6px; perspective: 600px; }
.tcgp-intro .foe .row { left: 18px; top: calc(env(safe-area-inset-top, 0px) + 140px); }
.tcgp-intro .me .row { right: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 30px); }
.tcgp-intro .row .c { position: relative; width: 44px; height: 44px; border-radius: 11px; overflow: hidden; border: 2px solid rgba(255,255,255,.7); background: #111;
  animation: tcgp-flip .35s ease-out calc(.55s + var(--i) * .07s) both; }
.tcgp-intro .row .c img { width: 100%; height: 100%; object-fit: cover; }
.tcgp-intro .row .c b { position: absolute; right: 1px; bottom: 0; font-size: 10px; padding: 0 3px; border-radius: 5px; background: rgba(0,0,0,.7); }
.tcgp-intro .row .c.el-fire { border-color: #fb923c; } .tcgp-intro .row .c.el-water { border-color: #38bdf8; } .tcgp-intro .row .c.el-earth { border-color: #a3e635; } .tcgp-intro .row .c.el-wind { border-color: #e2e8f0; }
.tcgp-intro .slash { position: absolute; left: -10%; right: -10%; top: 50%; height: 4px; background: linear-gradient(90deg, transparent, #fff 20%, var(--pvp-gold) 50%, #fff 80%, transparent);
  transform: translateY(-50%) rotate(-7deg) scaleX(0); animation: tcgp-slash .45s ease-out .3s both; box-shadow: 0 0 18px rgba(251,191,36,.8); }
.tcgp-intro .vs { position: absolute; left: 50%; top: 50%; z-index: 3; display: flex; transform: translate(-50%, -50%) rotate(-7deg); }
.tcgp-intro .vs b { font: 900 italic 92px/1 var(--skin-display, "Space Grotesk", Inter, sans-serif); color: #fff; text-shadow: 0 0 28px rgba(251,191,36,.85), 5px 5px 0 #b45309; }
.tcgp-intro .vs b:first-child { animation: tcgp-v .42s cubic-bezier(.2,1.4,.4,1) .45s both; }
.tcgp-intro .vs b:last-child { animation: tcgp-s .42s cubic-bezier(.2,1.4,.4,1) .45s both; }
.tcgp-intro .vs::after { content: ""; position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; border: 4px solid var(--pvp-gold);
  opacity: 0; animation: tcgp-ring .6s ease-out .8s both; }
.tcgp-intro .go { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); font: 900 italic 64px/1 var(--skin-display, "Space Grotesk", Inter, sans-serif);
  color: var(--pvp-gold); text-shadow: 0 0 26px rgba(251,191,36,.9), 4px 4px 0 #7c2d12; opacity: 0; animation: tcgp-go .5s cubic-bezier(.2,1.4,.4,1) calc(var(--dur) - .7s) both; }
@keyframes tcgp-infoe { from { transform: translateX(100%); } to { transform: none; } }
@keyframes tcgp-inme { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes tcgp-herof { from { opacity: 0; transform: translateX(30%); } to { opacity: 1; transform: none; } }
@keyframes tcgp-herom { from { opacity: 0; transform: scaleX(-1) translateX(30%); } to { opacity: 1; transform: scaleX(-1); } }
@keyframes tcgp-flip { from { opacity: 0; transform: rotateY(90deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tcgp-slash { 0% { transform: translateY(-50%) rotate(-7deg) scaleX(0); opacity: 1; } 70% { transform: translateY(-50%) rotate(-7deg) scaleX(1); opacity: 1; } 100% { transform: translateY(-50%) rotate(-7deg) scaleX(1); opacity: .35; } }
@keyframes tcgp-v { from { opacity: 0; transform: translateX(-120px) scale(1.8); } to { opacity: 1; transform: none; } }
@keyframes tcgp-s { from { opacity: 0; transform: translateX(120px) scale(1.8); } to { opacity: 1; transform: none; } }
@keyframes tcgp-ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes tcgp-go { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } 60% { opacity: 1; transform: translate(-50%, -50%) scale(.95); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.tcgp-intro .go ~ .vs, .tcgp-intro .vs { transition: opacity .2s; }
@media (min-width: 900px) { .tcgp-intro .who b { font-size: 52px; } .tcgp-intro .row .c { width: 60px; height: 60px; } .tcgp-intro .foe .row { top: 170px; } .tcgp-intro .vs b { font-size: 130px; } }

/* in-arena emotes */
.tcgp-ar { position: absolute; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); z-index: 1058; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.tcgp-ar > * { pointer-events: auto; }
.tcgp-emobtn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: rgba(10,14,30,.82); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.tcgp-ar .tray { display: grid; grid-template-columns: repeat(4, 44px); gap: 6px; padding: 8px; border-radius: 16px; background: rgba(10,14,30,.92); border: 1px solid rgba(255,255,255,.18); animation: tcgp-pop .2s ease-out; transform-origin: bottom right; }
.tcgp-ar .tray[hidden] { display: none; }
.tcgp-ar .tray .tcgp-emo { width: 44px; border-color: rgba(255,255,255,.2); }
.tcgp-ar .bubbles { position: fixed; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.tcgp-bub { position: absolute; display: flex; align-items: center; gap: 8px; max-width: 70%; padding: 6px 12px 6px 6px; border-radius: 16px; background: rgba(10,14,30,.9); border: 1.5px solid; color: #fff; font-size: 13px;
  animation: tcgp-bub 2.6s ease-out both; }
.tcgp-bub img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.tcgp-bub b { display: block; font-size: 10px; opacity: .8; }
.tcgp-bub.foe { left: 12px; top: 96px; border-color: var(--pvp-foe); }
.tcgp-bub.me { right: 66px; bottom: calc(env(safe-area-inset-bottom, 0px) + 70px); border-color: var(--pvp-me); }
@keyframes tcgp-bub { 0% { opacity: 0; transform: translateY(10px) scale(.7); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.tcgp-resnote { display: block; font-size: 13px; color: var(--tcgh-muted); }
.tcgp-resbtns { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

@media (min-width: 720px) { .tcgp-duel { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .tcgp-intro *, .tcgp-intro .half, .tcgp-hero .art .vs, .tcgp-cd .n, .tcgp-bub, .tcgp-msgs .m.emo { animation-duration: .01s !important; animation-delay: 0s !important; }
}
html.tcgh-idle .tcgp-intro * { animation-play-state: paused; }

/* ---------- phase 2 (2026-09-28): tabs, rank, queue, daily, Glanz, ranking, history, replay ---------- */
.tcgp-hero.sm { min-height: 120px; }
.tcgp-hero.sm .art .vs { font-size: 40px; top: 38%; }
.tcgp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--tcgh-surface); border: 1px solid var(--tcgh-line); }
.tcgp-tab { padding: 11px 6px; border: 0; border-radius: 12px; background: none; color: var(--tcgh-muted); font: 800 14px var(--skin-font, Inter, sans-serif); cursor: pointer; }
.tcgp-tab.on { background: var(--tcgh-surface-2); color: var(--tcgh-text); box-shadow: inset 0 0 0 1.5px var(--pvp-gold); }
#tcgp-tabbody { display: flex; flex-direction: column; gap: 14px; }
.tcgp-rk { display: flex; align-items: center; gap: 12px; }
.tcgp-rk .ic { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 18px; font-size: 30px; background: var(--tcgh-surface-2); border: 2px solid var(--tier, var(--tcgh-line)); }
.tcgp-rk .tx { flex: 1; min-width: 0; } .tcgp-rk .tx em { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tcgh-muted); }
.tcgp-rk .tx b { display: block; font: 900 22px/1.15 var(--skin-display, "Space Grotesk", Inter, sans-serif); } .tcgp-rk .tx span { font-size: 13px; color: var(--tcgh-muted); }
.tcgp-rk .ss { text-align: right; flex: none; } .tcgp-rk .ss b { display: block; font-size: 13px; } .tcgp-rk .ss em { font-style: normal; font-size: 11px; color: var(--tcgh-muted); }
.tcgp-pl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; } .tcgp-pl i { height: 6px; border-radius: 3px; background: var(--tcgh-surface-2); } .tcgp-pl i.on { background: var(--pvp-gold); }
.t-flusen { --tier: #a8a29e; } .t-kissen { --tier: #86efac; } .t-baer { --tier: #fdba74; } .t-wolke { --tier: #7dd3fc; } .t-pfote { --tier: #c4b5fd; } .t-schleife { --tier: #f9a8d4; } .t-gewinn { --tier: #fbbf24; } .t-legende { --tier: #fde047; } .t-unranked { --tier: #64748b; }
.tcgp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 5px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--tcgh-text);
  background: color-mix(in srgb, var(--tier) 18%, var(--tcgh-surface-2)); border: 1px solid color-mix(in srgb, var(--tier) 70%, transparent); white-space: nowrap; }
.tcgp-badge i { font-style: normal; } .tcgp-badge b { color: var(--tier); } .tcgp-badge.sm { font-size: 11px; padding: 2px 7px 2px 4px; }
.tcgp-plate .nm .tcgp-badge { margin: 3px 0 2px; }
.tcgp-q { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--pvp-gold) 10%, var(--tcgh-surface-2)); border: 1.5px solid color-mix(in srgb, var(--pvp-gold) 55%, transparent); }
.tcgp-q .rad { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--pvp-gold); }
.tcgp-q .rad i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--pvp-gold); }
.tcgp-q .tx { flex: 1; min-width: 0; } .tcgp-q .tx b { display: block; font-size: 16px; } .tcgp-q .tx em { font-style: normal; font-size: 12px; color: var(--tcgh-muted); }
.tcgp-daily { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 12.5px; color: var(--tcgh-muted); } .tcgp-daily b { color: var(--tcgh-text); }
.tcgp-daily .fw { color: var(--pvp-gold); } .tcgp-daily .fw.done { color: var(--tcgh-muted); }
.tcgp-daily .bar { flex: 1 1 100%; height: 5px; border-radius: 3px; background: var(--tcgh-surface-2); overflow: hidden; } .tcgp-daily .bar i { display: block; height: 100%; background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.tcgp-glanz { border-color: var(--pvp-gold); background: linear-gradient(160deg, color-mix(in srgb, var(--pvp-gold) 16%, var(--tcgh-surface)) 0%, var(--tcgh-surface) 60%); }
.tcgp-glanz h3 { color: var(--pvp-gold); } .tcgp-glanz p { margin: 0 0 10px; font-size: 14px; }
.tcgp-gl { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.tcgp-gl .tcgp-emo { aspect-ratio: auto; display: flex; flex-direction: column; color: var(--tcgh-text); } .tcgp-gl .tcgp-emo img { aspect-ratio: 1; height: auto; }
.tcgp-gl .tcgp-emo span { font-size: 10.5px; padding: 3px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcgp-rhead .chip.q { color: var(--pvp-gold); } .tcgp-rhead .chip.on { border-color: #4ade80; color: #4ade80; }
.tcgp-rhead .chip.tog { cursor: pointer; color: var(--tcgh-muted); } .tcgp-rhead .chip.tog.on { color: #4ade80; border-color: #4ade80; }
.tcgp-lastres, .tcgp-resrate { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; font-size: 13px; }
.tcgp-lastres { padding: 12px; border-radius: 14px; background: var(--tcgh-surface); border: 1px solid var(--tcgh-line); }
.tcgp-lastres[hidden] { display: none; }
.tcgp-lastres b.w, .tcgp-resrate b.w { color: #4ade80; } .tcgp-lastres b.l, .tcgp-resrate b.l { color: var(--pvp-foe); }
.tcgp-lastres .d.up, .tcgp-resrate .d.up { color: #4ade80; font-weight: 800; } .tcgp-lastres .d.dn, .tcgp-resrate .d.dn { color: var(--pvp-foe); font-weight: 800; }
.tcgp-lastres .gl, .tcgp-resrate .gl { flex-basis: 100%; text-align: center; color: var(--pvp-gold); }
.tcgp-resrate.done { animation: tcgp-pop .3s ease-out; }
.tcgp-filt { display: flex; gap: 6px; } .tcgp-chip.on { border-color: var(--pvp-gold); color: var(--pvp-gold); }
.tcgp-lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tcgp-lb li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--tcgh-surface-2); }
.tcgp-lb li.you { box-shadow: inset 0 0 0 1.5px var(--pvp-me); }
.tcgp-lb .n { flex: none; width: 30px; text-align: center; font: 900 16px var(--skin-display, "Space Grotesk", Inter, sans-serif); color: var(--tcgh-muted); }
.tcgp-lb li.top1 .n { color: #fbbf24; } .tcgp-lb li.top2 .n { color: #e2e8f0; } .tcgp-lb li.top3 .n { color: #fdba74; }
.tcgp-lb .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; } .tcgp-lb .nm b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcgp-lb .r { text-align: right; flex: none; } .tcgp-lb .r b { display: block; font-size: 16px; } .tcgp-lb .r em { font-style: normal; font-size: 11px; color: var(--tcgh-muted); }
.tcgp-me { margin: -4px 0 12px; font-size: 13px; color: var(--tcgh-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .tcgp-me b { color: var(--tcgh-text); }
.tcgp-note { margin: 12px 0 0; font-size: 11.5px; color: var(--tcgh-muted); line-height: 1.4; }
.tcgp-hl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tcgp-hl li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--tcgh-surface-2); border-left: 3px solid var(--pvp-foe); }
.tcgp-hl li.w { border-left-color: #4ade80; }
.tcgp-hl .res { flex: none; width: 26px; font: 900 16px var(--skin-display, "Space Grotesk", Inter, sans-serif); color: var(--pvp-foe); } .tcgp-hl li.w .res { color: #4ade80; }
.tcgp-hl .tx { flex: 1; min-width: 0; } .tcgp-hl .tx b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .tcgp-hl .tx em { font-style: normal; font-size: 11.5px; color: var(--tcgh-muted); }
.tcgp-hl .ch { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; font-weight: 800; flex: none; }
.tcgp-hl .ch .up { color: #4ade80; } .tcgp-hl .ch .dn { color: var(--pvp-foe); } .tcgp-hl .ch .p { color: var(--pvp-gold); }
.tcgp-ic.off { opacity: .35; cursor: default; }
.tcgp-more { margin: 10px auto 0; display: flex !important; }
/* replay bar (inside the arena) */
.tcgb-arena.replay .tcgb-ctl { display: none; }
.tcgb-arena.replay { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }
.tcgp-rp { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1062; padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 10px); background: #0b1020; border-top: 1px solid rgba(255,255,255,.14); color: #fff; }
.tcgp-rp .top { display: flex; align-items: center; gap: 10px; font: 700 12px ui-monospace, Menlo, monospace; }
.tcgp-rp input[type=range] { flex: 1; min-width: 0; height: 28px; accent-color: var(--pvp-gold); }
.tcgp-rp .row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.tcgp-rp .tcgp-ic { width: 40px; height: 40px; background: #1a2238; border-color: rgba(255,255,255,.18); color: #fff; }
.tcgp-rp .tcgp-ic.pp { background: var(--pvp-gold); color: #1c1300; border: 0; }
.tcgp-rp .sp { display: flex; gap: 3px; margin-left: auto; overflow-x: auto; }
.tcgp-rp .sp button { flex: none; min-width: 36px; padding: 8px 4px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: #1a2238; color: #cbd5e1; font: 800 12px var(--skin-font, Inter, sans-serif); cursor: pointer; }
.tcgp-rp .sp button.on { background: var(--pvp-gold); color: #1c1300; border-color: var(--pvp-gold); }
@media (max-width: 520px) {
  .tcgp-rp .row { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .tcgp-rp .sp { flex: 1 1 100%; display: grid; grid-template-columns: repeat(7, 1fr); margin: 2px 0 0; overflow: visible; }
  .tcgp-rp .sp button { min-width: 0; padding: 7px 0; }
  .tcgb-arena.replay { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 138px); }
}
