/* online.css: Draft Duel online, drawn inside the game's own frame (Claude, 2026-10-25; Codex's cream-panel version is in
   ui-backup-codex/). Sizes are frame px (the 540 px phone frame, scaled by the game), so the Road's classes (.rd-top,
   .rd-btn, .rd-battle, .rd-card, .rd-ribbon, .rd-sheet) and the board's (.bd-card, .bd-offer, .big-btn, .bd-packov)
   are reused as they are. These rules only place and add what the online screens need. */

/* the boot / no-server fallback, outside the frame */
#tourney { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; box-sizing: border-box;
  background: #1d3570; color: #fff; font-family: Baloo2, system-ui, sans-serif; text-align: center; }
#tourney[hidden] { display: none !important; }
#tourney p { max-width: 360px; margin: 0 0 14px; font-size: 18px; font-weight: 700; }
#tourney button { min-height: 48px; padding: 0 22px; border: 3px solid #2f2437; border-radius: 14px; background: #ffd34d; color: #2f2437; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }

/* ---- the shell ---- */
.bd .ol { position: absolute; inset: 0; z-index: 40; overflow: hidden; color: #fff; font-family: var(--font); line-height: 1.2; -webkit-tap-highlight-color: transparent; }
.ol button { font-family: var(--font); }
.ol-view { position: absolute; inset: 0; }
.ol-layer { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.ol-layer > * { pointer-events: auto; }
.ol-layer > .ol-toast, .ol-layer > .ol-net, .ol-layer > .ol-token, .ol-passive { pointer-events: none; }
.ol .ol-ink { color: #fff; -webkit-text-stroke: 6px var(--ol); paint-order: stroke fill; }
.ol-quilt { position: absolute; inset: 0; background-color: #26458f; background-size: 124px 124px; }
.ol-vign { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, rgba(10, 8, 30, 0) 45%, rgba(10, 8, 30, 0.5)); }
.ol svg.ic { display: block; overflow: visible; }

/* ---- the top bar: you, your trophies, your gold ---- */
.ol .rd-top.ol-top { height: 88px; }
.ol .ol-top .rd-tools { top: 14px; height: 58px; }
.ol-me { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.ol-face { position: relative; flex: none; width: 56px; height: 56px; box-sizing: border-box; overflow: hidden; border: 4px solid var(--ol); border-radius: 14px;
  background: linear-gradient(180deg, #6a7ee6, #34408f); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15), 0 4px 0 rgba(10, 8, 24, 0.45); }
.ol-face.red { background: linear-gradient(180deg, #e46a74, #8f2d3b); }
.ol-face > canvas { position: absolute; left: 50%; top: 5px; transform: translateX(-50%) scale(1.5); transform-origin: 50% 0; }
.ol-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ol-who > b { font-size: 22px; font-weight: 800; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-tro { display: inline-flex; align-items: center; gap: 5px; font-size: 21px; font-weight: 800; line-height: 1; color: #ffe36b; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-tro svg { width: 26px; height: 26px; }
.ol .ol-gold { display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 16px 0 10px; border: 4px solid var(--ol); border-radius: 24px; background: #3b3350;
  color: #fff; font-size: 25px; font-weight: 800; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; cursor: pointer; box-sizing: border-box; }
.ol .ol-gold .bd-coin { width: 26px; height: 26px; border-width: 3px; }

/* ---- the body between the bar and the tabs ---- */
.ol-body { position: absolute; left: 0; right: 0; top: 88px; bottom: 116px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ol-body::-webkit-scrollbar { display: none; }
.ol-col { position: relative; width: 100%; max-width: 560px; min-height: 100%; margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; padding: 14px 14px 24px; }

/* ---- the tabs ---- */
.ol-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 116px; z-index: 20; box-sizing: border-box; display: flex; justify-content: center;
  background: linear-gradient(180deg, #4a4166, #2c2542); border-top: 5px solid var(--ol); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.2), 0 -5px 0 rgba(10, 8, 24, 0.35); }
.ol-tab { position: relative; flex: 1 1 0; max-width: 186px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 0 12px;
  border: 0; background: none; color: #d8d0ef; font-size: 19px; font-weight: 800; letter-spacing: 0.6px; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; cursor: pointer; }
.ol-tab .ico { height: 62px; display: flex; align-items: flex-end; justify-content: center; transition: transform 0.12s ease; }
.ol-tab.on { margin-top: -18px; border: 5px solid var(--ol); border-bottom: 0; border-radius: 22px 22px 0 0; color: #fff;
  background: linear-gradient(180deg, #8a7fc0, #4a4166 70%); box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.3); }
.ol-tab.on .ico { transform: scale(1.14) translateY(-4px); }
.ol-tab:not(.on):active .ico { transform: translateY(3px); }
.ol-tab .ol-badge { position: absolute; top: 4px; right: 30px; }
.ol-badge { min-width: 30px; height: 30px; box-sizing: border-box; padding: 0 6px; display: grid; place-items: center; border: 3px solid var(--ol); border-radius: 15px;
  background: linear-gradient(180deg, #a6ec72, #4fae38); color: #fff; font-size: 17px; font-weight: 800; line-height: 1; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-badge.red { background: linear-gradient(180deg, #ff8a8a, #d9475a); }
.ol-tab .pk { height: 60px; transform: rotate(-8deg); filter: drop-shadow(0 4px 0 rgba(10, 8, 30, 0.45)); }
.ol-tab .fan { position: relative; width: 70px; height: 62px; }
.ol-tab .fan .rd-card { position: absolute; bottom: 0; }
.ol-tab .fan .rd-card:first-child { left: 2px; transform: rotate(-10deg); }
.ol-tab .fan .rd-card:last-child { right: 2px; transform: rotate(8deg); }

/* ---- Battle: the arena, the deck, BATTLE and PARTY, the pack slots ---- */
.ol-stage { position: relative; flex: 1 1 auto; width: 100%; min-height: 300px; }
.ol-dio { position: absolute; left: 50%; top: 0; bottom: 50px; transform: translateX(-50%); display: block; height: calc(100% - 50px); width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(10px 18px 14px rgba(8, 6, 26, 0.55)); pointer-events: none; }
.ol .ol-stage .rd-ribbon { top: auto; bottom: 0; width: 300px; margin-left: -150px; padding: 0 34px; justify-content: center; gap: 10px; pointer-events: auto; }
.ol-stage .rd-ribbon .lg { flex: none; display: flex; align-items: center; gap: 8px; overflow: visible; font-size: 30px; letter-spacing: 0.5px; }
.ol-stage .rd-ribbon svg { width: 36px; height: 36px; flex: none; }
.ol-i { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 3px solid var(--ol); border-radius: 50%; background: #fff; color: #3b3350 !important;
  font-size: 18px; font-weight: 800; font-style: italic; line-height: 1; -webkit-text-stroke: 0; cursor: pointer; flex: none; }
.ol-note { position: absolute; left: 50%; bottom: 62px; z-index: 6; width: 360px; margin-left: -180px; box-sizing: border-box; padding: 12px 16px; border: 4px solid var(--ol); border-radius: 18px;
  background: #fffdf6; color: #2f2437; font-size: 17px; font-weight: 700; line-height: 1.3; -webkit-text-stroke: 0; box-shadow: 0 5px 0 rgba(20, 14, 34, 0.4); }
.ol-note p { margin: 0; }
.ol-note p + p { margin-top: 6px; }
.ol-deck { display: flex; justify-content: center; gap: 8px; margin-top: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.ol-deck .rd-card { width: 72px; height: 88px; }
.ol-deck .rd-hex { position: absolute; left: 50%; bottom: -14px; z-index: 2; width: 34px; height: 31px; margin-left: -17px; font-size: 15px; -webkit-text-stroke: 4px var(--ol); }
.ol-btns { display: flex; justify-content: center; align-items: stretch; gap: 14px; width: 100%; margin-top: 30px; }
.ol .ol-btns .rd-battle { width: 300px; height: 104px; font-size: 46px; }
.ol .rd-btn.blue { background: linear-gradient(180deg, #8fc0ff, #4f7fe0); }
.ol .rd-btn.red { background: linear-gradient(180deg, #ff9a9a, #d9475a); }
.ol .ol-party { width: 170px; height: 104px; flex-direction: column; gap: 0; border-radius: 21px; font-size: 30px; line-height: 1; }
.ol .ol-party small { font-size: 18px; letter-spacing: 0.4px; -webkit-text-stroke: 4px var(--ol); }
.ol-left { margin-top: 10px; font-size: 17px; font-weight: 800; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-slots { display: grid; grid-template-columns: repeat(4, 112px); gap: 10px; margin-top: 18px; }
.ol-slot { position: relative; height: 122px; box-sizing: border-box; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  border: 4px solid var(--ol); border-radius: 18px; background: linear-gradient(180deg, #2a2340, #3b3350); box-shadow: inset 0 6px 0 rgba(0, 0, 0, 0.3), 0 4px 0 rgba(10, 8, 24, 0.4);
  color: #fff; font-size: 18px; font-weight: 800; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; cursor: default; }
.ol-slot.full { cursor: pointer; background: linear-gradient(180deg, #6d6296, #4a4166); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.25), 0 5px 0 rgba(10, 8, 24, 0.45); }
.ol-slot.full:active { transform: translateY(3px); }
.ol-slot img { position: absolute; left: 50%; top: -10px; height: 98px; transform: translateX(-50%) rotate(-6deg); filter: drop-shadow(0 4px 0 rgba(10, 8, 30, 0.45)); pointer-events: none; }
.ol-slot.full:not(:disabled) img { animation: olPackBob 2.4s ease-in-out infinite; }
.ol-slot > b { position: relative; z-index: 1; margin-bottom: 6px; padding: 0 9px; border: 3px solid var(--ol); border-radius: 10px; background: linear-gradient(180deg, #a6ec72, #4fae38); line-height: 24px; }
.ol-slot > i { position: absolute; top: -12px; right: -10px; z-index: 2; font-style: normal; }
@keyframes olPackBob { 0%, 100% { transform: translateX(-50%) rotate(-6deg); } 50% { transform: translateX(-50%) translateY(-5px) rotate(-3deg); } }

/* ---- headers inside a tab ---- */
.ol-h { align-self: stretch; margin: 6px 0 14px; display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; letter-spacing: 0.6px; color: #fff;
  -webkit-text-stroke: 6px var(--ol); paint-order: stroke fill; }
.ol-h::after { content: ""; flex: 1; height: 5px; border-radius: 3px; background: rgba(10, 8, 30, 0.35); }
.ol-h small { font-size: 18px; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); }

/* ---- Cards ---- */
.ol-grid { display: grid; grid-template-columns: repeat(3, 152px); gap: 22px 16px; justify-content: center; margin-bottom: 26px; }
.ol-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.ol-cell:active .cu-card { transform: translateY(3px); }
.ol-cell.locked .cu-card { filter: grayscale(1) brightness(0.62) contrast(0.85); }
.ol-cell.locked::after { content: "?"; position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-size: 64px; font-weight: 800; color: #fff; -webkit-text-stroke: 9px var(--ol); paint-order: stroke fill; }
.ol-swap .ol-grid.deck .ol-cell { animation: olWiggle 0.5s ease-in-out infinite alternate; }
.ol-swap .ol-grid.deck .ol-cell:nth-child(even) { animation-delay: -0.25s; }
@keyframes olWiggle { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
.ol-swapbar { position: sticky; top: 0; z-index: 5; align-self: stretch; margin: -14px -14px 14px; padding: 12px 14px; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #4a4166, #2c2542); border-bottom: 4px solid var(--ol); }
.ol-swapbar .q { flex: 1; font-size: 21px; font-weight: 800; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }

/* the card sheet */
.ol .rd-sheet.ol-csheet { height: auto; max-height: calc(100% - 60px); padding-bottom: 22px; }
.ol-csheet .rd-sbody { margin-top: 52px; gap: 14px; }
.ol-cbig { display: flex; align-items: flex-start; justify-content: center; gap: 18px; padding: 0 18px; }
.ol-cfacts { width: 230px; display: flex; flex-direction: column; gap: 10px; }
.ol-cfacts .rd-tag { align-self: flex-start; }
.ol-job { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: #efe9ff; }
.ol-stat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 8px 12px; border: 3px solid var(--ol); border-radius: 14px; background: rgba(10, 8, 30, 0.3);
  font-size: 18px; font-weight: 800; }
.ol-stat span { color: #d8d0ef; }
.ol-stat b { text-align: right; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-stat b em { font-style: normal; color: #b4ef7d; }
.ol .ol-csheet .rd-sfoot { padding-bottom: 6px; }
.ol .ol-csheet .rd-sfoot .big-btn { min-width: 0; width: 220px; height: 72px; font-size: 27px; }
.ol .ol-csheet .rd-sfoot .big-btn small { font-size: 16px; }
.ol-need { font-size: 19px; font-weight: 800; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }

/* ---- Shop ---- */
.ol-shopplate { position: relative; width: 470px; box-sizing: border-box; margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 18px 20px;
  border: 5px solid var(--ol); border-radius: 26px; background: linear-gradient(180deg, #5d5480, #3d3558); box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.2), 0 7px 0 rgba(10, 8, 24, 0.45); }
.ol-shopplate img { height: 250px; transform: rotate(-5deg); margin-top: -70px; filter: drop-shadow(0 8px 0 rgba(10, 8, 30, 0.45)); }
.ol-shopplate .nm { font-size: 34px; font-weight: 800; -webkit-text-stroke: 7px var(--ol); paint-order: stroke fill; }
.ol-shopplate .sub { font-size: 20px; font-weight: 800; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol .ol-buy { width: 260px; height: 80px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 34px; }
.ol .ol-buy .bd-coin { width: 34px; height: 34px; border-width: 4px; }
.ol-shopnote { margin-top: 16px; font-size: 18px; font-weight: 800; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; text-align: center; }
.ol-real { margin-top: 30px; width: 470px; box-sizing: border-box; padding: 14px 18px; border: 4px dashed rgba(216, 208, 239, 0.5); border-radius: 20px; text-align: center;
  font-size: 18px; font-weight: 800; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }

/* ---- full-frame screens: searching, versus, lobby, the end ---- */
.ol-screen { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.ol-screen .ol-quilt { z-index: -2; }
.ol-screen .ol-vign { z-index: -1; }
.ol-big { font-size: 46px; font-weight: 800; line-height: 1.02; text-align: center; letter-spacing: 0.5px; color: #fff; -webkit-text-stroke: 9px var(--ol); paint-order: stroke fill; }
.ol-search { justify-content: center; gap: 26px; padding: 30px 20px 60px; }
.ol-search .ol-big { font-size: 40px; }
.ol-pair { display: flex; align-items: center; gap: 18px; }
.ol-pair .rd-card { width: 168px; height: 204px; }
.ol-pair .rd-vs { margin: 0; font-size: 50px; }
.ol-spin .in canvas { transition: none; }
.ol-q { position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; font-weight: 800; color: #fff; -webkit-text-stroke: 10px var(--ol); paint-order: stroke fill; z-index: 2; }
.ol-tag { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ol-tag > b { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 24px; -webkit-text-stroke: 6px var(--ol); paint-order: stroke fill; }
.ol-clock { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffe36b; -webkit-text-stroke: 7px var(--ol); paint-order: stroke fill; }
.ol-live { font-size: 18px; font-weight: 800; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol .ol-cancel { min-width: 220px; height: 64px; font-size: 26px; }
.ol-dim { opacity: 0.35; filter: saturate(0.6); }

.ol-vs { z-index: 60; justify-content: center; background: #16112e; animation: olVsOut 0.3s ease-in 1.75s forwards; }
.ol-vs .band { position: absolute; left: -10%; right: -10%; height: 50%; display: flex; align-items: center; justify-content: center; gap: 22px; }
.ol-vs .band.red { top: 0; background: linear-gradient(180deg, #e46a74, #8f2d3b); transform: skewY(-6deg); transform-origin: 0 100%; animation: olFromRight 0.36s cubic-bezier(.2, 1.2, .4, 1) both; }
.ol-vs .band.blue { bottom: 0; background: linear-gradient(180deg, #6a7ee6, #34408f); transform: skewY(-6deg); transform-origin: 100% 0; animation: olFromLeft 0.36s cubic-bezier(.2, 1.2, .4, 1) both; }
.ol-vs .band > * { transform: skewY(6deg); }
.ol-vs .band .fig { width: 190px; height: 210px; position: relative; }
.ol-vs .band .fig canvas { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.ol-vs .band .ol-tag > b { font-size: 34px; max-width: 260px; -webkit-text-stroke: 8px var(--ol); }
.ol-vs .rd-vs { position: relative; z-index: 2; margin: 0; font-size: 110px; -webkit-text-stroke: 14px var(--ol); animation: olVsPop 0.4s cubic-bezier(.2, 1.8, .4, 1) 0.3s both; }
@keyframes olFromRight { from { transform: skewY(-6deg) translateX(100%); } }
@keyframes olFromLeft { from { transform: skewY(-6deg) translateX(-100%); } }
@keyframes olVsPop { from { transform: scale(2.4); opacity: 0; } }
@keyframes olVsOut { to { opacity: 0; visibility: hidden; } }

/* the lobby (a private room) */
.ol-room { justify-content: center; gap: 18px; padding: 26px 18px 30px; overflow-y: auto; }
.ol-code { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 26px 16px; border: 5px solid var(--ol); border-radius: 24px;
  background: linear-gradient(180deg, #5d5480, #3d3558); box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.2), 0 6px 0 rgba(10, 8, 24, 0.45); }
.ol-code .k { font-size: 18px; font-weight: 800; letter-spacing: 1.5px; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-code .v { font-size: 58px; font-weight: 800; letter-spacing: 8px; line-height: 1; color: #ffe36b; -webkit-text-stroke: 9px var(--ol); paint-order: stroke fill; user-select: all; -webkit-user-select: all; }
.ol-seats { display: grid; grid-template-columns: repeat(2, 240px); gap: 12px; }
.ol-seat { height: 84px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 4px solid var(--ol); border-radius: 18px;
  background: linear-gradient(180deg, #5d5480, #3d3558); box-shadow: 0 5px 0 rgba(10, 8, 24, 0.4); min-width: 0; }
.ol-seat.me { background: linear-gradient(180deg, #6a7ee6, #34408f); }
.ol-seat.empty { border-style: dashed; border-color: rgba(216, 208, 239, 0.45); background: rgba(10, 8, 30, 0.25); box-shadow: none; }
.ol-seat .ol-who > b { font-size: 20px; }
.ol-seat .ol-who > small { font-size: 15px; font-weight: 800; color: #d8d0ef; -webkit-text-stroke: 3px var(--ol); paint-order: stroke fill; }
.ol-seat .ol-face { width: 52px; height: 52px; }
.ol .ol-start { width: 320px; height: 96px; font-size: 40px; }
.ol-roombtns { display: flex; gap: 12px; align-items: center; }

/* the PARTY sheet */
.ol .rd-sheet.ol-psheet { height: auto; padding-bottom: 26px; }
.ol-psheet .rd-mbody { margin-top: 70px; }
.ol-join { grid-column: 2; display: flex; gap: 10px; align-items: center; }
.ol-join input { width: 196px; height: 66px; box-sizing: border-box; padding: 0 16px; border: 4px solid var(--ol); border-radius: 16px; background: #fffdf6; color: #2f2437;
  font-family: var(--font); font-size: 34px; font-weight: 800; letter-spacing: 7px; text-transform: uppercase; -webkit-text-stroke: 0; }
.ol-join input::placeholder { color: #b8b0c8; }
.ol .ol-join .rd-btn { height: 66px; font-size: 26px; padding: 0 22px; }
.ol .rd-mplate.ol-pplate { grid-template-columns: 136px 1fr; }
.ol-pplate .rd-mfaces { width: 136px; overflow: hidden; }
.ol-pplate .rd-mfaces canvas { height: 62px; width: auto; }
.ol .ol-pplate .rd-mgo { width: 230px; }

/* ---- the board: drafting and fights ---- */
.ol-ptop { position: absolute; left: 0; right: 0; top: 0; height: 56px; box-sizing: border-box; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, #16112e, #221a40); border-bottom: 4px solid var(--ol); box-shadow: 0 4px 0 rgba(10, 8, 24, 0.35); }
.ol-round { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: 0.8px; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-round .rd-pips { position: static; transform: none; }
.ol-timer { min-width: 86px; height: 40px; box-sizing: border-box; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 3px solid var(--ol); border-radius: 20px; background: #3b3350; font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-timer.hot { background: linear-gradient(180deg, #ff8a8a, #d9475a); animation: olHot 0.5s ease-in-out infinite alternate; }
@keyframes olHot { to { transform: scale(1.08); } }
.ol-opp { position: absolute; left: 8px; right: 8px; top: 64px; height: 64px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 6px;
  border: 4px solid var(--ol); border-radius: 18px; background: linear-gradient(180deg, #7a3550, #4a1f33); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.15), 0 5px 0 rgba(10, 8, 24, 0.4); }
.ol-opp .ol-face { width: 50px; height: 50px; }
.ol-opp .nm { flex: 1; min-width: 0; font-size: 23px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-opp .bd-hearts .heart, .ol-mine .bd-hearts .heart { width: 30px; height: 27px; }
.ol-state { flex: none; height: 32px; box-sizing: border-box; padding: 0 10px; display: inline-flex; align-items: center; border: 3px solid var(--ol); border-radius: 11px;
  background: #d8d0ef; color: #3b3350; font-size: 16px; font-weight: 800; letter-spacing: 0.6px; -webkit-text-stroke: 0; }
.ol-state.ready { background: linear-gradient(180deg, #a6ec72, #4fae38); color: #fff; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-hp { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 800; color: #ffd3d7; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-hpbar { width: 120px; height: 18px; box-sizing: border-box; border: 3px solid var(--ol); border-radius: 9px; background: #2a2340; overflow: hidden; }
.ol-hpbar > i { display: block; height: 100%; background: linear-gradient(180deg, #ff8a8a, #e05460); }
.ol-hpbar.me > i { background: linear-gradient(180deg, #a6ec72, #4fae38); }
.ol-faces { flex: 1; min-width: 0; display: flex; gap: 5px; overflow: hidden; }
.ol-faces .ol-face { width: 44px; height: 44px; border-width: 3px; border-radius: 11px; }
.ol-faces .ol-face.out { filter: grayscale(1) brightness(0.6); }
.ol-faces .ol-face > i { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #2a2340; }
.ol-faces .ol-face > i > i { display: block; height: 100%; background: #b4ef7d; }

.ol-offers { position: absolute; left: 0; right: 0; top: var(--my); height: var(--mh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.ol-ask { font-size: 22px; font-weight: 800; letter-spacing: 1px; text-align: center; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-ask small { display: block; font-size: 16px; letter-spacing: 0.4px; color: #ffe9a8; -webkit-text-stroke: 4px var(--ol); }
.ol-orow { display: flex; justify-content: center; gap: 14px; }
.ol .bd-offer { width: auto; height: auto; padding: 4px 0 0; overflow: visible; }
.ol .bd-offer.off .cu-choice { filter: saturate(0.5) brightness(0.8); transform: scale(0.94); }
.ol .bd-offer.lift { opacity: 0.35; }
.ol .bd-offer .rd-hex { position: absolute; right: -9px; top: -6px; z-index: 13; width: 40px; height: 37px; font-size: 17px; -webkit-text-stroke: 4px var(--ol); }
.ol-hexes { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ol-hexes polygon { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.42); stroke-width: 2; }
.ol-hexes polygon.busy { stroke: rgba(255, 255, 255, 0.66); }
.ol-hexes.live polygon { fill: rgba(255, 255, 255, 0.15); stroke: rgba(255, 255, 255, 0.75); stroke-width: 2.5; }
.ol-hexes polygon.from { fill: none; stroke: #ffe36b; stroke-width: 3; stroke-dasharray: 7 6; }
.ol-hexes polygon.to { fill: rgba(255, 227, 107, 0.36); stroke: #ffe36b; stroke-width: 4; }
.ol-hit { position: absolute; left: var(--bx); width: var(--bw); top: calc(var(--my) + var(--mh)); height: calc(var(--by) + var(--bh) - var(--my) - var(--mh)); touch-action: none; cursor: pointer; }
.ol-token { position: absolute; z-index: 50; left: 0; top: 0; pointer-events: none; transform-origin: 50% 50%; }
.ol-token .cu-choice { transform: rotate(-4deg) scale(0.86); box-shadow: 0 14px 0 rgba(10, 8, 30, 0.3); }
.ol-tray { position: absolute; left: 10px; right: 178px; top: calc(var(--by) + var(--bh) + 8px); display: flex; flex-direction: column; gap: 6px; }
.ol-mine { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 20px; font-weight: 800; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-mine > b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-chips { display: flex; gap: 8px; padding-top: 10px; overflow-x: auto; scrollbar-width: none; }
.ol-chips::-webkit-scrollbar { display: none; }
.ol-chip { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 0.1s ease; }
.ol-chip .rd-card { width: 56px; height: 68px; }
.ol-chip .rd-card .rd-n { top: -10px; left: auto; right: -9px; min-width: 26px; height: 23px; font-size: 14px; line-height: 17px; }
.ol-chip.sel { transform: translateY(-6px); }
.ol-chip.sel .rd-card { border-color: #ffe36b; box-shadow: 0 0 0 3px var(--ol), 0 6px 0 rgba(10, 8, 24, 0.45); }
.ol-chip.new .rd-card::after { content: "NEW"; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); z-index: 3; padding: 0 5px; border: 2px solid var(--ol); border-radius: 7px;
  background: #ffe36b; color: #3b3350; font-size: 11px; font-weight: 800; line-height: 15px; -webkit-text-stroke: 0; }
.ol .big-btn.ol-go { position: absolute; right: 12px; top: calc(var(--by) + var(--bh) + 20px); min-width: 0; width: 156px; height: 88px; font-size: 36px; }
.ol .big-btn.ol-go.wait { font-size: 25px; }
.ol .big-btn.ol-go:disabled { filter: grayscale(0.6) brightness(0.88); cursor: default; }
.ol .rd-btn.ol-skip { position: absolute; right: 12px; bottom: 16px; height: 50px; font-size: 21px; }
.ol-youtag { position: absolute; z-index: 2; transform: translate(-50%, -100%); padding: 2px 10px; border: 3px solid var(--ol); border-radius: 10px; background: linear-gradient(180deg, #8fc0ff, #4f7fe0);
  font-size: 18px; font-weight: 800; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; pointer-events: none; animation: olTagOut 0.4s ease-in 2.6s forwards; }
@keyframes olTagOut { to { opacity: 0; } }
.ol-wait { position: absolute; left: 0; right: 0; top: calc(var(--my) + var(--mh) / 2); transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.ol-wait .ol-big { font-size: 38px; }
.ol-wait .ol-live { font-size: 20px; }

/* the round's card and the standings (cream, on the board) */
.ol .bd-card.ol-rcard { gap: 14px; }
.ol-vsrow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ol-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ol-side > b { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 800; color: #3b3350; }
.ol-side .bd-hearts .heart { width: 32px; height: 29px; }
.ol-vsrow > .x { font-size: 26px; font-style: italic; font-weight: 800; color: #3b3350; }
.ol-sub { font-size: 17px; font-weight: 700; color: #5a4f72; text-align: center; }
.ol .bd-card .big-btn { min-width: 0; }
.ol-stand { position: absolute; left: 50%; top: 50%; z-index: 10; transform: translate(-50%, -50%); width: 470px; max-height: calc(100% - 40px); box-sizing: border-box; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 16px 16px; border: 5px solid var(--ol); border-radius: 26px; background: linear-gradient(180deg, #fff6d6, #f1dfae);
  color: #3b3350; box-shadow: 0 8px 0 rgba(47, 36, 55, 0.35); animation: olCardIn 0.32s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes olCardIn { from { transform: translate(-50%, -44%) scale(0.88); opacity: 0; } }
.ol-stand .ttl { font-size: 42px; text-align: center; font-weight: 800; line-height: 1; color: #ffe36b; -webkit-text-stroke: 9px var(--ol); paint-order: stroke fill; }
.ol-stand .ttl.lose { color: #ffb3b9; }
.ol-rows { align-self: stretch; display: flex; flex-direction: column; gap: 6px; }
.ol-row { display: grid; grid-template-columns: 30px 46px 1fr auto; align-items: center; gap: 10px; padding: 4px 10px 4px 6px; border: 3px solid rgba(47, 36, 55, 0.25); border-radius: 14px; background: rgba(255, 255, 255, 0.55); }
.ol-row.me { border-color: var(--ol); background: #e2eaff; }
.ol-row.out { opacity: 0.55; }
.ol-row .n { font-size: 20px; font-weight: 800; text-align: center; }
.ol-row .ol-face { width: 46px; height: 46px; border-width: 3px; border-radius: 12px; box-shadow: none; }
.ol-row .who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ol-row .who > b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-row .ol-hpbar { width: 100%; height: 14px; border-width: 2px; }
.ol-row .hp { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ol-fights { align-self: stretch; display: flex; flex-direction: column; gap: 6px; }
.ol-fight { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 3px solid var(--ol); border-radius: 14px; background: #fffdf6; color: #3b3350 !important; font-size: 16px; font-weight: 800; -webkit-text-stroke: 0; cursor: pointer; text-align: left; }
.ol-fight > * { color: #3b3350; -webkit-text-stroke: 0; }
.ol-fight.mine { background: #e2eaff; }
.ol-fight > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-fight > i { font-style: normal; color: #4a5bd0; }

/* the end of a match */
.ol-end { justify-content: center; gap: 20px; padding: 30px 18px 40px; background: radial-gradient(circle at 50% 40%, #3b2d70 0%, #1f1840 55%, #100b20 100%); }
.ol-end .ttl { font-size: 86px; font-weight: 800; line-height: 1; color: #ffe36b; -webkit-text-stroke: 12px var(--ol); paint-order: stroke fill; animation: olVsPop 0.45s cubic-bezier(.2, 1.6, .4, 1) both; }
.ol-end.lose .ttl { color: #ffb3b9; }
.ol-duo { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.ol-duo .ol-side { position: relative; }
.ol-duo .ol-side > b { color: #fff; font-size: 22px; max-width: 200px; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-duo .ol-side.lost { opacity: 0.7; }
.ol-duo .ol-face { width: 120px; height: 120px; border-radius: 24px; border-width: 5px; }
.ol-duo .ol-face > canvas { top: 10px; transform: translateX(-50%) scale(1.6); }
.ol-crown { position: absolute; left: 50%; top: -42px; width: 64px; height: 50px; transform: translateX(-50%) rotate(-8deg); z-index: 2; animation: olCrown 0.5s cubic-bezier(.2, 1.8, .4, 1) 0.4s both; }
@keyframes olCrown { from { transform: translateX(-50%) translateY(-40px) rotate(-30deg); opacity: 0; } }
.ol-duo .x { margin-bottom: 60px; font-size: 40px; font-style: italic; font-weight: 800; color: #ffe36b; -webkit-text-stroke: 8px var(--ol); paint-order: stroke fill; }
.ol-gains { display: flex; justify-content: center; gap: 14px; }
.ol-gain { min-width: 140px; height: 76px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: 4px solid var(--ol); border-radius: 20px;
  background: linear-gradient(180deg, #5d5480, #3d3558); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.2), 0 5px 0 rgba(10, 8, 24, 0.4);
  font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; -webkit-text-stroke: 7px var(--ol); paint-order: stroke fill; animation: olGainIn 0.35s cubic-bezier(.2, 1.5, .4, 1) both; }
.ol-gain svg { width: 40px; height: 40px; }
.ol-gain .bd-coin { width: 36px; height: 36px; border-width: 4px; }
.ol-gain.gold { color: #ffe36b; }
.ol-gain.down { color: #ffb3b9; }
.ol-gain.pk img { height: 92px; margin: -18px 0 -10px; transform: rotate(-6deg); filter: drop-shadow(0 4px 0 rgba(10, 8, 30, 0.45)); }
@keyframes olGainIn { from { transform: translateY(18px) scale(0.8); opacity: 0; } }
.ol-why { max-width: 420px; font-size: 18px; font-weight: 800; color: #d8d0ef; text-align: center; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-endbtns { display: flex; gap: 14px; margin-top: 8px; }
.ol .ol-endbtns .big-btn { min-width: 0; width: 220px; height: 76px; font-size: 32px; }
.ol-place { font-size: 120px; font-weight: 800; line-height: 1; color: #ffe36b; -webkit-text-stroke: 14px var(--ol); paint-order: stroke fill; }

/* messages */
.ol-toast { position: absolute; left: 50%; top: 100px; z-index: 70; transform: translateX(-50%); max-width: 470px; box-sizing: border-box; padding: 10px 18px 11px; border: 4px solid var(--ol); border-radius: 18px;
  background: #fffdf6; color: #2f2437; font-size: 19px; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 5px 0 rgba(20, 14, 34, 0.4); animation: rdPop 0.26s ease-out both; }
.ol-toast.bad { background: #ffe1e1; }
.ol-net { position: absolute; left: 50%; top: 8px; z-index: 71; transform: translateX(-50%); padding: 4px 14px; border: 3px solid var(--ol); border-radius: 14px; background: linear-gradient(180deg, #ff8a8a, #d9475a);
  font-size: 18px; font-weight: 800; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; pointer-events: none; }

.kbd .ol button:focus-visible, .kbd .ol input:focus-visible { outline: 5px solid #fff; outline-offset: 3px; }
.ol button:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .ol *, .ol-vs .band { animation: none !important; transition: none !important; }
  .ol-vs { animation: olVsOut 0.01s linear 1.6s forwards !important; }
}

/* the level-up's moment */
.ol-lvup .pt-word { top: calc(var(--sy) + var(--stw) * 0.7 + 22px); }
.ol .ol-lvup .ol-lvok { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); width: 220px; }

/* the landscape frame (a desktop window, quick-board.js .bd.wide): the home in two columns, the draft's pieces beside
   the board as the board run lays them out (the rival and your crews on the left, the cards and FIGHT on the right) */
.bd.wide .ol-col.ol-home { max-width: 1060px; display: grid; grid-template-columns: minmax(0, 1fr) 520px; grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 34px; align-content: center; }
.bd.wide .ol-home > .ol-stage { grid-column: 1; grid-row: 1 / span 6; height: 100%; min-height: 420px; }
.bd.wide .ol-home > :not(.ol-stage) { grid-column: 2; justify-self: center; }
.bd.wide .ol-home > .ol-deck { grid-row: 2; margin-top: 0; }
.bd.wide .ol-home > .ol-btns { grid-row: 3; }
.bd.wide .ol-home > .ol-left { grid-row: 4; }
.bd.wide .ol-home > .ol-slots { grid-row: 5; }
.bd.wide .ol-grid { grid-template-columns: repeat(5, 152px); }
.bd.wide .ol-col { max-width: 960px; }
.bd.wide .ol-opp { left: 16px; right: auto; top: 76px; width: calc(var(--bx) - 32px); height: auto; min-height: 64px; flex-wrap: wrap; row-gap: 6px; padding: 8px 12px 8px 6px; }
.bd.wide .ol-opp .nm { flex-basis: calc(100% - 64px); }
.bd.wide .ol-opp .ol-faces { flex-basis: 100%; flex-wrap: wrap; }
.bd.wide .ol-offers { left: calc(var(--bx) + var(--bw) + 16px); right: 16px; top: 76px; height: auto; justify-content: flex-start; }
.bd.wide .ol-orow { gap: 10px; }
.bd.wide .ol-tray { left: 16px; right: auto; width: calc(var(--bx) - 32px); top: auto; bottom: 22px; }
.bd.wide .ol-chips { flex-wrap: wrap; overflow: visible; }
.bd.wide .ol .big-btn.ol-go { top: auto; bottom: 22px; right: 16px; width: min(280px, calc(100% - var(--bx) - var(--bw) - 48px)); }
.bd.wide .ol-wait { left: var(--bx); right: auto; width: var(--bw); }

/* daily gold, second take (2026-10-25): one button beside the gold pill in the Road's button style. Ready: green, a coin
   and +50, a glint now and then. Claimed: slate, a check and the hours left; a tap shows the time in a small bubble. */
.ol .ol-dbtn { height: 48px; padding: 0 14px 0 10px; gap: 6px; border-radius: 16px; font-size: 23px; overflow: hidden; }
.ol .ol-dbtn .bd-coin { width: 24px; height: 24px; border-width: 3px; }
.ol .ol-dbtn:disabled { filter: none; cursor: default; }
.ol .ol-dbtn.ready::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: -40px; width: 22px; background: rgba(255, 255, 255, 0.5);
  transform: skewX(-20deg); animation: olGlint 3.6s ease-in-out 1s infinite; pointer-events: none; }
@keyframes olGlint { 0%, 78% { left: -40px; } 100% { left: calc(100% + 30px); } }
.ol .ol-dbtn.slate { padding: 0 13px 0 9px; font-size: 20px; }
.ol .ol-dbtn.slate b { color: #e3ddf5; }
.ol-dcheck { flex: none; width: 26px; height: 26px; box-sizing: border-box; display: grid; place-items: center; border: 3px solid var(--ol); border-radius: 50%;
  background: linear-gradient(180deg, #a6ec72, #4fae38); }
.ol-dcheck svg { width: 18px; height: 18px; }
.ol-dsay { position: absolute; z-index: 70; padding: 8px 14px 9px; border: 4px solid var(--ol); border-radius: 16px; background: #fffdf6; color: #2f2437;
  font-size: 17px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 5px 0 rgba(20, 14, 34, 0.4); animation: olSayPop 0.22s ease-out both; }
.ol-dsay::before { content: ""; position: absolute; right: 30px; top: -13px; width: 18px; height: 18px; background: #fffdf6; border-left: 4px solid var(--ol);
  border-top: 4px solid var(--ol); transform: rotate(45deg) skew(6deg, 6deg); }
.ol-dsay b { font-variant-numeric: tabular-nums; }
.ol .ol-gold.bump { animation: bdBump 0.22s ease-out both; }
.ol-flyc { z-index: 60; }
@media (prefers-reduced-motion: reduce) { .ol .ol-dbtn.ready::after { animation: none; display: none; } }

/* the campaign first (CAMPAIGN-ACCESS-API.txt): the Road's ONLINE plate, its bubble, a message on the game's frame, the
   online home's ROAD tab */
.bd .ol-roadhook { position: absolute; right: 12px; bottom: 166px; z-index: 25; width: 112px; height: 116px; box-sizing: border-box; padding: 0 0 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; border: 4px solid var(--ol); border-radius: 20px;
  background: linear-gradient(180deg, #8a7fc0, #4a4166); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.25), 0 6px 0 rgba(10, 8, 24, 0.5);
  color: #fff; font-family: var(--font); cursor: pointer; }
.bd .ol-roadhook[hidden] { display: none; }
.bd .ol-roadhook:active { transform: translateY(3px); }
.ol-roadhook .ico { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); }
.ol-roadhook .ico svg { width: 70px; height: 70px; filter: drop-shadow(0 4px 0 rgba(10, 8, 30, 0.45)); }
.ol-roadhook > b { font-size: 19px; font-weight: 800; letter-spacing: 0.5px; line-height: 1; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.bd .ol-roadhook:not(.open) { background: linear-gradient(180deg, #5d5480, #3b3350); }
.ol-roadhook:not(.open) .ico { filter: grayscale(0.7) brightness(0.8); }
.ol-roadhook:not(.open) > b { color: #d8d0ef; }
.ol-roadhook .lock { position: absolute; right: -11px; top: -13px; width: 36px; height: 36px; }
.ol-roadhook .lock svg { width: 36px; height: 36px; }
.ol-roadhook .rd-pips { position: static; transform: none; gap: 7px; margin: 2px 0 1px; }
.ol-roadhook .rd-pips i { width: 15px; height: 15px; }
.bd .ol-roadhook.open { animation: olHookBob 2.4s ease-in-out infinite; }
.ol-roadhook.open .ico { animation: none; }
@keyframes olHookBob { 0%, 100% { transform: none; } 50% { transform: translateY(-5px); } }
/* the landscape frame: the Road's fight sheet takes the bottom right, so the plate is a pill in the top bar's second row,
   right of the arena track */
.bd.wide .ol-roadhook { top: 66px; bottom: auto; right: 20px; width: auto; height: 52px; padding: 0 16px 0 56px; flex-direction: row; justify-content: flex-start; gap: 10px;
  border-radius: 18px; }
.bd.wide .ol-roadhook .ico { left: 6px; top: 50%; transform: translateY(-50%); }
.bd.wide .ol-roadhook .ico svg { width: 44px; height: 44px; }
.bd.wide .ol-roadhook .rd-pips { margin: 0; }
.bd .ol-hooksay { position: absolute; right: 12px; bottom: 300px; z-index: 26; max-width: 300px; box-sizing: border-box; padding: 9px 14px 10px; border: 4px solid var(--ol);
  border-radius: 16px; background: #fffdf6; color: #2f2437; font-family: var(--font); font-size: 17px; font-weight: 700; line-height: 1.25;
  box-shadow: 0 5px 0 rgba(20, 14, 34, 0.4); animation: olSayPop 0.22s ease-out both; pointer-events: none; }
.bd .ol-hooksay::after { content: ""; position: absolute; right: 44px; bottom: -14px; width: 18px; height: 18px; background: #fffdf6; border-right: 4px solid var(--ol);
  border-bottom: 4px solid var(--ol); transform: rotate(45deg) skew(6deg, 6deg); }
.bd.wide .ol-hooksay { top: 134px; bottom: auto; right: 20px; }
.bd.wide .ol-hooksay::after { top: -14px; bottom: auto; transform: rotate(225deg) skew(6deg, 6deg); }
.bd > .ol-ftoast { top: 140px; z-index: 72; font-family: var(--font); }
.ol-tab .flag { display: block; height: 58px; filter: drop-shadow(0 4px 0 rgba(10, 8, 30, 0.45)); }
@media (prefers-reduced-motion: reduce) { .bd .ol-roadhook.open { animation: none; } }
/* a bubble that pops by scale only: visible even where animations are held (a hidden or backgrounded page) */
@keyframes olSayPop { from { transform: scale(0.88); } }

/* ---- premium boosters (PREMIUM-PACK-CLAUDE-HANDOFF.txt, 2026-10-27): the shop's offers, an offer's sheet, the
   Collector Box opening, a crew's look (finish and skin). Tier wrappers: assets/sheets/pack_<tier>.webp, box_<layer>.webp */
.ol-shopgrid { display: grid; grid-template-columns: repeat(2, 228px); gap: 34px 16px; justify-content: center; margin: 26px 0 4px; }
.ol-ptile { position: relative; height: 282px; box-sizing: border-box; padding: 0 10px 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  border: 5px solid var(--ol); border-radius: 22px; background: linear-gradient(180deg, #5d5480, #3d3558); box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.2), 0 6px 0 rgba(10, 8, 24, 0.45);
  color: #fff; font: inherit; cursor: pointer; }
.ol-ptile:active { transform: translateY(3px); }
.ol-ptile.t-rare { background: linear-gradient(180deg, #5277d0, #2b3c88); }
.ol-ptile.t-holo { background: linear-gradient(160deg, #b77ad8, #6a64d8 45%, #3f8cc8); }
.ol-ptile.t-ultra { background: linear-gradient(180deg, #6a4a1e, #2a1a0c); box-shadow: inset 0 5px 0 rgba(255, 220, 120, 0.3), 0 6px 0 rgba(10, 8, 24, 0.45); }
.ol-ptile.t-ghost { background: linear-gradient(180deg, #3a8ea4, #173f58); }
.ol-ptile.t-collector { background: linear-gradient(180deg, #5c3c9e, #2a1858); box-shadow: inset 0 5px 0 rgba(255, 220, 120, 0.3), 0 6px 0 rgba(10, 8, 24, 0.45); }
.ol-ptile .art { position: absolute; left: 0; right: 0; top: -22px; height: 190px; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.ol-ptile .art img { height: 100%; transform: rotate(-5deg); filter: drop-shadow(0 6px 0 rgba(10, 8, 30, 0.45)); }
.ol-ptile.t-collector .art { top: 4px; align-items: center; }
.ol-ptile.t-collector .art img { height: auto; width: 100%; transform: none; }
.ol-ptile .nm { font-size: 22px; font-weight: 800; white-space: nowrap; -webkit-text-stroke: 6px var(--ol); paint-order: stroke fill; }
.ol-oprice { display: inline-flex; align-items: center; gap: 6px; padding: 1px 12px; border: 3px solid var(--ol); border-radius: 12px; background: rgba(10, 8, 30, 0.38);
  font-size: 21px; font-weight: 800; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-oprice .bd-coin { width: 22px; height: 22px; border-width: 3px; }
.ol-oprice .pp { margin-left: 4px; padding-left: 8px; border-left: 3px solid rgba(216, 208, 239, 0.4); color: #c8ecff; }

/* an offer's sheet: the art and the facts, the guarantees, every draw's odds, the rules, then the prices */
.ol .rd-sheet.ol-osheet { height: auto; max-height: calc(100% - 40px); padding-bottom: 6px; }
.ol-osheet .rd-sbody { margin-top: 92px; gap: 16px; padding: 0 22px 12px; box-sizing: border-box; align-items: stretch; }
.ol-otop { display: flex; align-items: center; gap: 18px; }
.ol-oart { flex: none; width: 160px; display: flex; justify-content: center; }
.ol-oart img { width: 100%; transform: rotate(-5deg); filter: drop-shadow(0 6px 0 rgba(10, 8, 30, 0.45)); }
.ol-oart.t-collector { width: 200px; }
.ol-oart.t-collector img { transform: none; }
.ol-ofacts { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ol-ofact { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 12px; border: 3px solid var(--ol); border-radius: 12px; background: rgba(10, 8, 30, 0.3);
  font-size: 18px; font-weight: 800; }
.ol-ofact dt { color: #d8d0ef; white-space: nowrap; }
.ol-ofact dd { margin: 0; text-align: right; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-osec { display: flex; flex-direction: column; gap: 6px; }
.ol-osec h3 { margin: 4px 0 2px; font-size: 23px; font-weight: 800; -webkit-text-stroke: 6px var(--ol); paint-order: stroke fill; }
.ol-osec h4 { margin: 8px 0 0; font-size: 19px; font-weight: 800; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-grow { display: flex; justify-content: space-between; align-items: center; padding: 5px 14px; border: 3px solid var(--ol); border-radius: 12px; font-size: 19px; font-weight: 800; color: #2f2437; }
.ol-grow b { font-size: 21px; }
.ol-odraw { display: grid; grid-template-columns: 72px 92px 1fr; align-items: center; gap: 4px 8px; padding: 6px 10px; border-radius: 12px; background: rgba(10, 8, 30, 0.28); font-size: 16px; font-weight: 800; }
.ol-odraw .c { color: #d8d0ef; }
.ol-odraw .o { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.ol-odd { padding: 1px 8px; border: 2px solid var(--ol); border-radius: 9px; font-style: normal; font-size: 15px; color: #2f2437; white-space: nowrap; }
.ol-odd.r-common, .ol-grow.r-common { background: linear-gradient(180deg, #d4e8ff, #93b9f2); }
.ol-odd.r-rare, .ol-grow.r-rare { background: linear-gradient(180deg, #ffffff, #b8c8e6 55%, #8fa3c8); }
.ol-odd.r-holo, .ol-grow.r-holo { background: linear-gradient(100deg, #ff9fc0, #ffe07a 25%, #a8f2a4 50%, #9cd6ff 75%, #cfa8ff); }
.ol-odd.r-ultra, .ol-grow.r-ultra { background: linear-gradient(180deg, #fff3b0, #ffd34d 50%, #e2a52a); }
.ol-odd.r-ghost, .ol-grow.r-ghost { background: linear-gradient(180deg, #e2fdff, #9ce2f2 50%, #a58af0); }
.ol-orules p { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: #efe9ff; }
.ol .ol-osheet .rd-sfoot { flex-wrap: wrap; gap: 10px 16px; padding-bottom: 8px; }
.ol .ol-osheet .rd-sfoot .big-btn { min-width: 0; width: 220px; height: 72px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 28px; }
.ol .ol-osheet .rd-sfoot .big-btn .bd-coin { width: 28px; height: 28px; border-width: 4px; }
.ol .ol-osheet .rd-sfoot .ol-oplay { flex-direction: column; gap: 0; line-height: 1.05; }
.ol .ol-osheet .rd-sfoot .ol-oplay small { font-size: 15px; }
.ol-osheet .rd-sfoot .ol-need { width: 100%; text-align: center; }

/* a pack slot holding a premium pack */
.ol-slot.full.t-rare { background: linear-gradient(180deg, #5277d0, #2b3c88); }
.ol-slot.full.t-holo { background: linear-gradient(160deg, #b77ad8, #6a64d8 45%, #3f8cc8); }
.ol-slot.full.t-ultra { background: linear-gradient(180deg, #6a4a1e, #2a1a0c); }
.ol-slot.full.t-ghost { background: linear-gradient(180deg, #3a8ea4, #173f58); }

/* the Collector Box: closed, the full layer; open, the lid lifts away and the packs rise between the inside and the walls */
.ol-boxov .ol-box { position: relative; z-index: 3; flex: none; width: 400px; aspect-ratio: 782 / 609; margin-top: 150px; cursor: pointer; outline: none; transform-origin: 50% 60%;
  animation: bdPackIn 0.6s cubic-bezier(.2, 1.5, .4, 1) both; filter: drop-shadow(0 14px 0 rgba(20, 14, 34, 0.45)); }
.ol-boxov .ol-box:not(.open) { animation: bdPackIn 0.6s cubic-bezier(.2, 1.5, .4, 1) both, ptPackIdle 3.4s ease-in-out 0.6s infinite; }
.kbd .ol-boxov .ol-box:focus-visible { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px #7fd3ff); }
.ol-box .ol-bl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.ol-box .ol-bl.back { z-index: 1; }
.ol-box .ol-bfan { position: absolute; left: 50%; top: 30%; z-index: 2; width: 0; height: 0; }
.ol-box .ol-bl.front { z-index: 3; }
.ol-box .ol-bl.lid { z-index: 4; }
.ol-box .ol-bl.full { z-index: 5; }
.ol-box:not(.open) .ol-bl.back, .ol-box:not(.open) .ol-bl.front, .ol-box:not(.open) .ol-bl.lid { visibility: hidden; }
.ol-box.open { cursor: default; }
.ol-box.open .ol-bl.full { display: none; }
.ol-box.open .ol-bl.lid { animation: olLidOff 0.75s cubic-bezier(.3, 0, .4, 1) both; }
@keyframes olLidOff { 0% { transform: none; } 30% { transform: translateY(-16%) rotate(-3deg); } 100% { transform: translate(46%, -110%) rotate(20deg); opacity: 0; } }
.ol-bpack { position: absolute; left: 0; top: 0; width: var(--w, 88px); padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -100%) translate(var(--x, 0px), var(--y, -128px)) rotate(var(--r, 0deg));
  animation: olPackRise 0.75s cubic-bezier(.2, 1.25, .4, 1) both; animation-delay: calc(0.3s + var(--i) * 0.09s); transition: transform 0.3s ease; }
.ol-bpack img { display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 6px 0 rgba(10, 8, 30, 0.45)); }
.ol-bpack:active img { transform: translateY(3px); }
@keyframes olPackRise { from { transform: translate(-50%, -40%) scale(0.72); } }
.ol-boxov .ol-boxx { position: absolute; top: 28px; right: 24px; left: auto; z-index: 8; }
.ol-boxov.ol-under { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ol-boxov .ol-box, .ol-boxov .ol-box:not(.open), .ol-box.open .ol-bl.lid, .ol-bpack { animation: none; } .ol-box.open .ol-bl.lid { visibility: hidden; } }

/* a crew's look: its finishes and skins, under the card sheet's facts */
.ol-look { display: flex; flex-direction: column; gap: 12px; padding: 0 18px; }
.ol-lookrow { display: flex; flex-direction: column; gap: 8px; }
.ol-lookl { font-size: 21px; font-weight: 800; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.ol-lookset { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ol-fin, .ol-skin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.ol-lookn { font-size: 15px; font-weight: 800; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-fin.locked .cu-card, .ol-skin.locked .fig { filter: grayscale(1) brightness(0.55); }
.ol-fin.locked .ol-lookn, .ol-skin.locked .ol-lookn { color: #a59cc4; }
.ol-fin .lock, .ol-skin .lock { position: absolute; left: 50%; top: 34px; width: 30px; height: 30px; transform: translate(-50%, -50%); pointer-events: none; }
.ol-fin .lock svg, .ol-skin .lock svg { display: block; width: 100%; height: 100%; }
.ol-skin .fig { width: 66px; height: 66px; box-sizing: border-box; border: 4px solid var(--ol); border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #8b9bf0, #3d438f); }
.ol-skin .fig canvas { width: 62px !important; height: 62px !important; }
.ol-skin.on .fig { box-shadow: 0 0 0 4px #c6ff4d, 0 0 0 7px var(--ol); }
.ol-fin:active .cu-card, .ol-skin:active .fig { transform: translateY(3px); }

/* a finish on the Road-style cards (the home deck, the draft's chips): a rim in the rarity's colours */
.rd-card.ol-finish::after { content: ""; position: absolute; inset: -5px; z-index: 3; border-radius: 13px; padding: 4px; pointer-events: none; background: var(--fin);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ol-finish-rare { --fin: linear-gradient(180deg, #ffffff, #9fb6d8); }
.ol-finish-holo { --fin: linear-gradient(100deg, #ff8fb1, #ffd56a 25%, #9df29a 50%, #8fd0ff 75%, #c79bff); }
.ol-finish-ultra { --fin: linear-gradient(180deg, #fff3b0, #ffd34d 50%, #e2a52a); }
.ol-finish-ghost { --fin: linear-gradient(180deg, #e2fdff, #8ad8f0 45%, #9a7cf0); }

/* themed boosters (premium-2): a bundle's fanned packs, a theme's crews in its odds, the bundle's opening */
.ol-fanart { position: relative; display: block; width: 100%; height: 100%; }
.ol .ol-fanart img { position: absolute; left: 50%; top: 0; width: auto; height: 100%; transform: translateX(-50%) translateX(calc(var(--k) * 26%)) rotate(calc(-4deg + var(--k) * 8deg)) scale(0.92); transform-origin: 50% 90%;
  filter: drop-shadow(0 6px 0 rgba(10, 8, 30, 0.45)); }
.ol .ol-fanart img:nth-child(2) { z-index: 1; }
.ol-ptile .art .ol-fanart { height: 100%; }
.ol-oart .ol-fanart { height: 210px; }
.ol-oart:has(.ol-fanart) { width: 190px; }
.ol-ptile .nm { white-space: normal; text-align: center; line-height: 1.05; }
.ol-tcrews { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(10, 8, 30, 0.42); }
.ol-tcrews .set { display: flex; flex-wrap: wrap; gap: 6px; }
.ol-tcrew { display: flex; flex-direction: column; align-items: center; width: 56px; }
.ol-tcrew .rd-figcv { position: static !important; display: block; }
.ol-tcrew b { font-size: 12px; font-weight: 800; white-space: nowrap; -webkit-text-stroke: 3px var(--ol); paint-order: stroke fill; }
.ol-tcrews .pc { flex: none; font-size: 16px; font-weight: 800; color: #d8d0ef; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.ol-bundleov .ol-bstage { position: relative; flex: none; width: 100%; height: 360px; }
.ol-bundleov .ol-bfan { position: absolute; left: 50%; top: 62%; width: 0; height: 0; }
.ol-bundleov .ol-bpack { animation-name: olPackDrop; }
@keyframes olPackDrop { from { transform: translate(-50%, -100%) translateY(-120px) scale(0.6); opacity: 0; } }
.ol-osheet .rd-ribbon.name.long .nm { font-size: 25px; }
.ol .ol-oart .ol-fanart { height: 178px; margin-left: 18px; }
/* the landscape frame: three offers a row; the box and its packs smaller so both fit the height */
.bd.wide .ol-shopgrid { grid-template-columns: repeat(3, 228px); }
.bd.wide .ol-boxov .ol-box { width: 300px; margin-top: 210px; }
.bd.wide .ol-bundleov .ol-bstage { height: 300px; }

/* the player sheet: your record, the backup and restore (MONETIZATION-HANDOFF.txt "Recovery contract") */
.ol .rd-sheet.ol-plsheet { height: auto; max-height: calc(100% - 40px); padding-bottom: 18px; }
.ol-plsheet .rd-sbody { margin-top: 92px; gap: 18px; padding: 0 24px 12px; box-sizing: border-box; align-items: stretch; }
.ol-plrec { display: flex; align-items: center; gap: 18px; }
.ol-plrec .fig { flex: none; width: 120px; height: 120px; display: grid; place-items: end center; border: 5px solid var(--ol); border-radius: 26px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #8b9bf0, #3d438f); }
.ol-plrec .fig .rd-figcv { position: static !important; }
.ol-bkstate { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 14px; border: 3px solid var(--ol); border-radius: 14px;
  background: linear-gradient(180deg, #e9e4f6, #b9b0d4); color: #2f2437; font-size: 20px; font-weight: 800; }
.ol-bkstate.on { background: linear-gradient(180deg, #d9ffc0, #8fd96a); }
.ol-bkstate small { font-size: 16px; }
.ol-backup p, .ol-restore p { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: #efe9ff; }
.ol-bkcode { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 4px solid var(--ol); border-radius: 16px; background: #fffdf6; }
.ol-bkcode code { flex: 1; min-width: 0; font: 700 18px/1.35 ui-monospace, Menlo, Consolas, monospace; color: #2f2437; word-break: break-all; user-select: all; -webkit-user-select: all; }
.ol .ol-bkcode .ol-bkcopy { flex: none; height: 52px; padding: 0 16px; font-size: 21px; }
.ol-backup .ol-bkwarn { color: #ffe08a; }
.ol-backup .ol-bkexp, .ol-backup .ol-bknote { color: #d8d0ef; font-size: 16px; }
.ol-bkrow { display: flex; justify-content: center; gap: 14px; margin-top: 4px; }
.ol .ol-bkrow .rd-btn { height: 72px; padding: 0 22px; font-size: 24px; }
.ol .ol-bkrow .big-btn, .ol .ol-backup .ol-bkmake { min-width: 0; width: 280px; height: 72px; font-size: 26px; align-self: center; }
.ol-rsform { grid-column: auto; }
.ol .ol-rsform input { flex: 1; width: auto; min-width: 0; font-size: 18px; text-transform: none; letter-spacing: 0; }
.ol .ol-osheet .rd-sfoot .ol-obackup { flex-direction: column; gap: 0; line-height: 1.05; }
.ol .ol-osheet .rd-sfoot .ol-obackup small { font-size: 15px; }
/* restore from the campaign's locked ONLINE plate */
.bd .ol-hooksay .ol-hookrs { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: #3156a6; font: inherit; font-size: 16px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.bd .ol-rspanel { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(14, 10, 30, 0.6); pointer-events: auto; }
.ol-rspanel .card { position: relative; width: 470px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 24px; border: 5px solid var(--ol); border-radius: 26px;
  background: linear-gradient(180deg, #5d5480, #3d3558); color: #fff; font-family: var(--font); }
.ol-rspanel .ttl { font-size: 30px; font-weight: 800; -webkit-text-stroke: 7px var(--ol); paint-order: stroke fill; }
.ol-rspanel p { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: #efe9ff; }
.ol-rspanel .rd-btn.rd-x { position: absolute; top: 14px; right: 14px; }
.bd .ol-rspanel .ol-join input { flex: 1; width: auto; min-width: 0; height: 66px; padding: 0 14px; border: 4px solid var(--ol); border-radius: 16px; background: #fffdf6; color: #2f2437;
  font-family: var(--font); font-size: 18px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.bd .ol-rspanel .ol-join { display: flex; gap: 10px; align-items: center; }
.bd .ol-rspanel .ol-join .rd-btn { height: 66px; font-size: 24px; padding: 0 18px; }
