/* Play for WGC (/wgc, public/wager-controls.js). A framed emerald hall like the Tournament Hall and Community: a banner
   with the WGC wallet and the player's record, the composer beside the open challenges (the list scrolls inside a card
   exactly as tall as the composer, so the row never leaves a hole), the player's challenges as a colour-coded status list,
   then the rules and links to Tournaments and the Store. Layout follows the hall's own width (container queries), so the
   sidebar does not matter. Every animation hangs off html[data-motion=full] (motion.js); calm mode keeps still visuals.
   Selectors start with "html body #wagerView" so they win over the generic .app-view, button and heading rules. */
#wagerView{--wg-gold:#d7b45a;--wg-gold-hi:#f0d483;--wg-soft:#f3d68a;--wg-cream:#fff1c1;--wg-text:#dde6e0;--wg-muted:#a3b6ae;--wg-dim:#8fa59b;--wg-line:rgba(215,180,90,.28);--wg-green:#3ad98c;--wg-win:#7fe0a8;--wg-loss:#ff9c8a;--wg-refund:#8fd0ee}
html body #wagerView:not([hidden]){display:block;padding:14px 20px 44px!important;overflow-wrap:break-word;word-break:keep-all}
html body #wagerView>#wagerContent.wgp{container:wgp/inline-size;display:flex;flex-direction:column;gap:16px;width:100%;max-width:1240px;margin:0 auto;padding:20px;border:1px solid rgba(216,183,108,.42);border-radius:22px;background:radial-gradient(120% 50% at 0% 0%,rgba(216,183,108,.12),transparent 55%),linear-gradient(180deg,rgba(18,58,56,.97) 0%,rgba(13,42,44,.97) 60%,rgba(10,33,36,.97) 100%);box-shadow:0 24px 60px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.06);color:var(--wg-text);font:500 15px/1.45 system-ui,sans-serif;box-sizing:border-box}
html body #wagerView>#wagerContent.wgp[hidden],html body #wagerView .wgp [hidden]{display:none!important}
html body #wagerView .wgp *{box-sizing:border-box}
html body #wagerView .wgp :is(h1,h2,p,ol,ul){margin:0;padding:0}
html body #wagerView .wgp :is(ol,ul){list-style:none}
html body #wagerView .wgp h2{color:var(--wg-cream);font:700 22px/1.2 Georgia,'Noto Serif KR',serif;letter-spacing:0}
#wagerView .wgp-coin{font-family:'Segoe UI Symbol','Noto Sans Symbols 2','Apple Symbols',system-ui,sans-serif}

/* ---- banner ---- */
html body #wagerView .wgp-hero{position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(250px,290px);grid-template-areas:"medal copy stats wallet";align-items:center;gap:16px 24px;margin:0;padding:20px 24px;border:1px solid rgba(215,180,90,.6);border-radius:20px;background:radial-gradient(110% 150% at 0% 0%,rgba(215,180,90,.24),rgba(215,180,90,0) 55%),radial-gradient(80% 120% at 100% 100%,rgba(47,210,126,.16),rgba(47,210,126,0) 60%),linear-gradient(135deg,#14403c 0%,#0c2a2b 58%,#081d1f 100%);box-shadow:0 18px 40px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.07);color:#efe6cf}
html body #wagerView .wgp-hero::before{content:'\265A';position:absolute;right:340px;bottom:-72px;z-index:-1;color:rgba(215,180,90,.07);font:400 230px/1 'Segoe UI Symbol','Noto Sans Symbols 2',serif;pointer-events:none}
html body #wagerView .wgp-hero::after{content:'';position:absolute;left:30px;right:30px;bottom:0;height:2px;background:linear-gradient(90deg,rgba(215,180,90,0),rgba(243,214,138,.85),rgba(215,180,90,0));pointer-events:none}
html body #wagerView .wgp:is([data-mode=signin],[data-mode=off]) .wgp-hero{grid-template-columns:auto minmax(0,1fr) minmax(260px,330px);grid-template-areas:"medal copy wallet"}
#wagerView .wgp-medallion{grid-area:medal;display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3c8,#dcb65e 46%,#8a6420 100%);color:#2a1d05;font-size:40px;line-height:1;box-shadow:0 0 0 6px rgba(215,180,90,.14),0 0 0 7px rgba(215,180,90,.55),0 12px 26px rgba(0,0,0,.5),0 0 34px rgba(255,214,120,.35)}
#wagerView .wgp-hero-copy{grid-area:copy;min-width:0}
html body #wagerView .wgp-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 4px;color:#e7c672;font:800 11.5px/1.2 system-ui,sans-serif;letter-spacing:.3em;text-transform:uppercase}
#wagerView .wgp-eyebrow::after{content:'';flex:0 0 46px;height:1px;background:linear-gradient(90deg,rgba(231,198,114,.9),rgba(231,198,114,0))}
html body #wagerView .wgp-title{margin:2px 0 6px;background:linear-gradient(100deg,#d4a94e 0%,#f6dd94 30%,#fff6d8 44%,#f6dd94 58%,#d4a94e 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;font:700 clamp(28px,3.6cqi,42px)/1.08 Georgia,'Noto Serif KR',serif;letter-spacing:0;filter:drop-shadow(0 2px 8px rgba(0,0,0,.45));outline:none}
html body #wagerView .wgp-sub{max-width:60ch;color:#cfdcd5;font:500 15px/1.5 system-ui,sans-serif}
#wagerView .wgp-stats{grid-area:stats;display:grid;grid-template-columns:repeat(2,minmax(108px,1fr));gap:8px;min-width:0}
#wagerView .wgp-stat{display:grid;gap:5px;min-width:0;padding:9px 12px;border:1px solid rgba(215,180,90,.38);border-radius:12px;background:linear-gradient(180deg,rgba(6,22,24,.62),rgba(6,22,24,.42));box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
#wagerView .wgp-stat strong{color:var(--wg-cream);font:700 22px/1 Georgia,serif;font-variant-numeric:tabular-nums;white-space:nowrap}
#wagerView .wgp-stat small{overflow:hidden;color:#e7c672;font:800 10px/1.1 system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis}
#wagerView .wgp-stat-won strong,#wagerView .wgp-stat-net[data-sign=up] strong{color:var(--wg-win)}
#wagerView .wgp-stat-lost strong,#wagerView .wgp-stat-net[data-sign=down] strong{color:var(--wg-loss)}

