/* Shell Luck sample case study — Dragon & Alloy AI */
:root{--d:'Lilita One','Arial Rounded MT Bold',sans-serif;--f:'Nunito',system-ui,sans-serif;--ink:#14212b;--cream:#fbf5e8;--gold:#ffc83d;--teal:#2fe0d0}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:#0b141b;color:#fff;font:500 18px/1.6 var(--f);-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.page{max-width:1240px;margin:0 auto;position:relative}
.page::before,.page::after{content:"";position:absolute;top:0;bottom:0;width:0;border-left:2px dashed rgba(255,255,255,.18);pointer-events:none;z-index:3}
.page::before{left:28px}.page::after{right:28px}

/* logo */
.logo{display:inline-flex;flex-direction:column;align-items:center;font-family:var(--d);line-height:.86;letter-spacing:.01em;text-transform:uppercase;filter:drop-shadow(0 6px 0 rgba(0,0,0,.35))}
.logo .a{font-size:1em;background:linear-gradient(#8ffcf1,#20c9c0 55%,#0e9c9e);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:.06em #0b3a4a;paint-order:stroke fill}
.logo .b{font-size:1.06em;background:linear-gradient(#fff1a8,#ffc83d 50%,#f08a12);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:.06em #5b2a06;paint-order:stroke fill;display:flex;align-items:center;gap:.06em}
.logo .b i{width:.78em;height:.78em;border-radius:50%;background:url(img/shell.svg) center/contain no-repeat;display:inline-block}

/* top */
.top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 64px;font-size:15px;color:#c3ccd3}
.top b{color:#fff;font-family:var(--d);font-weight:400;font-size:22px;letter-spacing:.02em}
.intro{padding:40px 64px 70px;display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:end}
h1,h2,h3{font-family:var(--d);font-weight:400;letter-spacing:.01em;line-height:1.05}
h1{font-size:clamp(46px,6vw,82px)}
h2{font-size:clamp(34px,4.4vw,58px)}
h3{font-size:28px}
.intro p{color:#c9d2d8;font-size:20px}
.facts{display:flex;gap:28px;margin-top:22px;flex-wrap:wrap}
.facts div{font-size:15px;color:#aeb9c1;line-height:1.35}
.facts b{display:block;color:#fff;font-size:20px;font-family:var(--d);font-weight:400}

/* trail panel */
.trail{--bg:#0f3b4a;--bg2:#0a2c38;--tile:#2fe0d0;--accent:#ffb347;background:var(--bg);position:relative}
.trail.snow{--bg:#1c4f82;--bg2:#163f69;--tile:#a9e6ff;--accent:#ff6b6b}
.trail.carn{--bg:#8f1f3a;--bg2:#731530;--tile:#ff9fb2;--accent:#ffd166}
.key{position:relative;overflow:hidden}
.key img{width:100%;aspect-ratio:3/2.5;object-fit:cover;object-position:center 82%}
.key .ttl{position:absolute;left:0;right:0;top:5%;text-align:center}
.key .logo{font-size:clamp(46px,7.4vw,100px)}
.key .ev{display:block;margin-top:14px;font-family:var(--d);font-size:clamp(24px,3.2vw,42px);color:#fff;-webkit-text-stroke:.09em rgba(10,20,30,.7);paint-order:stroke fill;text-shadow:0 4px 0 rgba(0,0,0,.3)}
.key::after{content:"";position:absolute;left:0;right:0;bottom:0;height:120px;background:linear-gradient(transparent,var(--bg))}
.band{padding:60px 64px}
.band h3{text-align:center;margin-bottom:8px}
.band .sub{text-align:center;color:#dfe7ec;max-width:60ch;margin:0 auto 36px}
.maps{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}
.maps figure{background:var(--bg2);border-radius:26px;padding:14px;box-shadow:inset 0 0 0 3px rgba(255,255,255,.08)}
.maps img{border-radius:16px;width:100%}
.maps figcaption{font-size:15px;color:#d7e0e6;padding:12px 6px 2px}
.notes{display:flex;flex-direction:column;gap:16px;justify-content:center;height:100%}
.note{background:rgba(255,255,255,.07);border-radius:20px;padding:20px 22px}
.note b{font-family:var(--d);font-weight:400;font-size:22px;color:var(--accent);display:block;margin-bottom:4px}
.note p{color:#e6edf1;font-size:17px}
.paper{background:var(--cream);color:var(--ink);padding:80px 64px 90px;position:relative;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20V9l8 4 9-6 7 5 10-7 8 6 9-3 11 6 8-8 10 7 7-4 11 5 9-7 8 6 12-4 7 5 10-8 9 7 8-4 11 6 7-5 10 4V20z'/%3E%3C/svg%3E") top/100% 26px no-repeat,linear-gradient(#000,#000) 0 25px/100% calc(100% - 50px) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0v11l9-5 8 6 10-4 7 6 11-7 8 5 9-6 10 7 8-3 11 5 7-6 10 5 9-4 8 6 11-7 7 4 10-5 8 6 9-3 7 5 8-6V0z'/%3E%3C/svg%3E") bottom/100% 26px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20V9l8 4 9-6 7 5 10-7 8 6 9-3 11 6 8-8 10 7 7-4 11 5 9-7 8 6 12-4 7 5 10-8 9 7 8-4 11 6 7-5 10 4V20z'/%3E%3C/svg%3E") top/100% 26px no-repeat,linear-gradient(#000,#000) 0 25px/100% calc(100% - 50px) no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0v11l9-5 8 6 10-4 7 6 11-7 8 5 9-6 10 7 8-3 11 5 7-6 10 5 9-4 8 6 11-7 7 4 10-5 8 6 9-3 7 5 8-6V0z'/%3E%3C/svg%3E") bottom/100% 26px no-repeat}
.paper h3{text-align:center;color:var(--ink)}
.paper .sub{text-align:center;color:#4a5660;max-width:58ch;margin:8px auto 26px}
.paper img{margin:0 auto;max-height:560px;width:auto}

/* costumes */
.cos{display:grid;grid-template-columns:1.1fr 1fr;gap:30px;align-items:center}
.cos .stage{background:var(--bg2);border-radius:30px;aspect-ratio:1;display:grid;place-items:center;position:relative;overflow:hidden}
.cos .stage::before{content:"";position:absolute;width:70%;aspect-ratio:1;border-radius:50%;background:var(--tile);opacity:.22;bottom:-26%}
.cos .big{width:80%;aspect-ratio:1;background:center/contain no-repeat;position:relative;z-index:1;transition:transform .25s}
.cos .big.pop{transform:scale(1.04) translateY(-6px)}
.picks{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.picks button{background:rgba(255,255,255,.08);border:3px solid transparent;border-radius:20px;aspect-ratio:1;padding:6px}
.picks img{width:100%;height:100%;object-fit:contain}
.picks button[aria-pressed=true]{border-color:var(--gold);background-color:rgba(255,255,255,.16)}
.cname{font-family:var(--d);font-size:32px;margin:22px 0 6px}
.cdesc{color:#dfe7ec}

/* play */
.play{background:#12313f;padding:64px 64px 80px}
.play .head{display:grid;grid-template-columns:1fr minmax(0,460px);gap:40px;align-items:end;margin-bottom:34px}
.play .head p{color:#c9d6dc}
.game{display:grid;grid-template-columns:clamp(300px,calc((100svh - 130px)*.7046),540px) minmax(300px,420px);gap:22px 34px;justify-content:center;align-items:start}
.themes{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}
.themes button{border:0;border-radius:99px;padding:10px 18px;background:rgba(255,255,255,.1);font-weight:800;font-size:16px;display:flex;gap:10px;align-items:center}
.themes small{font-size:15px;letter-spacing:.08em;color:var(--gold)}
.themes button[aria-pressed=true]{background:var(--gold);color:#3a2300}
.themes button[aria-pressed=true] small{color:#7a4a00}

/* the board: a painted map with Pip, markers and overlays on top */
.board{--z:1;position:relative;overflow:hidden;border-radius:30px;background:var(--gbg,#123f4d);aspect-ratio:1200/1703;width:100%;box-shadow:0 0 0 4px rgba(255,255,255,.1),0 30px 50px -30px #000}
.world{position:absolute;left:0;top:0;width:calc(100%*var(--z));container-type:inline-size;transition:transform .6s cubic-bezier(.3,.7,.3,1)}
.sky{height:8cqw;background-size:100% auto;background-position:top;transform:scaleY(-1)}
.mapbox{position:relative}
.mapbox>img{width:100%}
.mk,.glow,.tgt,.pop,.tok{position:absolute;transform:translate(-50%,-50%)}
.mk{transition:opacity .4s,transform .4s;pointer-events:none}
.mk.shell{width:4.6cqw;height:4.6cqw;margin-top:-.5cqw;background:url(img/shell.svg) center/contain no-repeat;filter:drop-shadow(0 .4cqw 0 rgba(0,0,0,.4))}
.mk.sp{width:5.2cqw;height:5.2cqw;border-radius:50%;background:var(--sp);color:#3a2300;font:400 3.3cqw/5.2cqw var(--d);text-align:center;box-shadow:0 .4cqw 0 rgba(0,0,0,.4),inset 0 0 0 .4cqw #fff}
.mk.chest{width:8.4cqw;height:8.4cqw;margin-top:-1cqw;border-radius:50%;background:url(img/shell.svg) center/62% no-repeat,#0b3a4a;box-shadow:inset 0 0 0 .5cqw var(--gold),0 0 2.6cqw .6cqw rgba(255,200,61,.8);animation:glow 1.6s ease-in-out infinite}
.mk.k-cocoa{background:#6b3a1e;color:#fff}
.mk.k-ring{background:#fff}
.mk.start{margin-top:5.4cqw;font:800 max(14px,2.7cqw)/1 var(--f);color:#fff;background:rgba(6,20,28,.72);padding:.5cqw 1.4cqw;border-radius:99px}
.mk.gone{opacity:0;transform:translate(-50%,-190%) scale(.5)}
.glow{width:8.6cqw;height:6cqw;border-radius:50%;opacity:0;box-shadow:0 0 0 .5cqw #ffe27a,0 0 3.4cqw 1.2cqw #ffb347;transition:opacity .3s;pointer-events:none}
.glow.on{opacity:1;animation:glow 1.2s ease-in-out infinite}
@keyframes glow{50%{filter:brightness(1.35)}}
.tgt{z-index:3;width:9cqw;height:9cqw;min-width:44px;min-height:44px;border-radius:50%;border:.5cqw solid #fff;background:rgba(255,200,61,.94);color:#3a2300;font:400 max(18px,4.6cqw)/1 var(--d);box-shadow:0 .6cqw 0 rgba(0,0,0,.4);animation:tgt .9s ease-in-out infinite}
@keyframes tgt{50%{scale:1.12}}
.tok{z-index:4;width:14cqw;transform:translate(-50%,-84%);transition:left .24s ease-out,top .24s ease-out;pointer-events:none;filter:drop-shadow(0 .9cqw .5cqw rgba(0,0,0,.45))}
.tok img{width:100%}
.tok.flip img{transform:scaleX(-1)}
.tok.hop img{animation:hop .24s ease-out}
@keyframes hop{50%{translate:0 -3.6cqw}}
.pop{z-index:5;font:400 max(18px,4.4cqw)/1 var(--d);color:#ffe27a;-webkit-text-stroke:.14em #5b2a06;paint-order:stroke fill;white-space:nowrap;pointer-events:none;animation:rise 1.1s ease-out forwards}
.pop.wide{color:#fff}
@keyframes rise{from{translate:0 -7cqw;opacity:1}70%{opacity:1}to{translate:0 -17cqw;opacity:0}}
.chips{position:absolute;left:12px;right:12px;top:12px;display:flex;justify-content:space-between;gap:8px;pointer-events:none;z-index:6}
.chips span{background:rgba(6,20,28,.8);border-radius:99px;padding:6px 14px;font-weight:800;font-size:16px;display:flex;align-items:center;gap:6px}
.chips b{font-family:var(--d);font-weight:400;font-size:22px;color:var(--gold)}
.chips i{width:20px;height:20px;background:url(img/shell.svg) center/contain no-repeat}
#confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:8}
#confetti i{position:absolute;top:-14px;width:10px;height:14px;border-radius:3px;animation:fall 2s linear forwards}
@keyframes fall{to{translate:0 760px;rotate:540deg}}
.over{position:absolute;inset:0;display:none;place-items:center;background:rgba(6,20,28,.8);text-align:center;padding:24px;z-index:7}
.over.on{display:grid}
.over h3{font-size:40px;color:var(--gold)}
.over p{margin:8px 0 16px;color:#eef3f5}
.over .stars{font-size:44px;line-height:1;color:var(--gold);letter-spacing:.1em;margin:6px 0 0}
.ends{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;align-items:center}
.boxes{display:flex;gap:14px;justify-content:center}
.boxes button{width:88px;height:88px;border:0;border-radius:18px;background:linear-gradient(90deg,transparent 40%,#ffe27a 40% 60%,transparent 60%),linear-gradient(#ff8e7a,#e8503f);box-shadow:0 6px 0 #9c2a1e;font:400 20px var(--d);color:#fff;transition:transform .15s}
.boxes button:hover{transform:translateY(-3px)}
.boxes button.open{background:#fff6d8;color:#4a2a00;box-shadow:0 6px 0 #c9a96a}
.boxes button:not(.open) span{font-size:30px;-webkit-text-stroke:.12em #9c2a1e;paint-order:stroke fill}

.hud{display:flex;flex-direction:column;gap:14px;min-width:0}
.box{background:#0d2530;border-radius:24px;padding:18px 20px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.07)}
.box .lbl{font-size:15px;color:#b9c7ce;font-weight:700}
.roll{border:0;border-radius:24px;background:linear-gradient(#ffe27a,#ffb627);color:#4a2a00;font-family:var(--d);font-size:30px;padding:16px;box-shadow:0 6px 0 #c77800;display:flex;align-items:center;justify-content:center;gap:12px;transition:transform .1s;width:100%}
.roll.sm{width:auto;font-size:22px;padding:12px 22px;border-radius:18px}
.roll:active,.opt:active{transform:translateY(4px);box-shadow:0 2px 0 #c77800}
.roll:disabled{opacity:.7;cursor:default}
.roll[hidden],.pick[hidden]{display:none}
.pick{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:10px}
.opt{border:0;border-radius:20px;background:linear-gradient(#ffe27a,#ffb627);color:#4a2a00;box-shadow:0 6px 0 #c77800;padding:12px;display:flex;align-items:center;gap:10px;text-align:left;font-size:15px;font-weight:700;line-height:1.25;transition:transform .1s}
.opt b{display:block;font:400 22px/1.1 var(--d)}
.die{flex:none;width:48px;height:48px;border-radius:13px;background:#fff;display:grid;grid-template-columns:repeat(3,1fr);padding:7px;gap:2px;box-shadow:inset 0 -4px 0 #e2d7c4}
.die i{border-radius:50%;background:#3a2300;opacity:0;transform:scale(.72)}
.die i.on{opacity:1}
.log{font-size:17px;color:#e6eef2;min-height:3.2em}
.where{font-size:15px;color:#b9c7ce;font-weight:700;margin-top:-8px}
.key{list-style:none;display:flex;flex-direction:column;gap:10px;margin-top:10px;font-size:16px;line-height:1.35;color:#dfe7ec}
.key li{display:flex;gap:12px;align-items:flex-start}
.key b{color:#fff}
.key .mk{position:static;transform:none;flex:none;width:30px;height:30px;margin:0;font:400 19px/30px var(--d);box-shadow:inset 0 0 0 2px #fff;filter:none;animation:none}
.key .mk.sp{background:var(--sp,#ffb347)}
.key .mk.shell{box-shadow:none;background:url(img/shell.svg) center/contain no-repeat}
.key .mk.chest{box-shadow:inset 0 0 0 2px var(--gold)}
.key .mk.k-cocoa{background:#6b3a1e;color:#fff}
.key .mk.k-ring{background:#fff}
.wear{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.wear button{background:rgba(255,255,255,.08);border:3px solid transparent;border-radius:16px;aspect-ratio:1;padding:3px}
.wear img{width:100%;height:100%;object-fit:contain}
.wear button[aria-pressed=true]{border-color:var(--gold);background:rgba(255,255,255,.16)}
.wear button:disabled{cursor:default}
.wear button:disabled img{filter:brightness(0);opacity:.45}
.daily.ready{box-shadow:inset 0 0 0 3px var(--gold)}
.dots{display:flex;gap:6px;margin:10px 0 8px}
.dots i{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.12)}
.dots i.on{background:url(img/shell.svg) center/78% no-repeat,#2c4a57}
.dots i.next{box-shadow:inset 0 0 0 3px var(--gold)}
#dailyTxt{font-size:16px;line-height:1.4;color:#dfe7ec}
.daily .roll{margin-top:12px}
.daily .roll[hidden]{display:none}
.wnote{font-size:15px;color:#b9c7ce;margin-top:8px}
.tools{display:flex;gap:10px;flex-wrap:wrap}
.reset{border:2px solid rgba(255,255,255,.3);background:none;border-radius:99px;padding:8px 16px;font-size:15px;font-weight:700}

/* download */
.top .dl{background:var(--gold);color:#3a2300;font-weight:800;font-size:16px;text-decoration:none;border-radius:99px;padding:8px 18px}
.top .dl[hidden]{display:none}
.get{background:#0e2632;padding:72px 64px 80px}
.gethead{display:grid;grid-template-columns:auto 1fr;gap:34px;align-items:center;max-width:980px;margin:0 auto 40px}
.gethead .ic{width:150px;border-radius:34px;box-shadow:0 14px 0 rgba(0,0,0,.3)}
.gethead p{color:#dfe7ec;margin:10px 0 20px;max-width:62ch}
.getbtn{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.getbtn .roll{width:auto}
.getbtn .roll[hidden],.have[hidden]{display:none}
.have{font-weight:800;color:var(--teal)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:980px;margin:0 auto}
.step{background:#0b1f29;border-radius:24px;padding:24px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.07)}
.step.here{box-shadow:inset 0 0 0 3px var(--gold)}
.step.flash{animation:flash 1.2s}
@keyframes flash{30%{background:#1d3e4d}}
.step h3{font-size:26px;margin-bottom:12px}
.step ol{padding-left:22px;display:flex;flex-direction:column;gap:8px;color:#e6eef2;font-size:17px;line-height:1.45}
.step b{color:#fff}
.step p{color:#e6eef2;font-size:17px;line-height:1.45}
.step .qr{width:180px;height:180px;margin-top:16px;border-radius:12px;background:#fff;padding:6px}

/* launch */
.launch{background:#b8321c;position:relative;overflow:hidden}
.launch .art img{width:100%;aspect-ratio:3/2.2;object-fit:cover;object-position:center 30%}
.launch .art{position:relative}
.launch .art::after{content:"";position:absolute;left:0;right:0;bottom:0;height:140px;background:linear-gradient(transparent,#b8321c)}
.screens{display:flex;gap:22px;overflow-x:auto;padding:10px 64px 40px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.scr{flex:none;width:230px;aspect-ratio:9/19;border-radius:34px;background:#111;padding:8px;scroll-snap-align:start;box-shadow:0 20px 40px -18px rgba(0,0,0,.6)}
.scr div{width:100%;height:100%;border-radius:27px;background-size:cover;background-position:center;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:22px 14px 18px;text-align:center}
.scr .logo{font-size:30px}
.scr .tag{font-family:var(--d);font-size:22px;line-height:1.1;-webkit-text-stroke:.12em rgba(0,0,0,.6);paint-order:stroke fill}
.scr .cta{background:linear-gradient(#7df0a2,#22b85a);color:#06331a;font-family:var(--d);font-size:18px;border-radius:14px;padding:9px;box-shadow:0 4px 0 #11823c}
.scr.dim div::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.35),transparent 40%,transparent 60%,rgba(0,0,0,.45))}
.scr div>*{position:relative}
.about{display:grid;grid-template-columns:auto 1fr;gap:34px;align-items:center;padding:20px 64px 80px}
.about .ic{width:170px;border-radius:40px;box-shadow:0 16px 0 rgba(0,0,0,.25)}
.about h3{font-size:40px}
.about p{color:#fff3ee;margin-top:8px;max-width:64ch}
.about .chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.about .chips span{background:rgba(0,0,0,.28);border-radius:99px;padding:8px 14px;font-size:15px;font-weight:700}

/* footer */
.end{background:#0b141b;padding:60px 64px;display:flex;justify-content:space-between;gap:30px;align-items:flex-end;flex-wrap:wrap;color:#c3ccd3;font-size:16px}
.end img{width:56px;height:56px;border-radius:50%;background:#26323b;margin-bottom:10px}
.end b{color:#fff}

@media (max-width:900px){
  .intro,.maps,.cos,.game,.play .head,.about{grid-template-columns:1fr}
  .board{--z:1.45;width:100%;max-width:560px;margin:0 auto;aspect-ratio:5/6;max-height:calc(100svh - 290px);min-height:300px}
  .hud{width:100%;max-width:560px;margin:0 auto}
  .themes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:100%;max-width:560px;margin:0 auto}
  .themes button{flex-direction:column;gap:0;justify-content:center;padding:8px 4px;border-radius:16px;font-size:15px;line-height:1.3}
  .play .head{margin-bottom:22px}
  .over{padding:14px}.over h3{font-size:32px}.over .stars{font-size:34px}.over p{font-size:16px;line-height:1.45;margin:6px 0 12px}
  .top,.intro,.band,.paper,.play,.about,.end,.get{padding-left:24px;padding-right:24px}
  .gethead,.steps{grid-template-columns:1fr}
  .gethead .ic{width:110px;border-radius:26px}
  .get{padding-top:56px;padding-bottom:60px}
  .screens{padding-left:24px;padding-right:24px}
  .page::before{left:10px}.page::after{right:10px}
  .top span:nth-child(2){display:none}
}
@media (max-width:560px){
  .key img{aspect-ratio:3/4.4}
  .picks{grid-template-columns:repeat(4,1fr);gap:8px}
  .about .ic{width:120px;border-radius:28px}
}
/* app mode: opened from the home screen */
#splash{display:none}
html.app,html.app body{height:100%;overflow:hidden;overscroll-behavior:none;background:#0b141b}
html.app body{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html.app .page,html.app .rc-fab,html.app .rc{display:none!important}
html.app #splash{display:grid;position:fixed;inset:0;place-items:center;background:#0b141b;z-index:60;transition:opacity .4s}
html.app #splash img{width:112px;border-radius:26px;animation:breathe 1.2s ease-in-out infinite}
@keyframes breathe{50%{transform:scale(1.06)}}
#splash.done{opacity:0;pointer-events:none}
#app{position:fixed;inset:0;display:grid;grid-template-rows:1fr auto;max-width:560px;margin:0 auto;padding-top:env(safe-area-inset-top);background:#12313f}
#app [hidden]{display:none!important}
.apane{min-height:0;overflow:hidden}
.apane.scroll{overflow-y:auto;padding:22px 18px 30px;-webkit-overflow-scrolling:touch}
.apane h2{font-size:34px;margin-bottom:16px}
.aplay{display:flex;flex-direction:column;gap:10px;padding:10px 12px 8px}
html.app #app .board{flex:1;width:100%;max-width:none;min-height:0;max-height:none;aspect-ratio:auto;margin:0;border-radius:24px}
html.app #app .act .roll{font-size:26px;padding:12px}
html.app #app .opt{padding:10px}
html.app #app .log{font-size:16px;min-height:2.8em;line-height:1.4;margin:0 4px}
.tabs{display:grid;grid-template-columns:repeat(4,1fr);background:#0d2530;border-top:2px solid rgba(255,255,255,.07);padding-bottom:env(safe-area-inset-bottom)}
.tabs button{border:0;background:none;color:#b9c7ce;padding:9px 0 10px;font:800 14px/1.2 var(--f);display:flex;flex-direction:column;align-items:center;gap:3px;min-height:58px}
.tabs svg{width:26px;height:26px}
.tabs button[aria-current=page]{color:var(--gold)}
.atitle{position:absolute;inset:0;z-index:20;background:linear-gradient(rgba(6,20,28,.15),rgba(6,20,28,.1) 45%,rgba(6,20,28,.88)),url(img/harvest-key.jpg) center 70%/cover;display:flex;align-items:flex-end;justify-content:center;padding:calc(30px + env(safe-area-inset-top)) 22px calc(26px + env(safe-area-inset-bottom));overflow-y:auto}
.atitle .tin{width:100%;max-width:400px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.atitle .logo{font-size:clamp(54px,17vw,80px);margin-bottom:auto}
.atitle .tpip{width:min(46vw,210px);animation:bob 2.4s ease-in-out infinite;filter:drop-shadow(0 14px 10px rgba(0,0,0,.45))}
@keyframes bob{50%{transform:translateY(-10px)}}
.atitle>.tin>.roll{width:min(100%,320px);font-size:34px;padding:16px}
.atitle .daily{width:100%;background:rgba(8,26,34,.88);text-align:left}
.atitle .tby{font-size:15px;color:#dfe7ec;font-weight:700}
.tcard{background:#0d2530;border-radius:24px;overflow:hidden;margin-bottom:18px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.07)}
.tcard.cur{box-shadow:inset 0 0 0 3px var(--gold)}
.tart{height:150px;background:center 75%/cover;display:flex;justify-content:space-between;align-items:flex-end;padding:14px 16px;position:relative}
.tart::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 30%,rgba(6,20,28,.85))}
.tart>*{position:relative}
.tart b{font:400 28px/1 var(--d)}
.tart span{color:var(--gold);font-size:20px;letter-spacing:.08em}
.tinfo{padding:16px 18px 18px;font-size:16px;line-height:1.4;color:#dfe7ec}
.tinfo ul{list-style:none;display:flex;flex-direction:column;gap:10px;margin:12px 0}
.tinfo li{display:flex;gap:10px;align-items:flex-start}
.tinfo b{color:#fff}
.tcard .mk{position:static;transform:none;flex:none;width:28px;height:28px;font:400 18px/28px var(--d);box-shadow:inset 0 0 0 2px #fff;background:var(--sp)}
.tcard .mk.k-cocoa{background:#6b3a1e}
.tcard .mk.k-ring{background:#fff}
.tprize{color:#ffe6a3;font-weight:700;margin-bottom:14px}
.acos{background:#0d2530;border-radius:24px;padding:18px;text-align:center;margin-bottom:16px}
.acos img{width:min(70%,260px);margin:0 auto}
.acos .cname{margin:8px 0 4px}
.arow{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#0d2530;border-radius:20px;padding:16px 18px;margin-bottom:12px;font-size:16px;line-height:1.4;color:#c9d6dc}
.arow b{display:block;color:#fff;font-size:18px}
.arow .reset{flex:none;white-space:nowrap}
.aabout{font-size:16px;line-height:1.5;color:#c9d6dc;margin-top:22px}
.aabout b{color:#fff}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}html{scroll-behavior:auto}}
