/* Pitch Rivals: the hub (clash.js open(), redesigned Sep 2026).
   A header strip (rank badge, rank, trophies, record), four tabs on a bottom bar (Battle, Deck, Road, Guide), the
   BATTLE button pinned above the bar on the Battle tab, and a detail sheet for any card. The card faces themselves
   (.sq-card: painting, rarity frame, energy gem, kind tag) are styled in style.css. */

.screen.prh {
  background:
    radial-gradient(120% 36% at 50% 0%, rgba(80, 120, 255, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(7, 11, 26, 0.88), rgba(7, 11, 26, 0.96) 45%, rgba(7, 11, 26, 0.98)),
    var(--prbg, none) center / cover no-repeat,
    var(--ink-900);
}
.prh .k-player { --kc: #2fe08a; }
.prh .k-boost { --kc: #c98cff; }
.prh .k-tactic { --kc: #4fc3ff; }
.prh .k-piece { --kc: #ffa23c; }
.prh .k-trick { --kc: #ff5fd2; }
/* cards in the hub scroll with the page (the in-match tray's cards take the drag instead) */
.prh .sq-card { touch-action: manipulation; min-width: 0; }
.prh button.sq-card { cursor: pointer; }
/* a mini card keeps its painting and frame inside its own box (style.css sizes a mini's images for the 48px tray) */
.prh .sq-card.mini .sq-frame { top: 0; width: 100%; height: 100%; }
.prh .sq-card.mini .sq-paint { top: 9.5%; width: 79%; height: 80.5%; }
.prh .sq-card.mini .sq-lockov { top: 4%; width: 92%; height: 92%; }
.prh .sq-card.mini .sq-fig { top: 8%; width: 78%; height: 70%; }

/* ---------- the header strip ---------- */
.prh-me {
  position: relative; z-index: 2; flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 7px 14px 8px; background: linear-gradient(180deg, rgba(24, 35, 72, 0.97), rgba(12, 18, 40, 0.97));
  border-bottom: 1px solid rgba(255, 224, 138, 0.2); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.prh-badge { width: 46px; height: 50px; display: grid; place-items: center; }
.prh-rankimg { width: 46px; height: 50px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55)); }
.prh-rank { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prh-rank > small { font: 800 10px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prh-rank > b { font: 800 italic 21px/0.95 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prh-rbar, .prh-arbar, .prh-nbar { position: relative; display: block; height: 7px; border-radius: 999px; background: #050913; border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; }
.prh-rbar i, .prh-arbar i, .prh-nbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #f0a800, #ffe08a); box-shadow: 0 0 8px rgba(255, 200, 61, 0.6); }
.prh-rank em { font: 600 11px/1 var(--font-ui); font-style: normal; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prh-rank em b { color: #ffe08a; font-weight: 800; }
.prh-troph { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.prh-troph > b { display: flex; align-items: center; gap: 3px; font: 800 30px/0.9 var(--font-display); color: #ffe08a; text-shadow: 0 2px 0 rgba(90, 55, 0, 0.85); }
.prh-tic { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.prh-troph small { display: flex; align-items: center; gap: 4px; }
.prh-troph small > span { display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; border-radius: 999px; font: 800 11.5px/1 var(--font-display); letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.07); }
.prh-troph .w { color: #7dff9e; }
.prh-troph .l { color: #ff9a90; }
.prh-streak { color: #ffb35c; background: rgba(255, 140, 40, 0.16) !important; }
.prh-streak svg { width: 11px; height: 11px; }

/* ---------- the tab's page ---------- */
.prh-body {
  position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none;
}
.prh-body::-webkit-scrollbar { display: none; }
.prh-body > * { flex-shrink: 0; }
.prh-body.fresh > * { animation: prhIn 0.28s var(--ease-out) both; }
.prh-body.fresh > :nth-child(2) { animation-delay: 0.04s; }
.prh-body.fresh > :nth-child(3) { animation-delay: 0.08s; }
.prh-body.fresh > :nth-child(n + 4) { animation-delay: 0.12s; }
.prh-sec { display: flex; flex-direction: column; gap: 10px; }
.prh-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 2px 2px 0; font: 800 12.5px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.prh-h span { font: 600 11.5px/1 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--gold-300); }
.prh-h.big { margin-top: 6px; font: 800 italic 20px/1 var(--font-display); letter-spacing: 0.04em; color: #fff; }
.prh-chev { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font-style: normal; color: var(--text-3); }
.prh-chev svg { width: 16px; height: 16px; }
.prh-drop { width: 15px; height: 19px; object-fit: contain; vertical-align: -3px; filter: drop-shadow(0 0 4px rgba(63, 245, 194, 0.5)); }
.prh-dropf { display: inline-block; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #1fd6a0; }
.prh-avg { display: inline-flex; align-items: center; gap: 4px; font: 800 16px/1 var(--font-display); color: #9ff5e0; }
.prh-avg small { font: 600 11px/1 var(--font-ui); color: var(--text-3); }
/* the kind of card: a coloured pill (green players, pink tricks, blue tactics, orange pitch pieces) */
.prh-kt { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; font: 800 12px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #05121a; background: var(--kc, #b9c2d8); box-shadow: 0 0 12px color-mix(in srgb, var(--kc, #fff) 40%, transparent); white-space: nowrap; }
.prh-kt svg { width: 12px; height: 12px; flex: none; }

/* ---------- BATTLE ---------- */
.prh-arena {
  position: relative; height: clamp(160px, 44vw, 236px); border-radius: 20px; overflow: hidden; isolation: isolate; background: #0b1a12;
  border: 2px solid rgba(255, 224, 138, 0.45); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 6px 0 #05080f, 0 14px 30px rgba(0, 0, 0, 0.45);
}
/* a tall screen gives the arena the spare room */
.prh-body[data-tab="battle"] > .prh-arena { flex-grow: 1; max-height: 320px; }
.prh-arpic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; z-index: -2; transform-origin: 50% 30%; animation: prhDrift 16s ease-in-out infinite alternate; }
.prh-arena::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 20, 0.55) 0%, rgba(5, 8, 20, 0) 26%, rgba(5, 8, 20, 0.1) 38%, rgba(5, 8, 20, 0.86) 72%, rgba(5, 8, 20, 0.97) 100%); }
.prh-arena::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55); pointer-events: none; }
.prh-arno { position: absolute; left: 10px; top: 10px; padding: 6px 11px; border-radius: 999px; font: 800 12px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); background: linear-gradient(180deg, #ffe89a, #ffc83d 60%, #f0a800); box-shadow: 0 2px 0 #9a6a00, 0 4px 10px rgba(0, 0, 0, 0.4); }
.prh-arrange { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 7px; border-radius: 999px; font: 800 13px/1 var(--font-display); color: #ffe08a; background: rgba(5, 8, 20, 0.75); border: 1px solid rgba(255, 224, 138, 0.35); }
.prh-arplate { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px 13px; display: flex; flex-direction: column; gap: 5px; }
.prh-arplate small { font: 800 10.5px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: #9ff5d4; text-shadow: 0 1px 2px #000; }
.prh-arplate > b { font: 800 italic 29px/0.95 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.7); }
.prh-arbar { height: 6px; margin-top: 3px; }
.prh-arplate em { display: flex; align-items: center; gap: 4px; font: 600 12px/1.2 var(--font-ui); font-style: normal; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.prh-arplate em b { color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.prh-arplate .sq-tic { flex: none; }

.prh-next {
  width: 100%; min-height: 0; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px 8px 12px;
  border-radius: 18px; text-align: left; color: var(--text); font: inherit;
  background: radial-gradient(90% 120% at 0% 50%, rgba(183, 123, 255, 0.24), transparent 60%), linear-gradient(135deg, #25224f, #141a3a);
  border: 1px solid rgba(183, 123, 255, 0.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 0 rgba(0, 0, 0, 0.45);
}
.prh-next .sq-card.mini { width: 42px; }
.prh-next .sq-card.mini .sq-kind { display: none; }
.prh-allok { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #04261c; background: radial-gradient(circle at 35% 30%, #c8ffd9, #4fe38a 60%, #1f9a55); box-shadow: 0 0 14px rgba(125, 255, 158, 0.45); }
.prh-allok svg { width: 24px; height: 24px; }
.prh-nexttx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prh-nexttx small { font: 800 10.5px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: #d4b8ff; }
.prh-nexttx b { font: 800 italic 19px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prh-nexttx em { display: flex; align-items: center; gap: 4px; font: 700 11.5px/1 var(--font-ui); font-style: normal; color: var(--text-2); }
.prh-next .prh-chev { color: #d4b8ff; }

.prh-bots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prh-bot {
  position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 8px;
  border-radius: 16px; color: var(--text); font: inherit; background: linear-gradient(180deg, #1c2852, #101834);
  border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 0 #05080f;
}
.prh-bot:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 #05080f; }
.prh-botimg { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5)) grayscale(0.35); transition: transform 0.2s var(--ease-pop), filter 0.2s; }
.prh-bot b { font: 800 italic 18px/1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-2); }
.prh-pips { display: flex; gap: 3px; }
.prh-pips i { width: 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.prh-pips i.on { background: #ff8a5c; box-shadow: 0 0 5px rgba(255, 138, 92, 0.6); }
.prh-bot small { display: flex; gap: 6px; font: 800 12px/1 var(--font-display); letter-spacing: 0.03em; }
.prh-bot small em { font-style: normal; }
.prh-bot .up { color: #7dff9e; }
.prh-bot .dn { color: #ff9a90; }
.prh-bot.on {
  border-color: #ffc83d; background: radial-gradient(100% 80% at 50% 0%, rgba(255, 200, 61, 0.32), transparent 70%), linear-gradient(180deg, #2c3e7c, #18234e);
  box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.18), 0 4px 0 #7a5200, 0 0 20px rgba(255, 200, 61, 0.25);
}
.prh-bot.on b { color: #fff; }
.prh-bot.on .prh-botimg { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5)); transform: scale(1.12) rotate(-8deg); }
.prh-botok { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-ink); background: #ffc83d; box-shadow: 0 2px 0 #9a6a00, 0 0 8px rgba(255, 200, 61, 0.6); }
.prh-botok svg { width: 14px; height: 14px; }

.prh-peek {
  width: 100%; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 9px 10px 10px; border-radius: 18px; text-align: left; color: var(--text); font: inherit;
  background: linear-gradient(180deg, rgba(32, 46, 94, 0.92), rgba(14, 21, 46, 0.95)); border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 0 rgba(0, 0, 0, 0.45);
}
.prh-peekhd { display: flex; align-items: center; gap: 10px; }
.prh-peekhd > b { flex: 1 1 auto; font: 800 12.5px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.prh-edit { display: inline-flex; align-items: center; gap: 1px; padding: 6px 7px 6px 11px; border-radius: 999px; font: 800 12px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); background: linear-gradient(180deg, #ffe89a, #ffc83d); box-shadow: 0 2px 0 #9a6a00; }
.prh-edit svg { width: 13px; height: 13px; }
.prh-peekrow { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; padding-top: 6px; }
.prh-peekrow .sq-card.mini { width: 100%; }
.prh-peekrow .sq-kind { display: none; }
.prh-peekrow .sq-card .sq-cost { min-width: 16px; }
.prh-peekrow .sq-card .sq-cost i { font-size: 10.5px; }

/* the pinned BATTLE button (and Online 1v1, coming soon) */
.prh-foot { position: relative; z-index: 2; flex: 0 0 auto; padding: 9px 14px 10px; background: linear-gradient(180deg, rgba(12, 18, 38, 0.85), #0b1124); border-top: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.35); }
.prh-go { display: grid; grid-template-columns: 1fr 88px; gap: 10px; align-items: stretch; }
.prh-go.solo { grid-template-columns: 1fr; }
.prh-battle { min-height: 66px; }
.prh-battle .play-l { font-size: 36px; letter-spacing: 0.12em; }
.prh-battle .play-s { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.prh-online {
  position: relative; min-height: 0; padding: 4px 4px 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
  border-radius: var(--r-lg); overflow: hidden; color: #fff; font: inherit;
  background: radial-gradient(90% 70% at 50% 30%, rgba(130, 100, 255, 0.45), transparent 70%), linear-gradient(180deg, #2e2b6e, #181a42);
  border: 1px solid rgba(170, 150, 255, 0.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 0 #0b0c28;
}
.prh-online:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 0 #0b0c28; }
.prh-onimg { width: 100%; height: 34px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5)) saturate(0.85); }
.prh-online b { white-space: nowrap; font: 800 italic 13px/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; text-align: center; }
.prh-online i { position: absolute; top: 9px; right: -24px; width: 84px; padding: 3px 0; transform: rotate(38deg); text-align: center; font: 800 9.5px/1 var(--font-display); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); background: #ffe08a; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45); }

/* ---------- PLAY, the Friendly (v3: the owner's concept_hub_play): the touchline scene ---------- */
.prv-dug { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 150px 4px 10px; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: var(--bg, linear-gradient(180deg, #4e9ae8 0%, #8fc3f5 45%, #3d8f3a 46%, #2f7a30 100%)) center / cover no-repeat; border: 2px solid rgba(255, 224, 138, 0.45); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 6px 0 #05080f, 0 14px 30px rgba(0, 0, 0, 0.45); }
.prv-dug::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 20, 0) 0%, rgba(5, 8, 20, 0.35) 100%); }
/* the dugout stands on the grass behind the five (its base on the backdrop's touchline, a shadow under it: owner, 1 Oct
   2026, "bench is floating in air") */
.prv-bench { position: absolute; left: 50%; top: 42px; width: 60%; transform: translateX(-50%); }
.prv-bench::before { content: ""; position: absolute; left: 3%; right: 3%; bottom: -7px; height: 16px; border-radius: 50%; background: rgba(0, 0, 0, 0.42); filter: blur(4px); }
.prv-dugout { position: relative; display: block; width: 100%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35)); }
.prv-dugcss { display: block; width: 100%; height: 70px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, #0e2b52, #163052 55%, #0a1a30); border: 2px solid #19d6f0; }
/* the owner's bench (prv_bench3, 1 Oct 2026) sits in the dugout with the subs on its three seats (their boots on its feet) */
.prv-seats { position: absolute; left: 4%; right: 4%; bottom: 7%; display: flex; justify-content: space-evenly; align-items: flex-end; }
.prv-seats.art { display: block; }
.prv-bench3 { display: block; width: 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5)); }
.prv-seats.art::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -5px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, 0.4); filter: blur(3px); z-index: -1; }
.prv-fig { display: block; }
.prv-fig img { display: block; height: 100%; width: auto; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.45)); }
.prv-fig.sub { height: 50px; }
.prv-seats.art .prv-fig.sub { position: absolute; bottom: 2%; height: 236%; transform: translateX(-50%); }
.prv-seats.art .prv-fig.s0 { left: 15.5%; } .prv-seats.art .prv-fig.s1 { left: 50%; } .prv-seats.art .prv-fig.s2 { left: 84.5%; }
.prv-five { position: relative; z-index: 1; display: flex; justify-content: space-evenly; align-items: flex-end; gap: 2px; }
.prv-man { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 19.5%; min-width: 0; }
.prv-man .prv-fig { height: 104px; }
.prv-man .prv-fig.gk { height: 108px; }
.prv-plate { position: relative; display: grid; place-items: center; width: 100%; height: 30px; border-radius: 9px; background: #27406a; border: 2px solid #0b1d33; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.prv-plate b { font: 800 14px/1 var(--font-display); letter-spacing: 0.08em; color: #fff; text-shadow: 0 1px 2px #000; }
.prv-plate.art { height: 32px; background: transparent center / 100% 100% no-repeat; border: 0; box-shadow: none; justify-items: start; }
.prv-plate.art b { padding-left: 36%; font-size: 13px; }
.prv-plate.oop { box-shadow: 0 0 0 2px #ff5a5a, 0 0 12px rgba(255, 90, 90, 0.5); }
.prv-plate.art.oop { box-shadow: none; filter: drop-shadow(0 0 5px rgba(255, 90, 90, 0.9)); }
.prv-oopb { position: absolute; right: -7px; top: -9px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--font-display); font-style: normal; color: #fff; background: #e53935; border: 2px solid #fff; }
.prv-oopb.art { background: transparent center / 100% 100% no-repeat; border: 0; width: 22px; height: 22px; }
.prv-plate small { position: absolute; left: 50%; top: 100%; z-index: 2; transform: translateX(-50%); margin-top: 3px; padding: 3px 6px; border-radius: 6px; background: #c62828; font: 800 8px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; white-space: nowrap; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.prv-none { position: relative; z-index: 1; margin: 0 0 10px; text-align: center; font: 800 italic 15px/1.2 var(--font-display); color: #fff; text-shadow: 0 2px 4px #000; }
.prv-arena { display: grid; grid-template-columns: 44% 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 18px; background: linear-gradient(180deg, rgba(32, 46, 94, 0.92), rgba(14, 21, 46, 0.95)); border: 1px solid rgba(255, 255, 255, 0.13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 0 rgba(0, 0, 0, 0.45); }
.prv-arpic { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 50%; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.25); background: #0b1a12; }
.prv-artx { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.prv-artx b { font: 800 italic 22px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prv-artx small { font: 800 10.5px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: #9ff5d4; }
.prv-artx em { display: flex; align-items: center; gap: 4px; font: 700 12px/1 var(--font-ui); font-style: normal; color: #ffe08a; white-space: nowrap; overflow: hidden; }
.prv-bots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prv-bot { display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 0; padding: 8px 4px 9px; border-radius: 16px; color: var(--text-2); font: inherit; background: linear-gradient(180deg, #1c2852, #101834); border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 0 #05080f; }
.prv-bot:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 #05080f; }
.prv-botpic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #0a1a30 center / 100% 100% no-repeat; box-shadow: 0 0 0 2px #19d6f0 inset; }
.prv-botpic[style] { box-shadow: none; }
.prv-botimg { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5)); }
.prv-bot b { font: 800 italic 15px/1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; }
.prv-bot small { font: 800 11.5px/1 var(--font-display); letter-spacing: 0.03em; color: var(--text-3); }
.prv-bot .up { color: #7dff9e; font-style: normal; } .prv-bot .dn { color: #ff9a90; font-style: normal; }
.prv-bot.on { border-color: #ffc83d; color: #fff; background: radial-gradient(100% 80% at 50% 0%, rgba(255, 200, 61, 0.3), transparent 70%), linear-gradient(180deg, #2c3e7c, #18234e); box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.18), 0 4px 0 #7a5200, 0 0 20px rgba(255, 200, 61, 0.25); }
.prv-bot.on .prv-botpic { box-shadow: 0 0 0 3px #ffc83d, 0 0 14px rgba(255, 200, 61, 0.7); }

/* ---------- the tab bar ---------- */
.prh-nav {
  position: relative; z-index: 3; flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, #16203f, #080c1a);
  border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.45);
}
.prh-tab { position: relative; min-height: 54px; padding: 3px 2px 5px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; border-radius: 14px; color: var(--text-3); font: inherit; background: transparent; border: 1px solid transparent; box-shadow: none; }
.prh-tab:active { transform: translateY(2px); box-shadow: none; }
.prh-tabimg { width: 30px; height: 30px; object-fit: contain; filter: grayscale(0.55) brightness(0.8) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); transition: transform 0.22s var(--ease-pop), filter 0.2s; }
.prh-tab b { font: 800 12.5px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.prh-tab.on { color: #ffe08a; background: radial-gradient(90% 90% at 50% 100%, rgba(255, 200, 61, 0.26), transparent 70%), linear-gradient(180deg, #28396f, #172250); border-color: rgba(255, 200, 61, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 16px rgba(255, 200, 61, 0.18); }
.prh-tab.on .prh-tabimg { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.55)); transform: translateY(-3px) scale(1.16); }
.prh-tab.on::before { content: ""; position: absolute; left: 28%; right: 28%; top: -8px; height: 3px; border-radius: 0 0 3px 3px; background: #ffc83d; box-shadow: 0 0 10px rgba(255, 200, 61, 0.85); }

/* ---------- DECK ---------- */
.prh-swapbar {
  z-index: 6; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 8px 8px 10px; border-radius: 16px;
  color: var(--text-2); background: rgba(14, 21, 44, 0.92); border: 1px dashed rgba(255, 255, 255, 0.2);
}
.prh-swapbar > span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prh-swapbar b { font: 800 italic 16px/1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prh-swapbar small { font: 600 12px/1.25 var(--font-ui); color: inherit; }
.prh-swapic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #ffe08a; background: rgba(255, 224, 138, 0.1); border: 1px solid rgba(255, 224, 138, 0.3); }
.prh-swapic svg { width: 20px; height: 20px; }
.prh-swapbar.on {
  position: sticky; top: -12px; margin: 0 -2px; color: #3a2500; border: 0;
  background: linear-gradient(180deg, #ffe89a, #ffc83d 60%, #f2b100);
  box-shadow: 0 4px 0 #9a6a00, 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 200, 61, 0.35); animation: prhBarIn 0.24s var(--ease-pop) both;
}
.prh-swapbar.on b { color: var(--gold-ink); }
.prh-swapbar .sq-card.mini { flex: none; width: 36px; }
.prh-swapbar .sq-kind { display: none; }
.prh-ib { flex: none; width: 42px; min-height: 42px; padding: 0; display: grid; place-items: center; border-radius: 12px; color: var(--gold-ink); background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(120, 80, 0, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.prh-ib:active { transform: translateY(2px); box-shadow: none; }
.prh-ib svg { width: 20px; height: 20px; }

.prh-deck {
  padding: 12px 10px 14px; border-radius: 20px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(79, 160, 255, 0.18), transparent 70%), linear-gradient(180deg, #1c2c5c, #0f1834);
  border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 0 #05080f, 0 14px 26px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.prh-deck.placing { border-color: rgba(255, 200, 61, 0.75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 0 #05080f, 0 0 26px rgba(255, 200, 61, 0.3); }
.prh-deckhd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 4px 6px; }
.prh-deckhd b { font: 800 italic 20px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.prh-deckgrid, .prh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 9px; padding: 10px 3px 2px; }
.prh .sq-card.sel { z-index: 3; transform: translateY(-6px) scale(1.07); filter: drop-shadow(0 0 8px rgba(255, 224, 138, 0.95)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.prh .sq-card.target::before { content: ""; position: absolute; inset: -5px -4px; z-index: 6; border-radius: 12px; border: 2px solid #ffe08a; pointer-events: none; animation: prhPulse 1.1s ease-in-out infinite; }
.prh .sq-card.swapped { animation: prhPop 0.55s var(--ease-pop) both; }
.prh-cell { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.prh-cap { display: block; font: 700 10.5px/1.2 var(--font-ui); color: var(--gold-300); text-align: center; }
.prh-cap > svg { display: inline-block; width: 10px; height: 10px; margin-right: 3px; vertical-align: -1px; opacity: 0.85; }
.prh-cap .sq-tic { width: 13px; height: 13px; }
/* a locked card: the painting shows through its chains, and its name sits on top */
.prh .sq-card.locked .sq-lockov { opacity: 0.66; }
.prh .sq-card.locked .sq-nm { z-index: 5; }
/* trick cards have long names too (Bicycle Kick): wrap them like a tactic's */
.prh .sq-card.k-trick .sq-nm { font-size: 10.5px; white-space: normal; line-height: 1.02; }
.prh-none { display: flex; align-items: center; gap: 6px; margin: 6px 2px 2px; font: 600 12.5px/1.2 var(--font-ui); color: #7dff9e; }
.prh-none svg { width: 15px; height: 15px; }
.prh-acad { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font: 500 12.5px/1.35 var(--font-ui); color: #e6ebf5; background: rgba(255, 224, 138, 0.08); border: 1px dashed rgba(255, 224, 138, 0.4); }
.prh-acadimg { flex: none; width: 36px; height: 36px; object-fit: contain; }
.prh-acad b { color: #ffe08a; }
.prh-group { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); }
.prh-gh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.prh-gh small { font: 700 11.5px/1 var(--font-ui); color: var(--text-3); }

/* ---------- ROAD ---------- */
.prh-roadhd { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 18px; background: radial-gradient(100% 120% at 100% 0%, rgba(255, 200, 61, 0.2), transparent 60%), linear-gradient(135deg, #22305e, #121a3a); border: 1px solid rgba(255, 224, 138, 0.3); }
.prh-roadhd > b { font: 800 italic 22px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; }
.prh-roadhd p { grid-column: 1; margin: 0; font: 500 12.5px/1.35 var(--font-ui); color: var(--text-2); }
.prh-roadct { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; }
.prh-roadct i { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 52px; padding: 7px 6px; border-radius: 12px; font: 800 20px/1 var(--font-display); font-style: normal; color: #ffe08a; background: rgba(5, 8, 20, 0.5); }
.prh-roadct small { font: 700 9.5px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.prh-road { display: flex; flex-direction: column; }
.prh-rn { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 60px; padding: 5px 0; }
.prh-rn::before { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.prh-rn.done::before { background: linear-gradient(180deg, #ffc83d, #f0a800); box-shadow: 0 0 8px rgba(255, 200, 61, 0.4); }
.prh-rn.rn-you::before { background: linear-gradient(180deg, #ffc83d 50%, rgba(255, 255, 255, 0.1) 50%); }
.prh-rn:first-child::before { top: 50%; }
.prh-rn:last-child::before { bottom: 50%; }
.prh-rt { position: relative; z-index: 1; justify-self: center; min-width: 46px; padding: 4px 5px; border-radius: 999px; text-align: center; font: 800 12.5px/1 var(--font-display); color: var(--text-3); background: #0c1328; border: 1.5px solid rgba(255, 255, 255, 0.16); }
.prh-rt.same { min-width: 0; width: 12px; height: 12px; padding: 0; border-radius: 50%; }
.prh-rn.done .prh-rt { color: var(--gold-ink); background: linear-gradient(180deg, #ffe89a, #ffc83d); border-color: #fff3c2; }
.prh-rn.rn-you .prh-rt { color: var(--gold-ink); background: #fff3c2; border-color: #ffc83d; box-shadow: 0 0 12px rgba(255, 200, 61, 0.7); }
.prh-rarena { position: relative; height: 84px; border-radius: 16px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 8px 12px 9px; color: #fff; border: 2px solid rgba(255, 255, 255, 0.14); }
.prh-rapic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: -2; }
.prh-rarena::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 8, 20, 0.92), rgba(5, 8, 20, 0.55) 70%, rgba(5, 8, 20, 0.3)); }
.prh-rarena small { font: 800 10px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: #9ff5d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prh-rarena b { font: 800 italic 20px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prh-rarena em, .prh-rctx em { display: flex; align-items: center; gap: 4px; font: 700 11.5px/1 var(--font-ui); font-style: normal; color: var(--text-2); }
.prh-rarena em svg, .prh-rctx em svg { width: 12px; height: 12px; flex: none; }
.prh-rn.rn-arena.done .prh-rarena em { color: #7dff9e; }
.prh-rn.rn-arena:not(.done) .prh-rapic { filter: grayscale(0.85) brightness(0.55); }
.prh-rn.rn-arena:not(.done) .prh-rarena small { color: var(--text-3); }
.prh-rn.rn-arena.cur .prh-rarena { border-color: #ffc83d; box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.2), 0 0 18px rgba(255, 200, 61, 0.35); }
.prh-rn.rn-arena.cur .prh-rarena em { color: #ffe08a; }
.prh-rrank { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 8px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 200, 61, 0.15), rgba(255, 200, 61, 0.02)); border: 1px solid rgba(255, 200, 61, 0.28); }
.prh-rrimg { width: 38px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.prh-rn.rn-rank:not(.done) .prh-rrimg { filter: grayscale(0.85) brightness(0.65); }
.prh-rrank > span { display: flex; flex-direction: column; gap: 3px; }
.prh-rrank small { font: 800 10px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-300); }
.prh-rrank b { font: 800 italic 19px/1 var(--font-display); text-transform: uppercase; color: #fff; }
.prh-rcard { width: 100%; min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 8px 9px 10px; border-radius: 14px; text-align: left; color: var(--text); font: inherit; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none; }
.prh-rcard:active { transform: translateY(2px); box-shadow: none; }
.prh-rcard .sq-card.mini, .prh-row .sq-card.mini { width: auto; }
.prh-rcard .sq-kind, .prh-row .sq-kind { display: none; }
.prh-rctx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prh-rctx small { font: 800 10px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kc, var(--text-3)); }
.prh-rctx b { font: 800 italic 18px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prh-rn.rn-card.got .prh-rctx em { color: #7dff9e; }
.prh-rn.rn-card.next .prh-rcard { border-color: rgba(255, 200, 61, 0.65); background: linear-gradient(90deg, rgba(255, 200, 61, 0.16), rgba(255, 255, 255, 0.03)); box-shadow: 0 0 16px rgba(255, 200, 61, 0.18); }
.prh-rn.rn-card.next .prh-rctx em { color: #ffe08a; }
.prh-you { justify-self: start; display: flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px; border-radius: 999px; font: 800 italic 16px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); background: linear-gradient(180deg, #ffe89a, #ffc83d 60%, #f2b100); box-shadow: 0 3px 0 #9a6a00, 0 0 18px rgba(255, 200, 61, 0.45); }
.prh-you small { font: 700 11.5px/1 var(--font-ui); letter-spacing: 0; text-transform: none; opacity: 0.75; }

/* ---------- GUIDE ---------- */
.prh-howto { padding: 12px 12px 4px; border-radius: 18px; background: linear-gradient(180deg, #1c2852, #101834); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4); }
.prh-howto ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.prh-howto li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.prh-howto li:first-child { border-top: 0; }
.prh-stic { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: radial-gradient(circle at 50% 35%, #33498f, #152452 75%); border: 1px solid rgba(255, 255, 255, 0.16); }
.prh-stimg { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.prh-stic.paint .prh-stimg { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; filter: none; }
.prh-stic > i { position: absolute; left: -6px; top: -6px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; font: 800 12.5px/1 var(--font-display); font-style: normal; color: var(--gold-ink); background: #ffc83d; box-shadow: 0 2px 0 #9a6a00; }
.prh-howto li b { display: block; margin-bottom: 4px; font: 800 italic 17px/1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.prh-howto li small { display: block; font: 500 12.5px/1.38 var(--font-ui); color: var(--text-2); }
.prh-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prh-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--kc) 9%, #0f1733); border: 1px solid color-mix(in srgb, var(--kc) 38%, transparent); }
.prh-kind small { font: 500 12px/1.32 var(--font-ui); color: var(--text-2); }
.prh-rows { display: flex; flex-direction: column; gap: 6px; }
.prh-rows > .prh-gh { margin: 6px 0 2px; }
.prh-row { width: 100%; min-height: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 14px; text-align: left; color: var(--text); font: inherit; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: none; }
.prh-row:active { transform: translateY(2px); box-shadow: none; }
.prh-rowtx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prh-rowtx b { display: flex; align-items: center; gap: 7px; font: 800 italic 17px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; }
.prh-cost { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font: 800 12px/1 var(--font-display); font-style: normal; color: #04261c; background: radial-gradient(circle at 35% 30%, #c8fff0, #1fd6a0 60%, #0b8a67); flex: none; }
.prh-rowtx small { font: 500 12px/1.32 var(--font-ui); color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prh-row.lk .prh-rowtx, .prh-row.lk .sq-card { opacity: 0.7; }
.prh-row.lk .prh-chev { color: var(--gold-300); }

/* ---------- a card's detail sheet ---------- */
.prh-sheetbg { z-index: 20; }
.prh-sheet {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(120% 45% at 50% 0%, color-mix(in srgb, var(--kc) 22%, transparent), transparent 65%), linear-gradient(180deg, #1c2852, #0e1530);
  border-top: 2px solid color-mix(in srgb, var(--kc) 65%, transparent);
}
.prh-sheet .sheet-x { position: absolute; right: 12px; top: 12px; }
.prh-sheet .sheet-x svg { width: 18px; height: 18px; }
.prh-shtop { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 44px 0 4px; }
.prh-sheet .sq-card.big { width: 108px; }
.prh-sheet .sq-card.big .sq-nm { font-size: 13.5px; }
.prh-sheet .sq-card.big .sq-kind { font-size: 10px; }
.prh-sheet .sq-card.big.locked { filter: grayscale(0.7) brightness(0.8); }
.prh-sheet .sq-card.big.locked .sq-lockov { opacity: 0.5; }
.prh-shid { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.prh-shtags { display: flex; flex-wrap: wrap; gap: 5px; }
.prh-rar { padding: 5px 9px; border-radius: 999px; font: 800 11px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: #5d6784; }
.prh-rar.r-rare { background: #2f7fe0; }
.prh-rar.r-epic { background: #8a4fe0; }
.prh-rar.r-legend { color: var(--gold-ink); background: linear-gradient(180deg, #ffe89a, #ffc83d); }
.prh-shid h3 { margin: 0; font: 800 italic 30px/0.95 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; color: #fff; }
.prh-shwho { font: 600 12.5px/1.3 var(--font-ui); color: var(--text-2); }
.prh-shwho b { color: #fff; }
.prh-shcost { display: inline-flex; align-items: center; gap: 5px; font: 700 12.5px/1 var(--font-ui); color: var(--text-2); }
.prh-shcost b { font: 800 22px/1 var(--font-display); color: #9ff5e0; }
.prh-shtx { margin: 0; font: 500 15px/1.42 var(--font-ui); color: #e6ebf5; }
.prh-stats { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(5, 8, 20, 0.45); border: 1px solid rgba(255, 255, 255, 0.07); }
.prh-stat { display: grid; grid-template-columns: 78px minmax(0, 1fr) 28px; align-items: center; gap: 10px; }
.prh-stat small { font: 800 11.5px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.prh-sbar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.prh-sbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--kc) 55%, #0b1022), var(--kc)); box-shadow: 0 0 8px color-mix(in srgb, var(--kc) 50%, transparent); }
.prh-stat b { font: 800 16px/1 var(--font-display); color: #fff; text-align: right; }
.prh-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.prh-facts:empty { display: none; }
.prh-facts span { padding: 7px 11px; border-radius: 999px; font: 700 12px/1 var(--font-ui); color: var(--text-2); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.prh-shlock { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: #ffe08a; background: rgba(255, 224, 138, 0.08); border: 1px solid rgba(255, 224, 138, 0.38); }
.prh-shlock > svg { flex: none; width: 22px; height: 22px; }
.prh-shlock span { display: flex; flex-direction: column; gap: 3px; }
.prh-shlock b { font: 800 italic 16px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.prh-shlock small { font: 600 12.5px/1.35 var(--font-ui); color: #f3e3b3; }
.prh-shin { display: flex; align-items: center; gap: 8px; font: 700 13px/1 var(--font-ui); color: #7dff9e; }
.prh-shin svg { width: 18px; height: 18px; }
.prh-shbtns { display: flex; gap: 10px; margin-top: 2px; }
.prh-shbtns button { flex: 1 1 0; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 italic 18px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.prh-shbtns button svg { width: 19px; height: 19px; }

/* ---------- the match rules (a custom game: the friendly's, an online room's) ---------- */
.prh-rulesbtn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; border-radius: 16px; text-align: left; color: var(--text-2); font: 600 13.5px/1.35 var(--font-ui); background: linear-gradient(180deg, #1c2852, #101834); border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 0 #05080f; }
.prh-rulesbtn span { flex: 1 1 auto; min-width: 0; }
.prh-rulesbtn b { flex: none; padding: 8px 12px; border-radius: 999px; font: 800 italic 14px/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-ink, #3b2400); background: linear-gradient(180deg, #ffe89a, #ffc83d); }
.prh-rules { --kc: #ffc83d; max-height: 86vh; overflow-y: auto; }
.prh-rules h3 { margin: 4px 44px 0 4px; font: 800 italic 28px/1 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; color: #fff; }
.prh-rules h4 { margin: 4px 0 -4px; font: 800 12.5px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.prh-rules .prl { display: flex; flex-wrap: wrap; gap: 8px; }
.prh-rl { min-height: 42px; padding: 9px 13px; border-radius: 999px; font: 700 13.5px/1.1 var(--font-ui); color: var(--text-2); background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.14); box-shadow: none; }
.prh-rl.on { color: #fff; border-color: #ffc83d; background: radial-gradient(100% 90% at 50% 0%, rgba(255, 200, 61, 0.28), transparent 70%), #22305e; box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.15); }

/* ---------- motion ---------- */
@keyframes prhIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes prhPulse { 0%, 100% { opacity: 0.35; box-shadow: 0 0 0 rgba(255, 214, 102, 0); } 50% { opacity: 1; box-shadow: 0 0 14px rgba(255, 214, 102, 0.8); } }
@keyframes prhPop { 0% { transform: scale(0.72) rotate(-6deg); filter: brightness(1.8); } 60% { transform: scale(1.1) rotate(1deg); } 100% { transform: none; filter: none; } }
@keyframes prhDrift { from { transform: scale(1.04); } to { transform: scale(1.13) translateY(-3%); } }
@keyframes prhBarIn { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .prh-arpic, .prh-body.fresh > *, .prh .sq-card.target::before, .prh .sq-card.swapped, .prh-swapbar.on { animation: none; }
}
/* a short phone: a slimmer arena picture */
@media (max-height: 700px) {
  .prh-arena { height: 170px; }
  .prh-battle { min-height: 64px; }
  .prh-battle .play-l { font-size: 32px; }
}

/* ---------- Online (29 Sep 2026): the Pitch Rivals hub is Online (Play · Deck · Guide); a Friendly is Match · Deck · Guide;
   the Match Deck from My Club or the League is the deck alone. The tab bar fits however many tabs (the League has 5). */
.prh-nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.prh.deck-only .prh-nav { display: none; }
.prh-badge.on-crest svg { width: 44px; height: 44px; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.prh-troph.on-rec b i { font-style: normal; opacity: 0.55; margin: 0 3px; }
.on-hero, .on-friend, .on-fair { flex-shrink: 0; }
.on-hero {
  position: relative; min-height: 158px; padding: 44px 14px 14px 16px; border-radius: 20px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(80% 120% at 92% 30%, rgba(255, 200, 61, 0.32), transparent 60%), linear-gradient(125deg, #3a1f8a 0%, #1f3fa8 55%, #0f1f5c 100%);
  border: 2px solid rgba(255, 224, 138, 0.45); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 6px 0 #0c0f3a, 0 14px 30px rgba(0, 0, 0, 0.45);
}
.on-heropic { position: absolute; z-index: -1; right: -4px; bottom: 0; height: 100%; width: auto; max-width: 46%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.on-live {
  position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font: 800 10.5px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 2px 6px rgba(10, 0, 40, 0.5);
}
.on-live i { width: 7px; height: 7px; border-radius: 50%; background: #7a4b00; }
.on-live.on { color: #fff; background: linear-gradient(180deg, #ff5a5a, #d11d1d); }
.on-live.on i { background: #fff; animation: onPulse 1.2s ease-in-out infinite; }
@keyframes onPulse { 50% { opacity: 0.25; } }
.on-herotx { max-width: 54%; display: flex; flex-direction: column; gap: 5px; }
.on-herotx small { font: 800 11px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: #ffe08a; }
.on-herotx b { font: 800 italic 27px/0.95 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 rgba(10, 8, 50, 0.5); }
.on-herotx p { margin: 0; font: 600 12.5px/1.3 var(--font-ui); color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.on-friend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.on-fb {
  min-width: 0; min-height: 66px; padding: 10px; display: flex; align-items: center; gap: 9px; border-radius: 16px; text-align: left; color: var(--text); font: inherit;
  background: linear-gradient(180deg, #1c2745, #0d1428); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 0 #03050b;
}
.on-fb:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 #03050b; }
.on-fbic { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #2a1700; background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 0 #8a5200; }
.on-fbic svg { width: 22px; height: 22px; display: block; }
.on-fb > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.on-fb b { font: 800 14px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.on-fb small { font: 600 11px/1.2 var(--font-ui); color: var(--text-2); }
.on-fair { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.35); }
.on-fairic { flex: 0 0 auto; width: 26px; height: 26px; color: #6ee7b7; }
.on-fairic svg { width: 26px; height: 26px; display: block; }
.on-fair > span { display: flex; flex-direction: column; gap: 4px; }
.on-fair b { font: 800 13px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: #a7f3d0; }
.on-fair small { font: 600 12px/1.3 var(--font-ui); color: var(--text-2); }