/* the wallet card on the banner's right (or the sign-in / coming-soon card in its place) */
#wagerView .wgp-wallet{grid-area:wallet;container:wgp-wallet/inline-size;position:relative;display:grid;align-content:center;gap:8px;min-width:0;align-self:stretch;padding:14px 18px;border:1px solid rgba(215,180,90,.65);border-radius:16px;background:linear-gradient(180deg,rgba(6,22,24,.8),rgba(6,22,24,.6));box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 8px 20px rgba(0,0,0,.3)}
#wagerView .wgp-wallet-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
#wagerView .wgp-wallet-top small{color:#e7c672;font:800 10.5px/1.1 system-ui,sans-serif;letter-spacing:.22em;text-transform:uppercase;white-space:nowrap}
#wagerView .wgp-wallet-name{min-width:0;overflow:hidden;color:#cfdcd5;font:600 13px/1.2 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
html body #wagerView .wgp-balance{display:flex;align-items:center;gap:10px;min-width:0;color:var(--wg-cream);font:700 clamp(24px,14cqi,38px)/1 Georgia,serif;white-space:nowrap}
#wagerView .wgp-balance-num{font-variant-numeric:tabular-nums;transition:text-shadow .4s ease}
#wagerView .wgp-balance .wgp-coin{flex:none;display:grid;place-items:center;width:1.8em;height:1.8em;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3c8,#dcb65e 46%,#8a6420);color:#2a1d05;font-size:.48em;box-shadow:0 0 0 3px rgba(215,180,90,.18),0 0 18px rgba(255,214,120,.35)}
#wagerView .wgp-balance small{align-self:flex-end;margin-bottom:.12em;color:#e7c672;font:800 13px/1 system-ui,sans-serif;letter-spacing:.12em}
#wagerView .wgp-balance[data-counting] .wgp-balance-num{text-shadow:0 0 18px rgba(255,214,120,.65)}
#wagerView .wgp-wallet-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
#wagerView .wgp-updated{min-width:0;color:var(--wg-dim);font-size:12.5px;line-height:1.3}
html body #wagerView .wgp-refresh{flex:none;display:inline-flex;align-items:center;gap:6px;width:auto;min-height:34px;margin:0;padding:5px 13px;border:1px solid rgba(215,180,90,.55);border-radius:999px;background:rgba(255,255,255,.04);color:#f3e6c2;font:700 13px/1 system-ui,sans-serif;cursor:pointer}
#wagerView .wgp-refresh-icon{display:inline-block;color:#e7c672;font-size:15px;line-height:1}
html body #wagerView .wgp-refresh:disabled{opacity:.75;cursor:progress}
html body #wagerView .wgp-wallet-why{color:#cfdcd5;font:500 13.5px/1.5 system-ui,sans-serif}
#wagerView .wgp-soon{justify-self:start;display:inline-block;padding:4px 12px;border:1px solid rgba(215,180,90,.6);border-radius:999px;background:rgba(215,180,90,.1);color:#f3d68b;font:800 11px/1.2 system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase}

/* ---- panels ---- */
html body #wagerView .wgp-panel{position:relative;min-width:0;padding:20px;border:1px solid var(--wg-line);border-radius:18px;background:linear-gradient(180deg,rgba(20,64,60,.6),rgba(8,28,30,.72));box-shadow:0 12px 30px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.05)}
#wagerView .wgp-panel-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 14px}
html body #wagerView .wgp-panel-sub{flex:1 0 100%;color:var(--wg-muted);font:500 13.5px/1.45 system-ui,sans-serif}
#wagerView .wgp-count{display:inline-grid;place-items:center;min-width:26px;height:24px;padding:0 8px;border:1px solid rgba(215,180,90,.5);border-radius:999px;background:rgba(215,180,90,.16);color:var(--wg-soft);font:800 12.5px/1 system-ui,sans-serif}
#wagerView .wgp-live{margin-left:auto;display:inline-flex;align-items:center;gap:8px;color:#9fe0bd;font:800 10.5px/1 system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase}
#wagerView .wgp-live::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--wg-green);box-shadow:0 0 0 3px rgba(58,217,140,.2),0 0 10px rgba(58,217,140,.8)}
html body #wagerView .wgp-notice{padding:11px 16px;border:1px solid rgba(255,140,120,.55);border-radius:12px;background:rgba(200,70,55,.18);color:#ffe3dc;font:650 14.5px/1.45 system-ui,sans-serif}

