/* ==========================================================
   MOC ARCANA — showcase layer (staging, depth, motion)
   Loaded last. Builds on the original violet/navy design + metal layer.
   ========================================================== */

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 120px 0 70px; margin-top: -72px; text-align: center; overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: -60px 0 0; z-index: -2; background: url("../img/welcome-wall.webp") center / 1100px auto; transform: perspective(900px) rotateX(48deg) scale(1.6); transform-origin: 50% 100%; opacity: .55; animation: wall-scroll 80s linear infinite; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 50% 70% at 50% 40%, rgba(111,76,177,.45), transparent 70%),
  linear-gradient(180deg, rgba(10,13,35,.75) 0%, rgba(10,13,35,.55) 40%, var(--bg) 100%); }
@keyframes wall-scroll { to { background-position: center 1400px; } }
.page-hero-title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 900; line-height: 1.02; margin: .4rem 0 1rem;
  background: var(--metal-silver); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: metal-shift 9s ease-in-out infinite; filter: drop-shadow(0 6px 30px rgba(0,0,0,.6)); }
.page-hero-title .gradient-text { background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero-sub { color: var(--color-lightgrey); font-size: 1.2rem; max-width: 720px; margin: 0 auto; font-weight: 400; }
.page-hero .eyebrow { margin-bottom: .3rem; }
.page-hero-line { width: 220px; height: 16px; margin: 1.4rem auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='16'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23d9b35a' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23f9e7a1'/%3E%3Cstop offset='1' stop-color='%23d9b35a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect y='7.5' width='220' height='1' fill='url(%23g)'/%3E%3Cpath d='M110 1l7 7-7 7-7-7z' fill='%23f9e7a1'/%3E%3Cpath d='M110 4.5l3.5 3.5-3.5 3.5-3.5-3.5z' fill='%230a0d23'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Cinematic home hero ---------- */
.cine-hero { position: relative; min-height: calc(100vh - 72px); display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 40px 0 80px; }
.cine-floor { position: absolute; inset: 0; z-index: -3; perspective: 1000px; overflow: hidden; }
.cine-wall { position: absolute; left: -30%; right: -30%; top: 30%; height: 160%; background: url("../img/welcome-wall.webp") center top / 1200px auto repeat; transform: rotateX(62deg); transform-origin: 50% 0; opacity: .5; animation: wall-scroll 70s linear infinite; }
.cine-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 45% 55% at 72% 46%, rgba(111,76,177,.55), transparent 70%),
  radial-gradient(ellipse 30% 35% at 72% 52%, rgba(217,179,90,.18), transparent 70%),
  linear-gradient(90deg, rgba(10,13,35,.96) 0%, rgba(10,13,35,.78) 40%, rgba(10,13,35,.25) 100%),
  linear-gradient(0deg, var(--bg) 2%, transparent 30%), linear-gradient(180deg, var(--bg) 0%, transparent 20%); }
