html,body{margin:0;background:#111d24;color:#e9e2d0;font:16px/1.5 system-ui,sans-serif}.chapter-menu{box-sizing:border-box;width:min(100%,560px);margin:auto;padding:16px 20px;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;gap:8px}.chapter-menu h1{font-size:23px}.chapter-menu p{margin:8px 0 20px}.chapter-menu button,.chapter-back,.chapter-next{padding:14px;border:1px solid #536b70;border-radius:10px;background:#20343c;color:#f4ead0;font:inherit;cursor:pointer}.chapter-menu button:disabled{opacity:.4;cursor:default}.chapter-arena{position:fixed;top:0;right:0;bottom:0;left:0}.chapter-back{position:fixed;top:5px;right:5px;z-index:40;padding:5px;font-size:12px}.chapter-next{position:static;transform:none}.chapter-menu button{padding:10px}.chapter-menu h1{margin:8px 0}.chapter-menu p{margin:4px 0 10px}.dv-toss{position:absolute;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#0a1216b8;cursor:pointer;perspective:700px}.dv-coin{position:relative;width:132px;height:132px;transform-style:preserve-3d;transform:rotateX(var(--land,0deg));animation:dv-coin-flip var(--flip-ms,1.5s) cubic-bezier(.2,.7,.3,1) both}.dv-toss[data-result=tails] .dv-coin{--land:180deg}.dv-coin-face{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;display:grid;place-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:radial-gradient(circle at 35% 30%,#f6e2a4,#c29a45 62%,#8a6a22);border:5px solid #7c5f1f;box-shadow:inset 0 0 0 5px #e9cf8a,inset 0 0 0 7px #8a6a22,0 8px 28px #0000008c}.dv-coin-plain{transform:rotateX(180deg);background:radial-gradient(circle at 35% 30%,#eef0f2,#aeb4bb 62%,#70767e);border-color:#5d636b;box-shadow:inset 0 0 0 5px #d9dde1,inset 0 0 0 7px #7b828a,0 8px 28px #0000008c}.dv-coin-mark svg{width:62%;height:62%;fill:#7a2a12;filter:drop-shadow(0 1px 0 #f6e2a4)}.dv-toss-shown .dv-coin-face{animation:dv-coin-land .5s ease-out}.dv-toss-still .dv-coin{animation:none}@keyframes dv-coin-flip{0%{transform:translateY(70px) rotateX(calc(var(--land,0deg) - 1800deg)) scale(.8)}50%{transform:translateY(-90px) rotateX(calc(var(--land,0deg) - 720deg)) scale(1.1)}to{transform:translateY(0) rotateX(var(--land,0deg)) scale(1)}}@keyframes dv-coin-land{0%{filter:brightness(1.7)}to{filter:none}}@media (prefers-reduced-motion:reduce){.dv-coin{animation:none}}.dv-host:has(.dv-toss) .dv-lesson,.dv-host:has(.dv-toss) .dv-bark,.dv-host:has(.dv-toss) .dv-handover{visibility:hidden}html,body{font-family:var(--ui-serif);color:var(--ui-text);background:#0b1026}.chapter-menu h1{font-weight:600;font-size:28px;color:var(--ui-gold);text-shadow:2px 2px 0 #000}.chapter-menu p{font-size:16px}.chapter-menu button,.chapter-back,.chapter-next{position:relative;border:var(--ui-button-w) solid transparent;border-image:var(--ui-button) 4 fill stretch;border-radius:0;background:none;image-rendering:pixelated;color:var(--ui-text);text-shadow:var(--ui-tshadow);box-shadow:var(--ui-drop);font-family:var(--ui-serif);font-size:16px}.chapter-menu button:hover:not(:disabled),.chapter-menu button:focus-visible,.chapter-back:hover,.chapter-next:hover,.chapter-back:focus-visible,.chapter-next:focus-visible{border-image-source:var(--ui-button-hover);outline:none}.chapter-menu button:active:not(:disabled),.chapter-back:active,.chapter-next:active{border-image-source:var(--ui-button-pressed)}.chapter-menu button:hover:not(:disabled):before,.chapter-menu button:focus-visible:before{content:"";position:absolute;right:calc(100% + 6px);top:50%;width:calc(8 * var(--ui-px));height:calc(9 * var(--ui-px));margin-top:calc(-4.5 * var(--ui-px));background:var(--ui-cursor) 0 0/100% 100% no-repeat;image-rendering:pixelated}.chapter-back{position:fixed;top:calc(env(safe-area-inset-top) + var(--chapter-back-top,46px));left:calc(env(safe-area-inset-left) + 8px);right:auto;width:auto;align-self:auto;z-index:40;padding:1px 8px;font-size:14px;line-height:1.3}.dv-coin-face{box-shadow:inset 0 0 0 5px #e9cf8a,inset 0 0 0 7px #8a6a22,4px 4px #0008}.dv-coin-plain{box-shadow:inset 0 0 0 5px #d9dde1,inset 0 0 0 7px #7b828a,4px 4px #0008}