/* ---- composer and open challenges, side by side ---- */
#wagerView .wgp-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:16px;align-items:stretch}
#wagerView .wgp-create{container:wgp-create/inline-size;display:flex;flex-direction:column;gap:12px}
#wagerView .wgp-create .wgp-panel-head{margin:0}
#wagerView .wgp-field{display:grid;gap:8px}
#wagerView .wgp-field-head{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;min-width:0}
#wagerView .wgp-label{color:#e7c672;font:800 10.5px/1.1 system-ui,sans-serif;letter-spacing:.22em;text-transform:uppercase}
#wagerView .wgp-chips{display:flex;flex-wrap:wrap;gap:8px}
html body #wagerView .wgp-chip{flex:1 1 0;min-width:0;width:auto;min-height:52px;display:grid;place-items:center;align-content:center;gap:4px;margin:0;padding:8px 4px;border:1px solid rgba(215,180,90,.35);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.015));color:#efe6cf;box-shadow:inset 0 1px 0 rgba(255,255,255,.05);cursor:pointer}
#wagerView .wgp-chip strong{display:flex;align-items:center;gap:5px;font:800 17px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
#wagerView .wgp-chip .wgp-coin{color:#e7c672;font-size:13px}
#wagerView .wgp-chip small{color:var(--wg-muted);font:700 10px/1 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
@media (hover:hover){html body #wagerView .wgp-chip:not(:disabled):not([aria-pressed=true]):hover{border-color:rgba(231,198,114,.85);background:rgba(215,180,90,.1)}}
html body #wagerView .wgp-chip[aria-pressed=true]{border-color:#f3d98f;background:linear-gradient(180deg,#f0d483,#c99a3c);color:#1d1608;box-shadow:0 6px 18px rgba(201,154,60,.35),inset 0 1px 0 rgba(255,255,255,.5)}
#wagerView .wgp-chip[aria-pressed=true] :is(small,.wgp-coin){color:#3a2a0c}
#wagerView .wgp-chip[data-short=true]:not([aria-pressed=true]){opacity:.55}
#wagerView .wgp-ledger{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1.2fr);align-items:stretch;gap:8px;padding:9px 10px;border:1px solid rgba(215,180,90,.35);border-radius:14px;background:rgba(5,20,22,.55)}
#wagerView .wgp-ledger-cell{display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;align-items:end;gap:6px;min-width:0;padding:7px 4px;text-align:center}
#wagerView .wgp-ledger-cell small{color:var(--wg-muted);font:700 10.5px/1.25 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase}
#wagerView .wgp-ledger-cell strong{display:flex;align-items:center;gap:6px;color:var(--wg-cream);font:700 22px/1 Georgia,serif;font-variant-numeric:tabular-nums;white-space:nowrap}
#wagerView .wgp-ledger-cell .wgp-coin{color:#e7c672;font-size:14px}
#wagerView .wgp-ledger-op{align-self:center;color:#e7c672;font:700 18px/1 system-ui,sans-serif;opacity:.75}
#wagerView .wgp-ledger-pot{border-radius:12px;background:linear-gradient(180deg,rgba(215,180,90,.22),rgba(215,180,90,.06));box-shadow:inset 0 0 0 1px rgba(243,214,138,.55)}
#wagerView .wgp-ledger-pot small{color:var(--wg-soft)}
#wagerView .wgp-fee{margin:-4px 0 0;color:var(--wg-dim);font:500 12px/1.3 system-ui,sans-serif;text-align:center}
#wagerView .wgp-ledger-pot strong>span{background:linear-gradient(180deg,#fff6d8,#f0d483 55%,#d4a94e);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
html body #wagerView .wgp-cta{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;margin:0;padding:12px 18px;border:1px solid #f3d98f;border-radius:14px;background:linear-gradient(180deg,#f0d483,#c99a3c);color:#1d1608!important;font:800 16.5px/1.2 system-ui,sans-serif;letter-spacing:.01em;text-align:center;text-decoration:none;box-shadow:0 4px 0 #8a6420,0 12px 26px rgba(201,154,60,.3),inset 0 1px 0 rgba(255,255,255,.5);cursor:pointer}
html body #wagerView .wgp-cta .wgp-coin{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#1d1608;color:#ffe6a3;font-size:13px}
html body #wagerView .wgp-go[data-armed=true]{border-color:#ffc2ae;background:linear-gradient(180deg,#f08a6c,#c4452e);color:#fff!important;box-shadow:0 4px 0 #7e2414,0 0 0 4px rgba(240,138,108,.22)}
html body #wagerView .wgp-go[data-armed=true] .wgp-coin{background:#fff;color:#c4452e}
html body #wagerView .wgp-go:disabled{opacity:1;border-color:#55705f;background:#173a3d;color:#b8c9c0!important;box-shadow:none;cursor:not-allowed}
html body #wagerView .wgp-go[data-busy=true]{cursor:progress}
html body #wagerView .wgp-go:disabled .wgp-coin{background:#0d2427;color:#d7c79a}
html body #wagerView .wgp-after{min-width:0;color:var(--wg-dim);font:500 12px/1.3 system-ui,sans-serif;text-align:right}
#wagerView .wgp-after[data-short=true]{color:#ffb4a8}
#wagerView .wgp-create.wgp-nudge .wgp-go{outline:3px solid rgba(255,240,179,.85);outline-offset:3px}

#wagerView .wgp-open{display:flex;flex-direction:column;min-height:0}
#wagerView .wgp-open-body{container:wgp-openbody/inline-size;position:relative;flex:1 1 auto;min-height:280px}
#wagerView .wgp-open-scroll{position:absolute;inset:0;display:flex;flex-direction:column;gap:10px;overflow:auto;padding:2px 6px 2px 2px;scrollbar-width:thin;scrollbar-color:rgba(215,180,90,.55) transparent;overscroll-behavior:contain}
#wagerView .wgp-open-body[data-more=true] .wgp-open-scroll{-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 64px),rgba(0,0,0,.15));mask-image:linear-gradient(180deg,#000 calc(100% - 64px),rgba(0,0,0,.15))}
#wagerView .wgp-offers{container:wgp-offers/inline-size;flex:none;display:flex;flex-direction:column;gap:10px}
#wagerView .wgp-offers:empty{display:none}
#wagerView .wgp-offer{flex:none;display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"av who go" "av meta go";align-items:center;gap:6px 14px;padding:11px 12px 11px 14px;border:1px solid rgba(215,180,90,.24);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));transition:border-color .25s ease,box-shadow .25s ease,translate .25s ease}
@media (hover:hover){#wagerView .wgp-offer:hover{border-color:rgba(231,198,114,.7);box-shadow:0 10px 24px rgba(0,0,0,.3),0 0 0 1px rgba(231,198,114,.25)}html[data-motion=full] #wagerView .wgp-offer:hover{translate:0 -2px}}
html body #wagerView .wgp-offer .player-portrait.wgp-avatar{grid-area:av;align-self:center;width:44px;height:44px;min-width:44px;margin:0;border-width:1px;box-shadow:0 0 0 3px rgba(215,180,90,.14),0 6px 14px rgba(0,0,0,.35)}
#wagerView .wgp-avatar .portrait-initials{font:700 15px/1 system-ui,sans-serif;color:#f3dc9f}
#wagerView .wgp-offer-who{grid-area:who;align-self:end;display:grid;min-width:0}
#wagerView .wgp-offer-name{overflow:hidden;color:var(--wg-cream);font:700 15.5px/1.2 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
#wagerView .wgp-offer-meta{grid-area:meta;align-self:start;display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;min-width:0;color:var(--wg-muted);font-size:12.5px;line-height:1.3}
#wagerView .wgp-tc{display:inline-flex;align-items:center;padding:2px 9px;border:1px solid rgba(127,224,168,.32);border-radius:999px;background:rgba(47,210,126,.1);color:#cfe9da;font-weight:700;white-space:nowrap}
#wagerView .wgp-tc[data-speed=blitz]{border-color:rgba(215,180,90,.42);background:rgba(215,180,90,.12);color:#ffe6a3}
#wagerView .wgp-tc[data-speed=bullet]{border-color:rgba(255,140,120,.38);background:rgba(255,140,120,.1);color:#ffc3b8}
#wagerView .wgp-offer-pot{white-space:nowrap}
#wagerView .wgp-offer-timer{display:inline-flex;align-items:center;gap:8px;min-width:0}
#wagerView .wgp-timebar{flex:none;width:64px;height:5px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.09)}
#wagerView .wgp-timebar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c99a3c,#f0d483);transform-origin:0 50%}
#wagerView .wgp-offer[data-urgent=true] .wgp-timebar i{background:linear-gradient(90deg,#c4452e,#f08a6c)}
#wagerView .wgp-left{flex:none;color:var(--wg-muted);font-size:12px;white-space:nowrap}
#wagerView .wgp-offer[data-urgent=true] .wgp-left{color:#ffb4a8}
html body #wagerView .wgp-accept{grid-area:go;justify-self:end;display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:auto;min-height:42px;margin:0;padding:5px 5px 5px 16px;border:1px solid #f3d98f;border-radius:999px;background:linear-gradient(180deg,#f0d483,#c99a3c);color:#1d1608;font:800 14px/1.1 system-ui,sans-serif;white-space:nowrap;box-shadow:0 6px 16px rgba(201,154,60,.28),inset 0 1px 0 rgba(255,255,255,.5);cursor:pointer}
#wagerView .wgp-accept-price{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:58px;min-height:30px;padding:0 11px;border-radius:999px;background:#1d1608;color:#ffe6a3;font:800 14px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums}
#wagerView .wgp-accept-price .wgp-coin{color:#e7c672;font-size:12px}
html body #wagerView .wgp-accept[data-armed=true]{border-color:#ffc2ae;background:linear-gradient(180deg,#f08a6c,#c4452e);color:#fff;box-shadow:0 0 0 4px rgba(240,138,108,.22)}
#wagerView .wgp-accept[data-armed=true] .wgp-accept-price{background:#fff;color:#a8321e}
#wagerView .wgp-accept[data-armed=true] .wgp-accept-price .wgp-coin{color:#c4452e}
html body #wagerView .wgp-accept:disabled{opacity:1;border-color:#55705f;background:#173a3d;color:#b8c9c0;box-shadow:none;cursor:not-allowed}
#wagerView .wgp-accept:disabled .wgp-accept-price{background:#0d2427;color:#d7c79a}
@container wgp-offers (max-width:420px){
 #wagerView .wgp-offer{grid-template-columns:40px minmax(0,1fr);grid-template-areas:"av who" "av meta" "go go";gap:6px 12px;padding:12px}
 html body #wagerView .wgp-offer .player-portrait.wgp-avatar{width:40px;height:40px;min-width:40px}
 html body #wagerView .wgp-accept{justify-self:stretch;min-height:46px;margin-top:6px}
}
#wagerView .wgp-empty{flex:1 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:22px;border:1px dashed rgba(215,180,90,.38);border-radius:16px;background:radial-gradient(60% 55% at 50% 38%,rgba(215,180,90,.12),transparent 70%);text-align:center}
#wagerView .wgp-empty-ring{position:relative;display:grid;place-items:center;width:92px;height:92px;margin-bottom:6px;border-radius:50%;background:radial-gradient(circle at 50% 45%,rgba(215,180,90,.24),rgba(215,180,90,.04) 70%)}
#wagerView .wgp-empty-ring::before{content:'';position:absolute;inset:0;border:2px dashed rgba(231,198,114,.55);border-radius:50%}
#wagerView .wgp-empty-ring::after{content:'';position:absolute;inset:10px;border:1px solid rgba(231,198,114,.3);border-radius:50%}
#wagerView .wgp-empty-ring .wgp-coin{color:#f0d483;font-size:40px;line-height:1;text-shadow:0 0 18px rgba(255,214,120,.5)}
#wagerView .wgp-empty strong{color:var(--wg-cream);font:700 19px/1.25 Georgia,'Noto Serif KR',serif}
html body #wagerView .wgp-empty p{max-width:44ch;color:var(--wg-muted);font:500 14px/1.5 system-ui,sans-serif}
#wagerView .wgp-empty-copy{display:grid;justify-items:center;gap:6px;min-width:0}
html body #wagerView .wgp-ghost{width:auto;min-height:42px;margin:6px 0 0;padding:8px 20px;border:1px solid rgba(215,180,90,.65);border-radius:999px;background:rgba(215,180,90,.08);color:#f3e6c2;font:700 14px/1 system-ui,sans-serif;white-space:nowrap;cursor:pointer}
/* below some challenges the invitation is one compact row that fills the rest of the card */
#wagerView .wgp-empty[data-compact]{flex-direction:row;justify-content:flex-start;gap:14px;min-height:84px;padding:14px 16px;background:radial-gradient(50% 120% at 0% 50%,rgba(215,180,90,.1),transparent 70%);text-align:left}
#wagerView .wgp-empty[data-compact] .wgp-empty-ring{flex:none;width:52px;height:52px;margin:0}
#wagerView .wgp-empty[data-compact] .wgp-empty-ring::after{inset:6px}
#wagerView .wgp-empty[data-compact] .wgp-empty-ring .wgp-coin{font-size:22px}
#wagerView .wgp-empty[data-compact] .wgp-empty-copy{flex:1 1 auto;justify-items:start;gap:2px}
#wagerView .wgp-empty[data-compact] strong{font-size:16px}
html body #wagerView .wgp-empty[data-compact] p{font-size:13px}
html body #wagerView .wgp-empty[data-compact] .wgp-ghost{flex:none;margin:0}
@container wgp-openbody (max-width:440px){
 #wagerView .wgp-empty[data-compact]{flex-wrap:wrap}
 #wagerView .wgp-empty[data-compact] .wgp-empty-copy{flex-basis:calc(100% - 66px)}
 html body #wagerView .wgp-empty[data-compact] .wgp-ghost{flex:1 1 100%}
}

/* ---- your challenges: one row per challenge, colour-coded by state ---- */
#wagerView .wgp-mine{container:wgp-mine/inline-size}
#wagerView .wgp-rows{display:grid;overflow:hidden;border:1px solid rgba(215,180,90,.2);border-radius:14px;background:rgba(5,20,22,.42)}
#wagerView .wgp-rows:empty{display:none}
#wagerView .wgp-row{--k:#f0c75e;position:relative;display:grid;grid-template-columns:118px 72px 118px minmax(0,1fr) 70px 96px 150px;grid-template-areas:"badge stake tc main delta when act";align-items:center;gap:6px 14px;min-height:62px;padding:10px 16px 10px 20px;border-top:1px solid rgba(255,255,255,.06);transition:background-color .25s ease}
#wagerView .wgp-row:first-child{border-top:0}
#wagerView .wgp-row::before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--k);box-shadow:0 0 10px color-mix(in srgb,var(--k) 60%,transparent)}
@media (hover:hover){#wagerView .wgp-row:hover{background:rgba(215,180,90,.05)}}
#wagerView .wgp-row[data-kind=live]{--k:#3ad98c;background:linear-gradient(90deg,rgba(58,217,140,.08),transparent 45%)}
#wagerView .wgp-row[data-kind=pay]{--k:#e7c672}
#wagerView .wgp-row[data-kind=win]{--k:#7fe0a8}
#wagerView .wgp-row[data-kind=loss]{--k:#ff8f7a}
#wagerView .wgp-row[data-kind=refund]{--k:#8fd0ee}
#wagerView .wgp-row[data-kind=muted]{--k:#9aaba4}
#wagerView .wgp-row[data-kind=error]{--k:#ff7a66}
#wagerView .wgp-row[data-kind=held]{--k:#f0b44c}
#wagerView .wgp-badge{grid-area:badge;justify-self:start;display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 11px 5px 9px;border:1px solid color-mix(in srgb,var(--k) 55%,transparent);border-radius:999px;background:color-mix(in srgb,var(--k) 13%,transparent);color:var(--k);font:800 11px/1.1 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
#wagerView .wgp-badge>span{overflow:hidden;text-overflow:ellipsis}
#wagerView .wgp-badge i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--k);box-shadow:0 0 8px var(--k)}
#wagerView .wgp-row[data-kind=pay] .wgp-badge i{width:9px;height:9px;border:2px solid var(--k);border-right-color:transparent;background:none;box-shadow:none}
#wagerView .wgp-row-meta{display:contents}
#wagerView .wgp-row-stake{grid-area:stake;display:inline-flex;align-items:center;gap:5px;color:var(--wg-cream);font:800 15px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
#wagerView .wgp-row-stake .wgp-coin{color:#e7c672;font-size:12px}
#wagerView .wgp-row-tc{grid-area:tc;color:#cfdcd5;font-size:13px;white-space:nowrap}
#wagerView .wgp-row-when{grid-area:when;color:var(--wg-dim);font-size:12.5px;text-align:right;white-space:nowrap}
#wagerView .wgp-row-main{grid-area:main;display:grid;gap:2px;min-width:0}
#wagerView .wgp-row-vs{overflow:hidden;color:var(--wg-cream);font:700 14.5px/1.25 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
#wagerView .wgp-row-text{color:var(--wg-muted);font-size:13px;line-height:1.35}
#wagerView .wgp-row[data-kind=win] .wgp-row-text{color:#b5ecd0}
#wagerView .wgp-row[data-kind=loss] .wgp-row-text,#wagerView .wgp-row[data-kind=error] .wgp-row-text{color:#ffc3b8}
#wagerView .wgp-row-delta{grid-area:delta;justify-self:end;font:800 15.5px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
#wagerView .wgp-row[data-kind=win] .wgp-row-delta{color:var(--wg-win);text-shadow:0 0 12px rgba(127,224,168,.35)}
#wagerView .wgp-row[data-kind=loss] .wgp-row-delta{color:var(--wg-loss)}
#wagerView .wgp-row-actions{grid-area:act;display:flex;justify-content:flex-end;gap:8px;min-width:0}
html body #wagerView .wgp-row-actions button{width:auto;min-height:36px;margin:0;padding:6px 14px;border-radius:999px;font:700 13px/1.1 system-ui,sans-serif;white-space:nowrap;cursor:pointer}
html body #wagerView .wgp-row-open{border:1px solid rgba(215,180,90,.65);background:rgba(215,180,90,.1);color:#f3e6c2}
html body #wagerView .wgp-row[data-kind=live] .wgp-row-open{border-color:#f3d98f;background:linear-gradient(180deg,#f0d483,#c99a3c);color:#1d1608}
html body #wagerView .wgp-row-cancel{border:1px solid rgba(255,140,120,.55);background:rgba(255,120,100,.08);color:#ffc3b8}
html body #wagerView .wgp-row-cancel[data-armed=true]{border-color:#ffc2ae;background:linear-gradient(180deg,#f08a6c,#c4452e);color:#fff}
#wagerView .wgp-rows-empty{display:flex;align-items:center;gap:16px;padding:16px 18px;border:1px dashed rgba(215,180,90,.35);border-radius:14px;background:rgba(5,20,22,.35)}
#wagerView .wgp-rows-empty-mark{flex:none;display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(215,180,90,.5);border-radius:50%;background:rgba(215,180,90,.1);color:#f0d483;font-size:22px}
#wagerView .wgp-rows-empty div{display:grid;gap:3px;min-width:0}
#wagerView .wgp-rows-empty strong{color:var(--wg-cream);font:700 16.5px/1.3 Georgia,'Noto Serif KR',serif}
#wagerView .wgp-rows-empty span{color:var(--wg-muted);font-size:13.5px;line-height:1.45}
html body #wagerView .wgp-more{display:block;width:auto;min-height:38px;margin:12px auto 0;padding:6px 20px;border:1px solid rgba(215,180,90,.5);border-radius:999px;background:transparent;color:var(--wg-soft);font:700 13.5px/1 system-ui,sans-serif;cursor:pointer}
@container wgp-mine (max-width:880px){
 #wagerView .wgp-row{grid-template-columns:112px minmax(0,1fr) auto 136px;grid-template-areas:"badge vs delta act" "badge text delta act" "badge meta delta act";gap:3px 14px;padding:11px 14px 11px 18px}
 #wagerView .wgp-row-main{display:contents}
 #wagerView .wgp-row-vs{grid-area:vs;white-space:normal;overflow-wrap:anywhere}
 #wagerView .wgp-row-text{grid-area:text}
 #wagerView .wgp-row-meta{grid-area:meta;display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px;min-width:0;margin-top:2px}
 #wagerView .wgp-row-when{text-align:left}
}
@container wgp-mine (max-width:560px){
 #wagerView .wgp-row{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"badge vs delta" "text text text" "meta meta act";gap:7px 12px;padding:12px 14px 12px 18px}
 #wagerView .wgp-row-meta{margin-top:0}
}
@container wgp-mine (max-width:440px){
 #wagerView .wgp-row{grid-template-areas:"badge vs delta" "text text text" "meta meta meta"}
 #wagerView .wgp-row[data-actions]{grid-template-areas:"badge vs delta" "text text text" "meta meta meta" "act act act"}
 #wagerView .wgp-row:not([data-actions]) .wgp-row-actions{display:none}
 #wagerView .wgp-row-actions{justify-content:stretch}
 html body #wagerView .wgp-row-actions button{flex:1 1 auto;min-height:42px}
 #wagerView .wgp-rows-empty{align-items:flex-start;padding:14px}
}

/* ---- closed (wagering off), first steps (no WGC sign-in), rules and links ---- */
#wagerView .wgp-closed{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px 22px;padding:22px 24px}
#wagerView .wgp-closed-mark{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3c8,#dcb65e 46%,#8a6420 100%);color:#2a1d05;font-size:30px;box-shadow:0 0 0 5px rgba(215,180,90,.14),0 10px 22px rgba(0,0,0,.45)}
#wagerView .wgp-closed-copy{display:grid;justify-items:start;gap:8px;min-width:0}
html body #wagerView .wgp-closed-copy p{max-width:72ch;color:#dfe7e2;font:500 15px/1.55 system-ui,sans-serif}
html body #wagerView .wgp-closed .wgp-cta{width:auto;padding:12px 26px;white-space:nowrap}
#wagerView .wgp-steps h2{margin-bottom:14px}
#wagerView .wgp-steps ol{counter-reset:wgp-step;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#wagerView .wgp-steps li{counter-increment:wgp-step;display:grid;align-content:start;gap:6px;min-width:0;padding:16px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(5,20,22,.42)}
#wagerView .wgp-steps li::before{content:counter(wgp-step);display:grid;place-items:center;width:30px;height:30px;margin-bottom:4px;border-radius:50%;background:linear-gradient(180deg,#f0d483,#c99a3c);color:#1d1608;font:800 14px/1 system-ui,sans-serif;box-shadow:0 4px 12px rgba(201,154,60,.35)}
#wagerView .wgp-steps strong{color:var(--wg-cream);font:700 15px/1.3 system-ui,sans-serif}
#wagerView .wgp-steps span{color:var(--wg-muted);font-size:13.5px;line-height:1.45}
#wagerView .wgp-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,320px);gap:16px;align-items:stretch}
#wagerView .wgp-how{container:wgp-how/inline-size}
html body #wagerView .wgp-how h2{margin-bottom:14px;font-size:19px}
#wagerView .wgp-how ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px}
#wagerView .wgp-how li{display:flex;align-items:flex-start;gap:11px;min-width:0}
#wagerView .wgp-how-icon{flex:none;display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(215,180,90,.55);border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(255,243,200,.22),rgba(215,180,90,.06));color:#f0d483;font:400 17px/1 'Segoe UI Symbol','Noto Sans Symbols 2',serif}
#wagerView .wgp-how li>div{display:grid;gap:3px;min-width:0}
#wagerView .wgp-how strong{color:var(--wg-cream);font:700 14px/1.3 system-ui,sans-serif}
#wagerView .wgp-how li>div>span{color:var(--wg-muted);font-size:13px;line-height:1.45}
@container wgp-how (max-width:760px){#wagerView .wgp-how ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container wgp-how (max-width:400px){#wagerView .wgp-how ol{grid-template-columns:minmax(0,1fr);gap:12px}}
#wagerView .wgp-links{display:flex;flex-direction:column;gap:12px;min-width:0}
html body #wagerView .wgp-link{flex:1 1 0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;min-height:76px;padding:14px 16px;border:1px solid rgba(215,180,90,.42);border-radius:16px;background:radial-gradient(90% 120% at 0% 0%,rgba(215,180,90,.14),transparent 60%),linear-gradient(135deg,rgba(20,64,60,.8),rgba(8,28,30,.88));color:var(--wg-text);text-decoration:none;box-shadow:0 10px 24px rgba(0,0,0,.25);transition:border-color .25s ease,box-shadow .25s ease,translate .25s cubic-bezier(.2,.8,.3,1.3)}
#wagerView .wgp-link-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3c8,#dcb65e 46%,#8a6420 100%);color:#2a1d05;font:700 23px/1 'Segoe UI Symbol','Noto Sans Symbols 2',serif;box-shadow:0 0 0 4px rgba(215,180,90,.14),0 8px 18px rgba(0,0,0,.4)}
#wagerView .wgp-link-copy{display:grid;gap:3px;min-width:0}
#wagerView .wgp-link-copy strong{color:var(--wg-cream);font:700 17px/1.2 Georgia,'Noto Serif KR',serif}
#wagerView .wgp-link-copy span{color:var(--wg-muted);font-size:13px;line-height:1.4}
#wagerView .wgp-link-go{color:#e7c672;font:400 30px/1 system-ui,sans-serif;transition:translate .25s ease}
@media (hover:hover){html body #wagerView .wgp-link:hover{border-color:rgba(231,198,114,.85);box-shadow:0 14px 30px rgba(0,0,0,.35),0 0 0 1px rgba(231,198,114,.4),0 0 24px rgba(215,180,90,.16)}#wagerView .wgp-link:hover .wgp-link-go{translate:4px 0}html[data-motion=full] body #wagerView .wgp-link:hover{translate:0 -3px}}

/* ---- the hall's own width decides the layout ---- */
@container wgp (max-width:1060px){
 html body #wagerView .wgp-hero{grid-template-columns:minmax(0,1fr) minmax(232px,272px);grid-template-areas:"copy wallet" "stats wallet";padding:20px 22px}
 html body #wagerView .wgp:is([data-mode=signin],[data-mode=off]) .wgp-hero{grid-template-columns:minmax(0,1fr) minmax(240px,300px);grid-template-areas:"copy wallet"}
 #wagerView .wgp-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
 #wagerView .wgp-hero>.wgp-medallion{display:none}
 html body #wagerView .wgp-hero::before{right:300px;font-size:200px}
 #wagerView .wgp-panel-sub{font-size:13px}
}
@container wgp (max-width:900px){
 #wagerView .wgp-foot{grid-template-columns:minmax(0,1fr)}
 #wagerView .wgp-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container wgp (max-width:680px){
 #wagerView .wgp-main{grid-template-columns:minmax(0,1fr)}
 #wagerView .wgp-main[data-has-open=true]>.wgp-open{order:-1}
 #wagerView .wgp-open-body{position:static;min-height:0}
 #wagerView .wgp-open-scroll{position:static;overflow:visible;padding:0}
 #wagerView .wgp-empty:not([data-compact]){padding:26px 18px}
 #wagerView .wgp-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #wagerView .wgp-steps ol{grid-template-columns:minmax(0,1fr);gap:10px}
 #wagerView .wgp-steps li{grid-template-columns:auto minmax(0,1fr);column-gap:14px;row-gap:3px;padding:14px}
 #wagerView .wgp-steps li::before{grid-row:span 2;margin:0}
 #wagerView .wgp-closed{grid-template-columns:auto minmax(0,1fr)}
 html body #wagerView .wgp-closed .wgp-cta{grid-column:1/-1;width:100%}
}
@container wgp (max-width:620px){
 html body #wagerView .wgp-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "stats" "wallet";gap:14px;padding:20px 18px 18px}
 html body #wagerView .wgp:is([data-mode=signin],[data-mode=off]) .wgp-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "wallet"}
 #wagerView .wgp-hero>.wgp-medallion{display:grid;position:absolute;top:16px;right:16px;width:44px;height:44px;font-size:22px;box-shadow:0 0 0 4px rgba(215,180,90,.14),0 0 0 5px rgba(215,180,90,.5),0 8px 18px rgba(0,0,0,.45)}
 #wagerView .wgp-hero-copy{padding-right:0}
 #wagerView .wgp-eyebrow{padding-right:56px;letter-spacing:.24em}
 html body #wagerView .wgp-title{padding-right:52px;font-size:clamp(26px,8.4cqi,32px)}
 html body #wagerView .wgp-sub{font-size:14px}
 html body #wagerView .wgp-hero::before{right:-24px;bottom:-56px;font-size:170px}
 #wagerView .wgp-stats{gap:6px;max-width:none}
 #wagerView .wgp-stat{padding:8px 9px}
 #wagerView .wgp-stat strong{font-size:19px}
 #wagerView .wgp-stat small{font-size:9.5px;letter-spacing:.1em}
 #wagerView .wgp-wallet{padding:14px 16px}
 html body #wagerView .wgp-refresh{min-height:40px;padding:6px 14px}
 #wagerView .wgp-links{grid-template-columns:minmax(0,1fr)}
 html body #wagerView .wgp-panel{padding:16px}
 html body #wagerView .wgp-panel h2{font-size:20px}
 #wagerView .wgp-closed{grid-template-columns:minmax(0,1fr);justify-items:start}
}
/* a narrow composer (beside the open list on a small laptop, or on a phone) */
@container wgp-create (max-width:400px){
 html body #wagerView .wgp-chip{padding:8px 2px}
 #wagerView .wgp-chip small{font-size:9.5px;letter-spacing:.04em}
 #wagerView .wgp-chip strong{font-size:16px}
 #wagerView .wgp-ledger{gap:4px;padding:8px}
 #wagerView .wgp-ledger-cell{padding:6px 2px}
 #wagerView .wgp-ledger-cell small{font-size:9.5px;letter-spacing:.02em}
 #wagerView .wgp-ledger-cell strong{font-size:19px;gap:4px}
 #wagerView .wgp-ledger-op{font-size:15px}
 html body #wagerView .wgp-go{gap:8px;padding:10px 12px;font-size:15px}
}
@container wgp (max-width:460px){
 #wagerView .wgp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 #wagerView .wgp-stat{display:flex;align-items:baseline;gap:8px;padding:8px 12px}
 #wagerView .wgp-stat small{font-size:10px;letter-spacing:.12em}
}
@media (max-width:700px){
 html body #wagerView:not([hidden]){padding:10px 8px 28px!important}
 html body #wagerView>#wagerContent.wgp{gap:12px;padding:10px;border-radius:18px}
}

/* ---- motion (html[data-motion=full] only): cards rise in one after another when the page opens or is rebuilt, a new
   open challenge slides in, the picked chip pops, the main button carries a sheen, the balance counts, live dots pulse */
html[data-motion=full] body[data-entering] #wagerView .wgp-anim,html[data-motion=full] #wagerView .wgp[data-enter] .wgp-anim{animation:wgp-rise .55s cubic-bezier(.2,.75,.2,1) backwards;animation-delay:calc(var(--i,0) * 60ms)}
html[data-motion=full] body[data-entering] #wagerView :is(.wgp-offer,.wgp-row),html[data-motion=full] #wagerView .wgp[data-enter] :is(.wgp-offer,.wgp-row){animation:wgp-rise .45s cubic-bezier(.2,.75,.2,1) backwards;animation-delay:calc(.15s + min(var(--n,0),6) * 45ms)}
html[data-motion=full] #wagerView .wgp-offer.wgp-new{animation:wgp-slide-in .7s cubic-bezier(.2,.8,.2,1) both}
html[data-motion=full] #wagerView .wgp-row.wgp-new{animation:wgp-row-in .6s cubic-bezier(.2,.8,.2,1) both}
html[data-motion=full] #wagerView .wgp-chip[aria-pressed=true]{animation:wgp-pop .38s cubic-bezier(.2,.9,.3,1.4)}
html[data-motion=full] #wagerView .wgp-title{animation:realm-text-shine 6s linear infinite}
html[data-motion=full] #wagerView .wgp-medallion{animation:wgp-glow 3.6s ease-in-out infinite}
html[data-motion=full] #wagerView .wgp-cta:not(:disabled)::after{content:'';position:absolute;top:-10%;bottom:-10%;left:0;z-index:1;width:42%;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.5),rgba(255,255,255,0));transform:translateX(-160%) skewX(-18deg);animation:realm-sheen 4.6s ease-in-out 1s infinite;pointer-events:none}
html[data-motion=full] #wagerView .wgp-accept:not(:disabled){position:relative;overflow:hidden}
html[data-motion=full] #wagerView .wgp-accept:not(:disabled)::after{content:'';position:absolute;inset:0 auto 0 0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);transform:translateX(-160%) skewX(-18deg);animation:realm-sheen 5.2s ease-in-out 2s infinite;pointer-events:none}
html[data-motion=full] #wagerView .wgp-go[data-armed=true],html[data-motion=full] #wagerView .wgp-accept[data-armed=true]{animation:wgp-armed 1.1s ease-in-out infinite}
html[data-motion=full] #wagerView .wgp-create.wgp-nudge .wgp-go{animation:wgp-nudge 1.4s cubic-bezier(.2,.8,.3,1)}
html[data-motion=full] #wagerView .wgp-balance[data-counting] .wgp-coin{animation:wgp-flip .8s ease-in-out infinite}
html[data-motion=full] #wagerView .wgp-refresh[data-busy] .wgp-refresh-icon{animation:realm-spin .8s linear infinite}
html[data-motion=full] #wagerView .wgp-live::before,html[data-motion=full] #wagerView .wgp-row:is([data-kind=live],[data-kind=wait]) .wgp-badge i{animation:wgp-ping 1.8s ease-out infinite}
html[data-motion=full] #wagerView .wgp-row[data-kind=pay] .wgp-badge i{animation:realm-spin .9s linear infinite}
html[data-motion=full] #wagerView .wgp-timebar i{transition:transform 1s linear}
html[data-motion=full] #wagerView .wgp-empty-ring::before{animation:realm-spin 22s linear infinite}
html[data-motion=full] #wagerView .wgp-empty-ring .wgp-coin{animation:wgp-float 4s ease-in-out infinite}
@keyframes wgp-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes wgp-slide-in{0%{opacity:0;transform:translateX(34px) scale(.97);box-shadow:0 0 0 0 rgba(243,214,138,0)}55%{opacity:1;transform:none;box-shadow:0 0 0 3px rgba(243,214,138,.45),0 0 26px rgba(243,214,138,.3)}100%{opacity:1;transform:none;box-shadow:0 0 0 0 rgba(243,214,138,0)}}
@keyframes wgp-row-in{0%{opacity:0;transform:translateY(-10px);background-color:rgba(243,214,138,0)}40%{opacity:1;transform:none;background-color:rgba(243,214,138,.14)}100%{opacity:1;transform:none;background-color:rgba(243,214,138,0)}}
@keyframes wgp-pop{0%{transform:scale(.92)}55%{transform:scale(1.07)}100%{transform:scale(1)}}
@keyframes wgp-glow{0%,100%{box-shadow:0 0 0 6px rgba(215,180,90,.14),0 0 0 7px rgba(215,180,90,.55),0 12px 26px rgba(0,0,0,.5),0 0 22px rgba(255,214,120,.25)}50%{box-shadow:0 0 0 8px rgba(215,180,90,.2),0 0 0 9px rgba(215,180,90,.6),0 12px 26px rgba(0,0,0,.5),0 0 44px rgba(255,214,120,.5)}}
@keyframes wgp-armed{0%,100%{box-shadow:0 0 0 3px rgba(240,138,108,.22)}50%{box-shadow:0 0 0 7px rgba(240,138,108,.34)}}
@keyframes wgp-nudge{0%,100%{transform:none}25%{transform:scale(1.035)}50%{transform:scale(.99)}70%{transform:scale(1.015)}}
@keyframes wgp-flip{0%,100%{transform:rotateY(0)}50%{transform:rotateY(180deg)}}
@keyframes wgp-ping{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--k,#3ad98c) 60%,transparent)}100%{box-shadow:0 0 0 8px color-mix(in srgb,var(--k,#3ad98c) 0%,transparent)}}
@keyframes wgp-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
/* The real WGC coin (worldgamecommunity.com artwork) on the big marks: banner medallion, wallet, empty and closed states. */
html body #wagerView :is(.wgp-medallion,.wgp-balance .wgp-coin,.wgp-empty-ring .wgp-coin,.wgp-closed-mark .wgp-coin){color:transparent!important;text-shadow:none!important;background:url(/assets/brand/wgc/wgc-coin-160.webp) center/contain no-repeat!important;box-shadow:none!important;border-radius:0!important;filter:drop-shadow(0 6px 12px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(255,205,90,.35))}
html body #wagerView .wgp-balance .wgp-coin{width:1.5em;height:1.6em}
html body #wagerView :is(.wgp-empty-ring,.wgp-closed-mark) .wgp-coin{display:block;width:46px;height:50px;font-size:0}
html body #wagerView .wgp-empty[data-compact] .wgp-empty-ring .wgp-coin{width:28px;height:31px}
/* The original WGC logo (World Game Coin emblem from worldgamecommunity.com) as the banner mark. */
html body #wagerView .wgp-medallion.wgp-medallion{width:96px!important;height:77px!important;background-image:url(/assets/brand/wgc/wgc-logo-320.webp)!important;filter:drop-shadow(0 8px 16px rgba(0,0,0,.5)) drop-shadow(0 0 18px rgba(120,160,255,.3))!important}
@media (max-width:760px){html body #wagerView .wgp-medallion.wgp-medallion{width:62px!important;height:50px!important}}