.cine-rays { position: absolute; z-index: -1; right: 6%; top: 50%; width: 900px; height: 900px; transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(249,231,161,.07) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); mask: radial-gradient(circle, #000 10%, transparent 62%); animation: rays-spin 120s linear infinite; }
@keyframes rays-spin { to { transform: translateY(-50%) rotate(360deg); } }
.cine-title { font-size: clamp(3rem, 6.6vw, 5.6rem); font-weight: 900; line-height: .98; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.cine-title .l1 { display: block; background: var(--metal-silver); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: metal-shift 9s ease-in-out infinite; }
.cine-title .l2 { display: block; background: var(--metal-gold); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: metal-shift 7s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(217,179,90,.25)); }
.cine-lead { font-size: 1.3rem; line-height: 1.55; color: #e9e7da; max-width: 560px; margin-bottom: 2rem; font-weight: 300; }
.cine-lead strong { color: #fff; font-weight: 600; }
.cine-facts { display: flex; gap: 2.2rem; margin-top: 2.6rem; }
.cine-facts div { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #b3ae9c; }
.cine-facts b { display: block; font-size: 2rem; letter-spacing: 0; font-weight: 900; background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.cine-facts div + div { padding-left: 2.2rem; border-left: 1px solid rgba(217,179,90,.3); }

.cine-stage { position: relative; height: 600px; --px: 0; --py: 0; }
.cine-stage .layer { position: absolute; left: 50%; top: 50%; transition: transform .25s ease-out; }
.cine-stage .fan-card { width: 210px; margin: -146px 0 0 -105px; transform-origin: 50% 110%;
  transform: translate(calc(var(--px) * var(--d) * 1px), calc(var(--py) * var(--d) * 1px)) rotate(var(--r)) translate(var(--tx), var(--ty)); }
.cine-stage .fan-card .tcg-card { box-shadow: 0 30px 60px rgba(0,0,0,.7); }
.cine-stage:hover .fan-card { --spread: 1.25; }
.cine-stage .fan-card { animation: fan-open 1.4s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay); }
@keyframes fan-open { from { opacity: 0; transform: rotate(0deg) translate(0, 30px) scale(.9); } }
.cine-stage .booster { width: 300px; margin: -200px 0 0 -150px; z-index: 5; transform: translate(calc(var(--px) * -14px), calc(var(--py) * -14px)); }
.cine-stage .booster img { width: 100%; animation: pack-float 5s ease-in-out infinite; filter: drop-shadow(0 40px 50px rgba(0,0,0,.7)) drop-shadow(0 0 40px rgba(217,179,90,.3)); }
@keyframes pack-float { 50% { transform: translateY(-16px) rotate(1.5deg); } }
.cine-stage .floor-glow { width: 520px; height: 90px; margin: 170px 0 0 -260px; border-radius: 50%; background: radial-gradient(ellipse, rgba(217,179,90,.35), rgba(111,76,177,.25) 45%, transparent 70%); filter: blur(10px); }
.cine-scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: #cfcfb8; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; text-align: center; }
.cine-scroll i { display: block; font-size: 1.2rem; color: #d9b35a; animation: bounce 2s infinite; }
@keyframes bounce { 50% { transform: translateY(6px); } }

/* ---------- Tier stage (rarity) ---------- */
.tier-stage { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 2vw, 34px); align-items: end; max-width: 1050px; margin: 2rem auto 0; height: 470px; position: relative; padding-bottom: 50px; }
.tier-stage::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: 40px; height: 120px; background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(111,76,177,.3), transparent 70%); pointer-events: none; z-index: -1; }
.tier { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; position: relative; }
.tier-card { width: 74%; margin-bottom: 14px; animation: tier-bob 5s ease-in-out infinite; animation-delay: var(--delay, 0s); transition: transform .4s; }
.tier:hover .tier-card { transform: translateY(-14px) scale(1.06); }
@keyframes tier-bob { 50% { transform: translateY(-8px); } }
.tier-pillar { width: 100%; height: var(--h); border-radius: 12px 12px 4px 4px; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 40px -10px var(--glowc, transparent); transform-origin: bottom; animation: rise 1.4s cubic-bezier(.2,.8,.2,1) both; }
.tier-pillar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: inherit; opacity: .12; transform: scaleY(-1); -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); border-radius: 0 0 12px 12px; }
@keyframes rise { from { transform: scaleY(0); } }
.tier-pct { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-weight: 900; font-size: clamp(1rem, 2vw, 1.6rem); color: #1b1407; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.tier-name { position: absolute; bottom: -38px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.tier.common .tier-pillar { background: linear-gradient(180deg, #fff, #cfcfcf); --glowc: rgba(255,255,255,.5); }
.tier.rare .tier-pillar { background: linear-gradient(180deg, #eceff4, #9aa1ad); --glowc: rgba(196,200,208,.5); }
.tier.epic .tier-pillar { background: var(--tex-silver) center / 110px, #c8ced8; --glowc: rgba(223,228,236,.6); }
.tier.legendary .tier-pillar { background: var(--tex-gold) center / 110px, #c39a3a; --glowc: rgba(233,191,85,.8); }
.tier.mythic .tier-pillar { background: var(--metal-chrome); background-size: 300% 100%; animation: rise 1.4s cubic-bezier(.2,.8,.2,1) both, metal-shift 5s ease-in-out infinite; --glowc: rgba(255,215,106,.9); }
.tier.mythic .tier-pct { color: #1b1407; }
@media (max-width: 767px) { .tier-stage { height: 360px; gap: 8px; } .tier-name { font-size: .6rem; letter-spacing: .05em; } }

/* ---------- Coverflow ---------- */
.coverflow { position: relative; height: 520px; perspective: 1400px; margin-top: 1rem; user-select: none; }
.cf-item { position: absolute; left: 50%; top: 20px; width: 290px; margin-left: -145px; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s, filter .7s; cursor: pointer; transform-style: preserve-3d; }
.cf-item .tcg-card, .cf-item .tcg-card.mystery { box-shadow: 0 40px 70px rgba(0,0,0,.7); }
.cf-item.active { cursor: default; }
.cf-item.active::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(217,179,90,.35), transparent 70%); filter: blur(6px); }
.cf-nav { position: absolute; top: 46%; z-index: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: #f3dc8f; cursor: pointer;
  border: 1px solid transparent; background: linear-gradient(#0c0f29, #0c0f29) padding-box, var(--metal-gold) border-box; transition: transform .2s; }
.cf-nav:hover { transform: scale(1.08); }
.cf-prev { left: 4%; } .cf-next { right: 4%; }
.cf-caption { text-align: center; margin-top: -10px; min-height: 60px; }
.cf-caption .n { font-size: 1.5rem; font-weight: 900; background: var(--metal-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 767px) { .coverflow { height: 420px; } .cf-item { width: 220px; margin-left: -110px; } }

/* ---------- Factions band ---------- */
.factions { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.faction { text-align: center; padding: 1.6rem .6rem 1.3rem; border-radius: 16px; position: relative; transition: transform .35s, background .35s; cursor: default; }
.faction:hover { transform: translateY(-8px); background: radial-gradient(ellipse at 50% 0%, rgba(111,76,177,.35), transparent 70%); }
.medallion { width: 86px; height: 86px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #f3dc8f; position: relative;
  background: radial-gradient(circle at 50% 35%, #2a2368, #0c0f29 70%) padding-box, var(--metal-gold) border-box; border: 2px solid transparent; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 6px rgba(217,179,90,.06), inset 0 0 20px rgba(111,76,177,.5); }
.medallion::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(217,179,90,.35); animation: rays-spin-simple 30s linear infinite; }
@keyframes rays-spin-simple { to { transform: rotate(360deg); } }
.faction h3 { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; background: var(--metal-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.faction p { font-size: .85rem; color: #b3ae9c; margin: 0; line-height: 1.45; }
@media (max-width: 991px) { .factions { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px) { .factions { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Arena preview (home) ---------- */
.arena-mock { position: relative; perspective: 1400px; padding: 20px 0 40px; }
.arena-mock .mock-table { margin: 0; border-radius: 26px; padding: 28px; transform: rotateX(28deg) rotateZ(-3deg); transform-origin: 50% 70%; color: inherit;
  background: radial-gradient(ellipse at 50% 50%, #1b2160, #0a0d23 75%) padding-box, var(--metal-gold) border-box; border: 2px solid transparent; box-shadow: 0 60px 100px rgba(0,0,0,.7), inset 0 0 80px rgba(0,0,0,.5); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.arena-mock:hover .mock-table { transform: rotateX(18deg) rotateZ(-1deg); }
.arena-mock .row-cards { display: flex; justify-content: center; gap: 14px; margin: 14px 0; }
.arena-mock .row-cards > * { width: 18%; }
.arena-mock .mid { display: flex; align-items: center; gap: 12px; color: #f3dc8f; font-weight: 900; letter-spacing: .2em; font-size: .7rem; text-transform: uppercase; }
.arena-mock .mid::before, .arena-mock .mid::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,179,90,.6), transparent); }
.arena-mock .bar { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; }
.arena-mock .bar .hp { flex: 1; max-width: 160px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.arena-mock .bar .hp span { display: block; height: 100%; background: linear-gradient(90deg, #28a745, #7be495); }
.arena-mock .bar.enemy .hp span { width: 42%; background: linear-gradient(90deg, #ff4d6a, #ff9a7a); }
.arena-mock .clash { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); font-weight: 900; font-size: 2.6rem; background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 20px rgba(0,0,0,.8)); animation: tier-bob 3s ease-in-out infinite; }

/* ---------- Generic polish ---------- */
.section { padding: 120px 0; }
.lux-panel { border-radius: 20px; padding: 2rem; border: 1px solid transparent; background: linear-gradient(180deg, #0c0f2c, #070a20) padding-box, var(--hair-gold) border-box; box-shadow: 0 30px 70px rgba(0,0,0,.45); position: relative; overflow: hidden; }
.lux-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(111,76,177,.22), transparent 70%); }
.lux-panel > * { position: relative; }
.corner-frame { position: relative; }
.corner-frame::before, .corner-frame::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid #d9b35a; pointer-events: none; opacity: .8; }
.corner-frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.corner-frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.pedestal { position: relative; padding-bottom: 50px; }
.pedestal::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 46px; border-radius: 50%; background: radial-gradient(ellipse, rgba(217,179,90,.4), rgba(111,76,177,.25) 45%, transparent 70%); filter: blur(6px); }
.ring { --p: 50; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(#e9bf55 calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #0a0d23; }
.ring span { position: relative; font-weight: 900; font-size: 1.8rem; background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring small { position: absolute; bottom: 30px; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: #b3ae9c; }
.avatar-medal { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 2.8rem; color: #f3dc8f; border: 3px solid transparent; flex-shrink: 0;
  background: radial-gradient(circle at 50% 35%, #2a2368, #0c0f29 70%) padding-box, var(--metal-gold) border-box; box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 8px rgba(217,179,90,.07); }
.auth-split { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.auth-art { position: relative; height: 100%; min-height: 560px; display: grid; place-items: center; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: url("../img/welcome-wall.webp") center / 900px; opacity: .3; transform: perspective(800px) rotateY(18deg) scale(1.3); }
.auth-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(111,76,177,.45), transparent 70%), linear-gradient(90deg, transparent 60%, var(--bg)); }
.auth-art img { position: relative; z-index: 1; width: min(360px, 70%); animation: pack-float 5s ease-in-out infinite; filter: drop-shadow(0 40px 50px rgba(0,0,0,.7)) drop-shadow(0 0 40px rgba(217,179,90,.3)); }
@media (max-width: 991px) { .auth-split { grid-template-columns: 1fr; } .auth-art { min-height: 300px; } }

/* ==========================================================
   ARENA — playmat
   ========================================================== */
.arena { background: radial-gradient(ellipse 70% 60% at 45% 50%, #1d2366 0%, #0d1033 55%, #05071a 100%) !important; }
.arena-main { margin: 12px 0 0 12px; border-radius: 26px; position: relative; isolation: isolate;
  border: 2px solid transparent; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(111,76,177,.28), transparent 70%), linear-gradient(#0b0e2c, #070920) padding-box, var(--metal-gold) border-box;
  box-shadow: inset 0 0 120px rgba(0,0,0,.6), 0 30px 80px rgba(0,0,0,.6); }
.arena-main::before { content: ""; position: absolute; inset: 10px; border-radius: 18px; border: 1px solid rgba(217,179,90,.25); pointer-events: none; z-index: -1; }
.arena-main::after { content: ""; position: absolute; left: 50%; top: 50%; width: 360px; height: 150px; transform: translate(-50%, -50%); z-index: -1; opacity: .06;
  background: url("../img/logo.webp") center / contain no-repeat; pointer-events: none; filter: grayscale(1) brightness(2); }
.field { position: relative; }
.slot { border: 1px solid rgba(217,179,90,.16) !important; border-style: solid !important; background: radial-gradient(ellipse at 50% 40%, rgba(111,76,177,.14), transparent 70%); }
.slot::before, .slot::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid rgba(217,179,90,.6); pointer-events: none; }
.slot::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.slot::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.pbar { border-radius: 999px !important; padding: 8px 22px 8px 8px !important; }
.pbar .avatar { width: 54px; height: 54px; font-size: 1.4rem; color: #f3dc8f; border: 2px solid transparent;
  background: radial-gradient(circle at 50% 35%, #2a2368, #0c0f29 70%) padding-box, var(--metal-gold) border-box; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.pbar .pname { font-family: "Roboto", sans-serif; font-weight: 900; font-size: 1.15rem; background: var(--metal-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-bar { height: 8px !important; width: 200px !important; border: 1px solid rgba(217,179,90,.35); background: rgba(0,0,0,.4) !important; }
.cp-fill { background: linear-gradient(90deg, #1f9e4a, #6be38f) !important; box-shadow: 0 0 10px rgba(107,227,143,.5); }
.cp-fill.mid { background: linear-gradient(90deg, #c99a3b, #f3dc8f) !important; } .cp-fill.low { background: linear-gradient(90deg, #c4304a, #e0707a) !important; }
.cp-val b { font-size: 1.15rem !important; background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.center-bar { border: 0 !important; position: relative; }
.center-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,179,90,.5), transparent); z-index: -1; }
.turn-txt { font-family: "Roboto", sans-serif !important; font-weight: 900 !important; background: var(--metal-silver); -webkit-background-clip: text; background-clip: text; color: transparent !important; padding: 0 .4rem; }
.hint { background: rgba(7,9,32,.85); padding: .35rem 1rem; border-radius: 999px; border: 1px solid rgba(217,179,90,.2); }
.phase-btn { min-width: 0 !important; width: 118px; height: 118px; border-radius: 50% !important; padding: 0 !important; display: grid; place-items: center; text-align: center; line-height: 1.1; font-weight: 900 !important; font-size: .95rem !important; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 0 0 5px rgba(7,9,32,.9), 0 0 0 6px rgba(217,179,90,.5), 0 14px 40px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.6) !important; margin: -30px 0; }
.phase-btn.nudge { animation: btn-pulse 1.6s ease-in-out infinite; }
@keyframes btn-pulse { 50% { box-shadow: 0 0 0 5px rgba(7,9,32,.9), 0 0 0 9px rgba(217,179,90,.35), 0 0 50px rgba(217,179,90,.6), inset 0 2px 0 rgba(255,255,255,.6); } }
.phase-btn:disabled { filter: grayscale(.8) brightness(.6); }
.tok img, .hcard img { border-radius: 9px; }
.tok .st span { background: rgba(7,9,32,.92) !important; border-color: rgba(217,179,90,.3) !important; font-size: .82rem; }
.tok.ready { box-shadow: 0 0 0 2px #6be38f, 0 0 22px rgba(107,227,143,.45) !important; }
.hcard.playable .hc-in { box-shadow: 0 0 0 2px #6be38f, 0 0 18px rgba(107,227,143,.4) !important; }
.hand-me { margin: 0 0 0 12px; }
.arena-side { background: linear-gradient(180deg, #0b0e2c, #060818) !important; border-left: 1px solid rgba(217,179,90,.25) !important; }
.detail-card img { border: 1px solid rgba(217,179,90,.35); }
.d-name { font-family: "Roboto", sans-serif !important; font-weight: 900 !important; background: var(--metal-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail-empty { border-color: rgba(217,179,90,.25) !important; }
.log-title { background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent !important; border-top-color: rgba(217,179,90,.25) !important; }
.float-num { font-family: "Roboto", sans-serif !important; font-weight: 900 !important; }
.cast div, .turn-pill, .go-title, .reveal-title { font-family: "Roboto", sans-serif !important; font-weight: 900 !important; }
.turn-pill { font-size: 2.6rem !important; padding: .5rem 3rem !important; }

/* ---------- Roadmap alignment fix (neutralises the old .timeline rules) ---------- */
.main-timeline .timeline { margin: 0 !important; max-width: none !important; width: 50%; }
.main-timeline .timeline::before { content: none !important; }
.main-timeline .timeline.left { left: 0; padding: 0 44px 28px 0; }
.main-timeline .timeline.right { left: 50%; padding: 0 0 28px 44px; }
.main-timeline .timeline.left::after { right: -11px; left: auto; }
.main-timeline .timeline.right::after { left: -11px; right: auto; }
.main-timeline .timeline.left .card { text-align: left; }
@media (max-width: 767px) {
  .main-timeline::after { left: 11px !important; }
  .main-timeline .timeline, .main-timeline .timeline.left, .main-timeline .timeline.right { width: 100%; left: 0; padding: 0 0 22px 40px; }
  .main-timeline .timeline.left::after, .main-timeline .timeline.right::after { left: 0; right: auto; }
}
@media (max-width: 767px) { .arena-mock .mock-table { padding: 14px; transform: rotateX(18deg); } .arena-mock .row-cards { gap: 6px; } .arena-mock .row-cards > * { width: 30%; } .arena-mock .clash { font-size: 1.8rem; } }

/* ---------- Rarity showcase (replaces the pillars) ---------- */
.tier-stage { display: none; }
.rarity-showcase { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2.6vw, 40px); max-width: 1080px; margin: 3rem auto 0; align-items: end; }
.rs-item { text-align: center; position: relative; --c: #f0f0f0; --glow: rgba(255,255,255,.18);
  transform: translateY(calc((4 - var(--i)) * 14px)); }
.rs-card { position: relative; margin: 0 auto 1.6rem; width: 100%; max-width: 180px; transition: transform .45s cubic-bezier(.2,.8,.2,1); animation: rs-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.rs-card::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, var(--glow), transparent 70%); filter: blur(4px); }
.rs-card .tcg-card { box-shadow: 0 24px 50px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 calc(10px + var(--i) * 10px) var(--glow) !important; }
.rs-item:hover .rs-card { transform: translateY(-14px) scale(1.04); animation-play-state: paused; }
@keyframes rs-float { 50% { transform: translateY(-7px); } }
.rs-pct { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 900; line-height: 1; letter-spacing: -.02em;
  background: var(--metal-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rs-pct small { font-size: .55em; margin-left: 2px; }
.rs-name { margin-top: .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--c); }
.rs-track { width: 70%; max-width: 120px; height: 3px; margin: .8rem auto 0; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.rs-track span { display: block; height: 100%; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--glow); transform-origin: left; animation: rs-grow 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rs-grow { from { transform: scaleX(0); } }
.rs-common { --c: #e9e9e9; --glow: rgba(255,255,255,.14); }
.rs-rare { --c: #c4c8d0; --glow: rgba(196,200,208,.22); }
.rs-epic { --c: #dfe4ec; --glow: rgba(223,228,236,.3); }
.rs-legendary { --c: #e9bf55; --glow: rgba(233,191,85,.45); }
.rs-legendary .rs-pct { background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; }
.rs-mythic { --c: #ffd76a; --glow: rgba(190,160,255,.5); }
.rs-mythic .rs-pct { background: var(--metal-chrome); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: metal-shift 5s ease-in-out infinite; }
.rs-mythic .rs-track span { background: var(--metal-chrome); }
@media (max-width: 767px) { .rarity-showcase { grid-template-columns: repeat(5, 1fr); gap: 8px; } .rs-item { transform: none; } .rs-name { font-size: .5rem; letter-spacing: .08em; } .rs-pct { font-size: 1.1rem; } .rs-card .mystery-rarity { display: none; } }
.rs-card .mystery-rarity { display: none; }

/* ---------- Booster: clean artwork, gold rim, violet aura, holographic sheen ---------- */
.pack { aspect-ratio: 326 / 447 !important; width: 330px !important; filter: none !important; animation: pack-idle 6s ease-in-out infinite; }
@keyframes pack-idle { 50% { transform: translateY(-12px) rotate(-1deg); } }
.pack-full { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1;
  filter: drop-shadow(0 0 1px rgba(249,231,161,.95)) drop-shadow(0 0 14px rgba(217,179,90,.35)) drop-shadow(0 0 46px rgba(111,76,177,.6)) drop-shadow(0 40px 40px rgba(0,0,0,.65)); }
.pack-top, .pack-body { opacity: 0; }
.pack-top { background-size: 100% 769.2% !important; }
.pack-body { top: 11% !important; background-size: 100% 112.36% !important; background-position: 0 100% !important; }
.pack.charging .pack-top, .pack.charging .pack-body, .pack.torn .pack-top, .pack.torn .pack-body { opacity: 1; filter: drop-shadow(0 0 14px rgba(217,179,90,.5)); }
.pack.charging .pack-full, .pack.torn .pack-full, .pack.torn .pack-sheen, .pack.charging .pack-sheen { opacity: 0; }
.pack-sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url("../img/booster-arcana.webp") center / 100% 100% no-repeat; mask: url("../img/booster-arcana.webp") center / 100% 100% no-repeat;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 46%, rgba(249,231,161,.3) 50%, rgba(155,123,224,.3) 54%, transparent 62%); background-size: 300% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -40% 0; } }
.pack-foil { display: none; }
.pack-glow { width: min(460px, 100vw) !important; height: min(460px, 100vw) !important; background: radial-gradient(circle, rgba(217,179,90,.18), rgba(111,76,177,.32) 40%, transparent 68%) !important; filter: blur(10px); }
.pack-stage::after { content: ""; position: absolute; left: 50%; bottom: 30px; width: 300px; height: 50px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(217,179,90,.35), rgba(111,76,177,.25) 45%, transparent 70%); filter: blur(6px); }
/* same treatment everywhere the booster appears */
.cine-stage .booster img, .auth-art img, .welcome-pack {
  filter: drop-shadow(0 0 1px rgba(249,231,161,.95)) drop-shadow(0 0 14px rgba(217,179,90,.35)) drop-shadow(0 0 46px rgba(111,76,177,.6)) drop-shadow(0 40px 40px rgba(0,0,0,.65)) !important; }

/* ---------- Hero: cards only ---------- */
.cine-stage .fan-card { width: 230px; margin: -160px 0 0 -115px;
  transform: translate(calc(var(--px) * var(--d) * 1px), calc(var(--py) * var(--d) * 1px)) rotate(var(--r)) translate(var(--tx), var(--ty)) scale(var(--s, 1)); }
.cine-stage .fan-card:last-of-type .tcg-card { box-shadow: 0 40px 80px rgba(0,0,0,.75), 0 0 50px rgba(217,179,90,.35) !important; }
.cine-stage .floor-glow { margin-top: 210px; }

/* ---------- Rarity ladder: five gems, no cards ---------- */
.rarity-showcase { display: none; }
.rarity-ladder { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1080px; margin: 3.5rem auto 0; align-items: start; }
.rarity-ladder::before { content: ""; position: absolute; left: 10%; right: 10%; top: 70px; height: 2px;
  background: linear-gradient(90deg, rgba(240,240,240,.35), rgba(196,200,208,.5) 25%, rgba(223,228,236,.6) 50%, #e9bf55 75%, #ffd76a); box-shadow: 0 0 12px rgba(217,179,90,.35); }
.rl-step { text-align: center; position: relative; --g: calc(64px + var(--i) * 10px); }
.rl-gem { width: var(--g); height: var(--g); margin: calc(70px - var(--g) / 2) auto 0; transform: rotate(45deg); border-radius: 14px; position: relative; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.75); box-shadow: 0 14px 30px rgba(0,0,0,.55), 0 0 calc(8px + var(--i) * 12px) var(--glow, transparent), inset 0 0 18px rgba(0,0,0,.35);
  transition: transform .45s cubic-bezier(.2,.8,.2,1); animation: gem-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.rl-gem::before { content: ""; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 38%, transparent 62%, rgba(255,255,255,.2)); pointer-events: none; }
.rl-gem::after { content: ""; position: absolute; inset: -9px; border-radius: 18px; border: 1px solid rgba(217,179,90,.22); }
.rl-gem span { transform: rotate(-45deg); font-size: calc(.55rem + var(--i) * .06rem); letter-spacing: -.05em; color: #1b1407; text-shadow: 0 1px 0 rgba(255,255,255,.5); position: relative; z-index: 1; max-width: 70%; line-height: 1; }
@keyframes gem-float { 50% { translate: 0 -6px; } }
.rl-step:hover .rl-gem { transform: rotate(45deg) scale(1.12); }
.rl-name { margin-top: 2.2rem; font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--c); }
.rl-pct { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; margin-top: .2rem; background: var(--metal-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rl-pct small { font-size: .5em; margin-left: 2px; }
.rl-odds { color: #cfcfb8; font-size: .92rem; margin-top: .3rem; }
.rl-pack { display: inline-block; margin-top: .6rem; padding: .2rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.rl-common { --c: #ececec; --glow: rgba(255,255,255,.2); } .rl-common .rl-gem { background: linear-gradient(145deg, #ffffff, #cfd2d8); }
.rl-rare { --c: #c9ced8; --glow: rgba(196,200,208,.3); } .rl-rare .rl-gem { background: linear-gradient(145deg, #f2f4f8, #8f96a3 60%, #d9dde5); }
.rl-epic { --c: #e3e8f0; --glow: rgba(223,228,236,.4); } .rl-epic .rl-gem { background: var(--tex-silver) center / 70px, #c8ced8; }
.rl-legendary { --c: #e9bf55; --glow: rgba(233,191,85,.55); } .rl-legendary .rl-gem { background: var(--tex-gold) center / 70px, #c39a3a; border-color: #f9e7a1; }
.rl-legendary .rl-pct { background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; }
.rl-mythic { --c: #ffd76a; --glow: rgba(190,160,255,.6); } .rl-mythic .rl-gem { background: var(--metal-chrome); background-size: 300% 300%; border-color: #fff4c2; animation: gem-float 6s ease-in-out infinite, metal-shift 5s ease-in-out infinite; }
.rl-mythic .rl-pct { background: var(--metal-chrome); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: metal-shift 5s ease-in-out infinite; }
@media (max-width: 767px) {
  .rarity-ladder { grid-template-columns: repeat(5, 1fr); }
  .rl-step { --g: calc(34px + var(--i) * 6px); }
  .rarity-ladder::before { top: 40px; }
  .rl-gem { margin-top: calc(40px - var(--g) / 2); border-radius: 8px; }
  .rl-gem span { display: none; }
  .rl-name { font-size: .5rem; letter-spacing: .08em; margin-top: 1.4rem; }
  .rl-pct { font-size: 1.15rem; } .rl-odds { font-size: .62rem; } .rl-pack { font-size: .55rem; padding: .1rem .35rem; }
}
.cine-title { font-size: clamp(2.6rem, 5.2vw, 5rem); }
.cine-title .l1, .cine-title .l2 { display: inline; }
.cine-title .nw { white-space: nowrap; display: inline-block; }
.rl-gem span { font-size: calc(.8rem + var(--i) * .08rem) !important; }
.preview-area, #preview { overflow: hidden; } html, body { overflow-x: clip; }

/* ==========================================================
   FINAL PALETTE — four families only: navy, violet/lavender, gold, silver
   ========================================================== */
:root {
  --metal-chrome: linear-gradient(115deg, #e2d4ff 0%, #f9e7a1 22%, #9b7be0 45%, #fff4c2 65%, #b9a2f0 82%, #f3dc8f 100%);
  --c-mythic: #f3dc8f;
  --c-green: #7fd8a0;
  --c-red: #e0707a;
  --muted: #cfcfb8;
  --color-lightgrey: #cfcfb8;
}
.text-lightgrey, .section-sub, .page-hero-sub, .footer-pera, .rl-odds { color: #cfcfb8 !important; }
.counter-box p, .stat-box .lbl, .copyright, .project-by, .cine-facts div { color: #a9a594 !important; }
.rl-mythic { --glow: rgba(190,160,255,.55); }
.rarity-mythic { --glow: rgba(190,160,255,.45); }
.tcg-card.mystery.rarity-mythic { box-shadow: 0 8px 24px rgba(2,4,20,.5), 0 0 0 2px #e2d4ff, 0 0 30px rgba(190,160,255,.4) !important; }
.badge-sim { border-color: rgba(217,179,90,.4) !important; color: #f3dc8f !important; }
.cp-fill { background: linear-gradient(90deg, #4fae78, #8fdcaa) !important; box-shadow: 0 0 10px rgba(127,216,160,.35) !important; }
.tok.ready, .hcard.playable .hc-in { box-shadow: 0 0 0 2px #8fdcaa, 0 0 18px rgba(127,216,160,.35) !important; }
.tok .st .a { color: #f3c98b !important; } .tok .st .d { color: #cfc6f5 !important; }
a { color: #e9cf8a; } a:hover { color: #fff4c2; }

/* ---------- Hero hand of cards (final) ---------- */
.cine-stage { height: 620px; --spread: 1; }
.cine-stage .fan-card { width: 220px; left: 50%; top: 44%; margin: -153px 0 0 -110px; transform-origin: 50% 240%;
  transform: translate(calc(var(--px) * 18px), calc(var(--py) * 12px)) rotate(calc(var(--a) * var(--spread))) translateY(var(--lift, 0px)) scale(var(--sc, 1));
  transition: transform .7s cubic-bezier(.2,.8,.2,1), z-index 0s; animation: hand-deal 1.1s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: var(--delay); }
.cine-stage .fan-card.is-center { --sc: 1.1; --lift: -14px; }
@keyframes hand-deal { from { opacity: 0; transform: translateY(160px) rotate(0deg) scale(.85); } }
.cine-stage:hover { --spread: 1.22; }
.cine-stage .fan-card:hover { --lift: -46px; z-index: 10 !important; }
.cine-stage .fan-card.is-center:hover { --lift: -56px; }
.fan-inner { animation: hand-sway 7s ease-in-out infinite; animation-delay: calc(var(--delay) * -6); }
@keyframes hand-sway { 50% { transform: translateY(-6px) rotate(.8deg); } }
.cine-stage .fan-card .tcg-card { box-shadow: 0 26px 50px rgba(0,0,0,.65) !important; }
.cine-stage .fan-card.is-center .tcg-card { box-shadow: 0 40px 80px rgba(0,0,0,.75), 0 0 46px rgba(217,179,90,.38) !important; }
.cine-stage .floor-glow { width: 560px; height: 100px; margin: 230px 0 0 -280px; }
/* depth: the further from the centre, the smaller and darker */
.cine-stage .fan-card { --sc: .9; }
.cine-stage .fan-card[style*="z-index:2"] { --sc: .97; }
.cine-stage .fan-card.is-center { --sc: 1.1; }
.cine-stage .fan-card[style*="z-index:1"] .fan-inner { filter: brightness(.72) saturate(.9); }
.cine-stage .fan-card[style*="z-index:2"] .fan-inner { filter: brightness(.9); }
.cine-stage .fan-card:hover .fan-inner { filter: none; }
.cine-stage:hover { --spread: 1.15; }
.cine-stage .mystery-mark, .cine-stage .mystery-rarity { display: none !important; } .cine-stage .tcg-card.mystery img { filter: none; }

/* ---------- Coverflow v2 ---------- */
.coverflow { height: 560px; perspective: 1600px; max-width: 1100px; margin: 1rem auto 0; }
.cf-item { width: 300px; margin-left: -150px; top: 30px; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s, filter .8s; }
.cf-item .mystery-rarity { display: none; }
.cf-item .tcg-card { box-shadow: 0 30px 60px rgba(0,0,0,.65) !important; }
.cf-item.active .tcg-card { box-shadow: 0 40px 90px rgba(0,0,0,.75), 0 0 0 1px rgba(249,231,161,.35), 0 0 60px rgba(217,179,90,.3) !important; -webkit-box-reflect: below 14px linear-gradient(transparent 72%, rgba(255,255,255,.14)); }
.cf-item.active::after { bottom: -90px; height: 60px; background: radial-gradient(ellipse, rgba(217,179,90,.3), rgba(111,76,177,.2) 45%, transparent 70%); }
.cf-nav { top: 42%; width: 48px; height: 48px; font-size: 1.1rem; }
.cf-prev { left: calc(50% - 300px); } .cf-next { right: calc(50% - 300px); }
.cf-nav { opacity: .85; } .cf-nav:hover { opacity: 1; }
.cf-dots { display: flex; justify-content: center; gap: 8px; margin: 1.6rem 0 .4rem; }
.cf-dots button { width: 7px; height: 7px; padding: 0; border-radius: 999px; border: 0; background: rgba(207,207,184,.25); transition: width .35s, background .35s; }
.cf-dots button.on { width: 26px; background: var(--metal-gold); }
.cf-caption { margin-top: .4rem; }
.cf-caption .n { font-size: 1.7rem; font-weight: 900; }
.cf-caption .m { color: #cfcfb8; font-size: .95rem; margin-top: .2rem; }
@media (max-width: 767px) {
  .coverflow { height: 430px; } .cf-item { width: 210px; margin-left: -105px; }
  .cf-prev { left: 4px; } .cf-next { right: 4px; }
}
.cf-nav { z-index: 300 !important; } .cf-prev { left: calc(50% - 470px) !important; } .cf-next { right: calc(50% - 470px) !important; } @media (max-width: 991px) { .cf-prev { left: 6px !important; } .cf-next { right: 6px !important; } }

/* ==========================================================
   SHOP — booster showcase & product panel
   ========================================================== */
.shop-stage { margin-top: -10px; }
.shop-stage .pack-stage { height: 640px; perspective: 1200px; isolation: isolate; }
.stage-rays { position: absolute; left: 50%; top: 46%; width: 760px; height: 760px; transform: translate(-50%,-50%); z-index: -2; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(249,231,161,.09) 0 4deg, transparent 4deg 13deg, rgba(155,123,224,.08) 13deg 16deg, transparent 16deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 12%, transparent 66%); mask: radial-gradient(circle, #000 12%, transparent 66%); animation: rays-spin 90s linear infinite; }
.stage-beam { position: absolute; left: 50%; top: -60px; width: 520px; height: 700px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 30% 55% at 50% 0%, rgba(249,231,161,.16), transparent 70%), conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(249,231,161,.07) 12deg, rgba(249,231,161,.07) 28deg, transparent 40deg); }
.pack-tilt { position: relative; z-index: 2; transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; }
.shop-stage .pack { width: 320px !important; cursor: pointer; }
.pedestal-disc { position: absolute; left: 50%; bottom: 70px; width: 340px; height: 70px; transform: translateX(-50%); z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(217,179,90,.35), rgba(111,76,177,.28) 45%, transparent 70%); filter: blur(4px); }
.pedestal-disc::after { content: ""; position: absolute; inset: 14px 30px; border-radius: 50%; border: 1px solid rgba(249,231,161,.45); box-shadow: 0 0 18px rgba(217,179,90,.35), inset 0 0 18px rgba(217,179,90,.2); }
.stage-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #a9a594; }
.shop-stage .pack-glow { top: 50%; left: 50%; transform: translate(-50%,-55%); }
.shop-stage .pack-stage::after { display: none; }

.product { padding: 2.2rem 2.4rem !important; }
.product-title { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 900; line-height: 1; margin: .2rem 0 0; background: var(--metal-silver); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: metal-shift 9s ease-in-out infinite; }
.product-tag { flex-shrink: 0; padding: .35rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #1d1405; background: var(--metal-gold); }
.product-desc { color: #cfcfb8; margin: 1rem 0 1.4rem; font-size: 1.02rem; }
.product-odds { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.product-odds li { display: grid; grid-template-columns: 18px 92px 1fr 64px; align-items: center; gap: 10px; font-size: .9rem; }
.po-gem { width: 12px; height: 12px; transform: rotate(45deg); border-radius: 3px; border: 1px solid rgba(255,255,255,.7); }
.po-name { font-weight: 600; letter-spacing: .04em; }
.po-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.po-bar span { display: block; height: 100%; border-radius: 4px; transform-origin: left; animation: rs-grow 1.4s cubic-bezier(.2,.8,.2,1) both; }
.po-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.po-common .po-gem, .po-common .po-bar span { background: linear-gradient(145deg, #fff, #cfd2d8); } .po-common .po-name, .po-common .po-val { color: #ececec; }
.po-rare .po-gem, .po-rare .po-bar span { background: linear-gradient(145deg, #f2f4f8, #8f96a3); } .po-rare .po-name, .po-rare .po-val { color: #c9ced8; }
.po-epic .po-gem, .po-epic .po-bar span { background: var(--tex-silver) center / 40px, #c8ced8; } .po-epic .po-name, .po-epic .po-val { color: #e3e8f0; }
.po-legendary .po-gem, .po-legendary .po-bar span { background: var(--tex-gold) center / 40px, #c39a3a; } .po-legendary .po-name, .po-legendary .po-val { color: #e9bf55; }
.po-mythic .po-gem, .po-mythic .po-bar span { background: var(--metal-chrome); background-size: 300% 100%; animation: metal-shift 5s ease-in-out infinite; } .po-mythic .po-name, .po-mythic .po-val { color: #f3dc8f; }
.po-mythic .po-bar span { animation: rs-grow 1.4s cubic-bezier(.2,.8,.2,1) both, metal-shift 5s ease-in-out infinite; }
.product-odds-note { font-size: .74rem; color: #a9a594; margin-top: .6rem; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(217,179,90,.18); }
.price { line-height: 1; }
.price .amt { font-size: 3rem; font-weight: 900; background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .cur { font-size: 1.1rem; font-weight: 700; color: #f3dc8f; margin-left: .3rem; }
.price small { display: block; font-size: .75rem; color: #a9a594; margin-top: .35rem; }
.buy-btn { flex: 1; max-width: 300px; padding: 1.05rem 1.6rem !important; font-size: 1.15rem !important; }
.wallet-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; padding: .9rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(217,179,90,.14); }
.wallet-row .wallet-ico { width: 38px; height: 38px; font-size: 1rem; }
.wallet-row .cro-balance { font-size: 1.5rem; }
.faucet-link { background: none; border: 0; padding: 0; margin-top: .25rem; font-size: .78rem; color: #e9cf8a; }
.faucet-link:hover { color: #fff4c2; } .faucet-link:disabled { color: #8e8a7a; }
.product-note { font-size: .78rem; color: #a9a594; margin-top: .9rem; }
.free-panel { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 1.8rem !important; }
.free-stack { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.free-stack img { position: absolute; left: 22px; top: 6px; width: 74px; transform: translateX(calc(var(--k) * 7px)) rotate(calc(var(--k) * 5deg - 8deg)); filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.free-stack img.empty { filter: grayscale(1) brightness(.4); }
.free-count { font-size: 2.6rem; font-weight: 900; line-height: 1; background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 991px) { .shop-stage .pack-stage { height: 480px; } .shop-stage .pack { width: 250px !important; } .stage-rays { width: 520px; height: 520px; } }
@media (max-width: 575px) { .price-row { flex-direction: column; align-items: stretch; } .buy-btn { max-width: none; } .product-odds li { grid-template-columns: 16px 80px 1fr 54px; } .free-panel { flex-direction: column; text-align: center; } }

/* ---------- Hero: one showcased card ---------- */
.cine-stage.solo .fan-card { width: 300px; margin: -210px 0 0 -150px; top: 48%; transform-origin: 50% 50%;
  transform: perspective(1200px) rotateY(calc(var(--px) * 30deg)) rotateX(calc(var(--py) * -20deg)); transition: transform .3s ease-out; animation: solo-in 1.2s cubic-bezier(.2,.8,.2,1) backwards; }
.cine-stage.solo .fan-card.is-center { --sc: 1; --lift: 0px; }
@keyframes solo-in { from { opacity: 0; transform: perspective(1200px) rotateY(-90deg) scale(.8); } }
.cine-stage.solo .fan-inner { animation: solo-float 7s ease-in-out infinite; }
@keyframes solo-float { 0%, 100% { transform: translateY(0) rotateZ(-1.5deg); } 50% { transform: translateY(-16px) rotateZ(1.5deg); } }
.cine-stage.solo .fan-card .tcg-card { box-shadow: 0 50px 90px rgba(0,0,0,.75), 0 0 0 1px rgba(249,231,161,.4), 0 0 70px rgba(217,179,90,.4) !important; }
.cine-stage.solo .fan-card .tcg-shine { opacity: .55; background: linear-gradient(115deg, transparent 30%, rgba(255,240,190,.35) 45%, rgba(155,123,224,.25) 55%, transparent 70%); background-size: 260% 100%; animation: sheen 6s ease-in-out infinite; mix-blend-mode: color-dodge; }
.cine-stage.solo::before { content: ""; position: absolute; left: 50%; top: 48%; width: 520px; height: 520px; transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(217,179,90,.22), rgba(111,76,177,.3) 40%, transparent 68%); filter: blur(12px); animation: halo-breath 6s ease-in-out infinite; }
@keyframes halo-breath { 50% { opacity: .65; transform: translate(-50%,-50%) scale(1.08); } }
.cine-stage.solo .floor-glow { margin-top: 240px; width: 380px; margin-left: -190px; }
.tcg-card.mystery .mystery-mark { display: none !important; } .tcg-card.mystery img { filter: none !important; }
.cine-stage.solo .hero-back { box-shadow: 0 50px 90px rgba(0,0,0,.75), 0 0 0 1px rgba(226,212,255,.45), 0 0 70px rgba(155,123,224,.45) !important; }

/* ---------- Home counters: gold cards ---------- */
#counters .counter-box {
  border: 0 !important; border-radius: 16px; padding: 26px 16px !important;
  background: linear-gradient(rgba(255,244,194,.22), rgba(255,244,194,0) 45%), var(--metal-gold) !important; background-size: 100% 100%, 220% 100% !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 30px rgba(217,179,90,.18), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(90,60,10,.35) !important;
  animation: gold-drift 10s ease-in-out infinite; }
#counters .counter-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--tex-gold) center / 160px; opacity: .22; mix-blend-mode: overlay; }
#counters .counter-box::after { content: ""; position: absolute; inset: 5px; border-radius: 12px; border: 1px solid rgba(90,60,10,.28); background: none !important; }
#counters .counter-box .counter { background: none !important; color: #0a0d23 !important; -webkit-text-fill-color: #0a0d23; text-shadow: 0 1px 0 rgba(255,255,255,.45); animation: none; position: relative; z-index: 1; }
#counters .counter-box p { color: #3b2a0a !important; position: relative; z-index: 1; }
#counters .counter-box:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(0,0,0,.5), 0 0 40px rgba(217,179,90,.35), inset 0 1px 0 rgba(255,255,255,.7) !important; }
@keyframes gold-drift { 50% { background-position: 0 0, 100% 0; } }
.cine-stage.solo .hero-back { box-shadow: 0 50px 90px rgba(0,0,0,.75), 0 0 0 1px rgba(249,231,161,.5), 0 0 70px rgba(217,179,90,.4) !important; }
.cine-stage.solo .hero-back { box-shadow: 0 50px 90px rgba(0,0,0,.75), 0 0 0 1px rgba(214,200,255,.5), 0 0 70px rgba(124,92,190,.5) !important; }
.tcg-card.mystery .mystery-rarity { display: none !important; }

/* ---------- Opponent emblems ---------- */
.opp-medal { width: 104px; height: 104px; margin: 0 auto 1rem; }
.opp-medal .emblem { width: 58px; height: 58px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)) drop-shadow(0 0 10px rgba(217,179,90,.35)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.opponent-card:hover .opp-medal .emblem, .opponent-card:has(input:checked) .opp-medal .emblem { transform: scale(1.1); }
.opponent-card:has(input:checked) .opp-medal { box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 6px rgba(217,179,90,.12), 0 0 40px rgba(217,179,90,.35), inset 0 0 20px rgba(111,76,177,.5); }
.opp-pips { display: flex; justify-content: center; gap: 6px; margin: -.2rem 0 .8rem; }
.opp-pips span { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; border: 1px solid rgba(217,179,90,.55); }
.opp-pips span.on { background: var(--metal-gold); border-color: #f9e7a1; box-shadow: 0 0 8px rgba(217,179,90,.5); }
.opponent-card .opp-level { color: #e9cf8a; }
.pbar .avatar .emblem { width: 34px; height: 34px; }
.cf-item.active .tcg-card { -webkit-box-reflect: unset !important; } .cf-dots { display: none !important; }

/* ==========================================================
   ARENA v3 — compact plates, framed battlefields, fanned hand
   ========================================================== */
.arena { --cw: clamp(104px, min(9.4vw, 15.5vh), 150px); }
.arena-main { grid-template-rows: 1fr auto 1fr auto !important; padding: 18px 26px 0 !important; gap: 6px !important; }
.arena-main::after { display: none !important; } /* no logo watermark */
/* player plates: compact, on the left */
.pbar { position: absolute !important; left: 26px; width: 300px; z-index: 20; flex-direction: column; align-items: stretch !important; gap: 8px !important; padding: 12px 16px !important; border-radius: 18px !important; }
.pbar-opp { top: 22px; }
.pbar-me { bottom: calc(var(--cw) * 1.39 * .78 + 26px); }
.pbar .pbar-id { min-width: 0 !important; }
.pbar .cp-bar { width: 150px !important; }
.pbar .piles { justify-content: space-between; padding-top: 8px; border-top: 1px solid rgba(217,179,90,.15); }
.pbar .hand-opp { position: absolute; right: 14px; top: 14px; height: auto; }
.pbar.targetable { box-shadow: 0 0 0 2px #e0707a, 0 0 30px rgba(224,112,122,.5) !important; }
/* battlefields: framed mats */
.field { justify-self: center; align-self: center; padding: 16px 22px 40px; border-radius: 24px; position: relative;
  background: radial-gradient(ellipse at 50% 30%, rgba(111,76,177,.22), rgba(7,9,32,.55) 75%); border: 1px solid rgba(217,179,90,.2);
  box-shadow: inset 0 0 50px rgba(0,0,0,.45), 0 20px 40px rgba(0,0,0,.25); }
#field1 { align-self: end; } #field0 { align-self: start; }
.field::before { content: ""; position: absolute; left: 50%; top: -1px; width: 120px; height: 2px; transform: translateX(-50%); background: var(--metal-gold); border-radius: 2px; }
#field0::before { top: auto; bottom: -1px; }
.slot { margin-bottom: 0 !important; }
.tok .st { top: calc(100% + 8px) !important; }
/* centre line */
.center-bar { grid-template-columns: 1fr auto 1fr; padding: 2px 0 !important; min-height: 110px; }
.turn-info { padding-left: 330px; }
.hint { max-width: 520px; font-size: .9rem; }
.phase-btn { width: 112px !important; height: 112px !important; font-size: .78rem !important; line-height: 1.15 !important; white-space: normal; padding: 0 14px !important; letter-spacing: .06em !important; margin: 0 6px 0 0 !important; }
/* hand: fanned, fully readable, lifts on hover */
.hand-me { height: calc(var(--cw) * 1.39 * .78) !important; padding: 0 !important; margin: 0 !important; gap: 0 !important; align-items: flex-start !important; overflow: visible; z-index: 30; }
.hand-me .hcard { flex: 0 0 var(--cw) !important; margin: 0 -10px; transform: translateY(var(--hy, 0)) rotate(var(--hr, 0deg)); transform-origin: 50% 120%; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.hand-me .hcard:hover { transform: translateY(-14px) rotate(0deg); z-index: 50; }
.hand-me .hcard:hover .hc-in { transform: translateY(-30%) scale(1.25) !important; }
.hand-me .hcard.selected .hc-in { transform: translateY(-26%) scale(1.15) !important; }
.hand-me .hcard .hc-in { box-shadow: 0 14px 30px rgba(0,0,0,.6); border-radius: 9px; }
/* turn pill: never covers the hint */
.overlay-center { align-items: start; padding-top: 30vh; }
/* side panel */
.detail-empty { min-height: 200px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, rgba(111,76,177,.18), transparent 70%); }
@media (max-width: 1250px) { .pbar { width: 250px; } .turn-info { padding-left: 270px; } }

/* ==========================================================
   ARENA v4 — plates column, big cards, inspector, drag & drop
   ========================================================== */
.arena { --cw: clamp(118px, min(10.4vw, 17.5vh), 172px); grid-template-columns: minmax(0, 1fr) 360px !important; }
.arena-main { display: grid !important; grid-template-columns: 250px minmax(0, 1fr) !important; grid-template-rows: 1fr auto 1fr auto !important;
  grid-template-areas: "opp f1" "phase center" "me f0" "me hand" !important; column-gap: 18px !important; row-gap: 6px !important; padding: 18px 22px 0 !important; }
.pbar { position: static !important; width: auto !important; }
.pbar-opp { grid-area: opp; align-self: start; }
.pbar-me { grid-area: me; align-self: end; margin-bottom: 18px; }
#field1 { grid-area: f1; } #field0 { grid-area: f0; }
.center-bar { grid-area: center; grid-template-columns: auto 1fr !important; min-height: 96px; }
.center-bar .turn-info { grid-column: 1; padding-left: 0 !important; }
.center-bar .hint { grid-column: 2; justify-self: center; }
.phase-btn { grid-area: phase; justify-self: center; align-self: center; margin: 0 !important; }
.hand-me { grid-area: hand; }
.pbar .hand-opp { position: static !important; justify-content: flex-start; margin-top: 2px; }
.pbar-id .cp { flex-wrap: wrap; }
.pbar .cp-bar { width: 120px !important; }
/* the phase button lives in the plates column */
.arena-main > .center-bar .phase-btn { grid-area: auto; }
.field { padding: 14px 18px 38px !important; gap: clamp(10px, 1.1vw, 18px) !important; }
.tok .st span { font-size: .9rem !important; padding: .12rem .6rem !important; }
/* inspector (right panel) */
.arena-side { padding: 18px 18px 14px !important; gap: 10px !important; }
.detail { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.inspect-card { width: 100%; max-width: 300px; margin: 0 auto 12px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.7)); }
.inspect-card img { width: 100%; border-radius: 14px; display: block; border: 1px solid rgba(217,179,90,.35); }
.detail .d-name { text-align: center; font-size: 1.35rem; }
.detail .d-meta { text-align: center; }
.detail .d-stats { justify-content: center; margin-bottom: 6px; }
.detail .d-stats .sa { color: #f3c98b; } .detail .d-stats .sd { color: #cfc6f5; }
.detail-empty { display: flex !important; flex-direction: column; align-items: center; gap: 14px; padding: 24px 16px !important; }
.detail-empty img { width: 150px; border-radius: 10px; opacity: .85; filter: drop-shadow(0 12px 22px rgba(0,0,0,.6)); }
.detail-empty small { color: #a9a594; }
.actions { flex: 0 0 auto; }
.log-title { margin-top: 0 !important; }
.log { flex: 0 0 auto; height: 150px !important; }
/* drag & drop */
.drag-ghost { position: fixed; z-index: 3000; width: calc(var(--cw, 140px) * 1.1); max-width: 180px; transform: translate(-50%, -60%) rotate(-4deg); pointer-events: none; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.7), 0 0 30px rgba(217,179,90,.45); }
.hcard.dragging { opacity: .35; }
.field.drop-zone { border-color: #f3dc8f !important; box-shadow: inset 0 0 50px rgba(0,0,0,.4), 0 0 0 2px rgba(249,231,161,.5), 0 0 40px rgba(217,179,90,.35) !important; }
/* attack arrow */
.attack-arrow { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2600; filter: drop-shadow(0 0 8px rgba(249,231,161,.6)); }
@media (max-width: 1250px) { .arena { grid-template-columns: 1fr !important; } .arena-main { grid-template-columns: 210px minmax(0,1fr) !important; } }

/* ==========================================================
   FACTION COLOURS (from the card frames) + DIFFICULTY COLOURS + DUEL MODAL
   ========================================================== */
.faction .medallion { color: var(--fc); border-color: transparent;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--fc) 32%, #1a1640), #0c0f29 72%) padding-box,
              linear-gradient(140deg, #fff8, var(--fc) 35%, color-mix(in srgb, var(--fc) 45%, #000) 70%, var(--fc)) border-box;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 6px color-mix(in srgb, var(--fc) 10%, transparent), 0 0 26px color-mix(in srgb, var(--fc) 30%, transparent), inset 0 0 20px color-mix(in srgb, var(--fc) 30%, transparent); }
.faction .medallion i { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--fc) 70%, transparent)); }
.faction .medallion::after { border-color: color-mix(in srgb, var(--fc) 45%, transparent); }
.faction h3 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--fc); text-shadow: 0 0 18px color-mix(in srgb, var(--fc) 45%, transparent); }
.faction:hover { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--fc) 28%, transparent), transparent 70%); }

/* difficulty */
.opponent-card { border: 1px solid color-mix(in srgb, var(--oc) 30%, transparent) !important; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.opponent-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--oc) 22%, transparent), transparent 70%); }
.opponent-card::after { content: ""; position: absolute; left: 15%; right: 15%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--oc), transparent); }
.opponent-card:hover, .opponent-card:has(input:checked) { transform: translateY(-6px); border-color: var(--oc) !important; background: var(--surface) !important;
  box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--oc) 25%, transparent); }
.opponent-card:has(input:checked):not(:hover) { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--oc) 30%, transparent) !important; }
.opp-medal { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--oc) 30%, #1a1640), #0c0f29 72%) padding-box,
  linear-gradient(140deg, #fff9, var(--oc) 35%, color-mix(in srgb, var(--oc) 40%, #000) 70%, var(--oc)) border-box !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 6px color-mix(in srgb, var(--oc) 10%, transparent), 0 0 30px color-mix(in srgb, var(--oc) 30%, transparent) !important; }
.opp-medal::after { border-color: color-mix(in srgb, var(--oc) 50%, transparent); }
.opp-medal .emblem { filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)) drop-shadow(0 0 12px color-mix(in srgb, var(--oc) 60%, transparent)); }
.opp-pips span { border-color: color-mix(in srgb, var(--oc) 60%, transparent); }
.opp-pips span.on { background: var(--oc); border-color: color-mix(in srgb, var(--oc) 50%, #fff); box-shadow: 0 0 8px var(--oc); }
.opponent-card .opp-level, .duel-box .opp-level { color: var(--oc); }
.opp-cta { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--oc); opacity: .75; transition: gap .3s, opacity .3s; }
.opponent-card:hover .opp-cta { gap: .8rem; opacity: 1; }

/* duel modal */
.duel-modal { position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; padding: 16px; }
.duel-backdrop { position: absolute; inset: 0; background: rgba(4,5,18,.75); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.duel-box { position: relative; width: min(440px, 100%); padding: 2.6rem 2rem 2rem; text-align: center; border-radius: 22px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--oc) 55%, transparent) !important; background: radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--oc) 25%, transparent), transparent 70%), #070a1f !important;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 60px color-mix(in srgb, var(--oc) 25%, transparent);
  opacity: 0; transform: translateY(24px) scale(.94); transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.25,1.2); }
.duel-modal.show .duel-backdrop { opacity: 1; }
.duel-modal.show .duel-box { opacity: 1; transform: none; }
.duel-rays { position: absolute; left: 50%; top: 90px; width: 520px; height: 520px; transform: translate(-50%,-50%); z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(color-mix(in srgb, var(--oc) 22%, transparent) 0 4deg, transparent 4deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 55%); mask: radial-gradient(circle, #000 10%, transparent 55%); animation: spot-rays-spin 50s linear infinite; }
.duel-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #cfcfe0; display: grid; place-items: center; transition: background .2s, color .2s; }
.duel-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.duel-medal { width: 120px; height: 120px; }
.duel-medal .emblem { width: 68px; height: 68px; }
.duel-name { font-size: 2rem; font-weight: 900; margin: .2rem 0 .4rem; }
.duel-deck { text-align: left; margin-bottom: 1rem; }
.duel-deck .form-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #cfcfb8; }
.duel-deck .form-label i { color: #e9bf55; margin-right: .3rem; }
.duel-reward { display: inline-flex; gap: .5rem; align-items: center; font-size: .85rem; color: #e9cf8a; padding: .35rem .9rem; border-radius: 999px; border: 1px solid rgba(217,179,90,.3); background: rgba(217,179,90,.07); margin-bottom: 1.2rem; }

/* ---- Factions v2: metallic, vivid ---- */
.faction { --fc-l: color-mix(in srgb, var(--fc) 45%, #fff); --fc-d: color-mix(in srgb, var(--fc) 55%, #000);
  --fc-metal: linear-gradient(135deg, var(--fc-l) 0%, var(--fc) 22%, var(--fc-d) 45%, var(--fc) 62%, var(--fc-l) 78%, var(--fc-d) 100%); }
.faction .medallion { width: 96px; height: 96px; border-width: 4px;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--fc) 55%, #1a1640) 0%, color-mix(in srgb, var(--fc) 22%, #0c0f29) 55%, #070918 100%) padding-box,
              var(--fc-metal) border-box;
  box-shadow: 0 12px 30px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--fc) 40%, transparent), 0 0 34px color-mix(in srgb, var(--fc) 45%, transparent),
              inset 0 2px 6px rgba(255,255,255,.25), inset 0 -10px 22px rgba(0,0,0,.45); }
.faction .medallion::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.28), transparent 42%); }
.faction .medallion::after { inset: -10px; border: 2px dotted color-mix(in srgb, var(--fc) 65%, transparent); }
.faction .medallion i { font-size: 2.3rem; color: var(--fc-l); filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)) drop-shadow(0 0 10px var(--fc)); }
.faction .medallion i::before { background: linear-gradient(180deg, #fff 0%, var(--fc-l) 35%, var(--fc) 65%, var(--fc-d) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.faction h3 { font-size: 1.2rem; font-weight: 900; text-shadow: none; color: transparent;
  background: linear-gradient(180deg, #fff 0%, var(--fc-l) 30%, var(--fc) 55%, var(--fc-d) 80%, var(--fc) 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.7)) drop-shadow(0 0 12px color-mix(in srgb, var(--fc) 55%, transparent)); }
.faction:hover .medallion { box-shadow: 0 12px 30px rgba(0,0,0,.6), 0 0 0 1px var(--fc), 0 0 55px color-mix(in srgb, var(--fc) 70%, transparent), inset 0 2px 6px rgba(255,255,255,.3), inset 0 -10px 22px rgba(0,0,0,.45); }

/* hero rays centred on the single card */
.cine-hero:has(.cine-stage.solo) .cine-rays, section:has(.cine-stage.solo) > .cine-rays { display: none; }
.solo-rays { position: absolute; left: 50%; top: 48%; width: 1000px; height: 1000px; z-index: -1; pointer-events: none; border-radius: 50%;
  transform: translate(-50%,-50%); animation: solo-rays-spin 120s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(249,231,161,.10) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 12%, transparent 62%); mask: radial-gradient(circle, #000 12%, transparent 62%); }
@keyframes solo-rays-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.cine-stage.solo { isolation: isolate; }

/* ---- Factions v3: coloured crest tiles with metal coins ---- */
.factions { gap: 16px; }
.faction { padding: 2.1rem .9rem 1.4rem; border-radius: 20px; overflow: hidden; isolation: isolate; cursor: default;
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 30%, #0d1030) 0%, color-mix(in srgb, var(--fc) 9%, #090b22) 55%, #070918 100%) padding-box,
              linear-gradient(160deg, var(--fc-l), color-mix(in srgb, var(--fc) 35%, transparent) 30%, transparent 60%, color-mix(in srgb, var(--fc) 50%, transparent)) border-box;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.faction::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fc-metal); box-shadow: 0 0 16px var(--fc); }
.faction .fac-glow { position: absolute; z-index: -1; left: 50%; top: 66px; width: 220px; height: 220px; transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fc) 55%, transparent), transparent 65%); filter: blur(14px); opacity: .7; transition: opacity .45s; }
.faction:hover { transform: translateY(-10px); background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 40%, #0d1030) 0%, color-mix(in srgb, var(--fc) 12%, #090b22) 55%, #070918 100%) padding-box,
              linear-gradient(160deg, var(--fc-l), var(--fc) 30%, color-mix(in srgb, var(--fc) 30%, transparent) 60%, var(--fc)) border-box;
  box-shadow: 0 28px 60px rgba(0,0,0,.55), 0 0 50px color-mix(in srgb, var(--fc) 35%, transparent); }
.faction:hover .fac-glow { opacity: 1; }

/* the coin: solid metal in the faction colour, embossed white icon */
.faction .medallion { width: 92px; height: 92px; margin-bottom: 1.1rem; border: 3px solid transparent;
  background: radial-gradient(circle at 35% 25%, var(--fc-l) 0%, var(--fc) 38%, var(--fc-d) 80%, color-mix(in srgb, var(--fc) 30%, #000) 100%) padding-box,
              linear-gradient(135deg, #fff 0%, var(--fc-l) 20%, var(--fc-d) 45%, var(--fc-l) 70%, #fff 85%, var(--fc-d) 100%) border-box;
  box-shadow: 0 14px 28px rgba(0,0,0,.6), 0 0 0 5px color-mix(in srgb, var(--fc) 18%, transparent), 0 0 40px color-mix(in srgb, var(--fc) 55%, transparent),
              inset 0 3px 6px rgba(255,255,255,.45), inset 0 -8px 16px rgba(0,0,0,.4); }
.faction .medallion::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.45), rgba(255,255,255,0) 40%), linear-gradient(340deg, rgba(0,0,0,.25), transparent 40%); }
.faction .medallion::after { inset: -11px; border: 1.5px dashed color-mix(in srgb, var(--fc) 70%, transparent); }
.faction .medallion i { font-size: 2.4rem; color: #fff; filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--fc) 30%, #000)) drop-shadow(0 4px 6px rgba(0,0,0,.45)); position: relative; z-index: 1; }
.faction .medallion i::before { background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--fc) 25%, #fff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.faction:hover .medallion { box-shadow: 0 14px 28px rgba(0,0,0,.6), 0 0 0 5px color-mix(in srgb, var(--fc) 28%, transparent), 0 0 60px var(--fc), inset 0 3px 6px rgba(255,255,255,.5), inset 0 -8px 16px rgba(0,0,0,.4); }
.faction:hover .medallion i { animation: fac-pop .6s cubic-bezier(.2,.9,.3,1.4); }
@keyframes fac-pop { 40% { transform: scale(1.18) rotate(-6deg); } }

.faction h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.faction p { color: #cfcbe0; font-size: .84rem; min-height: 2.5em; margin-bottom: .9rem; }
.fac-count { display: inline-block; padding: .28rem .8rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fc-l); background: color-mix(in srgb, var(--fc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--fc) 50%, transparent); }
@media (max-width: 1199px) { .factions { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px) { .factions { grid-template-columns: repeat(2, 1fr); } }
.factions { display: flex; flex-wrap: wrap; justify-content: center; }
.factions .faction { flex: 0 1 calc((100% - 6 * 16px) / 7); min-width: 158px; }
@media (max-width: 1199px) { .factions .faction { flex-basis: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 575px) { .factions .faction { flex-basis: calc((100% - 16px) / 2); min-width: 0; } }

/* ---- Factions v4: polished metal crests ---- */
.factions { align-items: stretch; }
.factions .faction { display: flex; flex-direction: column; align-items: center; padding: 2.2rem 1rem 1.5rem;
  border: 0; border-radius: 22px; position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--fc) 26%, #0b0e28) 0%, #0a0c22 58%, #07091a 100%);
  box-shadow: 0 20px 44px rgba(0,0,0,.5); }
/* brushed metal frame (gradient border via mask) */
.factions .faction::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(160deg, #fff 0%, var(--fc-l) 12%, var(--fc-d) 30%, var(--fc) 48%, var(--fc-d) 62%, var(--fc-l) 82%, #fff 92%, var(--fc-d) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* sweeping sheen */
.factions .faction::after { content: ""; position: absolute; inset: 0; left: 0; right: 0; bottom: 0; height: auto; border-radius: inherit; pointer-events: none; z-index: 1; box-shadow: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.14) 45%, rgba(255,255,255,.04) 50%, transparent 58%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0; transition: background-position 1s cubic-bezier(.2,.8,.2,1); }
.factions .faction:hover::after { background-position: -40% 0; }
.factions .faction .fac-glow { top: 82px; width: 200px; height: 200px; opacity: .55; }
.factions .faction:hover { transform: translateY(-10px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 36%, #0b0e28) 0%, #0a0c22 58%, #07091a 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 46px color-mix(in srgb, var(--fc) 40%, transparent); }

/* coin: brushed concentric metal + bevel */
.factions .faction .medallion { width: 100px; height: 100px; flex: none; border: 0; margin-bottom: 1.2rem;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 32% 24%, #fff 0%, var(--fc-l) 16%, var(--fc) 46%, var(--fc-d) 82%, color-mix(in srgb, var(--fc) 25%, #000) 100%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--fc) 30%, #000),
    0 0 0 5px var(--fc-l),
    0 0 0 7px color-mix(in srgb, var(--fc) 45%, #000),
    0 16px 30px rgba(0,0,0,.6), 0 0 44px color-mix(in srgb, var(--fc) 55%, transparent),
    inset 0 4px 6px rgba(255,255,255,.55), inset 0 -10px 18px rgba(0,0,0,.45); }
.factions .faction .medallion::before { background: linear-gradient(165deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.1) 38%, transparent 50%); }
.factions .faction .medallion::after { inset: -14px; border: 1px solid color-mix(in srgb, var(--fc) 50%, transparent); border-style: dashed; }
.factions .faction .medallion i { font-size: 2.5rem; color: #fff; filter: drop-shadow(0 -1px 0 rgba(255,255,255,.6)) drop-shadow(0 2px 0 color-mix(in srgb, var(--fc) 35%, #000)) drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.factions .faction .medallion i::before { background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, var(--fc) 18%, #fff)); -webkit-background-clip: text; background-clip: text; }
.factions .faction:hover .medallion { box-shadow:
    0 0 0 3px color-mix(in srgb, var(--fc) 30%, #000), 0 0 0 5px #fff, 0 0 0 7px color-mix(in srgb, var(--fc) 45%, #000),
    0 16px 30px rgba(0,0,0,.6), 0 0 70px var(--fc), inset 0 4px 6px rgba(255,255,255,.6), inset 0 -10px 18px rgba(0,0,0,.45); }

/* name: chrome-like metal letters */
.factions .faction h3 { font-size: 1.22rem; letter-spacing: .16em; margin-bottom: .5rem;
  background: linear-gradient(180deg, #fff 0%, #fff 30%, var(--fc-l) 48%, var(--fc) 52%, var(--fc-d) 80%, var(--fc-l) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 0 14px color-mix(in srgb, var(--fc) 50%, transparent)); }
.factions .faction p { flex: 1; min-height: 0; margin-bottom: 1rem; color: #d4d0e4; }
/* count badge: metal pill */
.factions .fac-count { margin-top: auto; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); border: 0;
  background: linear-gradient(180deg, var(--fc-l), var(--fc) 45%, var(--fc-d));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 4px rgba(0,0,0,.3), 0 4px 14px color-mix(in srgb, var(--fc) 45%, transparent); }

/* ==========================================================
   ARENA MOCK v2 — living board (home page)
   ========================================================== */
.arena-mock { perspective: 1600px; padding: 10px 0 30px; }
.arena-mock .mock-table { position: relative; overflow: hidden; isolation: isolate; padding: 18px 22px; border-radius: 28px; border: 0;
  transform: rotateX(14deg) rotateZ(-2deg); transform-origin: 50% 80%;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(111,76,177,.35), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255,77,99,.10), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(95,214,143,.08), transparent 60%),
    linear-gradient(180deg, #141a4d, #0b0e2a 50%, #121845);
  box-shadow: 0 70px 120px rgba(0,0,0,.75), 0 0 0 1px rgba(249,231,161,.25), 0 0 60px rgba(111,76,177,.25), inset 0 0 90px rgba(0,0,0,.55); }
.arena-mock .mock-table::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 5;
  background: linear-gradient(135deg, #fff4c2, #e9bf55 20%, #7a5718 45%, #f9e7a1 65%, #8a6420 85%, #fff4c2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.arena-mock:hover .mock-table { transform: rotateX(6deg) rotateZ(-.5deg); }

/* rune circle in the middle of the table */
.mt-runes { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%,-50%); z-index: -1; border-radius: 50%; opacity: .5;
  border: 1px solid rgba(217,179,90,.35); box-shadow: 0 0 0 18px rgba(217,179,90,.04), 0 0 0 19px rgba(217,179,90,.2);
  background: repeating-conic-gradient(rgba(217,179,90,.18) 0 1deg, transparent 1deg 15deg); animation: rune-spin 50s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%); mask: radial-gradient(circle, transparent 38%, #000 40%); }

/* hero plates */
.mt-plate { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 16px; position: relative;
  background: linear-gradient(90deg, rgba(10,13,35,.85), rgba(26,22,64,.55)); border: 1px solid rgba(255,255,255,.08); }
.mt-plate.enemy { border-color: rgba(255,77,99,.35); box-shadow: inset 3px 0 0 #ff4d63; }
.mt-plate.me { border-color: rgba(95,214,143,.35); box-shadow: inset 3px 0 0 #5fd68f; }
.mt-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: #f3dc8f;
  background: radial-gradient(circle at 50% 35%, #2a2368, #0c0f29 70%) padding-box, var(--metal-gold) border-box; border: 2px solid transparent; }
.mt-avatar .emblem { width: 26px; height: 26px; }
.mt-who { display: flex; flex-direction: column; line-height: 1.1; min-width: 90px; }
.mt-who b { font-size: .95rem; }
.mt-who small { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: #a9a4c4; }
.mt-cp { flex: 1; display: flex; align-items: center; gap: 10px; }
.mt-bar { flex: 1; height: 10px; border-radius: 10px; background: rgba(0,0,0,.45); box-shadow: inset 0 1px 3px rgba(0,0,0,.6); overflow: hidden; position: relative; }
.mt-bar span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.mt-plate.me .mt-bar span { width: 86%; background: linear-gradient(180deg, #a6f5c4, #2fbf6b 55%, #1d8a4b); }
.mt-plate.enemy .mt-bar span { width: 65%; background: linear-gradient(180deg, #ffb0b8, #ff4d63 55%, #b8243a); animation: mt-cp 6s infinite; }
.mt-num { position: relative; font-weight: 900; font-size: 1rem; white-space: nowrap; min-width: 62px; text-align: right; }
.mt-num .a, .mt-num .b { display: inline-block; }
.mt-num .b { position: absolute; right: 2.1em; opacity: 0; color: #ff8a96; }
.mt-plate.enemy .mt-num .a { animation: mt-num-a 6s infinite; }
.mt-plate.enemy .mt-num .b { animation: mt-num-b 6s infinite; }
@keyframes mt-cp { 0%, 49% { width: 65%; } 56%, 94% { width: 42%; } 100% { width: 65%; } }
@keyframes mt-num-a { 0%, 49% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mt-num-b { 0%, 49% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
.mt-pile { position: relative; width: 30px; height: 40px; flex: none; margin-left: 4px; }
.mt-pile i { position: absolute; inset: 0; border-radius: 4px; background: url('../img/card-back.webp') center / cover; box-shadow: 0 2px 4px rgba(0,0,0,.6); border: 1px solid rgba(226,212,255,.4); }
.mt-pile i:nth-child(2) { transform: translate(2px,-2px); } .mt-pile i:nth-child(3) { transform: translate(4px,-4px); }
.mt-pile b { position: absolute; right: -8px; bottom: -6px; font-size: .62rem; padding: 1px 5px; border-radius: 6px; background: var(--metal-gold); color: #1d1405; }

/* rows of cards with slots */
.mt-row { display: flex; justify-content: center; gap: 16px; margin: 12px 0; }
.mt-slot { position: relative; width: 22%; border-radius: 12px; }
.mt-slot::before { content: ""; position: absolute; inset: -6px; border-radius: 14px; border: 1px dashed rgba(217,179,90,.25); }
.mt-row.enemy .mt-slot::before { border-color: rgba(255,77,99,.25); }
.mt-slot .tcg-card { box-shadow: 0 14px 26px rgba(0,0,0,.6) !important; }
.mt-mid { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0; position: relative; }
.mt-mid::before, .mt-mid::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,179,90,.55), transparent); }
.mt-phase { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: #1d1405; background: var(--metal-gold); box-shadow: 0 0 20px rgba(217,179,90,.45); }
.mt-turn { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #cfc7ee; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(207,199,238,.25); }

/* the attack loop */
.mt-attacker { z-index: 3; animation: mt-attack 6s cubic-bezier(.5,0,.3,1) infinite; }
.mt-attacker .tcg-card { animation: mt-attacker-glow 6s infinite; }
@keyframes mt-attack {
  0%, 22% { transform: none; }
  32% { transform: translateY(-8%) scale(1.08); }
  42% { transform: translateY(-6%) scale(1.08) rotate(-2deg); }
  48% { transform: translate(calc(100% + 16px), calc(-100% - 40px)) scale(1.1) rotate(4deg); }
  54% { transform: translate(calc(100% + 16px), calc(-100% - 20px)) scale(1.06); }
  68%, 100% { transform: none; }
}
@keyframes mt-attacker-glow { 0%, 22%, 70%, 100% { box-shadow: 0 14px 26px rgba(0,0,0,.6); } 30%, 50% { box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 0 2px #fff4c2, 0 0 40px rgba(249,231,161,.9); } }
.mt-target { animation: mt-shake 6s infinite; }
@keyframes mt-shake { 0%, 47% { transform: none; filter: none; } 49% { transform: translate(-6px, -3px) rotate(-3deg); filter: brightness(2.2); } 51% { transform: translate(6px, 2px) rotate(2deg); filter: brightness(1.4) saturate(1.4); } 53% { transform: translate(-3px, 0); } 56%, 100% { transform: none; filter: none; } }
.mt-hit { position: absolute; inset: -10px; border-radius: 16px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,77,99,.6) 40%, transparent 70%); mix-blend-mode: screen; animation: mt-hit 6s infinite; }
@keyframes mt-hit { 0%, 47% { opacity: 0; transform: scale(.4); } 49% { opacity: 1; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.4); } }
.mt-boom { position: absolute; left: 50%; top: 32%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; pointer-events: none; opacity: 0;
  border: 3px solid #fff4c2; box-shadow: 0 0 30px rgba(249,231,161,.9), inset 0 0 30px rgba(249,231,161,.6); animation: mt-boom 6s infinite; }
@keyframes mt-boom { 0%, 48% { opacity: 0; transform: scale(.2); } 50% { opacity: 1; } 64%, 100% { opacity: 0; transform: scale(2.6); } }
.mt-dmg { position: absolute; left: 50%; top: 22%; transform: translate(-50%, 0); z-index: 6; pointer-events: none; opacity: 0;
  font-size: 3rem; font-weight: 900; color: #ff4d63; -webkit-text-stroke: 1.5px #fff4c2; text-shadow: 0 6px 24px rgba(0,0,0,.8), 0 0 30px rgba(255,77,99,.8); animation: mt-dmg 6s infinite; }
@keyframes mt-dmg { 0%, 48% { opacity: 0; transform: translate(-50%, 20px) scale(.4); } 52% { opacity: 1; transform: translate(-50%, 0) scale(1.25); } 58% { transform: translate(-50%, -6px) scale(1); } 78% { opacity: 1; } 90%, 100% { opacity: 0; transform: translate(-50%, -40px) scale(1); } }

@media (prefers-reduced-motion: reduce) { .mt-attacker, .mt-target, .mt-hit, .mt-boom, .mt-dmg, .mt-runes, .mt-plate.enemy .mt-bar span, .mt-num span { animation: none !important; } }
@media (max-width: 767px) { .arena-mock .mock-table { padding: 12px; transform: rotateX(8deg); } .mt-row { gap: 8px; } .mt-slot { width: 30%; } .mt-who small, .mt-pile { display: none; } .mt-dmg { font-size: 2rem; } }

/* ==========================================================
   FACTIONS v5 — realistic brushed-metal coins, matte crest tiles
   ========================================================== */
.factions .faction {
  /* metal tones: the faction colour alloyed with steel so it reads as metal, not plastic */
  --m1: color-mix(in srgb, var(--fc) 35%, #ffffff);   /* specular */
  --m2: color-mix(in srgb, var(--fc) 70%, #c8c8d0);   /* lit metal */
  --m3: color-mix(in srgb, var(--fc) 75%, #3a3a44);   /* mid */
  --m4: color-mix(in srgb, var(--fc) 45%, #0b0b12);   /* shadow */
  --m5: color-mix(in srgb, var(--fc) 20%, #050508);   /* deep */
  padding: 2.4rem 1rem 1.5rem; border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, color-mix(in srgb, var(--fc) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #11142e 0%, #0b0d22 60%, #080a1a 100%);
  box-shadow: 0 24px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); }
/* thin brushed-metal frame */
.factions .faction::before { padding: 1.5px;
  background: conic-gradient(from 210deg, var(--m4), var(--m1) 8%, var(--m3) 18%, var(--m5) 30%, var(--m2) 45%, var(--m4) 58%, var(--m1) 70%, var(--m3) 82%, var(--m5) 92%, var(--m4)); }
.factions .faction::after { background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.07) 47%, transparent 56%) no-repeat; background-size: 260% 100%; background-position: 130% 0; }
.factions .faction .fac-glow { top: 92px; width: 170px; height: 170px; opacity: .35; filter: blur(22px); }
.factions .faction:hover { transform: translateY(-8px);
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, color-mix(in srgb, var(--fc) 24%, transparent), transparent 70%),
    linear-gradient(180deg, #13163a 0%, #0b0d22 60%, #080a1a 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 34px color-mix(in srgb, var(--fc) 22%, transparent); }
.factions .faction:hover .fac-glow { opacity: .6; }

/* coin = bevelled rim + brushed face (conic reflections like turned metal) */
.factions .faction .medallion { width: 108px; height: 108px; margin-bottom: 1.3rem; border: 0;
  background:
    conic-gradient(from 135deg, var(--m1), var(--m4) 12%, var(--m2) 25%, var(--m5) 38%, var(--m1) 50%, var(--m4) 62%, var(--m2) 75%, var(--m5) 88%, var(--m1));
  box-shadow: 0 2px 0 rgba(255,255,255,.12), 0 14px 26px rgba(0,0,0,.7), 0 4px 6px rgba(0,0,0,.5), 0 0 30px color-mix(in srgb, var(--fc) 22%, transparent); }
.factions .faction .medallion::before { inset: 7px; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.05) 0 .5px, rgba(0,0,0,.05) .5px 1.5px),
    conic-gradient(from 20deg, var(--m3), var(--m1) 6%, var(--m2) 14%, var(--m4) 26%, var(--m3) 38%, var(--m1) 52%, var(--m2) 60%, var(--m4) 74%, var(--m5) 86%, var(--m3));
  box-shadow: inset 0 2px 3px rgba(0,0,0,.65), inset 0 -1px 1px rgba(255,255,255,.35), inset 0 0 18px rgba(0,0,0,.35); }
.factions .faction .medallion::after { inset: -9px; border: 1px solid color-mix(in srgb, var(--fc) 28%, transparent); border-style: solid; opacity: .7; animation: none; }
/* engraved icon: dark recess with a light lower lip */
.factions .faction .medallion i { font-size: 2.55rem; color: var(--m5); filter: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.45), 0 -1px 0 rgba(0,0,0,.55); opacity: .92; }
.factions .faction .medallion i::before { background: none; -webkit-text-fill-color: currentColor; color: var(--m5); }
.factions .faction:hover .medallion { box-shadow: 0 2px 0 rgba(255,255,255,.15), 0 18px 30px rgba(0,0,0,.7), 0 4px 6px rgba(0,0,0,.5), 0 0 46px color-mix(in srgb, var(--fc) 40%, transparent); }
.factions .faction:hover .medallion i { animation: none; }
.factions .faction .medallion { transition: transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.factions .faction:hover .medallion { transform: rotate(-8deg) scale(1.04); }

/* name: polished metal lettering */
.factions .faction h3 { font-size: 1.12rem; font-weight: 900; letter-spacing: .22em; margin-bottom: .55rem;
  background: linear-gradient(180deg, var(--m1) 0%, var(--m2) 45%, var(--m4) 52%, var(--m2) 78%, var(--m1) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 1px rgba(0,0,0,.8)); }
.factions .faction p { color: #b9b6cc; font-size: .84rem; }
/* badge: discreet engraved plate */
.factions .fac-count { color: var(--m1); text-shadow: 0 1px 1px rgba(0,0,0,.8); font-size: .66rem; letter-spacing: .18em; padding: .3rem .85rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 18%, #15182f), color-mix(in srgb, var(--fc) 8%, #0b0d1e));
  border: 1px solid color-mix(in srgb, var(--fc) 40%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.4); }
.factions .faction .medallion::before { background: conic-gradient(from 20deg, var(--m3), var(--m1) 6%, var(--m2) 14%, var(--m4) 26%, var(--m3) 38%, var(--m1) 52%, var(--m2) 60%, var(--m4) 74%, var(--m5) 86%, var(--m3)); }
.factions .faction .medallion i { color: color-mix(in srgb, var(--fc) 25%, #000); text-shadow: 0 1.5px 0 rgba(255,255,255,.55), 0 -1px 0 rgba(0,0,0,.6); }
.factions .faction .medallion i::before { color: color-mix(in srgb, var(--fc) 25%, #000); }

/* ---- "Your own card" offer (home) ---- */
.own-card-offer { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 3rem; margin-top: 0;
  background: radial-gradient(ellipse 50% 90% at 82% 50%, rgba(217,179,90,.22), transparent 70%), radial-gradient(ellipse 60% 80% at 0% 100%, rgba(111,76,177,.3), transparent 70%), linear-gradient(135deg, #12153a, #0a0c22);
  box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.own-card-offer::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from 200deg, #6b4c14, #fff4c2 8%, #c9a14a 18%, #3d2a08 32%, #e9bf55 46%, #7a5718 60%, #fff4c2 72%, #a8812e 86%, #6b4c14);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.oco-price { display: inline-flex; align-items: baseline; gap: .4rem; margin-bottom: 1.3rem; }
.oco-price b { font-size: 3rem; font-weight: 900; line-height: 1; background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oco-price span { font-weight: 800; color: #e9cf8a; letter-spacing: .12em; }
.oco-price small { color: #b3ae9c; margin-left: .5rem; }
.oco-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.4rem; }
.oco-list li { display: flex; gap: .55rem; align-items: center; color: #e0dcef; }
.oco-list i { color: #e9bf55; }
.oco-visual { position: relative; height: 340px; perspective: 1200px; }
.oco-blank { position: absolute; left: 50%; top: 50%; width: 200px; aspect-ratio: 737 / 1024; margin: -139px 0 0 -100px; border-radius: 14px; padding: 8px;
  background: var(--tex-gold) center / 120px; box-shadow: 0 30px 60px rgba(0,0,0,.7), 0 0 50px rgba(217,179,90,.35); animation: oco-float 6s ease-in-out infinite; }
@keyframes oco-float { 50% { transform: translateY(-12px) rotateY(-8deg); } }
.oco-blank-in { height: 100%; border-radius: 8px; display: grid; place-content: center; text-align: center; gap: .4rem;
  background: radial-gradient(circle at 50% 40%, #2a2368, #0a0c22 75%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.oco-blank-in i { font-size: 3.4rem; color: #f3dc8f; filter: drop-shadow(0 0 16px rgba(249,231,161,.6)); }
.oco-blank-in span { font-weight: 900; letter-spacing: .1em; font-size: 1.1rem; }
.oco-blank-in small { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: #b3ae9c; }
.oco-sparks i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff4c2; box-shadow: 0 0 10px 3px rgba(249,231,161,.8); animation: oco-twinkle 2.4s ease-in-out infinite; }
.oco-sparks i:nth-child(1) { left: 20%; top: 18%; } .oco-sparks i:nth-child(2) { left: 78%; top: 26%; animation-delay: .6s; }
.oco-sparks i:nth-child(3) { left: 16%; top: 72%; animation-delay: 1.2s; } .oco-sparks i:nth-child(4) { left: 82%; top: 78%; animation-delay: 1.8s; }
.oco-sparks i:nth-child(5) { left: 50%; top: 6%; animation-delay: .9s; }
@keyframes oco-twinkle { 50% { opacity: .2; transform: scale(.5); } }
@media (max-width: 767px) { .own-card-offer { padding: 2rem 1.4rem; } .oco-list { grid-template-columns: 1fr; } .oco-visual { height: 300px; } }

/* roadmap: visible golden spine between the dots */
.main-timeline { isolation: isolate; }
.main-timeline::after { z-index: 0 !important; width: 2px !important; margin-left: -1px !important; top: 30px !important; bottom: 30px !important;
  background: linear-gradient(180deg, #fff4c2, #e9bf55 30%, #c99a3b 60%, rgba(217,179,90,.25)) !important; box-shadow: 0 0 10px rgba(217,179,90,.55); }
.main-timeline .timeline::after { z-index: 1; }
@media (max-width: 767px) { .main-timeline::after { left: 11px !important; } }

/* ==========================================================
   FACTIONS v6 — minted coins: milled edge, domed face, embossed icon
   ========================================================== */
.factions .faction .medallion { width: 112px; height: 112px;
  /* milled (reeded) outer edge */
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0 1.2deg, rgba(0,0,0,.28) 1.2deg 2.4deg),
    conic-gradient(from 140deg, var(--m2), var(--m4) 25%, var(--m1) 50%, var(--m4) 75%, var(--m2));
  box-shadow: 0 1px 0 rgba(255,255,255,.18), 0 18px 30px rgba(0,0,0,.75), 0 6px 8px rgba(0,0,0,.5), 0 0 34px color-mix(in srgb, var(--fc) 26%, transparent); }
/* domed face inside a polished bezel */
.factions .faction .medallion::before { inset: 8px;
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(0,0,0,.35) 76%, rgba(0,0,0,.55) 100%),
    radial-gradient(ellipse 70% 45% at 38% 22%, rgba(255,255,255,.55), transparent 60%),
    conic-gradient(from 225deg, var(--m3), var(--m2) 15%, var(--m1) 25%, var(--m2) 35%, var(--m3) 50%, var(--m4) 65%, var(--m3) 80%, var(--m2) 90%, var(--m3));
  box-shadow:
    0 0 0 3px var(--m2), 0 0 0 4px var(--m5), 0 0 0 5px color-mix(in srgb, var(--m1) 60%, transparent),
    inset 0 3px 5px rgba(255,255,255,.35), inset 0 -6px 12px rgba(0,0,0,.45); }
.factions .faction .medallion::after { inset: -10px; border: 1px solid color-mix(in srgb, var(--fc) 25%, transparent); }
/* embossed icon: raised polished metal, readable on every colour */
.factions .faction .medallion i { font-size: 2.7rem; opacity: 1; color: #fff; text-shadow: none;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.7)) drop-shadow(0 2px 0 var(--m5)) drop-shadow(0 4px 5px rgba(0,0,0,.55)); }
.factions .faction .medallion i::before { background: linear-gradient(170deg, #fff 0%, #fff 30%, var(--m1) 55%, var(--m2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.factions .faction:hover .medallion { transform: rotate(-10deg) scale(1.05); }

/* tile: a coloured enamel strip at the top + ornament under the name */
.factions .faction { padding-top: 2.6rem; }
.factions .faction .fac-glow { top: 98px; }
.factions .faction h3 { margin-bottom: .35rem; }
.factions .faction h3::after { content: ""; display: block; width: 46px; height: 1px; margin: .55rem auto 0;
  background: linear-gradient(90deg, transparent, var(--m2), transparent); box-shadow: 0 0 8px var(--fc); }
.factions .faction p { margin-top: .4rem; }

/* ==========================================================
   ARENA v5 — bigger, more readable cards
   ========================================================== */
/* card width driven by the screen height first (2 field rows + hand must fit) */
.arena { --cw: clamp(124px, min(11.2vw, 20.5vh), 214px); grid-template-columns: minmax(0, 1fr) 330px !important; }
.arena-main { grid-template-columns: 216px minmax(0, 1fr) !important; column-gap: 14px !important; padding: 12px 16px 0 !important; }
.field { padding: 12px 16px 12px !important; }
.center-bar { min-height: 64px !important; }
/* ATK/DEF chips move ON the card (bottom), no more empty band under each row */
.tok .st { top: auto !important; bottom: 7%; left: 6%; right: 6%; justify-content: flex-end; gap: 4px; z-index: 2; }
.tok .st span { font-size: clamp(.72rem, calc(var(--cw) * .07), .95rem) !important; font-weight: 900; padding: .1rem .5rem !important;
  background: rgba(5,6,20,.88) !important; backdrop-filter: blur(3px); box-shadow: 0 2px 8px rgba(0,0,0,.6); }
/* hover zoom on the field: the card under the pointer pops out */
.tok { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, opacity .3s !important; }
.tok:hover { transform: translateY(-6px) scale(1.06) !important; z-index: 5; }
.tok:hover img { box-shadow: 0 24px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(249,231,161,.5); }
/* hand: show more of each card, bigger lift on hover */
.hand-me { height: calc(var(--cw) * 1.39 * .9) !important; }
.hand-me .hcard:hover .hc-in { transform: translateY(-38%) scale(1.12) !important; z-index: 40; }
.hand-me .hcard:hover { z-index: 40; }
.pbar-me { margin-bottom: 8px; }
/* inspector a touch narrower but still large */
.inspect-card { max-width: 280px; }
@media (max-width: 1250px) { .arena { --cw: clamp(110px, min(14vw, 19vh), 190px); } .arena-main { grid-template-columns: 190px minmax(0,1fr) !important; } }

/* ==========================================================
   ARENA v6 — the real board, styled like the home-page mock
   ========================================================== */
.arena { --oc: #ff4d63; --me: #5fd68f; --cw: clamp(108px, min(10vw, 16.6vh), 196px); grid-template-columns: minmax(0, 1fr) 320px !important; gap: 16px !important; padding: 14px 16px !important; }
.arena-main.board-v6 {
  position: relative; isolation: isolate; display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto 1fr auto 1fr auto auto !important;
  grid-template-areas: "opp" "f1" "center" "f0" "me" "hand" !important;
  row-gap: 8px !important; column-gap: 0 !important; padding: 16px 22px 0 !important; border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(111,76,177,.32), transparent 70%),
    radial-gradient(ellipse 90% 40% at 50% 0%, color-mix(in srgb, var(--oc) 12%, transparent), transparent 60%),
    radial-gradient(ellipse 90% 40% at 50% 100%, color-mix(in srgb, var(--me) 9%, transparent), transparent 60%),
    linear-gradient(180deg, #141a4d, #0b0e2a 50%, #121845) !important;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 60px rgba(111,76,177,.2), inset 0 0 90px rgba(0,0,0,.5) !important; border: 0 !important; }
.arena-main.board-v6::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, #fff4c2, #e9bf55 20%, #7a5718 45%, #f9e7a1 65%, #8a6420 85%, #fff4c2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.board-runes { position: absolute; left: 50%; top: 50%; width: min(42vh, 420px); height: min(42vh, 420px); transform: translate(-50%,-50%); z-index: -1; border-radius: 50%; opacity: .55; pointer-events: none;
  border: 1px solid rgba(217,179,90,.35); box-shadow: 0 0 0 22px rgba(217,179,90,.035), 0 0 0 23px rgba(217,179,90,.2);
  background: repeating-conic-gradient(rgba(217,179,90,.18) 0 1deg, transparent 1deg 15deg); animation: rune-spin 60s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%); mask: radial-gradient(circle, transparent 38%, #000 40%); }

/* ---- hero plates (full width) ---- */
.board-v6 .pbar { grid-area: auto; position: relative !important; inset: auto !important; width: auto !important; margin: 0 !important; z-index: 2;
  display: flex !important; align-items: center; gap: 14px; padding: 8px 14px !important; border-radius: 16px !important;
  background: linear-gradient(90deg, rgba(10,13,35,.88), rgba(26,22,64,.55)) !important; border: 1px solid rgba(255,255,255,.08) !important; box-shadow: none !important; }
.board-v6 .pbar-opp { grid-area: opp; border-color: color-mix(in srgb, var(--oc) 40%, transparent) !important; box-shadow: inset 3px 0 0 var(--oc) !important; }
.board-v6 .pbar-me { grid-area: me; border-color: color-mix(in srgb, var(--me) 40%, transparent) !important; box-shadow: inset 3px 0 0 var(--me) !important; }
.board-v6 .pbar .avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; color: #f3dc8f;
  background: radial-gradient(circle at 50% 35%, #2a2368, #0c0f29 70%) padding-box, var(--metal-gold) border-box !important; border: 2px solid transparent !important; box-shadow: 0 6px 14px rgba(0,0,0,.5); }
.board-v6 .pbar .avatar .emblem { width: 28px; height: 28px; }
.board-v6 .p-who { display: flex; flex-direction: column; line-height: 1.1; min-width: 120px; }
.board-v6 .p-who .pname { font-size: 1.02rem; font-weight: 800; color: #fff; }
.board-v6 .p-who small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #a9a4c4; margin-top: 3px; }
.board-v6 .pbar .cp { flex: 1; display: flex !important; align-items: center; gap: 14px; flex-wrap: nowrap !important; min-width: 0; }
.board-v6 .pbar .cp-bar { flex: 1; width: auto !important; height: 11px !important; border-radius: 11px !important; background: rgba(0,0,0,.45) !important; box-shadow: inset 0 1px 3px rgba(0,0,0,.6); overflow: hidden; border: 0 !important; }
.board-v6 .pbar-me .cp-fill { background: linear-gradient(180deg, #a6f5c4, #2fbf6b 55%, #1d8a4b) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.board-v6 .pbar-opp .cp-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--oc) 40%, #fff), var(--oc) 55%, color-mix(in srgb, var(--oc) 60%, #000)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.board-v6 .pbar .cp-val { font-size: .8rem; font-weight: 700; color: #cfc7ee; white-space: nowrap; }
.board-v6 .pbar .cp-val b { font-size: 1.3rem; font-weight: 900; color: #fff; }
.board-v6 .hand-opp { position: static !important; display: flex; margin: 0 !important; }
.board-v6 .piles { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; }
.board-v6 .pile-hidden { display: none; }
.board-v6 .pile-deck { position: relative; width: 30px; height: 40px; flex: none; margin-right: 6px; }
.board-v6 .pile-deck i { position: absolute; inset: 0; border-radius: 4px; background: url('../img/card-back.webp') center / cover; box-shadow: 0 2px 4px rgba(0,0,0,.6); border: 1px solid rgba(226,212,255,.4); }
.board-v6 .pile-deck i:nth-child(2) { transform: translate(2px,-2px); } .board-v6 .pile-deck i:nth-child(3) { transform: translate(4px,-4px); }
.board-v6 .pile-deck b { position: absolute; right: -10px; bottom: -6px; font-size: .64rem; padding: 1px 5px; border-radius: 6px; background: var(--metal-gold); color: #1d1405; z-index: 1; }
.board-v6 .dead-btn { font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; color: #cfc7ee; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }

/* ---- fields: dashed slots tinted per side ---- */
.board-v6 .field { padding: 6px 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; justify-content: center; align-content: center; z-index: 1; }
.board-v6 .slot { border: 1px dashed rgba(217,179,90,.22) !important; background: rgba(255,255,255,.015) !important; border-radius: 12px; }
.board-v6 .slot::before, .board-v6 .slot::after { display: none; }
.board-v6 #field1 .slot { border-color: color-mix(in srgb, var(--oc) 28%, transparent) !important; }
.board-v6 #field0 .slot { border-color: color-mix(in srgb, var(--me) 26%, transparent) !important; }
.board-v6 .field.drop-zone .slot { border-color: #f3dc8f !important; background: rgba(249,231,161,.06) !important; }

/* ---- center: golden phase pill + turn pill, rule lines ---- */
.board-v6 .center-bar { grid-area: center; display: flex !important; align-items: center; justify-content: center; gap: 12px; min-height: 0 !important; padding: 2px 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; z-index: 2; }
.board-v6 .center-bar::before, .board-v6 .center-bar::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,179,90,.55), transparent); }
.board-v6 .turn-info { display: flex !important; align-items: center; gap: 10px; padding: 0 !important; }
.board-v6 .turn-txt { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #cfc7ee; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(207,199,238,.25); white-space: nowrap; }
.board-v6 .phase-track { display: flex; gap: 4px; }
.board-v6 .phase-track span { font-size: .64rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(207,199,238,.45); padding: 5px 10px; border-radius: 999px; border: 0 !important; }
.board-v6 .phase-track span.on { color: #1d1405; background: var(--metal-gold); box-shadow: 0 0 20px rgba(217,179,90,.45); }
.board-v6 .phase-track span.on::before { content: "\26A1"; margin-right: 4px; }
.board-v6 .hint { font-size: .8rem; color: #d8d3ea; padding: 5px 12px !important; border-radius: 999px; background: rgba(0,0,0,.35) !important; border: 1px solid rgba(255,255,255,.08) !important; max-width: 34ch; text-align: center; }
.board-v6 .hint:empty { display: none; }
.board-v6 .center-bar .phase-btn { position: static !important; width: auto !important; height: auto !important; border-radius: 999px !important; padding: .45rem 1.2rem !important; font-size: .78rem !important;
  font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transform: none !important; aspect-ratio: auto !important; }
.board-v6 .center-bar .phase-btn::before, .board-v6 .center-bar .phase-btn::after { display: none !important; }

/* ---- hand under the board ---- */
.board-v6 .hand-me { grid-area: hand; margin: 0 !important; z-index: 30; justify-content: center; height: calc(var(--cw) * 1.39 * .55) !important; }

/* ---- side panel in the same metal frame ---- */
.arena-side { position: relative; border-radius: 22px !important; border: 0 !important;
  background: linear-gradient(180deg, #11142e, #0a0c22) !important; box-shadow: 0 30px 70px rgba(0,0,0,.5) !important; }
.arena-side::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(160deg, #fff4c2, #a8812e 30%, #3d2a08 55%, #e9bf55 80%, #6b4c14);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

@media (max-width: 1250px) { .arena { grid-template-columns: 1fr !important; } .board-v6 .p-who { min-width: 0; } .board-v6 .p-who small { display: none; } }
@media (max-width: 700px) { .board-v6 .phase-track { display: none; } .board-v6 .hint { display: none; } }
.board-v6 .pbar { flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; height: auto !important; min-height: 0 !important; }
.board-v6 .pbar > * { margin: 0 !important; }
.board-v6 .pbar { gap: 14px !important; border-radius: 16px !important; }
.board-v6 .field { justify-content: center !important; align-items: center !important; }
.board-v6 .field::before, .board-v6 .field::after { display: none !important; }
.arena { --cw: clamp(108px, min(10.6vw, 18.2vh), 210px); }
.board-v6 .hint { max-width: 46ch; }
.board-v6 .center-bar::before, .board-v6 .center-bar::after { position: static !important; top: auto !important; left: auto !important; right: auto !important; transform: none !important; }

/* hand: bigger cards that rise over the player plate */
.board-v6 { --hw: calc(var(--cw) * 1.22); }
.board-v6 .hand-me { margin-top: -58px !important; height: calc(var(--hw) * 1.39 * .62) !important; z-index: 30; pointer-events: none; }
.board-v6 .hand-me .hcard { flex: 0 1 var(--hw) !important; pointer-events: auto; }
.board-v6 .hand-me .hcard + .hcard { margin-left: calc(var(--hw) * -.12); }
.board-v6 .hand-me .hcard:hover .hc-in { transform: translateY(-30%) scale(1.15) !important; }
.board-v6 .hand-me .hcard img { box-shadow: 0 -6px 24px rgba(0,0,0,.6), 0 14px 30px rgba(0,0,0,.6); }
/* keep the plate readable at both ends */
.board-v6 .pbar-me .p-who, .board-v6 .pbar-me .avatar, .board-v6 .pbar-me .cp-val, .board-v6 .pbar-me .piles { position: relative; z-index: 31; }
/* hand: lighter overlap on the plate */
.board-v6 { --hw: calc(var(--cw) * 1.12); }
.board-v6 .hand-me { margin-top: -18px !important; }

/* ---- the guide (replaces the plain hint line) ---- */
.board-v6 .hint { --gc: #e9bf55; display: inline-flex !important; align-items: center; gap: 10px; max-width: none !important; white-space: nowrap; text-align: left;
  padding: 5px 16px 5px 5px !important; border-radius: 999px !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 22%, #0b0d22), rgba(11,13,34,.92)) !important;
  border: 1px solid color-mix(in srgb, var(--gc) 50%, transparent) !important; box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 18px color-mix(in srgb, var(--gc) 20%, transparent); }
.board-v6 .hint.guide-go { --gc: #e9bf55; }
.board-v6 .hint.guide-target { --gc: #ff4d63; }
.board-v6 .hint.guide-done { --gc: #5fd68f; }
.board-v6 .hint.guide-wait { --gc: #9b6dff; }
.board-v6 .hint .g-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; color: #fff;
  background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--gc) 40%, #fff), var(--gc) 50%, color-mix(in srgb, var(--gc) 50%, #000));
  box-shadow: inset 0 1px 2px rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.35), 0 0 12px color-mix(in srgb, var(--gc) 50%, transparent); }
.board-v6 .hint.guide-wait .g-ico i { animation: g-spin 1.6s linear infinite; }
@keyframes g-spin { to { transform: rotate(360deg); } }
.board-v6 .hint .g-txt { display: flex; flex-direction: column; line-height: 1.15; }
.board-v6 .hint .g-txt b { font-size: .86rem; font-weight: 900; color: #fff; letter-spacing: .02em; }
.board-v6 .hint .g-txt small { font-size: .72rem; color: color-mix(in srgb, var(--gc) 35%, #d8d3ea); }
.board-v6 .hint.pop { animation: g-pop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes g-pop { 0% { opacity: 0; transform: translateY(6px) scale(.92); } 100% { opacity: 1; transform: none; } }
/* the phase button calls for a click when it is the next step */
.board-v6 .center-bar .phase-btn.nudge { animation: btn-nudge 1.6s ease-in-out infinite; }
@keyframes btn-nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,231,161,.0), 0 6px 20px rgba(217,179,90,.35); } 50% { box-shadow: 0 0 0 6px rgba(249,231,161,.18), 0 0 30px rgba(249,231,161,.7); transform: scale(1.04) !important; } }
@media (prefers-reduced-motion: reduce) { .board-v6 .hint.pop, .board-v6 .center-bar .phase-btn.nudge, .board-v6 .hint .g-ico i { animation: none; } }
.board-v6 .hint:empty { display: none !important; }
/* small screens: never crush the field rows, scroll instead */
.arena:not([hidden]) { overflow-y: auto; }
.arena-main.board-v6 { grid-template-rows: auto minmax(calc(var(--cw) * 1.39 + 14px), 1fr) auto minmax(calc(var(--cw) * 1.39 + 14px), 1fr) auto auto !important; min-height: 0; }
@media (max-width: 1250px) { .arena { align-content: start; } .arena-side { max-height: none; } }
@media (max-width: 1250px) {
  .arena { grid-template-rows: auto auto !important; grid-auto-rows: auto; height: auto; }
  .arena-main.board-v6 { min-height: calc(100vh - 28px); }
  .arena-side { width: auto !important; }
}
@media (max-height: 760px) { .arena { grid-template-rows: auto !important; } .arena-main.board-v6 { min-height: 0; } }

/* ==========================================================
   ARENA v7 — player info in the empty side margins of each row
   ========================================================== */
.arena { --cw: clamp(108px, min(11vw, 22vh), 230px); }
.arena-main.board-v7 {
  grid-template-columns: 200px minmax(0, 1fr) 150px !important;
  grid-template-rows: minmax(calc(var(--cw) * 1.39 + 14px), 1fr) auto minmax(calc(var(--cw) * 1.39 + 14px), 1fr) auto !important;
  grid-template-areas: "op f1 ops" "center center center" "me f0 mes" "hand hand hand" !important;
  column-gap: 16px !important; row-gap: 6px !important; padding: 16px 20px 0 !important; }

/* identity card: vertical, centred in the row */
.board-v7 .pbar { flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 8px !important; align-self: center;
  padding: 16px 14px 14px !important; border-radius: 18px !important; text-align: center; }
.board-v7 .pbar-opp { grid-area: op; box-shadow: inset 0 3px 0 var(--oc) !important; }
.board-v7 .pbar-me { grid-area: me; box-shadow: inset 0 -3px 0 var(--me) !important; }
.board-v7 .pbar .avatar { width: 58px; height: 58px; font-size: 1.5rem; }
.board-v7 .pbar .avatar .emblem { width: 34px; height: 34px; }
.board-v7 .p-who { min-width: 0; align-items: center; }
.board-v7 .p-who .pname { font-size: 1rem; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-v7 .pbar .cp { flex: none; width: 100%; flex-direction: column !important; gap: 6px; }
.board-v7 .pbar .cp-val { font-size: .85rem; }
.board-v7 .pbar .cp-val b { font-size: 2rem; line-height: 1; }
.board-v7 .pbar-opp .cp-val b { color: color-mix(in srgb, var(--oc) 40%, #fff); }
.board-v7 .pbar-me .cp-val b { color: color-mix(in srgb, var(--me) 40%, #fff); }
.board-v7 .pbar .cp-bar { width: 100% !important; flex: none; }

/* right margin: deck pile, opponent's hand, dead wallet */
.board-v7 .pside { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; align-self: center; z-index: 2; }
.board-v7 .pside-opp { grid-area: ops; }
.board-v7 .pside-me { grid-area: mes; }
.board-v7 .pside .pile-deck { position: relative; width: 62px; height: 86px; margin: 0 8px 0 0; }
.board-v7 .pside .pile-deck i { border-radius: 6px; }
.board-v7 .pside .pile-deck i:nth-child(2) { transform: translate(3px,-3px); } .board-v7 .pside .pile-deck i:nth-child(3) { transform: translate(6px,-6px); }
.board-v7 .pside .pile-deck b { right: -14px; bottom: -8px; font-size: .78rem; padding: 2px 7px; }
.board-v7 .pside .pile-deck::after { content: "Deck"; position: absolute; left: 0; right: -6px; top: calc(100% + 10px); text-align: center; font-size: .6rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #a9a4c4; }
.board-v7 .pside .pile-deck { margin-bottom: 14px; }
.board-v7 .pside .hand-opp { position: static !important; display: flex; justify-content: center; }
.board-v7 .pside .hand-opp .hcard { flex: 0 0 22px; height: 32px; margin-left: -9px; }
.board-v7 .pside .pile-hidden { display: none; }
.board-v7 .pside .dead-btn { font-size: .8rem; padding: .3rem .8rem; }

/* fields fill the middle column */
.board-v7 .field { grid-area: auto; }
.board-v7 #field1 { grid-area: f1; } .board-v7 #field0 { grid-area: f0; }
.board-v7 .hand-me { grid-area: hand; margin-top: 4px !important; }

@media (max-width: 1250px) { .arena-main.board-v7 { grid-template-columns: 150px minmax(0,1fr) 92px !important; column-gap: 10px !important; } .board-v7 .pbar .avatar { width: 44px; height: 44px; } .board-v7 .pbar .cp-val b { font-size: 1.5rem; } }
.arena:not([hidden]) { overflow-y: hidden; }
@media (max-width: 1250px), (max-height: 760px) { .arena:not([hidden]) { overflow-y: auto; } }

/* ==========================================================
   ARENA v8 — CP bars stay in the plates; CP numbers and decks go to the row margins; hand never covers anything
   ========================================================== */
.arena-main.board-v8 {
  grid-template-columns: 150px minmax(0, 1fr) 150px !important;
  grid-template-rows: auto minmax(calc(var(--cw) * 1.39 + 12px), 1fr) auto minmax(calc(var(--cw) * 1.39 + 12px), 1fr) auto auto !important;
  grid-template-areas: "opp opp opp" "ocp f1 ops" "center center center" "mcp f0 mes" "me me me" "hand hand hand" !important;
  column-gap: 14px !important; row-gap: 6px !important; padding: 14px 20px 0 !important; }
.board-v8 { --cw: clamp(104px, min(10.4vw, 18.4vh), 214px); }
.arena:has(.board-v8) { --cw: clamp(104px, min(10.4vw, 18.4vh), 214px); }

/* slim full-width plates */
.board-v8 .pbar { flex-direction: row !important; align-items: center !important; padding: 6px 14px !important; gap: 14px !important; }
.board-v8 .pbar-opp { grid-area: opp; }
.board-v8 .pbar-me { grid-area: me; }
.board-v8 .pbar .avatar { width: 40px; height: 40px; font-size: 1.1rem; }
.board-v8 .pbar .avatar .emblem { width: 24px; height: 24px; }
.board-v8 .pbar .cp { flex: 1; }
.board-v8 .pbar .cp-bar { flex: 1; }
.board-v8 .pbar .hand-opp { position: static !important; display: flex; margin-left: 4px !important; }
.board-v8 .pbar .hand-opp .hcard { flex: 0 0 22px; height: 32px; margin-left: -9px; }

/* big CP numbers in the left margin of each row */
.board-v8 .pstat { display: flex; align-items: center; justify-content: center; z-index: 2; }
.board-v8 .pstat-opp { grid-area: ocp; }
.board-v8 .pstat-me { grid-area: mcp; }
.board-v8 .pstat .cp-val { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.board-v8 .pstat .cp-val b { font-size: 3.4rem; font-weight: 900; letter-spacing: -.02em; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.board-v8 .pstat-opp .cp-val b { background: linear-gradient(180deg, #fff 10%, color-mix(in srgb, var(--oc) 50%, #fff) 50%, var(--oc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.board-v8 .pstat-me .cp-val b { background: linear-gradient(180deg, #fff 10%, color-mix(in srgb, var(--me) 50%, #fff) 50%, var(--me)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.board-v8 .pstat .cp-val small { margin-top: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .3em; color: #a9a4c4; }

/* deck + dead wallet in the right margin */
.board-v8 .pside { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; z-index: 2; }
.board-v8 .pside-opp { grid-area: ops; }
.board-v8 .pside-me { grid-area: mes; }
.board-v8 .pside .pile-deck { position: relative; width: 62px; height: 86px; margin: 0; }
.board-v8 .pside .pile-deck i { position: absolute; inset: 0; border-radius: 6px; background: url('../img/card-back.webp') center / cover; box-shadow: 0 3px 8px rgba(0,0,0,.6); border: 1px solid rgba(226,212,255,.4); }
.board-v8 .pside .pile-deck i:nth-child(2) { transform: translate(3px,-3px); } .board-v8 .pside .pile-deck i:nth-child(3) { transform: translate(6px,-6px); }
.board-v8 .pside .pile-deck b { position: absolute; right: -14px; bottom: -8px; font-size: .78rem; padding: 2px 7px; border-radius: 7px; background: var(--metal-gold); color: #1d1405; z-index: 1; }
.board-v8 .pside .pile-deck::after { content: "Deck"; position: absolute; left: 0; right: -6px; top: calc(100% + 10px); text-align: center; font-size: .6rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #a9a4c4; }
.board-v8 .pside .pile-hidden { display: none; }
.board-v8 .pside .dead-btn { font-size: .8rem; padding: .3rem .8rem; }

.board-v8 #field1 { grid-area: f1; } .board-v8 #field0 { grid-area: f0; }
/* hand: its own row under the plate, no overlap */
.board-v8 .hand-me { grid-area: hand; margin-top: 4px !important; }

@media (max-width: 1250px) { .arena-main.board-v8 { grid-template-columns: 96px minmax(0,1fr) 96px !important; column-gap: 8px !important; } .board-v8 .pstat .cp-val b { font-size: 2.3rem; } }

/* hand row: cards in the middle, guide + phase button on their right */
.board-v8 .hand-row { grid-area: hand; display: flex; align-items: flex-start; gap: 18px; margin-top: 4px; position: relative; z-index: 30; min-width: 0; }
.board-v8 .hand-row .hand-me { flex: 1; min-width: 0; margin: 0 !important; grid-area: auto; }
.board-v8 .hand-actions { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 18px; width: 260px; z-index: 31; }
.board-v8 .hand-actions .hint { width: 100%; white-space: normal; }
.board-v8 .hand-actions .phase-btn { position: static !important; width: 100% !important; height: auto !important; border-radius: 999px !important; padding: .7rem 1.2rem !important;
  font-size: .9rem !important; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; aspect-ratio: auto !important; transform: none; }
.board-v8 .hand-actions .phase-btn::before, .board-v8 .hand-actions .phase-btn::after { display: none !important; }
.board-v8 .hand-actions .phase-btn.nudge { animation: btn-nudge 1.6s ease-in-out infinite; }
.board-v8 .center-bar { justify-content: center; }
@media (max-width: 1250px) { .board-v8 .hand-actions { width: 200px; } }
/* hand squeezes as it grows (overlap computed in ui.js) */
.board-v8 .hand-row .hand-me { justify-content: center; overflow: visible; }
.board-v8 .hand-row .hand-me .hcard { flex: 0 0 var(--hw) !important; width: var(--hw); }
.board-v8 .hand-row .hand-me .hcard + .hcard { margin-left: var(--ov, calc(var(--hw) * -.12)) !important; }
.board-v8 .hand-row .hand-me .hcard:hover { z-index: 50; }
.board-runes { display: none !important; }
/* deck a bit smaller */
.board-v8 .pside .pile-deck { width: 50px; height: 70px; }
.board-v8 .pside .pile-deck b { right: -12px; bottom: -7px; font-size: .72rem; }
/* opponent's hand: bigger backs that peek out of the plate */
.board-v8 .pbar-opp { overflow: visible !important; }
.board-v8 .pbar .hand-opp { align-self: flex-start; height: 40px; margin: -2px 6px 0 10px !important; z-index: 3; }
.board-v8 .pbar .hand-opp .hcard { flex: 0 0 44px !important; width: 44px; height: 62px !important; margin-left: -18px; transform: translateY(var(--oy, 4px)) rotate(var(--orot, 0deg)); transition: transform .2s; }
.board-v8 .pbar .hand-opp .hcard:first-child { margin-left: 0; }
.board-v8 .pbar .hand-opp .hcard img { border-radius: 5px; box-shadow: 0 6px 14px rgba(0,0,0,.65); border: 1px solid rgba(226,212,255,.45); }
.board-v8 .pbar .hand-opp .hcard:nth-child(odd) { --orot: -4deg; } .board-v8 .pbar .hand-opp .hcard:nth-child(even) { --orot: 4deg; --oy: 7px; }

/* plates: CP bar stops where the field stops; the right end holds the opponent's hand */
.board-v8 .pbar .cp { flex: 1 1 auto; min-width: 0; }
.board-v8 .pbar .hand-opp { flex: 0 0 150px; width: 150px; justify-content: center; margin: -2px 0 0 14px !important; }
.board-v8 .pbar-me .cp { margin-right: 164px !important; }
.board-v8 .pbar .hand-opp .hcard { --orot: 0deg !important; --oy: 6px !important; margin-left: -20px; }
.board-v8 .pbar .hand-opp .hcard:first-child { margin-left: 0; }
/* decks hug the middle line, dead wallet next to the deck */
.board-v8 .pside { flex-direction: row !important; gap: 22px !important; }
.board-v8 .pside-opp { align-self: end; padding-bottom: 26px; }
.board-v8 .pside-me { align-self: start; padding-top: 8px; }
.board-v8 .pside .pile-deck { margin-bottom: 18px; }

/* ==========================================================
   COMBAT FX v2 — readable attacks, damage and destruction
   ========================================================== */
.tok.attacking img { box-shadow: 0 0 0 2px #fff4c2, 0 0 36px rgba(249,231,161,.8), 0 24px 40px rgba(0,0,0,.7) !important; }
.streak { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2450; filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 4px #fff); overflow: visible; }

/* impact: white flash + expanding ring */
.impact { position: fixed; width: 0; height: 0; z-index: 2460; pointer-events: none; }
.impact i, .impact b { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%,-50%); }
.impact i { width: 180px; height: 180px; background: radial-gradient(circle, #fff 0%, color-mix(in srgb, var(--ic) 70%, #fff) 20%, color-mix(in srgb, var(--ic) 50%, transparent) 45%, transparent 70%); mix-blend-mode: screen; animation: imp-flash .45s ease-out forwards; }
.impact b { width: 80px; height: 80px; border: 3px solid var(--ic); box-shadow: 0 0 20px var(--ic), inset 0 0 14px var(--ic); animation: imp-ring .6s cubic-bezier(.1,.7,.3,1) forwards; }
.impact.big i { width: 280px; height: 280px; }
.impact.big b { width: 120px; height: 120px; }
@keyframes imp-flash { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.2); } }
@keyframes imp-ring { 0% { opacity: 1; transform: translate(-50%,-50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(2.6); border-width: 1px; } }

/* clash: ATK vs DEF with a verdict */
.clash.v2 { padding: 10px 16px 8px; border-radius: 16px; font-size: 1rem; text-align: center; animation: clash-in 1.35s cubic-bezier(.2,1.2,.4,1) forwards;
  background: linear-gradient(180deg, rgba(10,12,34,.96), rgba(5,6,20,.96)); border: 1px solid rgba(249,231,161,.45); box-shadow: 0 16px 40px rgba(0,0,0,.7), 0 0 30px rgba(217,179,90,.25); }
.clash.v2 .cl-row { display: flex; align-items: center; gap: 12px; }
.clash.v2 .cl-a, .clash.v2 .cl-d { display: flex; flex-direction: column; align-items: center; font-size: 1.9rem; font-weight: 900; line-height: 1; transition: transform .3s; }
.clash.v2 small { font-size: .58rem; letter-spacing: .2em; font-weight: 800; margin-bottom: 3px; opacity: .8; }
.clash.v2 .cl-a { color: #ffcf8a; } .clash.v2 .cl-d { color: #cfc6f5; }
.clash.v2 .top { transform: scale(1.18); text-shadow: 0 0 16px currentColor; }
.clash.v2 .cl-vs { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #1d1405; background: var(--metal-gold); font-size: .9rem; box-shadow: 0 0 14px rgba(217,179,90,.6); }
.clash.v2 .cl-verdict { margin-top: 6px; font-size: .72rem; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }
.clash.v2.win { border-color: rgba(255,107,125,.7); } .clash.v2.win .cl-verdict { color: #ff8a96; }
.clash.v2.lose { border-color: rgba(120,160,255,.7); } .clash.v2.lose .cl-verdict { color: #8fb7ff; }
.clash.v2.even .cl-verdict { color: #cfc7ee; }
@keyframes clash-in { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.5); } 14% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); } 24% { transform: translate(-50%,-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-70%) scale(.96); } }

/* destroyed token: flash, crack and fall apart */
.tok.shatter { pointer-events: none; animation: shatter .56s cubic-bezier(.5,0,.75,0) forwards; z-index: 40; }
.tok.shatter img { animation: shatter-img .56s forwards; }
@keyframes shatter { 0% { transform: none; } 20% { transform: scale(1.06) rotate(-2deg); } 100% { transform: translateY(30px) scale(.7) rotate(8deg); opacity: 0; } }
@keyframes shatter-img { 0% { filter: none; } 18% { filter: brightness(3) saturate(0); } 40% { filter: brightness(.8) sepia(1) hue-rotate(-50deg) saturate(4); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% { filter: grayscale(1) brightness(.4); clip-path: polygon(0 0, 46% 0, 60% 38%, 40% 62%, 52% 100%, 0 100%); } }

/* CP damage: large number, shaking counter */
.float-num.big { font-size: 3.4rem !important; -webkit-text-stroke: 1.5px rgba(255,255,255,.85); }
.float-num.big.dmg { color: #ff4d63 !important; text-shadow: 0 6px 24px rgba(0,0,0,.9), 0 0 30px rgba(255,77,99,.7) !important; }
.float-num.big.heal { color: #5fd68f !important; text-shadow: 0 6px 24px rgba(0,0,0,.9), 0 0 30px rgba(95,214,143,.7) !important; }
.cp-val.hit { animation: cp-hit .5s; }
@keyframes cp-hit { 0% { transform: none; } 20% { transform: scale(1.25) translateX(-6px); filter: drop-shadow(0 0 14px #ff4d63); } 45% { transform: scale(1.1) translateX(5px); } 100% { transform: none; } }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 2440; animation: vig .75s ease-out forwards; }
.vignette.me { box-shadow: inset 0 0 160px 40px rgba(255,40,70,.55); }
.vignette.opp { box-shadow: inset 0 0 160px 30px rgba(249,231,161,.35); }
@keyframes vig { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

/* ==========================================================
   END SCREEN v2
   ========================================================== */
.gameover2 { position: fixed; inset: 0; z-index: 2800; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 16px;
  background: radial-gradient(ellipse 60% 50% at 50% 38%, rgba(111,76,177,.35), transparent 70%), rgba(4,5,16,.92); backdrop-filter: blur(6px); animation: go-fade .5s ease; }
.gameover2.victory { --gc: #e9bf55; }
.gameover2.defeat { --gc: #ff4d63; background: radial-gradient(ellipse 60% 50% at 50% 38%, rgba(140,20,40,.35), transparent 70%), rgba(4,4,10,.94); }
@keyframes go-fade { from { opacity: 0; } }
.go-rays { position: absolute; left: 50%; top: 34%; width: 1400px; height: 1400px; transform: translate(-50%,-50%); z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(color-mix(in srgb, var(--gc) 22%, transparent) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 55%); mask: radial-gradient(circle, #000 8%, transparent 55%); animation: go-spin 80s linear infinite; }
@keyframes go-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.defeat .go-rays { opacity: .35; }
.go-particles i { position: absolute; left: var(--x); width: 5px; height: 5px; border-radius: 50%; pointer-events: none; }
.victory .go-particles i { bottom: -10px; background: #fff4c2; box-shadow: 0 0 10px 3px rgba(249,231,161,.8); animation: spark-rise var(--t) linear infinite; animation-delay: var(--d); }
.defeat .go-particles i { top: -10px; width: 3px; height: 3px; background: #8a8aa0; opacity: .6; animation: ash-fall var(--t) linear infinite; animation-delay: var(--d); }
@keyframes ash-fall { to { transform: translate(30px, 110vh); opacity: 0; } }
.go-box { position: relative; width: min(680px, 100%); text-align: center; animation: go-rise .8s cubic-bezier(.2,1.1,.3,1) .1s both; }
@keyframes go-rise { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.go-emblem { position: relative; display: inline-block; margin-bottom: 1rem; }
.go-emblem .m-coin { width: 120px !important; height: 120px !important; margin: 0 auto !important; }
.go-emblem .m-coin .emblem { width: 62px; height: 62px; }
.go-emblem .emblem [fill^="url"] { fill: #fff; } .go-emblem .emblem [stroke^="url"] { stroke: #fff; }
.victory .go-emblem .m-coin { filter: grayscale(.85) brightness(.75); }
.go-slash { position: absolute; left: 50%; top: 50%; width: 170px; height: 6px; border-radius: 6px; transform: translate(-50%,-50%) rotate(-38deg) scaleX(0); background: linear-gradient(90deg, transparent, #fff4c2, #e9bf55, transparent);
  box-shadow: 0 0 20px rgba(249,231,161,.9); animation: go-slash .45s cubic-bezier(.2,.9,.2,1) .7s forwards; }
@keyframes go-slash { to { transform: translate(-50%,-50%) rotate(-38deg) scaleX(1); } }
.go-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: color-mix(in srgb, var(--gc) 60%, #fff); }
.go-headline { font-size: clamp(4rem, 11vw, 7.5rem); font-weight: 900; line-height: .95; margin: .4rem 0 .5rem; letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--gc) 45%, #fff) 35%, var(--gc) 55%, color-mix(in srgb, var(--gc) 50%, #000) 80%, color-mix(in srgb, var(--gc) 60%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px color-mix(in srgb, var(--gc) 45%, transparent));
  animation: go-headline 1s cubic-bezier(.2,.9,.3,1) .2s both; }
@keyframes go-headline { from { letter-spacing: .5em; opacity: 0; filter: blur(12px); } }
.defeat .go-headline { background: linear-gradient(180deg, #fff 0%, #d6d6e2 35%, #8d8da0 55%, #3d3d4c 80%, #b9b9c8 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 6px 30px rgba(255,77,99,.35)); }
.go-sub { color: #b9b6cc; font-size: .95rem; text-transform: capitalize; margin-bottom: 1.8rem; }
.go-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 1.6rem; }
.go-stat { display: flex; flex-direction: column; align-items: center; gap: .7rem; animation: go-rise .6s cubic-bezier(.2,1.2,.4,1) both; }
.go-stat:nth-child(1) { animation-delay: .5s; } .go-stat:nth-child(2) { animation-delay: .62s; } .go-stat:nth-child(3) { animation-delay: .74s; } .go-stat:nth-child(4) { animation-delay: .86s; }
.go-stat .m-coin { width: 84px !important; height: 84px !important; margin: 0 !important; }
.go-stat .m-coin::before { inset: 6px !important; }
.go-stat .m-coin b { font-size: 1.7rem; font-weight: 900; color: #fff; }
.go-stat .m-letter { font-size: .7rem; }
.go-reward { display: inline-flex; align-items: center; gap: 14px; text-align: left; padding: 10px 22px 10px 14px; border-radius: 16px; margin-bottom: 1.6rem;
  background: rgba(255,255,255,.04); border: 1px solid color-mix(in srgb, var(--gc) 40%, transparent); }
.go-reward img { width: 54px; transform: rotate(-8deg); filter: drop-shadow(0 8px 16px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(217,179,90,.4)); animation: tier-bob 3s ease-in-out infinite; }
.go-reward b { display: block; color: #fff; font-size: 1rem; }
.go-reward small { color: #b9b6cc; }
.go-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 575px) { .go-stats { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .go-rays, .go-particles i, .go-box, .go-headline, .go-stat, .go-slash, .tok.shatter, .tok.shatter img, .clash.v2 { animation-duration: .01s !important; } }
/* CP numbers: bigger, in gold for both players */
.board-v8 .pstat .cp-val b, .board-v8 .pstat-opp .cp-val b, .board-v8 .pstat-me .cp-val b {
  font-size: clamp(3rem, 4.2vw, 4.8rem) !important; font-weight: 900; line-height: .9; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff9df 0%, #f9e7a1 28%, #e9bf55 52%, #a8812e 78%, #f3dc8f 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 6px 18px rgba(217,179,90,.35)); }
.board-v8 .pstat .cp-val small { font-size: .8rem !important; letter-spacing: .34em; color: #e9cf8a !important; margin-top: 8px; }
/* CP number alone, a bit smaller */
.board-v8 .pstat .cp-val small { display: none !important; }
.board-v8 .pstat .cp-val b, .board-v8 .pstat-opp .cp-val b, .board-v8 .pstat-me .cp-val b { font-size: clamp(2.6rem, 3.5vw, 4rem) !important; }
.board-v8 .turn-txt { display: none !important; }

/* ==========================================================
   CP COIN — the Community Points as a minted gold coin; the opponent's coin is the direct-attack target
   ========================================================== */
.board-v8 .pstat { flex-direction: column; gap: 10px; position: relative; }
.board-v8 .pstat .cp-coin { --s: clamp(92px, 7.6vw, 128px); --ring: var(--me);
  position: relative; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0 1.2deg, rgba(0,0,0,.28) 1.2deg 2.4deg),
    conic-gradient(from 140deg, #f3dc8f, #6b4c14 25%, #fff4c2 50%, #6b4c14 75%, #f3dc8f);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 70%, #000), 0 0 0 5px color-mix(in srgb, var(--ring) 45%, transparent),
    0 18px 30px rgba(0,0,0,.7), 0 0 34px color-mix(in srgb, var(--ring) 30%, transparent);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s; }
.board-v8 .pstat-opp .cp-coin { --ring: var(--oc); }
.board-v8 .pstat .cp-coin::before { content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(0,0,0,.3) 78%, rgba(0,0,0,.5) 100%),
    radial-gradient(ellipse 70% 45% at 38% 22%, rgba(255,255,255,.55), transparent 60%),
    conic-gradient(from 225deg, #a8812e, #e9bf55 15%, #fff4c2 25%, #e9bf55 35%, #a8812e 50%, #6b4c14 65%, #a8812e 80%, #e9bf55 90%, #a8812e);
  box-shadow: 0 0 0 2px #f9e7a1, 0 0 0 3px #3d2a08, inset 0 3px 5px rgba(255,255,255,.4), inset 0 -6px 12px rgba(0,0,0,.45); }
.board-v8 .pstat .cp-coin .cp-val { position: relative; z-index: 1; }
.board-v8 .pstat .cp-coin .cp-val b, .board-v8 .pstat-opp .cp-coin .cp-val b, .board-v8 .pstat-me .cp-coin .cp-val b {
  font-size: calc(var(--s) * .36) !important; line-height: 1; letter-spacing: -.02em;
  background: none !important; color: #fff !important; -webkit-text-fill-color: #fff;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.7)) drop-shadow(0 2px 0 #5a3f0e) drop-shadow(0 4px 5px rgba(0,0,0,.55)) !important; }
/* direct attack target */
.board-v8 .direct-tag { display: none; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: #fff; background: linear-gradient(180deg, #ff6b7d, #c8243c); box-shadow: 0 6px 16px rgba(255,77,99,.45); }
.board-v8 .direct-tag b { font-size: .85rem; }
.board-v8 .pstat-opp.targetable { cursor: crosshair; }
.board-v8 .pstat-opp.targetable .direct-tag { display: inline-flex; animation: g-pop .35s cubic-bezier(.2,1.4,.4,1); }
.board-v8 .pstat-opp.targetable .cp-coin { animation: cp-target 1.1s ease-in-out infinite; }
.board-v8 .pstat-opp.targetable:hover .cp-coin { transform: scale(1.1); }
@keyframes cp-target { 0%, 100% { box-shadow: 0 0 0 3px #ff4d63, 0 0 0 6px rgba(255,77,99,.35), 0 18px 30px rgba(0,0,0,.7), 0 0 30px rgba(255,77,99,.45); }
  50% { box-shadow: 0 0 0 3px #ff8a96, 0 0 0 12px rgba(255,77,99,.18), 0 18px 30px rgba(0,0,0,.7), 0 0 60px rgba(255,77,99,.8); } }
.board-v8 .pstat .cp-coin.hit, .board-v8 .pstat .cp-val.hit { animation: cp-hit .5s; }

/* ==========================================================
   SACRIFICE DIALOG
   ========================================================== */
.tribute-box { position: fixed; inset: 0; z-index: 2600; display: grid; place-items: center; padding: 16px; background: rgba(4,5,16,.72); backdrop-filter: blur(5px); opacity: 0; transition: opacity .2s; }
.tribute-box.show { opacity: 1; }
.tr-panel { position: relative; display: flex; gap: 28px; align-items: stretch; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; border-radius: 24px;
  background: radial-gradient(ellipse 60% 60% at 15% 30%, rgba(255,77,99,.14), transparent 70%), linear-gradient(180deg, #13163a, #0a0c22);
  box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(249,231,161,.35); transform: translateY(16px) scale(.97); transition: transform .3s cubic-bezier(.2,1.2,.4,1); }
.tribute-box.show .tr-panel { transform: none; }
.tr-summon { flex: 0 0 230px; text-align: center; }
.tr-kicker { font-size: .7rem; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; color: #e9cf8a; margin-bottom: 10px; }
.tr-summon img { width: 100%; border-radius: 14px; box-shadow: 0 24px 50px rgba(0,0,0,.7), 0 0 40px rgba(217,179,90,.35); animation: tier-bob 4s ease-in-out infinite; }
.tr-name { font-size: 1.25rem; font-weight: 900; margin-top: 14px; color: #fff; }
.tr-lvl { font-size: .8rem; color: #b9b6cc; }
.tr-side { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 900; color: #fff; }
.tr-title > i { color: #ff6b7d; }
.tr-count { margin-left: auto; padding: 4px 12px; border-radius: 999px; font-size: .9rem; background: rgba(255,77,99,.15); border: 1px solid rgba(255,77,99,.5); color: #ff8a96; }
.tr-count.ok { background: rgba(95,214,143,.15); border-color: rgba(95,214,143,.6); color: #8fe8b0; }
.tr-sub { color: #b9b6cc; font-size: .88rem; margin: 4px 0 16px; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; flex: 1; align-content: start; }
.tr-card { position: relative; padding: 0; border: 0; background: none; border-radius: 12px; cursor: pointer; transition: transform .2s cubic-bezier(.2,.9,.3,1.3); }
.tr-card img { width: 100%; display: block; border-radius: 12px; box-shadow: 0 12px 24px rgba(0,0,0,.6); transition: filter .2s; }
.tr-card:hover { transform: translateY(-6px); }
.tr-card:hover img { box-shadow: 0 0 0 2px #f9e7a1, 0 16px 30px rgba(0,0,0,.6); }
.tr-stats { position: absolute; left: 6px; right: 6px; bottom: 8px; display: flex; justify-content: space-between; gap: 4px; }
.tr-stats b { font-size: .72rem; padding: 2px 7px; border-radius: 999px; background: rgba(5,6,20,.88); color: #ffcf8a; }
.tr-stats b + b { color: #cfc6f5; }
.tr-mark { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; opacity: 0; transition: opacity .2s; background: rgba(120,10,30,.45); }
.tr-mark i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: radial-gradient(circle at 35% 25%, #ff9aa6, #ff4d63 50%, #a01c32); box-shadow: 0 0 24px rgba(255,77,99,.8); }
.tr-card.on { transform: translateY(-4px) scale(.97); }
.tr-card.on img { filter: grayscale(.6) brightness(.7); box-shadow: 0 0 0 3px #ff4d63, 0 0 30px rgba(255,77,99,.6); }
.tr-card.on .tr-mark { opacity: 1; }
.tr-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
@media (max-width: 767px) { .tr-panel { flex-direction: column; } .tr-summon { flex: none; width: 160px; margin: 0 auto; } }
/* CP coin: smaller, with breathing room from the field */
.arena-main.board-v8 { grid-template-columns: 170px minmax(0, 1fr) 150px !important; column-gap: 26px !important; }
.board-v8 .pstat .cp-coin { --s: clamp(78px, 6.2vw, 108px); }
.board-v8 .pstat { justify-content: center; padding-left: 18px; }
@media (max-width: 1250px) { .arena-main.board-v8 { grid-template-columns: 110px minmax(0,1fr) 96px !important; column-gap: 14px !important; } .board-v8 .pstat { padding-left: 4px; } }
/* CP coin pushed to the left edge, more room before the field */
.board-v8 .pstat { align-items: flex-start !important; padding-left: 4px !important; }
.board-v8 .pstat-opp .direct-tag { align-self: flex-start; }
.arena-main.board-v8 { column-gap: 40px !important; }
@media (max-width: 1250px) { .arena-main.board-v8 { grid-template-columns: 96px minmax(0,1fr) 96px !important; column-gap: 24px !important; } .board-v8 .pstat .cp-coin { --s: 84px; } }
/* decks stay inside their margin, aligned to the right edge */
.arena-main.board-v8 { grid-template-columns: 170px minmax(0, 1fr) 190px !important; }
.board-v8 .pside { justify-content: flex-end !important; gap: 16px !important; padding-right: 6px; min-width: 0; }
.board-v8 .pside .pile-deck { margin-right: 10px; }
@media (max-width: 1250px) { .arena-main.board-v8 { grid-template-columns: 96px minmax(0,1fr) 150px !important; } .board-v8 .pside { gap: 10px !important; } }
.arena-main.board-v8 { grid-template-columns: 170px minmax(0, 1fr) 210px !important; }

/* ==========================================================
   LOBBY — full-screen "choose your opponent" stage
   ========================================================== */
body.arena-page:not(.in-game) .arcana-footer { display: none; }
body.arena-page .lobby { position: relative; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
body.arena-page .lobby::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 65%, rgba(111,76,177,.35), transparent 70%), radial-gradient(ellipse 50% 40% at 50% 100%, rgba(217,179,90,.12), transparent 70%); }
body.arena-page .lobby .page-hero { padding: 104px 0 18px; flex: none; }
body.arena-page .lobby .page-hero-title { font-size: clamp(2.4rem, 4.6vw, 4rem); margin-bottom: .4rem; }
body.arena-page .lobby > .container-xl { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 4vh !important; max-width: 1500px; }
body.arena-page .lobby .row.g-4 { --bs-gutter-x: 2rem; align-items: stretch; }
body.arena-page .lobby .opponent-card { min-height: min(62vh, 600px); justify-content: center; padding: 3rem 2rem 2.4rem; }
body.arena-page .lobby .opponent-card .opp-medal { width: clamp(130px, 11vw, 170px); height: clamp(130px, 11vw, 170px); margin-bottom: 1.6rem; }
body.arena-page .lobby .opponent-card .opp-medal .emblem { width: 46%; height: 46%; }
body.arena-page .lobby .opponent-card .h4 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); }
body.arena-page .lobby .opponent-card .opp-level { font-size: .85rem; }
body.arena-page .lobby .opponent-card p { font-size: 1.05rem; flex: 0 0 auto; }
body.arena-page .lobby .opponent-card .opp-cta { font-size: .8rem; padding: .6rem 1.4rem; margin-top: .6rem; }
body.arena-page .lobby .opponent-card:hover { transform: translateY(-12px) scale(1.02); }
@media (max-width: 767px) { body.arena-page .lobby .opponent-card { min-height: 0; } body.arena-page .lobby { min-height: 0; } }
/* play page: no site header, you are already in the game */
body.arena-page .arcana-nav { display: none !important; }
body.arena-page { padding-top: 0 !important; }
.lobby-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; }
.lobby-logo img { height: 42px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.lobby-exit { display: inline-flex; align-items: center; gap: 8px; padding: .45rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #d8d3ea; text-decoration: none;
  background: rgba(10,13,35,.6); border: 1px solid rgba(217,179,90,.3); backdrop-filter: blur(6px); transition: color .2s, border-color .2s, background .2s; }
.lobby-exit:hover { color: #fff; border-color: #e9bf55; background: rgba(217,179,90,.12); }
body.arena-page .lobby .page-hero { margin-top: 0; padding: 74px 0 10px; }
/* opponents fit any screen height */
body.arena-page .lobby .opponent-card { min-height: min(58vh, 600px); padding: clamp(1.4rem, 3vh, 3rem) 2rem clamp(1.2rem, 2.6vh, 2.4rem); }
body.arena-page .lobby .opponent-card .opp-medal { width: min(11vw, 19vh, 170px); height: min(11vw, 19vh, 170px); margin-bottom: clamp(.8rem, 2vh, 1.6rem); }
@media (max-height: 760px) { body.arena-page .lobby .page-hero-sub, body.arena-page .lobby .page-hero .eyebrow { display: none; } }
body.arena-page .arcana-main { padding-top: 0 !important; min-height: 100vh; }

/* ==========================================================
   LOBBY v2 — standing inside the arena
   ========================================================== */
body.arena-page .lobby { background: radial-gradient(ellipse 80% 60% at 50% 0%, #241a5c 0%, #0d1033 45%, #05060f 100%); }
body.arena-page .lobby::before { display: none; }
.arena-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* stage lights from the roof */
.as-beams i { position: absolute; top: -10%; width: 22vw; height: 110%; transform-origin: 50% 0; opacity: .5; filter: blur(14px); mix-blend-mode: screen;
  background: linear-gradient(180deg, rgba(255,244,194,.35), rgba(155,123,224,.12) 55%, transparent 85%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); animation: beam-sway 9s ease-in-out infinite; }
.as-beams i:nth-child(1) { left: 2%; transform: rotate(-22deg); animation-delay: -2s; }
.as-beams i:nth-child(2) { left: 20%; transform: rotate(-10deg); opacity: .35; animation-delay: -5s; }
.as-beams i:nth-child(3) { left: 39%; transform: rotate(0deg); opacity: .6; background: linear-gradient(180deg, rgba(255,244,194,.45), rgba(217,179,90,.15) 55%, transparent 85%); }
.as-beams i:nth-child(4) { left: 58%; transform: rotate(10deg); opacity: .35; animation-delay: -3s; }
.as-beams i:nth-child(5) { left: 76%; transform: rotate(22deg); animation-delay: -7s; }
@keyframes beam-sway { 50% { rotate: 4deg; opacity: .3; } }
/* the duel floor: a gold-framed board seen in perspective */
.as-floor { position: absolute; left: 50%; bottom: -18vh; width: 150vw; height: 78vh; transform: translateX(-50%); perspective: 900px; }
.as-board { position: absolute; inset: 0; transform: rotateX(68deg); transform-origin: 50% 100%; border-radius: 40px;
  background:
    repeating-linear-gradient(90deg, rgba(217,179,90,.10) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(217,179,90,.10) 0 1px, transparent 1px 120px),
    radial-gradient(ellipse 50% 45% at 50% 40%, rgba(111,76,177,.55), transparent 70%),
    linear-gradient(180deg, #161b52, #0a0c26);
  box-shadow: 0 0 0 3px rgba(233,191,85,.55), 0 0 80px rgba(217,179,90,.25), inset 0 0 160px rgba(0,0,0,.6);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 30%); mask: linear-gradient(180deg, transparent 0%, #000 30%); }
.as-ring { position: absolute; left: 50%; top: 42%; width: 46vw; height: 46vw; transform: translate(-50%,-50%); border-radius: 50%;
  border: 2px solid rgba(233,191,85,.5); box-shadow: 0 0 40px rgba(217,179,90,.35), inset 0 0 40px rgba(217,179,90,.2);
  background: repeating-conic-gradient(rgba(233,191,85,.22) 0 1deg, transparent 1deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); animation: as-spin 80s linear infinite; }
.as-ring.r2 { width: 30vw; height: 30vw; border-style: dashed; animation-direction: reverse; animation-duration: 50s; -webkit-mask: none; mask: none; background: none; }
@keyframes as-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.as-fog { position: absolute; left: 0; right: 0; bottom: 0; height: 40vh; background: linear-gradient(0deg, rgba(5,6,15,.95), rgba(5,6,15,.5) 40%, transparent); }
.as-embers i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px 2px rgba(255,190,90,.8);
  opacity: 0; animation: spark-rise var(--t) linear infinite; animation-delay: var(--d); }

/* heading */
body.arena-page .lobby .page-hero { display: none; }
.lobby-head { position: relative; z-index: 2; text-align: center; padding: 84px 16px 0; }
.lh-kicker { display: inline-flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 900; letter-spacing: .4em; text-transform: uppercase; color: #e9cf8a; }
.lh-kicker span { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, #e9bf55); }
.lh-kicker span:last-child { transform: scaleX(-1); }
.lh-title { font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-weight: 900; line-height: 1.05; margin: .4rem 0 .3rem; color: #fff; text-shadow: 0 8px 40px rgba(0,0,0,.8); }
.lh-title span { background: var(--metal-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lh-sub { color: #b9b6cc; font-size: .95rem; margin: 0; }
.lobby-body { position: relative; z-index: 2; }

/* champions standing on pedestals, each under its own coloured spotlight */
.opp-slot { position: relative; display: flex; flex-direction: column; align-items: center; }
.opp-beam { position: absolute; left: 50%; top: -40vh; width: 120%; height: calc(100% + 40vh); transform: translateX(-50%); z-index: -1; pointer-events: none; opacity: .25; transition: opacity .5s;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--oc) 30%, transparent) 60%, color-mix(in srgb, var(--oc) 10%, transparent) 100%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(10px); }
.opp-slot:hover .opp-beam { opacity: .85; }
body.arena-page .lobby .opponent-card { width: 100%; background: linear-gradient(180deg, rgba(17,20,46,.82), rgba(8,10,26,.9)) !important; backdrop-filter: blur(6px); }
.opp-pedestal { position: relative; width: 78%; height: 34px; margin-top: -6px; border-radius: 50%; z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--oc) 55%, #fff) 0%, var(--oc) 25%, color-mix(in srgb, var(--oc) 30%, #000) 60%, transparent 72%);
  filter: blur(2px); opacity: .55; transition: opacity .4s, transform .4s; }
.opp-pedestal::after { content: ""; position: absolute; inset: 30% 10%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--oc) 70%, #fff); box-shadow: 0 0 18px var(--oc); }
.opp-slot:hover .opp-pedestal { opacity: 1; transform: scaleX(1.08); }
body.arena-page .lobby .opponent-card:hover { transform: translateY(-14px) scale(1.02); }
@media (max-height: 760px) { .lh-sub { display: none; } .lobby-head { padding-top: 70px; } }
@media (prefers-reduced-motion: reduce) { .as-beams i, .as-ring, .as-embers i { animation: none; } }
.as-floor { bottom: -6vh; height: 70vh; } .as-fog { height: 18vh; background: linear-gradient(0deg, rgba(5,6,15,.8), transparent); }

/* ==========================================================
   OPPONENTS AS METAL TRADING CARDS
   ========================================================== */
body.arena-page .lobby .row.g-4 { --bs-gutter-x: clamp(1.2rem, 3vw, 3.5rem); justify-content: center; }
body.arena-page .lobby .opp-slot { flex: 0 0 auto; width: auto; perspective: 1200px; }
body.arena-page .lobby .opponent-card.metal-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  --m1: color-mix(in srgb, var(--oc) 35%, #fff); --m2: color-mix(in srgb, var(--oc) 70%, #c8c8d0); --m3: color-mix(in srgb, var(--oc) 75%, #3a3a44); --m4: color-mix(in srgb, var(--oc) 45%, #0b0b12); --m5: color-mix(in srgb, var(--oc) 20%, #050508);
  position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0;
  height: min(60vh, 560px); width: auto; aspect-ratio: 5 / 7; min-height: 0 !important; padding: 16px !important; border-radius: 22px; overflow: visible;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .4s, filter .4s;
  /* brushed metal frame (outer) + dark card body (inner) */
  background:
    linear-gradient(180deg, #11142e, #080a1c) padding-box,
    conic-gradient(from 210deg, var(--m4), var(--m1) 8%, var(--m3) 18%, var(--m5) 30%, var(--m2) 45%, var(--m4) 58%, var(--m1) 70%, var(--m3) 82%, var(--m5) 92%, var(--m4)) border-box !important;
  border: 10px solid transparent !important;
  box-shadow: 0 30px 60px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08), 0 0 40px color-mix(in srgb, var(--oc) 22%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--m1) 50%, transparent) !important; }
body.arena-page .lobby .opponent-card.metal-card::before, body.arena-page .lobby .opponent-card.metal-card::after { display: none !important; }
body.arena-page .lobby .opponent-card.metal-card:hover { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px) scale(1.03) !important;
  box-shadow: 0 40px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12), 0 0 70px color-mix(in srgb, var(--oc) 45%, transparent), inset 0 0 0 1px var(--m1) !important; }
/* holographic sheen following the pointer */
.mc-shine { position: absolute; inset: -10px; border-radius: 22px; pointer-events: none; z-index: 5; mix-blend-mode: color-dodge; opacity: .25; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 40%),
              linear-gradient(115deg, transparent 25%, color-mix(in srgb, var(--oc) 40%, #fff) 45%, transparent 60%); }
.metal-card:hover .mc-shine { opacity: .6; }
/* engraved corner ornaments */
.mc-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--m2); pointer-events: none; z-index: 2; opacity: .8; }
.mc-corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.mc-corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.mc-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.mc-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
/* header line: difficulty + pips */
.mc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 4px 10px 0; }
body.arena-page .lobby .metal-card .opp-level { margin: 0 !important; font-size: .78rem; }
body.arena-page .lobby .metal-card .opp-pips { margin: 0 !important; display: flex; gap: 6px; }
/* art window: the coin in a lit recess */
.mc-art { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; margin: 10px 0 12px; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--oc) 35%, #1a1640) 0%, #0c0f29 60%, #05060f 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m2) 45%, transparent), inset 0 10px 30px rgba(0,0,0,.6); }
.mc-art::before { content: ""; position: absolute; inset: -30%; background: repeating-conic-gradient(color-mix(in srgb, var(--oc) 18%, transparent) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 15%, transparent 60%); mask: radial-gradient(circle, #000 15%, transparent 60%); animation: rune-spin 60s linear infinite; }
body.arena-page .lobby .metal-card .opp-medal { position: relative; z-index: 1; width: min(62%, 170px) !important; height: auto !important; aspect-ratio: 1; margin: 0 !important; }
/* name plate: metal bar */
.mc-plate { width: calc(100% + 12px); padding: 8px 12px; border-radius: 10px; text-align: center;
  background: linear-gradient(180deg, var(--m1), var(--m2) 40%, var(--m3) 60%, var(--m4));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 4px rgba(0,0,0,.4), 0 6px 14px rgba(0,0,0,.5); }
body.arena-page .lobby .metal-card .mc-plate .h4 { margin: 0 !important; font-size: clamp(1.15rem, 1.7vw, 1.6rem) !important; font-weight: 900; color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,.4), 0 2px 3px rgba(0,0,0,.6); }
body.arena-page .lobby .metal-card .mc-plate .h4::after { display: none; }
body.arena-page .lobby .metal-card p { margin: 12px 6px 12px !important; font-size: .92rem; flex: 0 0 auto; text-align: center; color: #cfcbe0 !important; }
body.arena-page .lobby .metal-card .opp-cta { margin-top: auto; margin-bottom: 4px; }
@media (max-width: 991px) { body.arena-page .lobby .opp-slot { width: 100%; } body.arena-page .lobby .opponent-card.metal-card { height: auto; width: min(360px, 100%); aspect-ratio: auto; } }

/* ==========================================================
   LOBBY BACKGROUND v3 — a real arena: back wall, tiered stands, crowd flashes, vignette
   ========================================================== */
body.arena-page .lobby { background: radial-gradient(ellipse 90% 70% at 50% 20%, #2a1f6b 0%, #120f3d 40%, #06071a 75%, #030409 100%); }
/* back wall: tall pillars with gold trims, dimly lit */
.as-wall { position: absolute; left: 0; right: 0; top: 0; height: 62%;
  background:
    linear-gradient(180deg, rgba(3,4,12,.0) 0%, rgba(3,4,12,.0) 55%, #05060f 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9vw, rgba(0,0,0,.25) 9vw calc(9vw + 26px), transparent calc(9vw + 26px) 12vw),
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(155,123,224,.25), transparent 70%);
  -webkit-mask: radial-gradient(ellipse 80% 100% at 50% 0%, #000 50%, transparent 100%); mask: radial-gradient(ellipse 80% 100% at 50% 0%, #000 50%, transparent 100%); }
.as-wall::after { content: ""; position: absolute; left: 4%; right: 4%; top: 62%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(233,191,85,.55) 20%, #f9e7a1 50%, rgba(233,191,85,.55) 80%, transparent); box-shadow: 0 0 18px rgba(217,179,90,.5); }
/* tiered stands curving around the floor */
.as-stands { position: absolute; left: -10%; right: -10%; top: 30%; height: 56%; }
.st-row { position: absolute; left: 0; right: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-top: 2px solid rgba(233,191,85,.28);
  background: linear-gradient(180deg, rgba(20,18,60,.9), rgba(8,9,28,.95) 40%, transparent); box-shadow: 0 -10px 40px rgba(111,76,177,.18); }
.st-row.r1 { top: 0; height: 100%; opacity: .55; }
.st-row.r2 { top: 16%; height: 84%; opacity: .75; border-top-color: rgba(233,191,85,.38); }
.st-row.r3 { top: 32%; height: 68%; opacity: .95; border-top-color: rgba(233,191,85,.5); box-shadow: 0 -6px 30px rgba(217,179,90,.15); }
/* crowd camera flashes twinkling in the stands */
.st-flash { position: absolute; left: 6%; right: 6%; top: 2%; height: 40%; }
.st-flash i { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 8px 2px rgba(255,255,255,.8); animation: crowd-flash var(--t) ease-in-out infinite; animation-delay: var(--d); }
.st-flash i:nth-child(3n) { background: #f9e7a1; box-shadow: 0 0 8px 2px rgba(249,231,161,.8); }
.st-flash i:nth-child(5n) { background: #c9b6ff; box-shadow: 0 0 8px 2px rgba(190,160,255,.8); }
@keyframes crowd-flash { 0%, 88%, 100% { opacity: 0; transform: scale(.5); } 92% { opacity: 1; transform: scale(1.6); } 95% { opacity: .2; } }
/* floor sits in front of the stands */
.as-floor { z-index: 1; }
.as-fog { z-index: 2; }
.as-beams { z-index: 3; }
.as-embers { z-index: 4; }
/* frame the scene */
.as-vignette { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(2,3,10,.75) 100%); }
@media (prefers-reduced-motion: reduce) { .st-flash i { animation: none; opacity: .3; } }
/* canvas arena background */
#arenaBg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arena-scene .as-vignette { z-index: 1; background: radial-gradient(ellipse 80% 75% at 50% 48%, transparent 55%, rgba(2,3,10,.7) 100%); }
body.arena-page .lobby { background: #05060f; }

/* PLAY: the main call-to-action of the header */
.nav-play { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: .55rem 1.5rem; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-weight: 900; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: #1d1405 !important; text-decoration: none;
  background: linear-gradient(180deg, #fff4c2 0%, #f3dc8f 30%, #e9bf55 55%, #a8812e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 4px rgba(0,0,0,.25), 0 0 0 1px rgba(249,231,161,.6), 0 6px 20px rgba(217,179,90,.45), 0 0 30px rgba(217,179,90,.3);
  transition: transform .2s, box-shadow .3s; animation: play-glow 2.6s ease-in-out infinite; }
.nav-play::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%); background-size: 250% 100%; animation: play-sheen 3.2s ease-in-out infinite; }
.nav-play:hover { transform: translateY(-2px) scale(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px #fff4c2, 0 10px 30px rgba(217,179,90,.6), 0 0 50px rgba(217,179,90,.5); }
.nav-play i { font-size: 1.05rem; }
@keyframes play-glow { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 4px rgba(0,0,0,.25), 0 0 0 1px rgba(249,231,161,.8), 0 6px 26px rgba(217,179,90,.6), 0 0 46px rgba(217,179,90,.5); } }
@keyframes play-sheen { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@media (max-width: 991px) { .nav-play { margin: 8px 0; } }
@media (prefers-reduced-motion: reduce) { .nav-play, .nav-play::after { animation: none; } }
/* darker arena: the cards and the title come first */
.arena-scene::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 18%, rgba(3,4,12,.55), transparent 75%), rgba(3,4,12,.42); }
.arena-scene .as-vignette { z-index: 3; background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 45%, rgba(2,3,10,.85) 100%); }
.lh-title { text-shadow: 0 6px 30px rgba(0,0,0,.95), 0 0 60px rgba(0,0,0,.8); }
/* hero facts: centred, a little bigger */
.cine-facts { justify-content: center; text-align: center; gap: 0; margin-top: 2.4rem; max-width: 560px; }
.cine-facts div { flex: 1; font-size: .82rem; padding: 0 1.6rem; }
.cine-facts div + div { padding-left: 1.6rem; }
.cine-facts b { font-size: 2.6rem; }
/* hero card a bit bigger */
.cine-stage.solo { height: 680px; }
.cine-stage.solo .fan-card { width: 350px; margin: -243px 0 0 -175px; }
.cine-stage.solo .floor-glow { margin-top: 270px; width: 420px; margin-left: -210px; }
@media (max-width: 1399px) { .cine-stage.solo .fan-card { width: 320px; margin: -222px 0 0 -160px; } }
/* hero facts: block stuck to the left edge, each figure centred in its column */
.cine-facts { justify-content: flex-start; max-width: none; }
.cine-facts div { flex: 0 0 auto; min-width: 7.5rem; padding: 0 1.4rem; text-align: center; }
.cine-facts div:first-child { padding-left: 0; min-width: 6rem; }
/* hero: less empty space on top, the facts stay above the fold */
.cine-hero { padding: 8px 0 44px !important; min-height: calc(100vh - 72px); }
.cine-stage.solo { height: min(640px, calc(100vh - 150px)); }
.cine-hero .eyebrow { margin-bottom: .2rem; }
.cine-title { margin-bottom: .8rem !important; }
.cine-facts { margin-top: 1.6rem !important; }
.hero-urgency { margin-top: 12px; }
.cine-hero { align-items: flex-start !important; padding-top: clamp(24px, 6vh, 70px) !important; }
.cine-hero { padding-top: 12px !important; }
.cine-hero { align-items: center !important; padding-top: 0 !important; padding-bottom: 64px !important; }
.cine-hero { padding-top: 56px !important; padding-bottom: 40px !important; }

/* Arena lobby: modes (Practice / Campaign / Tournament), locked and beaten opponents */
body.arena-page .lobby .mode-card .mc-head { justify-content: center; }
body.arena-page .lobby .opponent-card.metal-card.is-disabled,
body.arena-page .lobby .opponent-card.metal-card.is-locked { filter: grayscale(1) brightness(.6); cursor: not-allowed; }
body.arena-page .lobby .opponent-card.metal-card.is-disabled:hover,
body.arena-page .lobby .opponent-card.metal-card.is-locked:hover { transform: none !important; }
.opp-slot:has(.is-disabled) .opp-beam, .opp-slot:has(.is-locked) .opp-beam,
.opp-slot:has(.is-disabled) .opp-pedestal, .opp-slot:has(.is-locked) .opp-pedestal { opacity: 0 !important; }
body.arena-page .lobby .is-disabled .opp-cta, body.arena-page .lobby .is-locked .opp-cta { opacity: 1; letter-spacing: .06em; text-transform: none; font-size: .82rem; color: #d8d6e6; }
.opp-badge { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: none; place-items: center; font-size: 1.1rem;
  background: rgba(8, 10, 28, .85); border: 1px solid color-mix(in srgb, var(--oc) 60%, transparent); color: #fff; }
.is-locked .opp-badge, .is-beaten .opp-badge { display: grid; }
.is-beaten .opp-badge { background: var(--oc); color: #0c0f29; }
.lobby:not([data-mode="campaign"]) .camp-only { display: none !important; }

/* Sound on/off (shop and Arena): small round button, bottom left */
.sound-toggle { position: fixed; left: 14px; bottom: 14px; z-index: 1080; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 15, 41, .82); border: 1px solid rgba(233, 191, 85, .45); color: #e9cf8a; font-size: 1.05rem; backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transition: transform .2s, border-color .2s; }
.sound-toggle:hover { transform: scale(1.08); border-color: #e9bf55; }
.sound-toggle[aria-pressed="false"] { color: #8a87a3; border-color: rgba(255, 255, 255, .18); }
body.in-game .sound-toggle { bottom: auto; top: 10px; left: 10px; }

/* End of duel: outcome note and Quit button */
.go-note { display: inline-flex; align-items: center; gap: 16px; text-align: left; max-width: 520px; margin: 0 auto 1.8rem; padding: 14px 24px 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(233, 191, 85, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(233, 191, 85, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.gameover2.defeat .go-note { background: linear-gradient(135deg, rgba(255, 77, 99, .1), rgba(255, 255, 255, .03)); border-color: rgba(255, 77, 99, .35); }
.go-note > i { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; color: #1d1405;
  background: linear-gradient(180deg, #fff4c2, #e9bf55 60%, #b08a33); box-shadow: 0 4px 14px rgba(233, 191, 85, .35); }
.gameover2.defeat .go-note > i { color: #fff; background: linear-gradient(180deg, #ff8a9a, #ff4d63 60%, #a8283a); box-shadow: 0 4px 14px rgba(255, 77, 99, .35); }
.go-note b { display: block; color: #fff; font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; }
.go-note small { display: block; color: #cfcbe0; font-size: .92rem; line-height: 1.4; margin-top: 2px; }
.go-quit { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.8rem; border-radius: 999px; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
  color: #e9cf8a; text-decoration: none; background: rgba(12, 15, 41, .7); border: 1.5px solid rgba(233, 191, 85, .55); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .4); transition: background .25s, color .25s, transform .2s, border-color .25s; }
.go-quit:hover { color: #1d1405; background: linear-gradient(180deg, #fff4c2, #e9bf55); border-color: #e9bf55; transform: translateY(-2px); }
.go-quit i { font-size: 1.15rem; }

/* ===================== Campaign: the saga map (8 chapters, snake path) ===================== */
.saga-keys { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -6px 0 26px; color: #cfcbe0; font-size: .9rem; }
.saga-keys b { color: #fff; margin-left: 6px; }
.saga-keys .sk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.saga-keys .sk.on { color: #1d1405; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); border-color: transparent;
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
.saga-map { --gap: 34px; list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.saga-node:nth-child(5) { grid-row: 2; grid-column: 4; } .saga-node:nth-child(6) { grid-row: 2; grid-column: 3; }
.saga-node:nth-child(7) { grid-row: 2; grid-column: 2; } .saga-node:nth-child(8) { grid-row: 2; grid-column: 1; }
.saga-node { position: relative; display: flex; flex-direction: column; border-radius: 18px; cursor: pointer; outline: none;
  background: linear-gradient(180deg, #151236, #0a0a20) padding-box,
    linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 30%, #000) 60%, color-mix(in srgb, var(--c) 70%, #fff)) border-box;
  border: 2px solid transparent; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); transition: transform .3s, box-shadow .3s, filter .3s; }
.saga-node:hover, .saga-node:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(0, 0, 0, .6), 0 0 34px color-mix(in srgb, var(--c) 45%, transparent); }
/* the path between chapters: gold where the player has walked, faint dashes ahead */
.saga-node::after { content: ""; position: absolute; z-index: -1; border-color: rgba(255, 255, 255, .16); border-style: dashed; border-width: 0; }
.saga-node:nth-child(-n+3)::after { left: 100%; top: 50%; width: var(--gap); border-top-width: 3px; }
.saga-node:nth-child(4)::after { top: 100%; left: 50%; height: var(--gap); border-left-width: 3px; }
.saga-node:nth-child(n+5):nth-child(-n+7)::after { right: 100%; top: 50%; width: var(--gap); border-top-width: 3px; }
.saga-node.is-beaten::after { border-style: solid; border-color: #e9bf55; filter: drop-shadow(0 0 6px rgba(233, 191, 85, .8)); }
.sn-art { position: relative; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 35%, #14113a), #08081a 75%); }
.sn-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s; }
.saga-node:hover .sn-art img { transform: scale(1.06); }
.sn-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 8, 26, .85)); }
.sn-medal { --t: var(--c); --oc: var(--c); width: 46% !important; height: auto !important; aspect-ratio: 1; margin: 0 !important;
  --m1: color-mix(in srgb, var(--c) 35%, #fff); --m2: color-mix(in srgb, var(--c) 70%, #c8c8d0); --m3: color-mix(in srgb, var(--c) 75%, #3a3a44); --m4: color-mix(in srgb, var(--c) 45%, #0b0b12); --m5: color-mix(in srgb, var(--c) 20%, #050508); }
.sn-medal .emblem { width: 52%; height: 52%; }
.sn-badge { position: absolute; z-index: 2; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem;
  background: rgba(8, 10, 28, .85); border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.sn-txt { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.sn-txt small { font-size: .66rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 75%, #fff); }
.sn-txt b { color: #fff; font-size: 1.12rem; font-weight: 900; line-height: 1.2; }
.sn-boss { color: #b9b4d4; font-size: .85rem; }
.sn-stars { margin-top: 4px; display: flex; gap: 2px; font-size: .72rem; color: #e9bf55; }
.sn-stars .bi-star { color: rgba(255, 255, 255, .2); }
/* states */
.saga-node.is-beaten .sn-badge { color: #1d1405; border: 0; background: radial-gradient(circle at 35% 30%, #fff9df, #e9bf55 55%, #8a6a24); box-shadow: 0 0 14px rgba(233, 191, 85, .7); }
.saga-node.is-next { animation: sn-call 2.4s ease-in-out infinite; }
.saga-node.is-next .sn-badge { color: #1d1405; border: 0; background: var(--c); box-shadow: 0 0 16px var(--c); }
.saga-node.is-next .sn-txt small::after { content: " · Your next challenge"; color: #fff; letter-spacing: .12em; }
.saga-node.is-locked { cursor: not-allowed; filter: saturate(.15) brightness(.55); }
.saga-node.is-locked:hover { transform: none; }
.saga-node.is-locked .sn-art img { filter: blur(6px) grayscale(1); transform: scale(1.15); }
.saga-node.is-locked .sn-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 60%, rgba(160, 160, 200, .25), rgba(20, 20, 40, .7)); }
.saga-done { margin: 30px auto 0; text-align: center; color: #f3dc8f; font-weight: 700; }
@keyframes sn-call { 0%, 100% { box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 0 color-mix(in srgb, var(--c) 0%, transparent); }
  50% { box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 34px 4px color-mix(in srgb, var(--c) 55%, transparent); } }
@media (max-width: 991px) {
  .saga-map { grid-template-columns: repeat(2, 1fr); --gap: 26px; }
  .saga-node:nth-child(n) { grid-row: auto; grid-column: auto; }
  .saga-node:nth-child(n)::after { display: none; }
}
@media (max-width: 575px) { .saga-map { grid-template-columns: 1fr; max-width: 360px; } }
@media (prefers-reduced-motion: reduce) { .saga-node.is-next { animation: none; } }

/* ===================== Campaign: the story page before a duel ===================== */
.story-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; }
.story-backdrop { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--c) 18%, rgba(10, 8, 30, .8)), rgba(3, 4, 12, .94) 70%);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.story-box { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px;
  background: linear-gradient(180deg, #16123d, #0a0a22) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 25%, #000) 55%, color-mix(in srgb, var(--c) 75%, #fff)) border-box;
  border: 2px solid transparent; box-shadow: 0 40px 120px rgba(0, 0, 0, .75), 0 0 80px color-mix(in srgb, var(--c) 25%, transparent);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s, transform .45s cubic-bezier(.2, 1, .3, 1); }
.story-modal.show .story-backdrop { opacity: 1; }
.story-modal.show .story-box { opacity: 1; transform: none; }
.story-art { position: relative; min-height: 420px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 40%, #14113a), #06061a 75%); }
.story-art #storyArt { position: absolute; inset: 0; display: grid; place-items: center; }
.story-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; animation: story-zoom 14s ease-in-out infinite alternate; }
.story-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #13103a), linear-gradient(180deg, transparent 60%, rgba(10, 10, 34, .7)); }
.story-medal { --t: var(--c); width: 52% !important; height: auto !important; aspect-ratio: 1; margin: 0 !important;
  --m1: color-mix(in srgb, var(--c) 35%, #fff); --m2: color-mix(in srgb, var(--c) 70%, #c8c8d0); --m3: color-mix(in srgb, var(--c) 75%, #3a3a44); --m4: color-mix(in srgb, var(--c) 45%, #0b0b12); --m5: color-mix(in srgb, var(--c) 20%, #050508); }
.story-medal .emblem { width: 55%; height: 55%; }
.story-chapter { position: absolute; z-index: 2; left: 18px; bottom: 16px; padding: 6px 14px; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .24em; text-transform: uppercase;
  color: #1d1405; background: linear-gradient(180deg, #fff4c2, #e9bf55); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.story-body { padding: 34px 34px 28px; display: flex; flex-direction: column; }
.story-kicker { font-size: .7rem; font-weight: 900; letter-spacing: .26em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #fff); }
.story-title { margin: 6px 0 14px; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 900; line-height: 1.05; color: #fff; }
.story-intro { color: #d6d2e8; font-size: 1.02rem; line-height: 1.6; margin: 0 0 18px; }
.story-quote { position: relative; margin: 0 0 18px; padding: 14px 18px 12px 22px; border-radius: 14px; background: rgba(255, 255, 255, .04);
  border-left: 3px solid var(--c); }
.story-quote p { margin: 0; color: #fff; font-size: 1.08rem; font-style: italic; font-weight: 500; }
.story-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .82rem; font-weight: 800; letter-spacing: .06em; color: color-mix(in srgb, var(--c) 75%, #fff); }
.story-quote cite::before { content: "— "; }
.story-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; font-size: .85rem; color: #b9b4d4; }
.story-meta i { color: color-mix(in srgb, var(--c) 70%, #fff); margin-right: 4px; }
.story-meta .sm-stars i { color: #e9bf55; margin: 0; } .story-meta .sm-stars .bi-star { color: rgba(255, 255, 255, .2); }
.story-body .duel-deck { margin-bottom: 16px; }
.story-body #startGame { margin-top: auto; }
.story-box .duel-x { position: absolute; z-index: 3; top: 12px; right: 12px; }
@keyframes story-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (max-width: 767px) {
  .story-box { grid-template-columns: 1fr; }
  .story-art { min-height: 220px; }
  .story-art::after { background: linear-gradient(180deg, transparent 50%, #13103a); }
  .story-body { padding: 22px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .story-art img { animation: none; } }

/* duel: boss portrait in the opponent plate, story note at the end */
#oppAvatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: inherit; }
.go-note.story { --kc: #e9bf55; max-width: 600px; border-color: color-mix(in srgb, var(--kc) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--kc) 16%, transparent), rgba(255, 255, 255, .03)); }
.go-note.story > i { background: radial-gradient(circle at 35% 30%, #fff, var(--kc) 55%, color-mix(in srgb, var(--kc) 55%, #000)); }
.go-note .go-next { display: block; margin-top: 6px; color: #fff; }

/* until the chapter illustrations exist, the boss's card is cropped to its artwork (no frame, no text) */
.sn-art img.is-card { transform: scale(1.75); transform-origin: 50% 36%; object-position: 50% 0; }
.saga-node:hover .sn-art img.is-card { transform: scale(1.85); }
.saga-node.is-locked .sn-art img.is-card { transform: scale(1.9); }
.story-art img.is-card { object-position: 50% 0; transform-origin: 50% 25%; animation: story-zoom-card 14s ease-in-out infinite alternate; }
#oppAvatar img.is-card { transform: scale(1.9); transform-origin: 50% 36%; object-position: 50% 0; }
@keyframes story-zoom-card { from { transform: scale(1.6); } to { transform: scale(1.72); } }
@media (prefers-reduced-motion: reduce) { .story-art img.is-card { animation: none; transform: scale(1.6); } }

/* ===================== Campaign v2: Chapter → Acts (one per faction) → 3 duels ===================== */
.saga-chapter { max-width: 1100px; margin: 0 auto; }
.saga-chapter-head { text-align: center; margin: 4px 0 26px; }
.saga-chapter-head small { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .32em; text-transform: uppercase; color: #e9bf55; }
.saga-chapter-head h2 { margin: 4px 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: #fff; }
.saga-act { position: relative; margin: 0 0 30px; padding: 16px 18px 20px; border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, rgba(16, 14, 44, .85)), rgba(8, 8, 24, .6)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.saga-act:not(:last-child)::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 30px; margin-left: -1.5px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .2) 0 6px, transparent 6px 11px); }
.saga-act.is-done:not(:last-child)::after { background: #e9bf55; box-shadow: 0 0 8px rgba(233, 191, 85, .8); }
.saga-act-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 4px 14px; }
.saga-act-head .sa-num { font-size: .68rem; font-weight: 900; letter-spacing: .26em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 75%, #fff); }
.saga-act-head b { font-size: 1.15rem; font-weight: 900; color: #fff; }
.saga-act-head .sa-faction { padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #d6d2e8; background: rgba(255, 255, 255, .06); }
.saga-act-head .sa-key { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  color: rgba(255, 255, 255, .45); border: 1px dashed rgba(255, 255, 255, .2); }
.saga-act-head .sa-key.on { color: #1d1405; border: 0; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 60%, color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
/* the three duels of an act, left to right */
.saga-act .saga-map { --gap: 30px; max-width: none; grid-template-columns: repeat(3, 1fr); }
.saga-act .saga-node:nth-child(n) { grid-row: auto; grid-column: auto; }
.saga-act .saga-node:nth-child(n)::after { display: block; left: 100%; right: auto; top: 50%; width: var(--gap); height: 0; border-width: 3px 0 0; }
.saga-act .saga-node:last-child::after { display: none; }
.saga-act.is-final .saga-map { grid-template-columns: minmax(0, 420px); justify-content: center; }
.saga-act.is-final { border-color: rgba(255, 77, 99, .45); box-shadow: 0 0 50px rgba(255, 77, 99, .12); }
.saga-node.is-boss { border-width: 3px; }
.saga-node.is-boss .sn-txt small { color: #f3dc8f; }
@media (max-width: 767px) {
  .saga-act .saga-map { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .saga-act .saga-node:nth-child(n)::after { display: none; }
  .saga-act-head .sa-key { margin-left: 0; }
}

/* ===================== Arena modes: film posters ===================== */
#modeView { perspective: 1400px; }
.mode-poster { --rx: 0deg; --ry: 0deg; position: relative; width: min(100%, 360px); aspect-ratio: 3 / 4.25; border-radius: 24px; overflow: hidden; cursor: pointer; outline: none;
  background: #0a0a1e padding-box,
    linear-gradient(160deg, color-mix(in srgb, var(--oc) 90%, #fff), color-mix(in srgb, var(--oc) 25%, #000) 45%, color-mix(in srgb, var(--oc) 80%, #fff) 100%) border-box;
  border: 2px solid transparent; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04), 0 0 60px color-mix(in srgb, var(--oc) 22%, transparent);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1), box-shadow .4s, filter .4s; }
.mode-poster:hover, .mode-poster:focus-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .7), 0 0 90px color-mix(in srgb, var(--oc) 45%, transparent); }
.mp-art { position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--oc) 40%, #14113a), #06061a 75%); }
.mp-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2, .9, .3, 1), filter .4s; }
.mode-poster:hover .mp-art img { transform: scale(1.12); }
.mp-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 20, .15) 0%, rgba(6, 6, 20, .05) 30%, rgba(6, 6, 20, .75) 58%, #070718 82%),
    radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--oc) 35%, transparent), transparent 60%); }
.mp-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%);
  transform: translateX(-120%); transition: transform 1s ease; }
.mode-poster:hover .mp-shine { transform: translateX(120%); }
.mp-tag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 14px; border-radius: 999px; font-size: .68rem; font-weight: 900; letter-spacing: .24em; text-transform: uppercase;
  color: #0b0b18; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--oc) 70%, #fff)); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.mp-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 24px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.mp-medal { --t: var(--oc); width: 76px !important; height: 76px !important; margin: 0 0 10px !important;
  --m1: color-mix(in srgb, var(--oc) 35%, #fff); --m2: color-mix(in srgb, var(--oc) 70%, #c8c8d0); --m3: color-mix(in srgb, var(--oc) 75%, #3a3a44); --m4: color-mix(in srgb, var(--oc) 45%, #0b0b12); --m5: color-mix(in srgb, var(--oc) 20%, #050508); }
.mp-medal .emblem { width: 42px !important; height: 42px !important; }
.mp-body h3 { margin: 0 0 8px; font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 900; letter-spacing: .01em; color: #fff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .85), 0 0 30px color-mix(in srgb, var(--oc) 50%, transparent); }
.mp-body p { margin: 0 0 16px; font-size: .9rem; line-height: 1.45; color: #d9d5ea; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.mp-cta { display: inline-flex; align-items: center; gap: 8px; padding: .7rem 1.4rem; border-radius: 999px; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: #0b0b18; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--oc) 75%, #fff) 60%, color-mix(in srgb, var(--oc) 90%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 26px color-mix(in srgb, var(--oc) 45%, transparent); transition: gap .3s, filter .3s; }
.mode-poster:hover .mp-cta { gap: 14px; filter: brightness(1.08); }
.mode-poster.is-starting .mp-cta::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cp-spin .8s linear infinite; }
/* locked or coming soon: the poster fades to black and white */
.mode-poster.is-disabled { cursor: pointer; filter: saturate(.25); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.mode-poster.is-disabled .mp-art img { filter: grayscale(1) brightness(.55); }
.mode-poster.is-disabled .mp-cta { color: #e6e3f2; background: rgba(12, 12, 30, .8); border: 1px solid rgba(255, 255, 255, .25); box-shadow: none; letter-spacing: .04em; text-transform: none; font-weight: 800; }
.mode-poster.is-disabled:hover { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px); }
@media (max-width: 767px) { .mode-poster { aspect-ratio: 3 / 3.6; } }
@media (prefers-reduced-motion: reduce) { .mode-poster, .mp-art img, .mp-shine { transition: none; } }

/* end of duel: the note is a single line, no box */
.go-note, .go-note.story, .gameover2.defeat .go-note { display: flex; justify-content: center; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto 1.6rem; padding: 0;
  background: none !important; border: 0 !important; box-shadow: none !important; text-align: left; }
.go-note > i, .go-note.story > i { flex: 0 0 34px; width: 34px; height: 34px; font-size: 1rem; }
.go-note b { display: inline; font-size: 1.05rem; }
.go-note small { display: inline; margin: 0 0 0 6px; font-size: .95rem; color: #cfcbe0; }
@media (max-width: 575px) { .go-note b, .go-note small { display: block; margin: 0; } }

/* end of a won Campaign duel: one sentence, big, no box */
.go-line { margin: 0 auto 1.6rem; font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 900; color: #fff; text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .7), 0 0 26px color-mix(in srgb, var(--kc, #e9bf55) 55%, transparent); }

/* Arena modes: the three posters side by side, close together */
#modeView { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin: 0; }
#modeView > [class*="col-"] { flex: 0 1 360px; width: auto; max-width: 360px; padding: 0; margin: 0; }
#modeView .mode-poster { width: 100%; }
.go-line + .go-subline { margin: -1.1rem auto 1.6rem; font-size: 1rem; color: #cfcbe0; text-align: center; }
.go-line:has(+ .go-subline) { margin-bottom: 1.4rem; }

/* Roadmap: the numbers of a one-person project */
.solo-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 1100px; margin: 26px auto 46px; }
.solo-stats .ss { text-align: center; padding: 18px 10px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(233, 191, 85, .25); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.solo-stats .ss b { display: block; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 900; line-height: 1.1;
  background: linear-gradient(180deg, #fff4c2, #e9bf55 60%, #b3862c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.solo-stats .ss span { display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #cfcbe0; }
@media (max-width: 991px) { .solo-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .solo-stats { grid-template-columns: repeat(2, 1fr); } }
.page-hero .solo-stats { margin: 26px auto 0; }
@media (max-width: 767px) { .sound-toggle { bottom: 96px; left: 10px; width: 36px; height: 36px; } } /* phones: above the big action buttons at the bottom */
