/* The customer draw view is also rendered inside the editor's phone preview. */
:is(.rewards-hero,.wallet-strip,.draw-layout,.wheel-machine,.flip-machine,.showcase-grid){
  --reward-ink:#392e2c;
  --reward-muted:#75635b;
  --reward-paper:#faf7f1;
  --reward-coral:#e56b48;
  --reward-coral-dark:#a83e29;
  --reward-gold:#eaca87;
  --reward-lilac:#e9e1fa;
  --reward-line:#e9dfd1;
  color:var(--reward-ink);
}

.rewards-hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:254px;
  padding:36px 40px;
  overflow:hidden;
  border:1px solid #fff8;
  border-radius:28px;
  background:radial-gradient(ellipse at 82% 36%,#fffdf4 0%,#fff6e8 32%,transparent 63%),linear-gradient(115deg,#f7e8da,#f7e7dd 64%,#eadff3);
  box-shadow:inset 0 1px 0 #fff,0 16px 36px #79543b08;
}
.rewards-hero::after{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  right:-80px;
  bottom:-245px;
  border:1px solid #fff9;
  border-radius:50%;
  box-shadow:0 0 0 32px #fff2,0 0 0 33px #fff5,0 0 0 64px #fff1;
  z-index:-1;
}
.rewards-hero .hero-copy{position:relative;z-index:2;max-width:60%;min-width:0;}
.rewards-hero .eyebrow{display:flex;align-items:center;gap:8px;color:#8d5641;font-size:11px;font-weight:700;letter-spacing:2px;}
.rewards-hero .eyebrow::before{content:"";width:19px;height:2px;background:var(--reward-coral);border-radius:2px;}
.rewards-hero h1{margin:16px 0 12px;font-size:clamp(28px,3.2vw,42px);line-height:1.35;font-weight:800;letter-spacing:-1.5px;text-wrap:balance;}
.rewards-hero .hero-copy>p{margin:0;color:#755d51;font-size:14px;line-height:1.8;max-width:360px;text-wrap:pretty;}
.rewards-hero .hero-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;color:#735c50;font-size:11px;line-height:1.5;}
.rewards-hero .hero-tags>span{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;background:#fff8;border:1px solid #fff9;border-radius:999px;box-shadow:0 2px 5px #9d755007;}
.rewards-hero .hero-tags svg{width:13px;height:13px;}
.rewards-hero .hero-art{position:absolute;inset:auto -2% -10% auto;width:47%;height:116%;max-width:455px;object-fit:contain;object-position:center;transform:none;filter:drop-shadow(0 17px 17px #9a664b16);z-index:1;pointer-events:none;}

.wallet-strip{display:flex;align-items:center;gap:22px;margin:22px 0 30px;padding:20px 25px;min-height:98px;border:1px solid var(--reward-line);border-radius:19px;background:linear-gradient(120deg,#fffcf6,#f8f1e6);box-shadow:inset 0 1px 0 #fff,0 4px 12px #8f6d4104;}
.wallet-label{font-size:12px;color:var(--reward-muted);line-height:1.5;}
.balance-number{margin-top:4px;font-size:30px;font-weight:800;letter-spacing:-1px;line-height:1.2;font-variant-numeric:tabular-nums;}
.balance-number small{display:inline-block;margin-left:7px;font-size:12px;font-weight:500;letter-spacing:0;color:var(--reward-muted);}
.wallet-note{flex:1;padding-left:22px;border-left:1px solid #e2d5c1;color:var(--reward-muted);font-size:12px;line-height:1.7;}
.wallet-strip .ghost{min-height:44px;padding:9px 15px;border:1px solid #d9cbb9;border-radius:12px;background:#fff9;font-size:12px;font-weight:600;color:var(--reward-ink);white-space:nowrap;transition:background .18s,box-shadow .18s;}
.wallet-strip .ghost:hover{background:#fff;box-shadow:0 3px 9px #74583e0c;}

.draw-layout{display:grid;grid-template-columns:minmax(340px,1.14fr) minmax(250px,.86fr);gap:28px;align-items:start;}
.draw-panel{min-width:0;}
.board-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;}
.board-heading h2{margin:0;font-size:19px;letter-spacing:-.5px;line-height:1.5;}
.board-heading>span{font-size:11px;color:var(--reward-muted);padding:5px 9px;border:1px solid #e9decd;border-radius:8px;background:#fffaf1;white-space:nowrap;}
.draw-machine{position:relative;isolation:isolate;padding:17px;border:1px solid #edbba1;border-radius:30px;background:linear-gradient(145deg,#f6c6a4,#edac8c 50%,#dfa085);box-shadow:inset 0 2px 0 #fff8,inset 0 -3px 0 #b9684d33,0 9px 0 #c7846b,0 13px 0 #e6c4ac,0 24px 28px #8f5c3d16;}
.draw-machine::before{content:"";position:absolute;inset:7px;z-index:-1;pointer-events:none;border:2px dashed #fff8;border-radius:23px;}
.draw-grid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(112px,1fr));gap:10px;padding:9px;border-radius:20px;background:#a65c401a;box-shadow:inset 0 2px 6px #a75f4226;}
.prize-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:112px;padding:10px 5px 12px;border:1px solid #fff5df;border-radius:15px;background:linear-gradient(150deg,#fffdf6,#f9efdf);color:var(--reward-ink);box-shadow:inset 0 2px 0 #fff,0 5px 0 #d8bfa7,0 7px 8px #9c604221;transition:background .16s,box-shadow .16s,border-color .16s;}
.prize-slot .object-sprite{display:block;width:65px;height:65px;flex:none;filter:drop-shadow(0 5px 4px #67432a18);}
.prize-label{display:block;max-width:100%;color:var(--reward-ink);font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;text-wrap:balance;}
.slot-subtitle{display:block;max-width:100%;font-size:10px;line-height:1.4;color:#826d60;}
.prize-slot:focus-visible,.draw-trigger:focus-visible,.wheel-center:focus-visible,.flip-card:focus-visible{outline:3px solid #794c9f;outline-offset:3px;z-index:5;}
.prize-slot:hover{border-color:#f0c98b;background:linear-gradient(145deg,#fffdf5,#fff0cc);}
.prize-slot:active{transform:none;box-shadow:inset 0 2px 8px #a46b2920,0 3px 0 #c5a88c;}
.prize-slot.is-lit{z-index:2;border-color:#ffe8ad;background:linear-gradient(145deg,#fffbdc,#ffe5a3);box-shadow:inset 0 0 0 2px #fff7cb,0 5px 0 #d3a56a,0 0 0 3px #fff5ba,0 0 24px #ffe8a6cc;}
.prize-slot.is-selected{z-index:3;border:2px solid #a04e37;background:#fff7e9;box-shadow:inset 0 0 0 2px #fff,0 5px 0 #bd8064,0 0 0 3px #f8d0bd;}
.prize-slot.is-selected::after{content:"已选";position:absolute;right:4px;top:4px;min-width:26px;padding:2px 4px;border-radius:5px;background:#91442f;color:white;font-size:9px;line-height:1.4;}
.draw-trigger{grid-row:2;grid-column:2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;min-height:112px;padding:12px 4px;border:1px solid #ffcda5;border-radius:16px;color:#fffdf4;background:radial-gradient(ellipse at 30% 10%,#f7a16f,transparent 65%),linear-gradient(135deg,#ed8159,#dc5838);box-shadow:inset 0 2px 0 #ffd2a9,0 5px 0 #a8422d,0 9px 13px #a247312c;text-shadow:0 1px 1px #973d2c40;transition:filter .18s,box-shadow .18s;}
.draw-trigger strong{display:block;font-size:20px;letter-spacing:-.5px;line-height:1.3;}
.draw-trigger small{font-size:11px;line-height:1.5;display:block;color:#fff7df;background:#9e3e2622;border-radius:999px;padding:3px 8px;}
.draw-trigger:hover{filter:brightness(1.05);}
.draw-trigger:active{transform:none;box-shadow:inset 0 2px 7px #a1463026,0 3px 0 #a8422d;}
.draw-trigger:disabled{opacity:.68;filter:saturate(.65);cursor:wait;}
.draw-machine.is-busy .draw-trigger{filter:saturate(.85);}
.draw-machine.is-busy .draw-trigger strong{font-size:17px;}
.machine-footnote{margin:27px 0 0;text-align:center;color:var(--reward-muted);font-size:11px;line-height:1.8;}
.draw-aside{display:grid;gap:16px;padding-top:45px;}
.draw-aside .soft-panel{min-width:0;padding:23px;border:1px solid var(--reward-line);border-radius:20px;background:#fffcf6;box-shadow:0 6px 16px #7f5e3a04;}
.draw-aside .soft-panel h3{margin:0 0 15px;font-size:16px;line-height:1.5;letter-spacing:-.3px;}
.draw-aside .soft-panel p,.draw-aside .soft-panel li{color:var(--reward-muted);font-size:12px;line-height:1.9;}
.draw-aside .soft-panel p:last-child{margin-bottom:0;}
.draw-aside .soft-panel ol,.draw-aside .soft-panel ul{padding-left:19px;margin:0;}
.draw-aside .soft-panel li+li{margin-top:9px;}

/* Alternate displays use the same prize objects and draw action. */
.wheel-machine{position:relative;display:grid;place-items:center;max-width:470px;margin:0 auto;padding:16px 16px 22px;isolation:isolate;}
.wheel-machine::before{content:"";position:absolute;top:7px;left:calc(50% - 13px);width:26px;height:34px;background:linear-gradient(90deg,#b85b3a,#e18659);clip-path:polygon(0 0,100% 0,50% 100%);z-index:4;filter:drop-shadow(0 3px 2px #754a2a33);}
.wheel-disc{position:relative;width:100%;aspect-ratio:1;border:12px solid #eaba8d;border-radius:50%;background:conic-gradient(from -22.5deg,#fff8e4 0deg 45deg,#f8dfd2 45deg 90deg,#fff8e4 90deg 135deg,#f0e8f9 135deg 180deg,#fff8e4 180deg 225deg,#f8dfd2 225deg 270deg,#fff8e4 270deg 315deg,#f0e8f9 315deg 360deg);box-shadow:inset 0 0 0 3px #fff7d8,inset 0 0 18px #ad6d331a,0 8px 0 #bc8061,0 12px 0 #e3bea0,0 23px 28px #9c6f3d1c;overflow:hidden;transition:transform 3.2s cubic-bezier(.12,.65,.13,1);}
.wheel-disc::after{content:"";position:absolute;inset:6px;pointer-events:none;border:1px dashed #c79b6a77;border-radius:50%;}
.wheel-item{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:26%;transform:translate(-50%,-50%);min-width:0;text-align:center;z-index:1;}
.wheel-item .object-sprite{display:block;width:53px;height:53px;filter:drop-shadow(0 4px 3px #6c4b2b15);}
.wheel-item .prize-label{font-size:11px;line-height:1.4;}
.wheel-item small{font-size:10px;color:var(--reward-muted);}
.wheel-center{position:absolute;left:50%;top:calc(50% - 3px);transform:translate(-50%,-50%);z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100px;height:100px;padding:12px 5px;border:5px solid #f4cf9b;border-radius:50%;color:#fff9e8;background:linear-gradient(140deg,#ef9566,#d95d3c);box-shadow:inset 0 2px 0 #ffd6ac,0 5px 0 #a94e34,0 9px 15px #9554342b;}
.wheel-center strong{font-size:19px;line-height:1.4;}
.wheel-center small{font-size:10px;line-height:1.4;}
.wheel-center:active{transform:translate(-50%,-50%);filter:brightness(.95);}
.flip-machine{padding:5px 0;}
.flip-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.flip-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:158px;min-width:0;padding:18px 7px;border:1px solid #eed4af;border-radius:18px;background:radial-gradient(ellipse at 20% 0%,#fffbed,transparent 80%),linear-gradient(145deg,#f5dfbd,#e9c394);color:var(--reward-ink);box-shadow:inset 0 0 0 5px #fff3d250,inset 0 0 0 6px #d0a77945,0 5px 0 #bf9368,0 10px 14px #976a3c15;transition:filter .18s,box-shadow .18s;}
.flip-card .object-sprite{width:70px;height:70px;filter:drop-shadow(0 6px 5px #7446231a);}
.flip-card .prize-label{font-size:12px;}
.flip-card small{font-size:11px;line-height:1.5;color:#745b44;}
.flip-card:hover{filter:brightness(1.035);}
.flip-card:active{transform:none;box-shadow:inset 0 1px 8px #936c2b15,0 2px 0 #bf9368;}
.flip-card.is-lit{border-color:#b98535;background:#fff3c9;box-shadow:inset 0 0 0 3px #fff9dd,0 5px 0 #ba8a4c,0 0 0 3px #ead298;}
.showcase-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.showcase-grid .prize-slot{min-height:148px;border-color:#e6d6c2;background:linear-gradient(150deg,#fffcf7,#f7eddf);box-shadow:inset 0 2px 0 #fff,0 4px 0 #deccb5,0 9px 16px #83613a09;}
.showcase-grid .prize-slot:nth-child(3n){background:linear-gradient(150deg,#f9f5ff,#ede4f8);}
.showcase-grid .prize-slot .object-sprite{width:78px;height:78px;}
.showcase-grid .prize-label{font-size:12px;}
.showcase-grid+.draw-trigger,.flip-grid+.draw-trigger{display:flex;width:min(100%,300px);min-height:60px;margin:25px auto 0;border-radius:16px;gap:3px;}
.showcase-grid+.draw-trigger strong,.flip-grid+.draw-trigger strong{font-size:18px;}
.showcase-grid+.draw-trigger small,.flip-grid+.draw-trigger small{padding:0;background:none;font-size:11px;}

@media(min-width:1200px){
  .draw-layout{gap:34px;grid-template-columns:minmax(420px,1.1fr) minmax(280px,.9fr);}
  .draw-machine{max-width:540px;}
  .draw-grid{grid-template-rows:repeat(3,minmax(125px,1fr));gap:12px;}
  .prize-slot .object-sprite{width:75px;height:75px;}
}
@media(max-width:760px){
  .draw-layout{grid-template-columns:minmax(0,1fr);gap:24px;}
  .draw-panel{width:100%;max-width:490px;margin:0 auto;}
  .draw-aside{padding-top:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
  .draw-aside .soft-panel{padding:19px;}
  .rewards-hero{min-height:226px;padding:28px;}
  .rewards-hero h1{font-size:32px;}
  .rewards-hero .hero-art{width:48%;right:-4%;height:109%;bottom:-4%;}
  .rewards-hero .hero-copy{max-width:63%;}
}
@media(max-width:480px){
  .rewards-hero{min-height:216px;padding:22px 19px;border-radius:23px;}
  .rewards-hero .hero-copy{max-width:67%;}
  .rewards-hero .eyebrow{font-size:9px;letter-spacing:1.6px;gap:6px;}
  .rewards-hero .eyebrow::before{width:13px;}
  .rewards-hero h1{font-size:27px;line-height:1.4;letter-spacing:-1px;margin:12px 0 9px;max-width:225px;}
  .rewards-hero .hero-copy>p{max-width:188px;font-size:12px;line-height:1.7;}
  .rewards-hero .hero-tags{gap:5px;margin-top:16px;font-size:9px;}
  .rewards-hero .hero-tags>span{padding:4px 7px;gap:3px;}
  .rewards-hero .hero-tags svg{width:11px;height:11px;}
  .rewards-hero .hero-art{right:-12%;bottom:-3%;width:58%;height:97%;max-width:none;filter:drop-shadow(0 12px 12px #9a664b13);}
  .wallet-strip{gap:12px;padding:16px 17px;margin:16px 0 25px;min-height:91px;border-radius:17px;}
  .wallet-label{font-size:11px;}
  .balance-number{font-size:29px;margin-top:4px;}
  .balance-number small{font-size:11px;margin-left:4px;}
  .wallet-note{padding-left:12px;font-size:10px;line-height:1.6;}
  .wallet-strip .ghost{padding:8px 10px;min-height:44px;font-size:11px;}
  .board-heading{margin-bottom:14px;gap:8px;}
  .board-heading h2{font-size:18px;}
  .board-heading>span{font-size:10px;padding:5px 7px;}
  .draw-machine{padding:13px;border-radius:25px;box-shadow:inset 0 2px 0 #fff8,inset 0 -3px 0 #b9684d33,0 7px 0 #c7846b,0 11px 0 #e6c4ac,0 20px 24px #8f5c3d12;}
  .draw-machine::before{inset:6px;border-radius:20px;border-width:1.5px;}
  .draw-grid{padding:7px;gap:9px;border-radius:17px;grid-template-rows:repeat(3,minmax(99px,1fr));}
  .prize-slot{min-height:99px;gap:2px;padding:7px 3px 10px;border-radius:12px;}
  .prize-slot .object-sprite{width:53px;height:53px;}
  .prize-label{font-size:12px;line-height:1.5;}
  .slot-subtitle{font-size:10px;line-height:1.3;}
  .draw-trigger{min-height:99px;gap:5px;border-radius:13px;padding:10px 3px;}
  .draw-trigger strong{font-size:18px;line-height:1.5;}
  .draw-trigger small{font-size:10px;padding:2px 6px;}
  .draw-machine.is-busy .draw-trigger strong{font-size:15px;}
  .machine-footnote{margin-top:23px;font-size:10px;}
  .draw-aside{grid-template-columns:minmax(0,1fr);gap:13px;}
  .draw-aside .soft-panel{padding:20px;border-radius:18px;}
  .draw-aside .soft-panel h3{font-size:15px;margin-bottom:12px;}
  .draw-aside .soft-panel p,.draw-aside .soft-panel li{font-size:12px;}
  .wheel-machine{padding:13px 5px 22px;}
  .wheel-disc{border-width:10px;}
  .wheel-item .object-sprite{width:45px;height:45px;}
  .wheel-item .prize-label{font-size:10px;}
  .wheel-item small{font-size:9px;}
  .wheel-center{width:88px;height:88px;border-width:4px;}
  .wheel-center strong{font-size:17px;}
  .wheel-center small{font-size:9px;}
  .flip-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
  .flip-card{min-height:149px;border-radius:17px;gap:6px;}
  .flip-card .object-sprite{width:72px;height:72px;}
  .flip-card .prize-label{font-size:13px;}
  .showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
  .showcase-grid .prize-slot{min-height:146px;gap:5px;border-radius:17px;}
  .showcase-grid .prize-slot .object-sprite{width:78px;height:78px;}
  .showcase-grid .prize-label{font-size:13px;}
}
@media(max-width:350px){
  .rewards-hero{padding:20px 16px;}
  .rewards-hero h1{font-size:25px;}
  .rewards-hero .hero-copy{max-width:70%;}
  .rewards-hero .hero-art{right:-17%;}
  .wallet-strip{padding:15px 13px;gap:9px;}
  .wallet-note{padding-left:9px;}
  .draw-machine{padding:11px;}
  .draw-grid{gap:7px;padding:6px;grid-template-rows:repeat(3,minmax(94px,1fr));}
  .prize-slot,.draw-trigger{min-height:94px;}
  .prize-slot .object-sprite{width:47px;height:47px;}
  .prize-label{font-size:12px;}
  .draw-trigger strong{font-size:16px;}
}
@media(prefers-reduced-motion:reduce){
  :is(.prize-slot,.draw-trigger,.wheel-disc,.wheel-center,.flip-card,.wallet-strip .ghost){animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
