/* Simple mode. Technical copy stays in the page; this layer only shows or hides it. */
.tech{display:inline}
.easy,.only-s{display:none}
html.simple .tech{display:none}
html.simple .easy{display:inline}
html.simple a.easy,html.simple button.easy{display:inline-flex}
html.simple .only-s{display:block}
html.simple .only-s.flex{display:flex}
html.simple .only-s.grid{display:grid}
html.simple .swapin{animation:swapin .45s ease both}
@keyframes swapin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.nav .wrap{gap:14px}
.tabs a{padding:8px 10px}
.navr{gap:8px}
.theme{display:inline-flex;align-items:center;gap:2px;height:36px;padding:3px;border-radius:999px;border:1px solid var(--line2);background:var(--surface,var(--card));cursor:pointer;flex:none}
.theme span{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;color:var(--muted)}
.theme .moon{background:var(--blue,var(--fill));color:#fff}
html.light .theme .moon{background:none;color:var(--muted)}
html.light .theme .sun{background:var(--blue,var(--fill));color:#fff}
.smode{display:inline-flex;align-items:center;gap:9px;height:36px;padding:0 14px 0 6px;border-radius:999px;border:1px solid var(--line2);background:var(--surface,var(--card));color:var(--ink2,var(--muted));font:600 13.5px var(--body,var(--sans));cursor:pointer;white-space:nowrap;flex:none}
.smode .trk{position:relative;width:38px;height:24px;border-radius:999px;background:var(--surface3,#34322d);flex:none}
.smode .trk i{position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:var(--text);transition:transform .3s cubic-bezier(.3,.7,.2,1.2)}
html.simple .smode{border-color:#e0b25c80;background:#e0b25c14;color:var(--text)}
html.simple .smode .trk{background:#e0b25c}
html.simple .smode .trk i{transform:translateX(14px);background:#161513}
.tabs .inmenu.smode{display:none;width:100%;justify-content:flex-start;margin-top:8px;height:48px}
.tabs.open .inmenu.smode{display:flex}
.smode:focus-visible,.theme:focus-visible{outline:2px solid var(--blue,var(--acc));outline-offset:2px}

.sbadge{display:inline-flex;align-items:center;font:600 11px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#e0b25c;border:1px solid #e0b25c55;background:#e0b25c12;border-radius:999px;padding:3px 10px;margin-left:8px;vertical-align:2px}
.bot{display:inline-block;flex:none;overflow:visible}
.bot .eye{transform-box:fill-box;transform-origin:center;animation:blink 5s infinite}
.bot.d1 .eye{animation-delay:1.1s}.bot.d2 .eye{animation-delay:2.3s}.bot.d3 .eye{animation-delay:.6s}.bot.d4 .eye{animation-delay:3.2s}
@keyframes blink{0%,46%,50%,100%{transform:scaleY(1)}48%{transform:scaleY(.1)}}

.crew{gap:10px;margin:22px 0 4px;flex-wrap:wrap}
.crew .m{display:flex;flex-direction:column;align-items:center;gap:6px;width:92px;text-align:center}
.crew .m b{font:600 13px var(--body,var(--sans));color:var(--text)}
.crew .m span{font:400 11.5px/1.35 var(--body,var(--sans));color:var(--muted)}

.say{display:none}
html.simple .lrn .av{display:none}
html.simple .lrn .say{display:block;font:400 12.5px/1.35 var(--body,var(--sans));color:var(--muted);margin-top:2px;white-space:normal}
html.simple .lrn .who{display:flex;flex-direction:column;min-width:0}
html.simple .lrn .nm{align-items:flex-start;gap:8px}
[data-bot]{display:none}
html.simple [data-bot]{display:inline-flex;flex:none}
@container result (min-width:761px){
  html.simple .lrn{grid-template-columns:minmax(168px,240px) minmax(0,1fr) max-content max-content}
}

.bub{position:relative;background:var(--surface3,#2a2926);border:1px solid var(--line2);border-radius:14px;padding:12px 14px;font:400 14.5px/1.5 var(--body,var(--sans));color:var(--text)}
.bub:before{content:"";position:absolute;left:-7px;top:18px;width:12px;height:12px;background:var(--surface3,#2a2926);border-left:1px solid var(--line2);border-bottom:1px solid var(--line2);transform:rotate(45deg)}
.game-intro{display:flex;align-items:flex-start;gap:14px;margin:6px 0 22px}
.game{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.game .st{background:var(--surface,var(--card));border:1px solid var(--line);border-radius:14px;padding:18px;min-width:0}
.game .st .h{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.game .st .n{font:500 12px var(--mono);color:var(--blue-dim,var(--acc))}
.game .st h4{margin:0;font:600 17px var(--display);letter-spacing:-.01em}
.game .st p{margin:8px 0 0;font:400 14px/1.55 var(--body,var(--sans));color:var(--ink2,var(--body))}
.game .ico2{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--surface3,var(--card2));border:1px solid var(--line2);flex:none}

.five{max-width:860px;margin:0 auto;padding:0 24px 28px}
.five .bx{border:1px solid #e0b25c55;background:linear-gradient(180deg,#e0b25c14,#e0b25c08);border-radius:16px;padding:24px 28px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;text-align:left;align-items:start}
.five .k{font:600 11.5px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#e0b25c;margin:0 0 10px}
.five ol{margin:0;padding-left:1.2em;font:400 17px/1.6 "Source Serif 4",Georgia,serif;color:var(--text)}
.five li{margin:.35em 0}
.five li::marker{color:#e0b25c;font:600 14px var(--mono)}

.tour-hole{position:fixed;z-index:60;border-radius:14px;box-shadow:0 0 0 9999px #0b0a09b3,0 0 0 2px #e0b25c;pointer-events:none}
.tour-bub{position:fixed;z-index:61;width:min(330px,calc(100vw - 24px));max-width:calc(100vw - 24px);box-sizing:border-box;background:var(--surface3,#2a2926);border:1px solid var(--line2);border-radius:16px;padding:16px 16px 14px;box-shadow:0 20px 50px -20px #000;color:var(--text)}
.tour-bub .tt{display:flex;gap:12px;align-items:flex-start}
.tour-bub p{margin:0;font:500 15.5px/1.45 var(--body,var(--sans))}
.tour-bub .tf{display:flex;align-items:center;gap:8px;margin-top:14px;flex-wrap:wrap}
.tour-bub .stp{font:500 11.5px var(--mono);color:#e0b25c;margin-right:auto}
.tour-bub .dots{display:flex;gap:4px}
.tour-bub .dots i{width:6px;height:6px;border-radius:50%;background:#4a4842}
.tour-bub .dots i.on{background:#e0b25c}
.tour-bub button{height:36px;padding:0 13px;border-radius:999px;font:600 12.5px var(--body,var(--sans));cursor:pointer;border:1px solid var(--line2);background:none;color:var(--ink2,var(--muted))}
.tour-bub button.nx{background:#2f6bed;border-color:#2f6bed;color:#fff}
.tour-bub:after{content:"";position:absolute;width:14px;height:14px;background:var(--surface3,#2a2926);transform:rotate(45deg)}
.tour-bub.right:after{left:-8px;top:26px;border-left:1px solid var(--line2);border-bottom:1px solid var(--line2)}
.tour-bub.below:after{left:36px;top:-8px;border-left:1px solid var(--line2);border-top:1px solid var(--line2)}
.tour-bub.above:after{left:36px;bottom:-8px;border-right:1px solid var(--line2);border-bottom:1px solid var(--line2)}
.tour-bub.left:after{right:-8px;top:26px;border-right:1px solid var(--line2);border-top:1px solid var(--line2)}

html.light .bub,html.light .tour-bub,html.light .game .ico2{background:#fffefb}
html.light .bub:before,html.light .tour-bub:after{background:#fffefb}
html.light .tour-hole{box-shadow:0 0 0 9999px #14141388,0 0 0 2px #e0b25c}
html.light .smode .trk{background:#d9d4c8}
html.light .five ol{color:#2b2a27}

@media (max-width:980px){
  .game{grid-template-columns:1fr 1fr}
  .five .bx{grid-template-columns:1fr;gap:12px;padding:18px}
}
@media (max-width:640px){
  .game{grid-template-columns:1fr}
  .crew{justify-content:space-between}
  .crew .m{width:30%}
  .game-intro{flex-direction:column}
}
@media (max-width:480px){
  .navr .smode .sl2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .navr .smode{padding:0 4px;height:40px}
  .theme{height:40px;padding:2px}
  .theme span{width:26px;height:26px}
  #nav-run{min-height:40px;height:40px;padding:0 10px}
}
@media (prefers-reduced-motion:reduce){
  .swapin,.bot .eye{animation:none!important}
  .smode,.smode .trk,.smode .trk i,.tour-hole,.tour-bub{transition:none!important}
}
