/* The Way of Kings in Eight Moments. Everything scoped to #wtl1. */
#wtl1{--ink:#eaecf0;--mute:#7f8ca0;--gold:#e8c96a;--gold2:#c9a84c;--red:#e0605a;--line:#1f2746;
  container-type:inline-size;position:relative;scroll-margin-top:96px;overflow:hidden;overflow:clip;margin:28px 0;border-radius:18px;background:radial-gradient(120% 70% at 50% 0%,#17203d 0%,#080b18 55%,#04060d 100%);border:1px solid #1d2442;box-shadow:0 30px 80px rgba(0,0,0,.55),inset 0 1px 0 rgba(232,201,106,.08);color:var(--ink);font-family:'Lato',system-ui,sans-serif;min-height:560px}
#wtl1 *{box-sizing:border-box}
#wtl1 .wtl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#wtl1 .wtl-kicker{font:700 11px/1.3 'Cinzel',Georgia,serif;letter-spacing:.26em;text-transform:uppercase;color:var(--gold2)}
#wtl1 .wtl-fine{font-size:12px;color:var(--mute);margin:12px 0 0}
#wtl1 button{text-transform:none;letter-spacing:normal}
#wtl1 .wtl-go{appearance:none;border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:15px 26px;border-radius:999px;background:linear-gradient(180deg,#f3d887,#c9a84c);color:#1a1205;font:700 14px/1 'Cinzel',Georgia,serif;letter-spacing:.06em;text-decoration:none;box-shadow:0 10px 30px rgba(201,168,76,.28),inset 0 1px 0 rgba(255,255,255,.5);transition:transform .2s,box-shadow .2s,opacity .2s}
#wtl1 .wtl-go:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(201,168,76,.4),inset 0 1px 0 rgba(255,255,255,.5);color:#1a1205}
#wtl1 .wtl-go:disabled{opacity:.35;cursor:default;transform:none;box-shadow:none}
#wtl1 .wtl-go.ready{animation:wtl-call 1.6s ease-in-out infinite}
@keyframes wtl-call{50%{box-shadow:0 0 0 8px rgba(232,201,106,.18),0 16px 40px rgba(201,168,76,.45)}}
#wtl1 .wtl-go:focus-visible,#wtl1 .wtl-card:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#wtl1 .wtl-alt{background:transparent;color:var(--gold);border:1px solid rgba(201,168,76,.55);box-shadow:none}
#wtl1 .wtl-alt:hover{background:rgba(201,168,76,.1);color:var(--gold)}

/* intro: the eight moments fanned like a hand of cards */
#wtl1 .wtl-fan{position:relative;height:290px;margin-top:30px}
#wtl1 .wtl-fan img{position:absolute;left:50%;bottom:0;width:150px;aspect-ratio:3/4;object-fit:cover;border-radius:10px;box-shadow:0 18px 40px rgba(0,0,0,.6),0 0 0 1px rgba(232,201,106,.35);transform-origin:50% 160%;transform:translateX(-50%) rotate(calc(var(--k) * 11deg));animation:wtl-deal .9s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc((var(--k) + 3) * 70ms)}
#wtl1 .wtl-fan img:nth-child(4){z-index:2;box-shadow:0 18px 50px rgba(0,0,0,.7),0 0 0 1px rgba(232,201,106,.75),0 0 50px rgba(232,201,106,.25)}
@keyframes wtl-deal{from{opacity:0;transform:translateX(-50%) translateY(60px) rotate(0)}}
#wtl1.wtl-intro::after{content:"";position:absolute;left:0;right:0;top:170px;height:170px;background:linear-gradient(180deg,rgba(8,11,24,0),#080b18 85%);pointer-events:none}
#wtl1 .wtl-introbody{position:relative;z-index:2;text-align:center;padding:0 28px 48px;max-width:600px;margin:-40px auto 0}
#wtl1 .wtl-title{font:700 clamp(30px,7cqi,50px)/1.06 'Cinzel',Georgia,serif;margin:12px 0 14px;color:#fff;text-shadow:0 0 40px rgba(232,201,106,.3),0 2px 0 #000;text-wrap:balance;border:0;padding:0}
#wtl1 .wtl-lede{font-size:18px;line-height:1.55;color:#c0cce0;margin:0 0 22px}
#wtl1 .wtl-rules{list-style:none;display:flex;justify-content:center;gap:10px;padding:0;margin:0 0 28px;flex-wrap:wrap}
#wtl1 .wtl-rules li{padding:8px 14px;border:1px solid rgba(232,201,106,.25);border-radius:999px;background:rgba(8,11,24,.6);font-size:13px;color:#c0cce0;margin:0}
#wtl1 .wtl-rules b{color:var(--gold);font-family:'Cinzel',Georgia,serif;margin-right:5px}

/* play: the timeline on top, the shuffled hand below */
#wtl1 .wtl-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px 24px 0;flex-wrap:wrap}
#wtl1 .wtl-count{margin-top:6px;color:var(--mute);font-size:14px}
#wtl1 .wtl-count b{font:700 22px 'Cinzel',Georgia,serif;color:#fff;margin-right:4px}
#wtl1 .wtl-line{position:relative;list-style:none;margin:20px 0 0;padding:0 24px 8px;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
#wtl1 .wtl-line::before{content:"";position:absolute;left:24px;right:24px;top:13px;height:2px;background:linear-gradient(90deg,transparent,rgba(232,201,106,.55) 8%,rgba(232,201,106,.55) 92%,transparent)}
#wtl1 .wtl-slot{position:relative;margin:0;padding:34px 0 0;min-width:0}
#wtl1 .wtl-num{position:absolute;top:0;left:50%;transform:translateX(-50%);width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#0b0f20;border:1px solid rgba(232,201,106,.6);font:700 12px 'Cinzel',Georgia,serif;color:var(--gold);z-index:1;transition:background .3s,color .3s,box-shadow .3s}
#wtl1 .wtl-empty{display:block;aspect-ratio:3/4.6;border-radius:10px;border:1px dashed rgba(232,201,106,.28);background:repeating-linear-gradient(135deg,rgba(255,255,255,.015) 0 8px,transparent 8px 16px)}
#wtl1 .wtl-slot:not(.full):first-of-type .wtl-empty,#wtl1 .wtl-slot.full+.wtl-slot:not(.full) .wtl-empty{border-color:rgba(232,201,106,.7);box-shadow:0 0 24px rgba(232,201,106,.12) inset}

#wtl1 .wtl-card{appearance:none;display:block;width:100%;padding:0;margin:0;border:1px solid #2a3458;border-radius:10px;background:#0c1124;color:var(--ink);cursor:pointer;overflow:hidden;text-align:left;position:relative;transition:transform .2s,border-color .2s,box-shadow .2s,filter .3s}
#wtl1 .wtl-card:not(:disabled):hover{transform:translateY(-4px);border-color:rgba(232,201,106,.7);box-shadow:0 16px 34px rgba(0,0,0,.5)}
#wtl1 .wtl-art{display:block;aspect-ratio:3/4;overflow:hidden}
#wtl1 .wtl-art img{display:block;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0}
#wtl1 .wtl-cap{display:flex;overflow-wrap:break-word;hyphens:manual;align-items:center;min-height:3.9em;padding:7px 9px;font:700 12.5px/1.25 'Lato',system-ui,sans-serif;color:#dfe4ee}
#wtl1 .wtl-handh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:22px 24px 12px;padding-top:18px;border-top:1px solid var(--line)}
#wtl1 .wtl-hint{font-size:13px;color:var(--mute)}
#wtl1 .wtl-hand{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;padding:0 24px 28px}
#wtl1 .wtl-ghost{display:block;aspect-ratio:3/4.6;border-radius:10px;border:1px solid rgba(255,255,255,.04)}

/* seal: each slot turns gold or red in turn */
#wtl1 .wtl-slot.hit .wtl-card{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold),0 0 30px rgba(232,201,106,.35);animation:wtl-hit .5s cubic-bezier(.2,.8,.2,1)}
#wtl1 .wtl-slot.hit .wtl-num{background:var(--gold);color:#0a0d1a;box-shadow:0 0 16px rgba(232,201,106,.7)}
#wtl1 .wtl-slot.miss .wtl-card{border-color:rgba(224,96,90,.7);filter:grayscale(.75) brightness(.6);animation:wtl-miss .45s ease}
#wtl1 .wtl-slot.miss .wtl-num{background:var(--red);border-color:var(--red);color:#1a0705}
#wtl1 .wtl-card:disabled{cursor:default}
@keyframes wtl-hit{40%{transform:translateY(-8px) scale(1.05)}}
@keyframes wtl-miss{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

#wtl1 .wtl-verdict{text-align:center;padding:30px 24px 6px;animation:wtl-up .5s cubic-bezier(.2,.7,.2,1) both}
@keyframes wtl-up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
#wtl1 .wtl-score{display:flex;justify-content:center;align-items:baseline;gap:10px}
#wtl1 .wtl-big{font:700 clamp(64px,14cqi,96px)/1 'Cinzel',Georgia,serif;color:#fff;text-shadow:0 0 40px rgba(232,201,106,.45)}
#wtl1 .wtl-of{font:700 16px 'Cinzel',Georgia,serif;color:var(--mute);letter-spacing:.08em}
#wtl1 .wtl-rank{font:700 clamp(24px,5cqi,34px)/1.15 'Cinzel',Georgia,serif;color:var(--gold);margin:8px 0 6px}
#wtl1 .wtl-sub{color:#c0cce0;font-size:16px;line-height:1.5;margin:0 auto 6px;max-width:520px}
#wtl1 .wtl-gate{max-width:560px;margin:18px auto 0;padding:20px;border:1px solid rgba(232,201,106,.25);border-radius:14px;background:rgba(8,11,24,.7)}
#wtl1 .wtl-gate p{margin:0 0 14px;color:#c0cce0;font-size:15px;line-height:1.5}
#wtl1 .wtl-field{display:flex;gap:10px}
#wtl1 .wtl-field input{flex:1;min-width:0;padding:14px 16px;border-radius:999px;border:1px solid #2e3a66;background:#0b0f20;color:#fff;font:16px 'Lato',system-ui,sans-serif}
#wtl1 .wtl-field input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(232,201,106,.18)}
#wtl1 .wtl-err{color:var(--red);font-size:13px;margin-top:8px}
#wtl1.wtl-sealed .wtl-line{padding-bottom:30px}

/* result */
#wtl1 .wtl-reshead{padding:30px 24px 10px;text-align:center}
#wtl1 .wtl-row{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}
#wtl1 .wtl-share a{color:var(--gold);font-size:14px;text-decoration:underline;text-underline-offset:3px}
#wtl1 .wtl-keyh{font:700 20px 'Cinzel',Georgia,serif;color:#fff;margin:26px 24px 12px;padding:0;border:0}
#wtl1 .wtl-true{position:relative;list-style:none;margin:0;padding:0 24px}
#wtl1 .wtl-true::before{content:"";position:absolute;left:38px;top:12px;bottom:12px;width:2px;background:linear-gradient(180deg,rgba(232,201,106,.6),rgba(232,201,106,.1))}
#wtl1 .wtl-true li{position:relative;display:grid;grid-template-columns:30px 96px 1fr;gap:16px;align-items:start;margin:0 0 16px;padding:0;animation:wtl-up .5s cubic-bezier(.2,.7,.2,1) both}
#wtl1 .wtl-true li:nth-child(2){animation-delay:.06s}#wtl1 .wtl-true li:nth-child(3){animation-delay:.12s}#wtl1 .wtl-true li:nth-child(4){animation-delay:.18s}#wtl1 .wtl-true li:nth-child(5){animation-delay:.24s}#wtl1 .wtl-true li:nth-child(6){animation-delay:.3s}#wtl1 .wtl-true li:nth-child(7){animation-delay:.36s}#wtl1 .wtl-true li:nth-child(8){animation-delay:.42s}
#wtl1 .wtl-tn{position:relative;z-index:1;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font:700 13px 'Cinzel',Georgia,serif;margin-top:4px}
#wtl1 .wtl-true .hit .wtl-tn{background:var(--gold);color:#0a0d1a;box-shadow:0 0 14px rgba(232,201,106,.6)}
#wtl1 .wtl-true .miss .wtl-tn{background:#0b0f20;border:1px solid var(--red);color:var(--red)}
#wtl1 .wtl-true img{width:96px;aspect-ratio:3/4;object-fit:cover;border-radius:8px;margin:0;border:1px solid #2a3458}
#wtl1 .wtl-true .hit img{border-color:var(--gold)}
#wtl1 .wtl-true h3{font:700 18px/1.25 'Cinzel',Georgia,serif;color:#fff;margin:4px 0 6px;padding:0;border:0}
#wtl1 .wtl-true p{margin:0;color:#c0cce0;font-size:15px;line-height:1.55}
#wtl1 .wtl-true .miss .wtl-kicker{color:var(--red)}
#wtl1 .wtl-buy{display:flex;gap:18px;align-items:center;justify-content:space-between;margin:14px 24px 0;padding:20px;border:1px solid rgba(232,201,106,.3);border-radius:14px;background:linear-gradient(135deg,rgba(232,201,106,.08),rgba(8,11,24,.6))}
#wtl1 .wtl-buy p{margin:6px 0 0;color:#c0cce0;font-size:15px;line-height:1.5}
#wtl1 .wtl-buy .wtl-go{flex:none}
#wtl1.wtl-res>.wtl-fine{padding:0 24px 26px}

@container (max-width:720px){
  #wtl1 .wtl-line,#wtl1 .wtl-hand{grid-template-columns:repeat(4,minmax(0,1fr))}
  #wtl1 .wtl-line::before{display:none}
  #wtl1 .wtl-slot{padding-top:32px}
  #wtl1 .wtl-cap{font-size:11.5px;min-height:3.6em;padding:6px 7px}
}
@container (max-width:560px){
  #wtl1 .wtl-head,#wtl1 .wtl-reshead,#wtl1 .wtl-verdict{padding-left:16px;padding-right:16px}
  #wtl1 .wtl-line,#wtl1 .wtl-hand{gap:8px;padding-left:16px;padding-right:16px}
  #wtl1 .wtl-handh{margin-left:16px;margin-right:16px}
  #wtl1 .wtl-head .wtl-go{width:100%}
  #wtl1 .wtl-field{flex-direction:column}
  #wtl1 .wtl-fan img{width:118px}
  #wtl1 .wtl-fan{height:240px}
  #wtl1 .wtl-true{padding:0 16px}
  #wtl1 .wtl-true::before{left:30px}
  #wtl1 .wtl-true li{grid-template-columns:30px 64px 1fr;gap:12px}
  #wtl1 .wtl-true img{width:64px}
  #wtl1 .wtl-keyh{margin-left:16px}
  #wtl1 .wtl-buy{flex-direction:column;align-items:flex-start;margin:14px 16px 0}
  #wtl1.wtl-res>.wtl-fine{padding:0 16px 22px}
}
@media (prefers-reduced-motion:reduce){#wtl1 *{animation:none!important;transition:none!important}}
