/* UI polish informed by unslop, Damir Sokolovsky (@heydamir), CC BY 4.0. */
.points-wheel-page{--wheel-ink:#26372d;--wheel-secondary:#566259;--wheel-muted:#69736c;--wheel-line:#dfe4df;--wheel-accent:#087448;min-height:100%;padding-bottom:calc(100px + env(safe-area-inset-bottom));background:#f6f7f5;color:var(--wheel-ink)}
#main .points-wheel-page .secondary-top{align-items:center;padding-inline:16px}
#main .points-wheel-page .secondary-top h1{margin:0;font-size:18px;line-height:24px;font-weight:600;letter-spacing:0}
.points-wheel-page .secondary-top #wheelHelp{display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;padding:0;border:0;background:transparent;color:var(--wheel-secondary)}
#wheelHelp svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#main .points-wheel-page :is(button,input,textarea):focus-visible{outline:2px solid var(--wheel-accent);outline-offset:2px}
.points-wheel-content{display:grid;gap:12px;padding:16px 0 32px}
.points-wheel-balance,.points-wheel-card,.points-wheel-prizes,.points-wheel-history{min-width:0;background:#fff;border:1px solid var(--wheel-line);border-radius:16px;box-shadow:none}
.points-wheel-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}
.points-wheel-balance div{display:grid;gap:4px;min-width:0}
.points-wheel-balance div>span{font-size:13px;line-height:20px;color:var(--wheel-secondary)}
.points-wheel-balance strong{font-size:24px;line-height:28px;font-weight:600;font-variant-numeric:tabular-nums}
.points-wheel-balance button,.points-wheel-error button{min-height:44px;padding:8px;border:0;background:transparent;color:var(--wheel-accent);font-size:13px;font-weight:500;text-align:right}
.points-wheel-card{display:grid;justify-items:center;gap:16px;padding:20px 0}
.points-wheel-card-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;width:calc(100% - 32px);min-width:0}
.points-wheel-card-head .points-wheel-badge{margin:0;color:var(--wheel-ink);font-size:15px;line-height:22px;font-weight:600}
.points-wheel-card-head #wheelCost{margin:0;color:var(--wheel-ink);font-size:14px;line-height:20px;font-weight:600;text-align:right}
.points-wheel-badge{color:var(--wheel-secondary);font-size:14px;line-height:20px;font-weight:500}
.points-wheel-stage{position:relative;display:grid;place-items:center;width:min(100% - 40px,320px);aspect-ratio:1;margin:8px auto;isolation:isolate;container-type:inline-size}
.points-wheel-stage::before{content:"";position:absolute;z-index:-1;inset:-8px;border:1px solid #b58b3b;border-radius:50%;background:linear-gradient(145deg,#f9e8b3,#c2a05a 50%,#efdba6);box-shadow:0 4px 12px #00000014}
.points-wheel-pointer{position:absolute;z-index:2;top:-16px;left:50%;width:24px;height:32px;transform:translateX(-50%);filter:drop-shadow(0 2px 1px #00000026)}
.points-wheel-pointer::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#f9e8b3,#c79e48);clip-path:polygon(4% 0,96% 0,96% 20%,50% 100%,4% 20%)}
.points-wheel-pointer::after{content:"";position:absolute;top:4px;left:6px;right:6px;height:2px;background:#fff4d4}
.points-wheel-disc{position:relative;width:100%;height:100%;border:4px solid #f0d894;border-radius:50%;background:#e5e8e2;box-shadow:0 0 0 1px #a8853c;transition:transform 2.6s cubic-bezier(.12,.69,.18,1);will-change:transform}
.points-wheel-disc::after{content:"";position:absolute;inset:1px;border:1px solid #fff3c64d;border-radius:50%;pointer-events:none}
.points-wheel-slot{position:absolute;inset:0;color:#fff5d8;pointer-events:none}
.points-wheel-slot-light{color:#254b34}
.points-wheel-label{position:absolute;top:17.5%;left:50%;display:flex;align-items:center;justify-content:center;width:32%;height:2.7em;text-align:center;font-size:14px;font-size:clamp(14px,4.4cqi,15.5px);line-height:1.3;font-weight:600;letter-spacing:0}
.points-wheel-label>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;word-break:normal;line-break:strict;text-wrap:pretty}
.points-wheel-art{position:absolute;top:38%;left:50%;display:grid;place-items:center;width:9%;aspect-ratio:1}
.points-wheel-art svg{display:block;width:100%;height:100%}
.points-wheel-disc[data-prize-count="2"] .points-wheel-label,.points-wheel-disc[data-prize-count="3"] .points-wheel-label{font-size:16px}
.points-wheel-hub{position:absolute;z-index:1;top:50%;left:50%;display:grid;place-items:center;width:13%;aspect-ratio:1;transform:translate(-50%,-50%);border:2px solid #f0d894;border-radius:50%;background:#07543a;color:#f5dda0;font-size:18px;font-weight:600;line-height:1;box-shadow:0 0 0 1px #a8853c}
.points-wheel-notice{max-width:32em;margin:0;text-align:center;color:var(--wheel-secondary);font-size:13px;line-height:20px;overflow-wrap:anywhere}
.points-wheel-spin{width:min(100% - 32px,272px);min-height:48px;margin:0;padding:12px 16px;border:1px solid var(--wheel-accent);border-radius:10px;background:var(--wheel-accent);box-shadow:none;color:#fff;font-size:15px;line-height:22px;font-weight:500;transition:background-color 160ms ease,border-color 160ms ease}
.points-wheel-spin:hover:enabled{background:#075d3b;border-color:#075d3b}
.points-wheel-spin:disabled{background:#e8ece8;border-color:#dfe4df;color:var(--wheel-muted);opacity:1}
#wheelBind{min-height:44px;margin:0;padding:8px 16px;border:1px solid #cbd5cc;border-radius:8px;background:#fff;color:var(--wheel-accent);font-size:14px;line-height:20px;font-weight:500}
.points-wheel-result{min-height:20px;margin:0;color:var(--wheel-secondary);text-align:center;font-size:13px;line-height:20px;overflow-wrap:anywhere}
/* Loading is already conveyed by the disabled draw button and the wheel.
   Keep its live announcement without adding a row that moves the page. */
.points-wheel-result[data-i18n-key="pointsWheel.fetching"]{position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.points-wheel-card .points-wheel-result:empty,.points-wheel-card .points-wheel-notice:empty{display:none}
.points-wheel-card>:is(.points-wheel-notice,.points-wheel-result,.points-wheel-guard,.points-wheel-error){max-width:calc(100% - 32px)}
.points-wheel-error{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:12px;border:1px solid #e2d6b9;border-radius:10px;background:#fffaf0;color:#705620;font-size:13px;line-height:20px}
.points-wheel-error[hidden]{display:none}
.points-wheel-prizes,.points-wheel-history{padding:20px 16px}
.points-wheel-prizes h2,.points-wheel-history h2{margin:0 0 8px;color:var(--wheel-ink);font-size:16px;line-height:24px;font-weight:600}
.points-wheel-prizes>p{margin:0 0 12px;color:var(--wheel-secondary);font-size:13px;line-height:20px}
.points-wheel-prizes ol{display:grid;gap:0;margin:0;padding:0;list-style:none}
.points-wheel-prizes li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:start;gap:4px 8px;padding:12px 0;border-bottom:1px solid var(--wheel-line);font-size:14px;line-height:20px;overflow-wrap:anywhere}
.points-wheel-prizes li:last-child{border-bottom:0;padding-bottom:0}
.points-wheel-prizes li strong{font-size:14px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.points-wheel-prizes li small{grid-column:2/-1;color:var(--wheel-secondary);font-size:12px;line-height:20px}
.points-wheel-prize-index{color:var(--wheel-muted);font-size:12px;line-height:20px;font-variant-numeric:tabular-nums}
.points-wheel-guard{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;width:100%;padding:12px;border:1px solid var(--wheel-line);border-radius:10px;background:#f4f6f3;color:var(--wheel-secondary);font-size:13px;line-height:20px}
.points-wheel-guard[hidden]{display:none}
.points-wheel-guard p{flex:1 1 140px;min-width:0;margin:0;overflow-wrap:anywhere}
.points-wheel-guard button{flex:0 1 auto;min-height:44px;margin:0;padding:8px 12px;border:1px solid #cbd5cc;border-radius:8px;background:#fff;color:var(--wheel-accent);font-size:13px;line-height:20px;font-weight:500;white-space:normal;overflow-wrap:anywhere}
.points-wheel-history-item{padding:16px 0;border-bottom:1px solid var(--wheel-line);overflow-wrap:anywhere}
.points-wheel-history-item:last-child{border-bottom:0;padding-bottom:0}
.points-wheel-history-item>strong{font-size:14px;line-height:20px;font-weight:600}
.points-wheel-history-item p,.points-wheel-history>div>p{margin:8px 0 0;color:var(--wheel-secondary);font-size:14px;line-height:20px}
.points-wheel-history-item time{display:block;margin-top:4px;color:var(--wheel-muted);font-size:12px;line-height:20px;font-variant-numeric:tabular-nums}
.points-wheel-claim{display:grid;gap:12px;margin-top:16px}
.points-wheel-claim h3{margin:0;color:var(--wheel-ink);font-size:14px;line-height:20px;font-weight:600}
.points-wheel-claim label{display:grid;gap:8px;min-width:0;margin:0;color:var(--wheel-secondary);font-size:14px;line-height:20px;font-weight:400}
.points-wheel-claim input,.points-wheel-claim textarea{width:100%;min-width:0;min-height:48px;margin:0;padding:12px;border:1px solid #bbc7bd;border-radius:8px;background:#fff;color:var(--wheel-ink);font:inherit;font-size:16px;line-height:22px}
.points-wheel-claim input{height:48px}
.points-wheel-claim textarea{min-height:96px;resize:vertical}
.points-wheel-claim input:focus-visible,.points-wheel-claim textarea:focus-visible{outline:2px solid var(--wheel-accent);outline-offset:2px}
.points-wheel-claim button,.points-wheel-history>button,.points-wheel-history-item>button{min-height:44px;padding:8px 12px;border:1px solid #cbd5cc;border-radius:8px;background:#f4f6f3;color:var(--wheel-accent);font-size:14px;line-height:20px;font-weight:500}
.points-wheel-claim button{margin-top:4px;background:var(--wheel-accent);border-color:var(--wheel-accent);color:#fff}
.points-wheel-history>button{margin-top:16px}
@media(max-height:760px){.points-wheel-content{gap:12px}.points-wheel-card{gap:12px;padding-block:16px}}
@media(prefers-reduced-motion:reduce){.points-wheel-disc,.points-wheel-spin{transition:none}}
/* The header controls and all content cards share the page's 14px edge. */
#main .points-wheel-page .secondary-top{padding-inline:14px}

/* A compact account strip leads into the draw stage; the wheel is the focus. */
.points-wheel-page{--wheel-ink:#143e2e;--wheel-secondary:#526b5c;--wheel-muted:#718074;--wheel-line:#e1e8df;--wheel-accent:#087148;background:#f5f7f2}
#main .points-wheel-page .secondary-top{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px}
#main .points-wheel-page .secondary-top h1{text-align:center;white-space:nowrap}
#main .points-wheel-page .secondary-top #wheelHelp{justify-self:end;display:flex;justify-content:flex-end;width:max-content;max-width:100%;min-width:44px;min-height:44px;padding:0 3px;color:#176443;font-size:12px;font-weight:650;line-height:1.25;text-align:right;white-space:normal;overflow-wrap:anywhere}
.points-wheel-content{gap:12px;padding-top:10px}
.points-wheel-balance{min-height:62px;padding:10px 16px;border-color:#e7dcc0;border-radius:14px;background:#fffaf0}
.points-wheel-balance div{display:flex;align-items:baseline;gap:10px}
.points-wheel-balance div>span{color:#5a6a5c;font-size:13px}
.points-wheel-balance strong{color:#124d33;font-size:23px;font-weight:700}
.points-wheel-balance button{color:#066b43;font-weight:600}
.points-wheel-card{gap:12px;padding:16px 0 20px;border:1px solid #116747;border-radius:20px;background:#06452f;box-shadow:0 5px 16px #00331e18}
.points-wheel-card-head .points-wheel-badge{color:#fff9e7;font-size:15px;font-weight:700}
.points-wheel-card-head #wheelCost{color:#f5dda1;font-size:13px;font-weight:600}
.points-wheel-card .points-wheel-notice,.points-wheel-card .points-wheel-result{color:#edf5e9}
.points-wheel-card .points-wheel-guard{border-color:#cfb87c;background:#fff9e9;color:#454a37}
.points-wheel-card .points-wheel-error{background:#fff9e9}
.points-wheel-spin{width:min(100% - 48px,280px);min-height:50px;border:1px solid #b77b24;border-radius:999px;background:#f5c75d linear-gradient(180deg,#ffeaa2 0%,#f5c75d 100%);box-shadow:0 3px 0 #b37b28,0 6px 12px #002b1a33;color:#173f2d;font-size:16px;font-weight:700}
.points-wheel-spin:hover:enabled{background:#f8d77f;border-color:#b77b24}
.points-wheel-spin:active:enabled{background:#eab94f;box-shadow:0 2px 0 #b37b28,inset 0 2px 3px #86571033}
.points-wheel-spin:disabled{background:#d7e1d4;border-color:#c5d1c2;color:#5d6e5e;box-shadow:none}
.points-wheel-card:has(#wheelBind:not([hidden])) .points-wheel-spin:disabled{display:none}
.points-wheel-card #wheelBind{width:min(100% - 48px,280px);min-height:50px;border:1px solid #b77b24;border-radius:999px;background:linear-gradient(180deg,#ffeaa2,#f5c75d);box-shadow:0 3px 0 #b37b28;color:#173f2d;font-size:15px;font-weight:700}
.points-wheel-history{padding:16px;border-color:#e6e4d5;border-radius:16px;background:#fffef9}
.points-wheel-history h2{color:#143e2e}
.points-wheel-history-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,max-content);align-items:start;column-gap:12px;row-gap:2px;padding:10px 0}
.points-wheel-history-item>strong{grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere}
.points-wheel-history-item>time{grid-column:1;grid-row:2;margin:0;line-height:18px}
.points-wheel-history-item>.points-wheel-history-reward{grid-column:2;grid-row:1 / span 2;align-self:center;max-width:9em;margin:0;color:var(--wheel-secondary);font-size:13px;line-height:19px;text-align:right;overflow-wrap:anywhere}
.points-wheel-history-item>:not(strong):not(time):not(.points-wheel-history-reward){grid-column:1 / -1}
.points-wheel-history-item>button{justify-self:start}

/* Wheel machine: a restrained brass frame keeps the configured prizes legible. */
.points-wheel-page .points-wheel-stage{
  width:min(calc(100% - 42px), 302px);
  margin:10px auto 12px;
}
.points-wheel-page .points-wheel-stage::before{
  inset:-10px;
  border:1px solid #9b6c23;
  background:linear-gradient(145deg,#fff0b0 0%,#d39c36 30%,#a96c1e 58%,#f7dc8a 83%,#c08a2e 100%);
  box-shadow:0 2px 0 #ffedac inset,0 0 0 2px #765014,0 7px 0 #805518,0 13px 20px #153e2c33;
}
.points-wheel-page .points-wheel-stage::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:-9px;
  border-radius:50%;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 2%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 74% 8.4%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 91.6% 26%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 98% 50%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 91.6% 74%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 74% 91.6%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 50% 98%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 26% 91.6%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 8.4% 74%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 2% 50%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 8.4% 26%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px),
    radial-gradient(circle at 26% 8.4%,#fff4bd 0 2px,#a86b16 2.5px,transparent 3.5px);
}
.points-wheel-page .points-wheel-pointer{
  z-index:3;
  top:-19px;
  width:30px;
  height:39px;
  filter:drop-shadow(0 3px 2px #58350066);
}
.points-wheel-page .points-wheel-pointer::before{
  background:linear-gradient(90deg,#922012,#db3c20 48%,#a42416);
  clip-path:polygon(5% 0,95% 0,92% 28%,50% 100%,8% 28%);
}
.points-wheel-page .points-wheel-pointer::after{
  top:3px;
  left:5px;
  right:5px;
  height:3px;
  border-radius:3px;
  background:#ffc66c;
}
.points-wheel-page .points-wheel-disc{
  border:4px solid #ffe2a0;
  box-shadow:0 0 0 2px #8a5b1d,0 0 0 4px #ebc15b,0 2px 8px #06382044 inset;
}
.points-wheel-page .points-wheel-disc::after{
  inset:2px;
  border:1px solid #fff4cf80;
}
.points-wheel-page .points-wheel-slot{color:#fff7df}
.points-wheel-page .points-wheel-slot-light{color:#173c2d}
.points-wheel-page .points-wheel-label{
  top:15.5%;
  width:28%;
  font-weight:700;
  text-shadow:0 1px 1px #003d2633;
}
.points-wheel-page .points-wheel-slot-light .points-wheel-label{text-shadow:none}
.points-wheel-page .points-wheel-art{width:10.5%;top:35.5%}
.points-wheel-page .points-wheel-hub{
  width:15%;
  border:2px solid #ffe8a9;
  background:radial-gradient(circle at 35% 28%,#f5d779,#c68a2b 72%,#a16719);
  color:#16472f;
  font-size:20px;
  font-weight:800;
  text-shadow:0 1px #ffeaa6;
  box-shadow:0 0 0 2px #986522,0 3px 5px #00341f66;
}

/* The draw is a single green-and-gold stage, rather than a stack of cards. */
.points-wheel-page{box-sizing:border-box;min-height:calc(100dvh - 20px);margin-inline:-14px;padding-inline:14px;background:#064630;color:#fff7df}
#main .points-wheel-page .secondary-top{height:76px;min-height:76px;color:#fff4ce}
#main .points-wheel-page .secondary-top h1{display:grid;justify-items:center;gap:1px;color:#ffedbc;font-size:20px;line-height:25px;font-weight:750}
#main .points-wheel-page .secondary-top h1::before{content:'Pickluno';color:#f5d78a;font-size:12px;line-height:16px;font-weight:700;letter-spacing:.02em}
#main .points-wheel-page .secondary-top #wheelBack{color:#fff5d7}
#main .points-wheel-page .secondary-top #wheelHelp{min-height:44px;padding:0 10px;border:0;background:transparent;color:#fff5d7;font-size:12px}
.points-wheel-content{gap:0;padding:2px 0 24px}
.points-wheel-balance{display:grid;grid-template-columns:minmax(0,1fr) minmax(44px,auto);align-items:center;justify-self:center;gap:8px;box-sizing:border-box;width:min(100%,320px);max-width:100%;min-height:64px;padding:8px 10px 8px 16px;border-color:#ebce83;border-radius:18px;background:linear-gradient(180deg,#fff2c8,#f6dc98);box-shadow:0 2px 4px #002b1b33}
.points-wheel-balance div{display:grid;min-width:0;gap:1px}
.points-wheel-balance div>span{min-width:0;color:#36563d;font-weight:600;line-height:18px;overflow-wrap:anywhere}
.points-wheel-balance strong{min-width:0;color:#07462f;font-size:20px;line-height:24px;overflow-wrap:anywhere}
.points-wheel-balance button{display:flex;align-items:center;justify-content:flex-end;gap:4px;box-sizing:border-box;min-width:44px;max-width:130px;min-height:44px;padding:6px 7px;color:#075638;line-height:18px;text-align:right;white-space:normal;overflow-wrap:anywhere}
.points-wheel-balance button span:first-child{min-width:0}
.points-wheel-balance button span:last-child{flex:none}
.points-wheel-card{width:calc(100% + 28px);margin:0 -14px;padding:20px 0 22px;gap:12px;border:0;border-radius:0;background:#064630;box-shadow:none}
.points-wheel-card-head{display:contents}
.points-wheel-card-head .points-wheel-badge{display:none}
.points-wheel-card-head #wheelCost{order:2;max-width:calc(100% - 40px);color:#fff1c3;font-size:14px;line-height:20px;font-weight:700;text-align:center}
.points-wheel-card .points-wheel-stage{order:1}
.points-wheel-card #wheelAvailability{order:3}
.points-wheel-card #wheelBind,.points-wheel-card #wheelSpin{order:4}
.points-wheel-card #wheelResult,.points-wheel-card #wheelResultDetail{order:5}
.points-wheel-card #wheelGuard,.points-wheel-card #wheelError{order:6}
.points-wheel-card .points-wheel-notice,.points-wheel-card .points-wheel-result{color:#fff8e2}
.points-wheel-records{justify-self:center;display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(calc(100% - 48px),280px);min-height:48px;margin:0;padding:10px 16px;border:1px solid #d2bd8273;border-radius:12px;background:#ffffff0a;color:#fff1c8;font-size:14px;line-height:20px;font-weight:600;text-align:left}
.points-wheel-records>span:last-child{flex:none;font-size:20px;line-height:1}
.points-wheel-records:focus-visible{outline:2px solid #ffe7a3;outline-offset:2px;border-radius:8px}

/* The draw screen owns its safe-area spacing; do not add the shell's second inset. */
body:has(#main .points-wheel-page){padding-bottom:0}
#main:has(.points-wheel-page){padding-bottom:0;background:#064630}
.points-wheel-page{min-height:100dvh}
#main .points-wheel-page .secondary-top :is(#wheelBack,#wheelHelp){display:grid;place-items:center;align-self:center;justify-content:center;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:#fff5d7;font-size:0;line-height:1}
#main .points-wheel-page .secondary-top #wheelBack{justify-self:start}
#main .points-wheel-page .secondary-top #wheelHelp{justify-self:end}
#main .points-wheel-page .secondary-top :is(#wheelBack,#wheelHelp) svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Share spare screen height between existing controls; never enlarge the wheel. */
.points-wheel-page{
  display:flex;
  flex-direction:column;
  padding-bottom:calc(84px + env(safe-area-inset-bottom));
}
.points-wheel-page .secondary-top{flex:none}
.points-wheel-content{
  display:flex;
  flex:1 0 auto;
  flex-direction:column;
  align-items:center;
  justify-content:space-evenly;
  gap:8px;
  padding:4px 0 12px;
}
.points-wheel-balance,.points-wheel-card,.points-wheel-records{flex:none}
@media(max-height:720px){
  .points-wheel-content{justify-content:flex-start;gap:8px}
}

/* Draw results never move the wheel or block the next action. */
.points-wheel-toast:not([hidden]){position:fixed;z-index:1200;top:42dvh;left:50%;transform:translate(-50%,-50%);width:max-content;max-width:min(340px,calc(100vw - 32px));padding:11px 16px;border:1px solid #cfb473;border-radius:12px;background:#103e2d;color:#fff8e2;box-shadow:0 8px 24px #052b1b40;font-size:14px;line-height:1.45;text-align:center;overflow-wrap:anywhere;pointer-events:none}

/* Both activities share the same visual, cost, action and history rows. */
#main .points-wheel-page .points-draw-panels{
  --draw-stage-size:clamp(220px,calc(100dvh - 480px - env(safe-area-inset-bottom)),400px);
  position:relative;
  isolation:isolate;
  grid-template-rows:minmax(var(--draw-stage-size),auto) auto minmax(50px,auto) minmax(44px,auto);
  row-gap:8px;
}
#main .points-wheel-page .points-draw-panels::before{
  content:'';
  position:absolute;
  z-index:-1;
  inset:-8px -14px auto;
  height:calc(var(--draw-stage-size) + 88px);
  background:linear-gradient(#0646300d,#0646300d),url('/points-draw-stage-v4.png') center / cover no-repeat;
  opacity:.9;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 12%,#000 76%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0%,#000 12%,#000 76%,transparent 100%);
  pointer-events:none;
}
#main .points-wheel-page .points-draw-panels>.points-draw-panel{
  display:grid!important;
  grid-column:1;
  grid-row:1 / span 4;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:subgrid;
  align-items:stretch;
  justify-content:stretch;
  gap:8px;
}
#main .points-wheel-page .points-wheel-card{
  display:grid;
  grid-column:1;
  grid-row:1 / span 3;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:subgrid;
  align-items:stretch;
  justify-items:stretch;
  width:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  gap:8px;
}
#main .points-wheel-page .points-draw-stage-slot{
  display:flex;
  grid-row:1;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:var(--draw-stage-size);
}
#main .points-wheel-page #pointsWheelPanel .points-draw-stage-slot{
  width:calc(100% + 28px);
  margin-inline:-14px;
  background:transparent;
}
#main .points-wheel-page .points-draw-stage-slot .points-wheel-stage{
  width:min(calc(100% - 40px),320px,calc(var(--draw-stage-size) - 32px));
  margin:0 auto;
}
#main .points-wheel-page .points-draw-stage-slot .egg-preview-scene{
  width:min(100%,336px,calc(var(--draw-stage-size) - 68px));
}
#main .points-wheel-page .points-draw-options{
  display:grid;
  grid-row:2;
  align-content:end;
  justify-items:center;
  justify-self:center;
  align-self:stretch;
  gap:8px;
  box-sizing:border-box;
  width:min(calc(100% - 16px),320px);
  min-width:0;
  padding:0;
}
#main .points-wheel-page .points-draw-options :is(.points-wheel-guard,.points-wheel-error){max-width:100%;margin:0}
#main .points-wheel-page .points-draw-options #wheelCost{max-width:100%;margin:0}
#main .points-wheel-page .points-draw-action{display:grid;grid-row:3;place-items:center;width:100%}
#main .points-wheel-page .points-draw-action :is(#wheelSpin,#wheelBind){grid-area:1 / 1}
#main .points-wheel-page :is(#wheelSpin,#wheelBind,.egg-preview-action){
  justify-self:center;
  align-self:stretch;
  box-sizing:border-box;
  width:min(calc(100% - 16px),320px);
  height:auto;
  min-height:50px;
  margin:0;
  padding:12px 16px;
  border:1px solid #c59b3e;
  border-radius:999px;
  background:#f6d67b;
  box-shadow:0 3px 0 #a57c2b;
  color:#14452f;
  font-size:16px;
  font-weight:700;
  line-height:22px;
}
#main .points-wheel-page :is(#wheelSpin,#wheelBind,.egg-preview-action):disabled{
  border-color:#bd9d51;
  background:#dcca90;
  box-shadow:0 3px 0 #927236;
  color:#35553c;
  opacity:1;
  cursor:default;
}
#main .points-wheel-page .egg-draw-preview{
  display:grid;
  grid-column:1;
  grid-row:1 / span 4;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:subgrid;
  align-items:stretch;
  justify-items:stretch;
  gap:8px;
  width:100%;
  min-height:0;
  margin:0;
  padding:0;
}
#main .points-wheel-page .egg-preview-controls{
  display:grid;
  grid-row:2 / span 3;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:subgrid;
  align-items:stretch;
  justify-items:stretch;
  gap:8px;
  width:100%;
  margin:0;
}
#main .points-wheel-page .egg-preview-controls>.points-draw-options{grid-row:1}
#main .points-wheel-page .egg-preview-controls>.egg-preview-action{grid-row:2}
#main .points-wheel-page .egg-preview-counts{width:100%}
#main .points-wheel-page .egg-preview-cost{width:100%}
#main .points-wheel-page :is(#wheelRecords,#eggRecords){
  display:flex;
  grid-row:4;
  align-items:center;
  justify-content:center;
  justify-self:center;
  align-self:stretch;
  gap:8px;
  box-sizing:border-box;
  width:min(calc(100% - 16px),320px);
  height:auto;
  min-height:44px;
  margin:0;
  padding:8px;
  border:0;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
  color:#fff1c8;
  font-size:13px;
  font-weight:600;
  line-height:20px;
  text-align:center;
}
#main .points-wheel-page .egg-preview-controls>#eggRecords{grid-row:3}
#main .points-wheel-page :is(#wheelRecords,#eggRecords)>span:last-child{font-size:18px;line-height:1}
#main .points-wheel-page :is(#wheelRecords,#eggRecords):is(:hover,:active){background:transparent;box-shadow:none;transform:none;filter:none}
