@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Text:ital@0;1&display=swap');
:root{color-scheme:light;font-family:"DM Sans",Arial,sans-serif;color:#262923;background:#f3f1e9;--gold:#b68a35;--muted:#73756d;--line:#d8d7ca}
*{box-sizing:border-box}
body{margin:0;padding-bottom:calc(85px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 75% 45%,#fffdf2,#f3f1e9 68%)}
button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}
:focus-visible{outline:2px solid #9b7428;outline-offset:4px}
.shell{width:min(1240px,calc(100% - 72px));margin:auto}
.header{border-bottom:1px solid var(--line);background:#faf9f3e6}
.header-inner{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.pulse-logo{width:174px;background:#252924;border:1px solid #514a31;padding:9px 13px;border-radius:8px;display:block}
.pulse-logo img{display:block;width:100%;height:auto}
.header-actions{display:flex;gap:26px;align-items:center;font-size:12px}
.header-actions a{text-decoration:none}
#soundToggle{border:1px solid #c5c5b7;border-radius:30px;background:transparent;padding:9px 13px;color:#56594f;font-size:11px}
.arena{min-height:650px;display:grid;grid-template-columns:38% minmax(0,1fr);align-items:center;gap:2%;position:relative}
.intro{padding:42px 0 40px 15px;z-index:1}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:.17em;color:#8f7439;margin:0 0 20px}
.eyebrow span{font-size:17px;margin-right:7px}
h1{font:400 clamp(85px,9vw,130px)/.8 "DM Serif Text",Georgia,serif;letter-spacing:-.055em;margin:0 0 24px}
h1 em{color:#b58b3e;font-weight:400}
.description{font-size:14px;line-height:1.8;color:#676a60;margin:0 0 28px}
.ticket-form{max-width:340px}
.ticket-form label{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;margin-bottom:8px}
.ticket-field{display:flex;align-items:center;gap:12px;padding:12px 15px;background:#fffdf8;border:1px solid #cbc9b8;border-radius:8px}
.ticket-field>span{color:#b68a35;font-size:20px}
.ticket-field input{width:100%;min-width:0;background:none;border:0;outline:0;color:#2e332b;font-weight:600;letter-spacing:.09em;font-size:14px}
.ticket-field:focus-within{border-color:#af8535;box-shadow:0 0 0 3px #caa65320}
.ticket-field input::placeholder{color:#a4a498;font-weight:400}
.btn-spin,.btn-claim{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;margin-top:10px;min-height:49px;border:1px solid #ba9547;border-radius:8px;background:linear-gradient(120deg,#e1c47b,#f2dfa3 52%,#cfa95d);color:#3b341e;font-size:12px;font-weight:800;letter-spacing:.1em;text-decoration:none;box-shadow:0 3px 0 #9d7a3630}
.btn-spin:hover,.btn-claim:hover{filter:brightness(1.04)}
.btn-spin:disabled{cursor:wait;filter:grayscale(.5);opacity:.75}
#spinStatus{font-size:10px;line-height:1.6;color:#77796e;min-height:30px;margin:12px 0 0}
#spinStatus.error{color:#9c3730}
.stage{position:relative;align-self:stretch;display:flex;align-items:center;isolation:isolate;min-width:0}
.stage::after{content:"";position:absolute;width:95%;height:25px;background:radial-gradient(ellipse,#6d623e30,transparent 70%);bottom:80px;z-index:-1}
.orbit{position:absolute;border:1px solid #d5c49377;border-radius:50%;width:540px;height:540px;left:4%;top:50%;transform:translateY(-50%);z-index:-2;pointer-events:none}
.orbit-two{width:610px;height:610px;border-style:dashed;border-color:#ccc9b850}
.mascot{position:absolute;right:-36px;bottom:78px;width:52%;height:85%;object-fit:contain;object-position:bottom;z-index:-1;filter:drop-shadow(0 12px 10px #77705225)}
.wheel-assembly{width:68%;position:relative;margin-left:-2%;margin-top:32px}
.wheel-wrapper{position:relative;width:100%;aspect-ratio:1;border-radius:50%;padding:15px;background:linear-gradient(135deg,#fff6ce 0,#b18b3d 17%,#fff2bd 38%,#c7a052 62%,#fff4ca 83%,#a58641);box-shadow:0 10px 0 #988044,0 14px 0 #d0b771,0 23px 23px #59543a2b,inset 0 0 0 1px #8c7540}
.wheel-rim{width:100%;height:100%;border-radius:50%;border:6px solid #33382f;background:#262c25;box-shadow:0 0 0 2px #f7eac4,0 0 0 5px #ba9b52;overflow:hidden}
#wheelCanvas{display:block;width:100%;height:100%;border-radius:50%}
.wheel-center-mask{position:absolute;inset:39%;border-radius:50%;background:linear-gradient(145deg,#fff8da,#d6b870);padding:5px;box-shadow:0 3px 6px #181e2255,0 0 0 2px #6c633c;display:grid;place-items:center}
.wheel-center-mask img{width:88%;height:88%;object-fit:contain}
.pointer{position:absolute;top:-17px;left:50%;transform:translateX(-50%);width:36px;height:48px;background:linear-gradient(120deg,#fff8df,#d1a84a);clip-path:polygon(0 0,100% 0,50% 100%);filter:drop-shadow(0 2px 2px #6c4c26);z-index:2}
.rim-light{position:absolute;width:8px;height:8px;border-radius:50%;background:#fff8db;box-shadow:0 0 8px #fffce4}
.light-one{left:7%;top:25%}.light-two{right:7%;bottom:25%}
.wheel-pedestal{width:55%;height:19px;margin:16px auto 0;background:linear-gradient(#b59955,#f3e5b3 45%,#bca361);border-radius:50%;box-shadow:0 3px 0 #8e7b48,0 8px 12px #7b70502b}
.prize-caption{text-align:center;margin-top:23px}
.prize-caption>span{font-size:8px;letter-spacing:.22em;color:#93927e}
.prize-caption strong{display:block;margin-top:4px;font:700 30px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.025em;color:#6c644a}
.prize-caption small{font:600 9px "DM Sans",Arial,sans-serif;letter-spacing:.12em}
.how-to{display:grid;grid-template-columns:1fr 2fr;gap:30px;align-items:center;border-top:1px solid var(--line);padding:23px 15px 15px}
.how-to h2{font:400 26px "DM Serif Text",Georgia,serif;margin:0}
.how-to p{font-size:11px;line-height:1.8;color:#797b70;margin:0}
.pinned-footer{position:fixed;inset:auto 0 0;z-index:5;background:#f9f8f0f5;border-top:1px solid #d6d2bd;padding:10px 20px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(8px)}
.footer-inner{max-width:780px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:auto}
.footer-inner a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;border:1px solid #ceccba;border-radius:7px;text-decoration:none;font-size:10px;font-weight:700;letter-spacing:.06em;background:#fffef9;color:#626554}
.footer-inner a>span{font-size:19px;color:#aa8b42}
.footer-inner .register{background:#2e362a;color:#fff6df;border-color:#2e362a}
.footer-inner a:hover{border-color:#a58843}
.footer-inner a[aria-disabled=true]{opacity:.5}
dialog{border:1px solid #c4a45c;border-radius:18px;padding:0;width:min(430px,calc(100% - 24px));max-height:90dvh;background:#fbf8ed;color:#303529}
dialog::backdrop{background:#1f251ecc;backdrop-filter:blur(5px)}
.modal-card{position:relative;padding:32px;text-align:center}
.close-modal{position:absolute;right:10px;top:10px;width:40px;height:40px;border:0;border-radius:50%;background:#efeadb;color:#5c5f50;font-size:23px}
.winner-symbol{font-size:45px;color:#b7913e}.modal-card .eyebrow{margin-top:10px;margin-bottom:9px}
.modal-card h2{font:400 46px "DM Serif Text",Georgia,serif;margin:0 0 10px}
#prizeText{font-size:14px;line-height:1.6;font-weight:700;color:#8e6d2e}
#winnerUsername{font-size:12px;color:#727668}
.code-box{display:flex;align-items:center;gap:7px;text-align:left;padding:10px;background:#f0ebdd;border:1px solid #d9cba7;border-radius:8px;font-size:11px}
.code-box span{flex:1;overflow-wrap:anywhere}.code-box button{border:0;background:#fffdf4;color:#705a29;padding:9px;border-radius:5px}
#copyStatus{font-size:11px;color:#6f765d;margin-bottom:0}
@media(max-width:1050px){.shell{width:calc(100% - 40px)}.arena{grid-template-columns:40% minmax(0,1fr);min-height:610px}.intro{padding-left:0}.orbit{width:400px;height:400px}.orbit-two{width:470px;height:470px}.mascot{right:-12px;bottom:105px}.wheel-wrapper{padding:11px}.wheel-rim{border-width:4px}.wheel-assembly{width:70%}h1{font-size:100px}}
@media(max-width:720px){
 body{padding-bottom:calc(74px + env(safe-area-inset-bottom));overflow-x:clip}
 .shell{width:calc(100% - 32px)}
 .header-inner{min-height:66px;gap:10px}.pulse-logo{width:132px;padding:6px 8px}.header-actions{gap:10px}.header-actions>a{display:none}
 #soundToggle{padding:7px 10px;font-size:9px}
 .arena{display:flex;flex-direction:column;min-height:0;gap:0}
 .intro{display:contents}
 .intro>.eyebrow{align-self:flex-start;margin:22px 0 10px;font-size:9px}
 h1{align-self:flex-start;font-size:57px;line-height:.95;margin:0;letter-spacing:-.045em}
 h1 br{display:none}h1 em{margin-left:8px}
 .description{align-self:flex-start;font-size:11px;line-height:1.6;margin:10px 0 0}.description br{display:none}
 .stage{order:1;width:100%;height:auto;aspect-ratio:1.22;align-self:center;margin-top:0}
 .orbit{width:78%;height:auto;aspect-ratio:1;left:7%}.orbit-two{width:90%;height:auto}
 .mascot{right:-7px;bottom:32px;height:98%;width:49%}
 .wheel-assembly{width:68%;margin:8px 0 0}
 .wheel-wrapper{padding:9px;box-shadow:0 5px 0 #988044,0 8px 0 #d0b771,0 15px 19px #59543a2b}
 .wheel-rim{border-width:3px;box-shadow:0 0 0 1px #f7eac4,0 0 0 3px #ba9b52}
 .pointer{width:25px;height:33px;top:-9px}
 .wheel-center-mask{padding:2px}
 .wheel-pedestal{height:12px;margin-top:10px}
 .prize-caption{margin-top:13px}.prize-caption strong{font-size:24px}.prize-caption>span{font-size:7px}
 .ticket-form{order:2;max-width:none;width:100%;margin:10px 0 0;padding:15px;background:#fffdf6;border:1px solid #d8ceaf;border-radius:12px;box-shadow:0 5px 14px #7b70500a}
 #spinStatus{min-height:0;margin-bottom:0;font-size:10px}
 .how-to{display:block;padding:22px 0 15px;margin-top:22px}.how-to h2{font-size:23px;margin-bottom:8px}.how-to p{font-size:10px}
 .footer-inner{gap:5px}.pinned-footer{padding-inline:10px}.footer-inner a{min-height:42px;gap:4px;font-size:8px;letter-spacing:0}.footer-inner a>span{font-size:15px}
 .modal-card{padding:28px 20px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.orbit{border-style:solid}}
body {
  background-color: #f3f1e9;
  background-image: linear-gradient(90deg, #f8f7f0e8 0%, #f8f7f0b3 30%, #f8f7f026 65%, #f8f7f00d),
    url("arena-background.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.how-to { background: #faf9f1b8; border-radius: 0 0 10px 10px; }
@media(max-width:720px) {
  body {
    background-image: linear-gradient(180deg, #f8f7f0e8 0%, #f8f7f052 32%, #f8f7f04d 55%, #f8f7f0e6 85%),
      url("arena-background.jpg");
    background-position: 68% top;
    background-size: auto 1050px;
  }
}

/* Brand marks and ticket readability */
.pulse-logo {
  width: 185px;
  padding: 9px 12px;
  border: 1px solid #bca56b;
  border-radius: 10px;
  background: linear-gradient(145deg, #3b3e34, #23291f);
  box-shadow: inset 0 1px 0 #fff4c52b, 0 3px 8px #62532f12;
}
.pulse-logo img { width: 100%; height: 38px; object-fit: contain; }
.wheel-center-mask {
  inset: 38%;
  padding: 5px;
  background: linear-gradient(135deg, #fff2bf, #a78a42 48%, #f3deb0);
  box-shadow: 0 4px 7px #181e2250, 0 0 0 1px #806c34;
}
.wheel-center-mask img {
  width: 100%;
  height: 100%;
  padding: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 22%, #4a4b3c, #242b20);
}
.intro .eyebrow { font-size: 11px; color: #8b6a2d; letter-spacing: .13em; }
.intro h1 { margin-bottom: 26px; }
.description { font-size: 15px; line-height: 1.75; color: #53584d; }
.ticket-form { max-width: 355px; }
.ticket-form label { font-size: 12px; margin-bottom: 9px; }
.ticket-field { padding-block: 14px; border-color: #bfb493; }
.ticket-field input { font-size: 15px; letter-spacing: .065em; }
.btn-spin { min-height: 52px; font-size: 13px; letter-spacing: .075em; }
#spinStatus { font-size: 11px; line-height: 1.6; color: #626859; }
@media(max-width:720px) {
  .pulse-logo { width: 143px; padding: 6px 9px; }
  .pulse-logo img { height: 29px; }
  .intro .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .intro h1 { margin-bottom: 0; }
  .description { font-size: 12px; line-height: 1.7; margin-top: 11px; }
  .ticket-form { max-width: none; }
  .ticket-field { padding-block: 13px; }
  .ticket-field input { font-size: 14px; }
  .btn-spin { min-height: 49px; font-size: 12px; }
  #spinStatus { font-size: 10px; }
  .wheel-center-mask { padding: 3px; }
}

.pulse-logo {
  width: 194px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.pulse-logo img { height: 63px; width: 100%; object-fit: contain; }
.wheel-center-mask {
  inset: 39%;
  padding: 10px;
  background: radial-gradient(ellipse at 35% 20%, #505648, #222b20 80%);
  border: 3px solid #d8bd74;
  box-shadow: 0 4px 8px #28302166, 0 0 0 2px #948048, inset 0 1px 4px #141d15;
}
.wheel-center-mask img {
  padding: 0;
  border-radius: 0;
  background: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #11180d80);
}
.intro h1 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(85px, 8vw, 118px);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.intro h1 em { font-style: normal; color: #ac8439; }
.intro .eyebrow { margin-bottom: 14px; }
.description { line-height: 1.65; font-size: 14px; margin-bottom: 20px; }
.ticket-form {
  padding: 17px;
  border: 1px solid #cfc4a6;
  border-radius: 12px;
  background: #fffdf5e8;
  box-shadow: 0 4px 18px #82704c0b;
}
.ticket-field { border-radius: 7px; background: #fffefb; }
.btn-spin { border-radius: 7px; box-shadow: inset 0 1px 0 #fff2c5,0 2px 0 #9d7a3629; }
#spinStatus { margin-top: 10px; min-height: 0; }
@media(max-width:720px) {
  .pulse-logo { width: 155px; }
  .pulse-logo img { height: 48px; }
  .intro h1 { font-size: 58px; line-height: .95; margin-bottom: 0; }
  .description { margin-bottom: 0; font-size: 12px; }
  .ticket-form { padding: 15px; }
  .wheel-center-mask { padding: 5px; border-width: 2px; }
}
