/* The game: the island fills the screen; levels, the paywall and the agent maker open over it as cards. */
html, body.game { height: 100%; overflow: hidden; }
body.game { background: var(--sky); user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
body.game input { user-select: text; -webkit-user-select: text; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; }
.sea-fallback { position: fixed; inset: 0; background: radial-gradient(circle at 50% 55%, #ffe2a8 0 18%, #5cc46b 18% 30%, var(--sky) 30%); }
#pins { position: fixed; inset: 0; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; cursor: pointer; padding: 0; margin: -64px 0 0 -60px; width: 120px; transition: filter .2s; }
.pin-num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); border: var(--line); box-shadow: 0 4px 0 var(--ink); font: 800 21px/1 var(--display); transition: transform .2s var(--spring); }
.pin-num svg { width: 22px; height: 22px; }
.pin:hover .pin-num { transform: translateY(-4px) scale(1.06); }
.pin-name { background: var(--white); border: var(--line-2); border-radius: 999px; padding: 3px 9px; font: 800 12px/1.2 var(--display); white-space: nowrap; }
.pin-stars { font-size: 13px; color: var(--sun); -webkit-text-stroke: 1px var(--ink); letter-spacing: 1px; line-height: 1; }
.pin.done .pin-num { background: var(--leaf); color: var(--white); }
.pin.locked .pin-num { background: var(--white); color: var(--ink-2); }
.pin.locked .pin-name { background: var(--paper-2); color: var(--ink-2); }
.pin.current .pin-num { background: var(--pink); color: var(--white); animation: pinpulse 1.6s ease-in-out infinite; }
@keyframes pinpulse { 0%, 100% { box-shadow: 0 4px 0 var(--ink), 0 0 0 0 rgba(255, 77, 141, .55); } 50% { box-shadow: 0 4px 0 var(--ink), 0 0 0 14px rgba(255, 77, 141, 0); } }
body.in-level #pins, body.in-level .hud { opacity: 0; pointer-events: none; }
#pins, .hud { transition: opacity .3s; }

.hud { position: fixed; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 14px 0; pointer-events: none; z-index: 5; }
.hud > * { pointer-events: auto; }
.me { display: flex; align-items: center; gap: 10px; background: var(--white); border: var(--line); border-radius: 999px; padding: 5px 16px 5px 5px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.me .agent-svg { width: 42px; height: 50px; margin: -6px 0 -4px; }
.me b { font: 800 16px/1.1 var(--display); display: block; }
.me small { font: 700 12px/1 var(--mono); color: var(--muted); }
.hud-right { display: flex; gap: 8px; }
.map-banner { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--white); border: var(--line); border-radius: 22px; padding: 8px 16px 8px 8px; box-shadow: 0 5px 0 var(--ink); z-index: 4; max-width: calc(100vw - 24px); }
.map-banner .pixel-svg { width: 52px; height: 52px; flex: none; }
.map-banner p { font-weight: 700; font-size: 15px; line-height: 1.3; }
body.in-level .map-banner { opacity: 0; pointer-events: none; }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); background: rgba(16, 34, 61, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } }
.sheet { position: relative; width: min(1120px, 100%); height: min(780px, 100%); background: var(--paper); border: var(--line); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.sheet.narrow { width: min(560px, 100%); height: auto; max-height: 100%; }

/* title + agent maker */
.title-card { padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; justify-items: center; text-align: center; overflow-y: auto; }
.logo { font: 800 clamp(48px, 9vw, 84px)/0.9 var(--display); letter-spacing: -0.04em; display: flex; align-items: center; gap: 6px; }
.logo .hk { color: var(--pink); display: inline-block; transform: rotate(-8deg); }
.title-card .sly-svg { width: min(230px, 50vw); margin: -10px 0 -18px; }
.title-card .lead { font-size: 18px; font-weight: 600; max-width: 28em; }
.swatches { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.swatch { width: 48px; height: 48px; border-radius: 50%; border: var(--line); cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .15s var(--spring); }
.swatch[aria-pressed="true"] { transform: scale(1.18); outline: 3px solid var(--ink); outline-offset: 3px; }
.name-row { display: flex; gap: 8px; width: min(420px, 100%); }
.field { flex: 1; min-width: 0; height: 56px; border: var(--line); border-radius: 16px; background: var(--white); font: 800 20px/1 var(--display); padding: 0 16px; color: var(--ink); }
.field:focus { outline: 3px solid var(--sky); outline-offset: 2px; }
.agent-preview .agent-svg { width: 120px; height: 144px; }
.agent-preview { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tip { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--leaf-2); border: var(--line-2); border-radius: 16px; padding: 10px 14px; font-size: 15px; font-weight: 600; max-width: 460px; }
.tip .pixel-svg { width: 44px; height: 44px; flex: none; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.suggest button { border: var(--line-2); background: var(--white); border-radius: 999px; padding: 6px 12px; font: 700 14px/1 var(--body); cursor: pointer; }

/* a level */
.lvl-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: var(--line); background: var(--white); }
.lvl-title { flex: 1; min-width: 0; }
.lvl-title h2 { font-size: clamp(19px, 2.4vw, 26px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter-wrap { display: flex; align-items: center; gap: 8px; }
.meter { width: clamp(80px, 16vw, 180px); height: 18px; border: var(--line-2); border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--coral); border-right: var(--line-2); transition: width .5s var(--spring); }
.meter-wrap .tail-ico { width: 30px; height: 30px; }
.meter-wrap b { font: 700 13px/1 var(--mono); min-width: 38px; }
.lvl-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 300px; }
.lvl-stage { position: relative; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: clamp(14px, 2.4vw, 26px); display: flex; flex-direction: column; align-items: center; }
.lvl-stage > * { flex: none; }
.lvl-side { border-left: var(--line); background: var(--sky); position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; gap: 10px; overflow: hidden; }
.sly-box { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: auto; }
.sly-box .sly-svg { width: 190px; transition: transform .4s var(--spring); }
.sly-box.hurt .sly-svg { animation: hurt .5s ease; }
.sly-box.laugh .sly-svg { animation: laugh .6s ease; }
@keyframes hurt { 0%, 100% { transform: none; } 20% { transform: translateX(-10px) rotate(-6deg); } 50% { transform: translateX(8px) rotate(4deg); } 75% { transform: translateX(-4px); } }
@keyframes laugh { 0%, 100% { transform: none; } 25%, 75% { transform: translateY(-8px) rotate(3deg); } 50% { transform: translateY(0) rotate(-3deg); } }
.sly-say { background: var(--white); border: var(--line-2); border-radius: 18px; padding: 10px 14px; font: 700 15px/1.35 var(--body); position: relative; margin-bottom: 10px; max-width: 260px; }
.sly-say::after { content: ''; position: absolute; bottom: -10px; left: 50%; width: 16px; height: 16px; background: var(--white); border-right: var(--line-2); border-bottom: var(--line-2); transform: translateX(-50%) rotate(45deg); }
.sly-say:empty { display: none; }
.dz-label { position: absolute; top: 4px; left: 0; }
.coach { display: flex; align-items: flex-end; gap: 8px; }
.coach .pixel-svg { width: 64px; height: 64px; flex: none; }
.coach .bubble { flex: 1; background: var(--white); border: var(--line-2); border-radius: 18px 18px 18px 6px; padding: 10px 13px; font: 600 15px/1.4 var(--body); min-height: 48px; }
.coach .bubble.good { border-color: var(--leaf); box-shadow: inset 0 0 0 2px var(--leaf); }
.coach .bubble.bad { border-color: var(--coral); box-shadow: inset 0 0 0 2px var(--coral); }
.coach .bubble b { font-weight: 800; }
.coach .bubble .who { display: block; font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.coach .bubble.good .who { color: var(--leaf); }
.coach .bubble.bad .who { color: var(--coral); }

/* the start and the end of a level */
.intro, .outro { width: min(640px, 100%); display: grid; gap: 16px; justify-items: center; text-align: center; margin: auto 0; }
.intro h3, .outro h3 { font-size: clamp(26px, 4vw, 40px); }
.intro .lead, .outro .lead { font-size: 17px; font-weight: 600; max-width: 30em; }
.mission { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--white); border: var(--line); border-radius: 20px; padding: 12px 16px; box-shadow: 0 4px 0 var(--ink); }
.mission .pixel-svg { width: 58px; height: 58px; flex: none; }
.stars { display: flex; gap: 10px; }
.stars span { font-size: 54px; line-height: 1; color: var(--paper-2); -webkit-text-stroke: 2.5px var(--ink); transform: scale(0); display: inline-block; }
.stars span.on { color: var(--sun); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.rules li { display: flex; gap: 10px; align-items: center; background: var(--white); border: var(--line-2); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.rules li::before { content: '✓'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--leaf); color: var(--white); display: grid; place-items: center; font-weight: 800; border: var(--line-2); }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--sun); border: var(--line); border-radius: 999px; padding: 8px 18px 8px 8px; font: 800 18px/1 var(--display); box-shadow: 0 4px 0 var(--ink); }
.badge i { width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 22px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.curses { font: 800 clamp(34px, 6vw, 60px)/1 var(--display); color: var(--coral); -webkit-text-stroke: 2px var(--ink); letter-spacing: -0.02em; }
.reveal-sly { width: 220px; height: 240px; position: relative; }
.reveal-sly .sly-svg { width: 220px; }

/* floating bits */
.float-text { position: fixed; z-index: 95; pointer-events: none; font: 800 26px/1 var(--display); color: var(--leaf); -webkit-text-stroke: 1.5px var(--ink); white-space: nowrap; }
.float-text.bad { color: var(--coral); }
.stamp { position: fixed; z-index: 96; pointer-events: none; font: 800 28px/1 var(--display); border: 4px solid currentColor; border-radius: 12px; padding: 6px 12px; background: rgba(255, 255, 255, .85); letter-spacing: .02em; white-space: nowrap; }

/* hunt: the email */
.hunt-help { font-weight: 700; font-size: 15px; color: var(--ink-2); margin-bottom: 12px; text-align: center; }
.mail { width: min(620px, 100%); background: var(--white); border: var(--line); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; text-align: left; }
.mail-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper-2); border-bottom: var(--line-2); font: 700 13px/1 var(--mono); }
.mail-bar i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--coral); }
.mail-bar i:nth-child(2) { background: var(--sun); }
.mail-bar i:nth-child(3) { background: var(--leaf); }
.mail-bar span { margin-left: 8px; }
.mail-head { padding: 14px 18px 10px; border-bottom: 2px dashed #d9d2c4; display: grid; gap: 6px; }
.mail-row { font-size: 14px; color: var(--ink-2); }
.mail-row b { color: var(--ink); }
.mail-subj { font: 800 19px/1.25 var(--display); }
.mail-body { padding: 14px 18px 18px; display: grid; gap: 12px; font-size: 16px; }
.mail-logo { display: flex; align-items: center; gap: 8px; font: 800 20px/1 var(--display); color: var(--grape); width: fit-content; }
.mail-logo .cube { width: 28px; height: 28px; background: var(--grape); border: var(--line-2); border-radius: 6px; transform: rotate(10deg); }
.mail-cta { display: block; text-align: center; background: var(--leaf); color: var(--white); font: 800 18px/1 var(--display); padding: 16px; border-radius: 14px; border: var(--line-2); text-decoration: none; }
.mail-input { height: 44px; border: 2px solid #c9c2b4; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; color: #9a927f; font-family: var(--mono); font-size: 14px; }
.mail-foot { font-size: 12px; color: var(--muted); }
.timer { font-family: var(--mono); color: var(--coral); }
.hot { cursor: pointer; border-radius: 8px; transition: background .2s, box-shadow .2s; position: relative; }
.hot:hover { background: rgba(255, 201, 40, .25); }
.hot.found { background: var(--pink-2) !important; box-shadow: 0 0 0 3px var(--pink); }
.hot.hint { animation: hintglow 1.2s ease 2; }
@keyframes hintglow { 50% { background: rgba(255, 201, 40, .6); box-shadow: 0 0 0 6px rgba(255, 201, 40, .6); } }
.peek { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); background: var(--ink); color: var(--white); font: 700 13px/1.3 var(--mono); padding: 8px 12px; border-radius: 10px; white-space: nowrap; z-index: 3; pointer-events: none; }
.peek::after { content: ''; position: absolute; top: 100%; left: 50%; border: 7px solid transparent; border-top-color: var(--ink); transform: translateX(-50%); }
.hunt-tools { display: flex; gap: 10px; margin-top: 16px; }

/* sort: the deck */
.sort { width: min(560px, 100%); display: grid; gap: 16px; justify-items: center; }
.sort-q { font: 800 20px/1.2 var(--display); text-align: center; }
.deck { position: relative; width: min(440px, 100%); height: 300px; }
.scard { position: absolute; inset: 0; background: var(--white); border: var(--line); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; touch-action: none; cursor: grab; will-change: transform; }
.scard.under1 { transform: translateY(10px) scale(.96); }
.scard.under2 { transform: translateY(20px) scale(.92); }
.scard.under1, .scard.under2 { pointer-events: none; }
.scard .lab { position: absolute; top: 16px; font: 800 24px/1 var(--display); border: 4px solid; border-radius: 10px; padding: 4px 10px; opacity: 0; transform: rotate(-10deg); background: var(--white); }
.scard .lab.l { left: 16px; color: var(--coral); }
.scard .lab.r { right: 16px; color: var(--leaf); transform: rotate(10deg); }
.scard .from { font: 700 13px/1.3 var(--mono); color: var(--muted); word-break: break-all; }
.scard .from b { color: var(--ink); font-family: var(--body); font-size: 15px; }
.scard .subj { font: 800 20px/1.25 var(--display); }
.scard .txt { font-size: 17px; line-height: 1.45; font-weight: 600; }
.scard .big-emoji { font-size: 56px; line-height: 1; text-align: center; }
.scard .item { font: 800 24px/1.2 var(--display); text-align: center; }
.scard .note { font-size: 15px; color: var(--muted); text-align: center; font-weight: 600; }
.scard.wrong { border-color: var(--coral); box-shadow: 0 6px 0 var(--coral); }
.sort-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sort-btns .btn { min-width: 140px; }
.sort-count { font: 700 13px/1 var(--mono); color: var(--muted); }
.textcard { display: grid; gap: 8px; }
.textcard .sender { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.textcard .sender i { width: 38px; height: 38px; border-radius: 50%; background: var(--sky); border: var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 18px; flex: none; }
.textcard .sender small { display: block; font: 700 12px/1.2 var(--mono); color: var(--muted); }
.textcard .sms { background: #e9eef5; border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.textcard .sms u { color: #1a66d6; text-decoration-thickness: 2px; word-break: break-all; }

/* chat */
.chat { width: min(560px, 100%); display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.chat-win { flex: 1; min-height: 260px; background: #182c4d; border: var(--line); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #10223d; color: var(--white); font: 700 14px/1.2 var(--mono); }
.chat-head .av { width: 38px; height: 38px; border-radius: 10px; background: var(--fur, #ff8f5a); border: 2px solid var(--white); overflow: hidden; display: grid; place-items: center; }
.chat-head .av svg { width: 52px; margin-top: 10px; }
.chat-head .live { margin-left: auto; color: #7dffb0; font-size: 12px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 16px; font-weight: 600; line-height: 1.4; border: 2px solid var(--ink); }
.msg.them { align-self: flex-start; background: var(--white); border-radius: 16px 16px 16px 4px; }
.msg.me { align-self: flex-end; background: var(--sun); border-radius: 16px 16px 4px 16px; }
.msg.sys { align-self: center; background: transparent; border: 0; color: #9fb4d4; font: 700 12px/1.3 var(--mono); text-align: center; }
.msg .nm { display: block; font: 700 11px/1 var(--mono); color: var(--grape); margin-bottom: 4px; }
.typing { align-self: flex-start; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; display: flex; gap: 5px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-5px); opacity: 1; } }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; border: var(--line); border-radius: 16px; background: var(--white); padding: 12px 16px; font: 700 16px/1.35 var(--body); cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .15s; }
.opt:hover { background: #fffbe8; transform: translateY(-1px); }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.opt.no { background: var(--coral-2); text-decoration: line-through; opacity: .6; pointer-events: none; box-shadow: none; transform: translateY(3px); }
.notif { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: min(380px, 92%); background: rgba(255, 255, 255, .97); border: var(--line); border-radius: 18px; padding: 10px 14px; box-shadow: 0 6px 0 var(--ink); z-index: 5; display: flex; gap: 10px; align-items: center; }
.notif i { width: 36px; height: 36px; border-radius: 10px; background: var(--grape); display: grid; place-items: center; font-style: normal; color: var(--white); font-weight: 800; flex: none; }
.notif p { font-size: 14px; font-weight: 600; line-height: 1.35; }
.notif .code { font: 700 18px/1 var(--mono); letter-spacing: .1em; }
.call-win { background: linear-gradient(#24407a, #10223d); }
.call-top { display: grid; justify-items: center; gap: 4px; padding: 18px 14px 10px; color: var(--white); text-align: center; }
.call-top .av { width: 84px; height: 84px; border-radius: 50%; background: var(--sun); border: 3px solid var(--white); overflow: hidden; display: grid; place-items: center; }
.call-top .av svg { width: 120px; margin-top: 30px; }
.call-top b { font: 800 20px/1.1 var(--display); }
.call-top small { font: 700 13px/1 var(--mono); color: #9fb4d4; }
.wave { display: flex; gap: 3px; height: 22px; align-items: center; }
.wave i { width: 4px; background: #7dffb0; border-radius: 2px; animation: wave 0.8s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 20px; } }
.hangup { width: 64px; height: 64px; border-radius: 50%; background: #e5484d; border: 3px solid var(--white); display: grid; place-items: center; font-size: 28px; margin: 6px auto 14px; }
.blocked { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 34, 61, .7); z-index: 4; }
.blocked span { font: 800 34px/1 var(--display); color: var(--white); background: #e5484d; border: 4px solid var(--white); border-radius: 16px; padding: 12px 20px; transform: rotate(-6deg); }

/* bridge */
.bridge { width: min(700px, 100%); display: grid; gap: 14px; justify-items: center; }
.howto { background: var(--white); border: var(--line-2); border-radius: 16px; padding: 10px 14px; font-weight: 600; font-size: 15px; text-align: center; }
.howto code { font: 700 15px/1 var(--mono); background: var(--leaf-2); padding: 2px 6px; border-radius: 6px; }
.river { position: relative; width: 100%; height: 330px; border: var(--line); border-radius: 22px; overflow: hidden; background: var(--sky); box-shadow: 0 6px 0 var(--ink); }
.river .water { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: var(--sea); border-top: var(--line); }
.river .water::before { content: ''; position: absolute; inset: 10px 0 auto; height: 14px; background: radial-gradient(circle at 10px -4px, transparent 12px, rgba(255, 255, 255, .5) 13px 15px, transparent 16px) 0 0 / 40px 20px repeat-x; animation: waves 3s linear infinite; }
@keyframes waves { to { background-position: 40px 0; } }
.river .bank { position: absolute; bottom: 0; width: 70px; height: 150px; background: #5cc46b; border: var(--line); }
.river .bank.l { left: -4px; border-radius: 0 20px 0 0; }
.river .bank.r { right: -4px; border-radius: 20px 0 0 0; }
.river .goal { position: absolute; right: 12px; bottom: 156px; font-size: 30px; }
.planks { position: absolute; left: 80px; right: 80px; top: 40px; bottom: 120px; display: grid; gap: 8px; align-content: center; }
.plank { font: 700 clamp(13px, 2vw, 17px)/1.2 var(--mono); background: #d99a5b; color: var(--ink); border: var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; box-shadow: 0 4px 0 var(--ink); text-align: center; transition: transform .15s var(--spring), background .2s; word-break: break-all; }
.plank:hover { transform: translateY(-3px); background: #e8ad70; }
.plank.good { background: #8be3a8; }
.plank.bad { background: var(--coral); animation: crack .5s ease forwards; }
@keyframes crack { 30% { transform: rotate(-4deg); } 100% { transform: translateY(160px) rotate(16deg); opacity: 0; } }
.plank .own { background: var(--sun); border-radius: 4px; padding: 0 2px; }
.hopper { position: absolute; left: 12px; bottom: 148px; width: 54px; z-index: 3; transition: none; }
.hopper .agent-svg { width: 54px; height: 64px; }
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { width: 28px; height: 10px; border-radius: 6px; background: var(--paper-2); border: var(--line-2); }
.steps-dots i.on { background: #d99a5b; }

/* password castle */
.pw { width: min(680px, 100%); display: grid; gap: 14px; justify-items: center; }
.pw-bar { width: 100%; min-height: 64px; background: var(--white); border: var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px; }
.pw-bar:empty::before { content: 'Tap words below to build a password'; color: var(--muted); font-weight: 600; padding-left: 6px; }
.tile { border: var(--line-2); border-radius: 12px; padding: 8px 12px; font: 700 16px/1 var(--mono); background: var(--sun); cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .15s var(--spring); }
.tile:active { transform: translateY(3px); box-shadow: none; }
.tile.word { background: var(--sky); }
.tile.num { background: var(--leaf-2); }
.tile.sym { background: var(--pink-2); }
.tile.bad { background: var(--coral-2); }
.pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pw-scene { width: 100%; display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: end; }
.bot-wrap { text-align: center; }
.bot-wrap .bot-svg { width: 100px; }
.bot-say { background: var(--white); border: var(--line-2); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.castle { height: 150px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.castle i { width: 34px; background: #c9c2b4; border: var(--line-2); border-radius: 6px 6px 0 0; transition: height .6s var(--spring); position: relative; }
.castle i::before { content: ''; position: absolute; top: -10px; left: 2px; right: 2px; height: 10px; background: repeating-linear-gradient(90deg, #c9c2b4 0 8px, transparent 8px 13px); }
.strength { width: 100%; display: grid; gap: 6px; }
.strength .meter { width: 100%; height: 22px; }
.strength .meter i { background: var(--coral); }
.strength.ok .meter i { background: var(--sun); }
.strength.strong .meter i { background: var(--leaf); }
.strength b { font: 800 18px/1.2 var(--display); text-align: center; }
.guess { position: absolute; font: 700 13px/1 var(--mono); background: var(--ink); color: var(--white); padding: 4px 8px; border-radius: 8px; pointer-events: none; white-space: nowrap; }

/* pop-up jungle */
.browser { width: min(700px, 100%); background: var(--white); border: var(--line); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; position: relative; }
.tabs { display: flex; gap: 4px; background: var(--paper-2); padding: 8px 8px 0; border-bottom: var(--line-2); }
.tabx { display: flex; align-items: center; gap: 8px; background: var(--white); border: var(--line-2); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 8px 8px 8px 12px; font: 700 13px/1 var(--body); max-width: 60%; }
.tabx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabx.bg { background: transparent; opacity: .7; }
.tab-close { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; font: 800 15px/1 var(--body); cursor: pointer; flex: none; }
.tab-close:hover { background: var(--sun); }
.urlbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 2px solid #e6dfd1; font: 700 13px/1 var(--mono); color: var(--muted); }
.urlbar span { background: var(--paper); border-radius: 999px; padding: 6px 12px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.page { position: relative; height: 340px; overflow: hidden; display: grid; place-items: center; padding: 16px; }
.page.scary { background: repeating-linear-gradient(45deg, #fff3f0 0 20px, #ffe3dc 20px 40px); }
.scare { width: min(440px, 100%); border: 4px solid #e5484d; border-radius: 16px; background: var(--white); padding: 18px; text-align: center; display: grid; gap: 10px; position: relative; animation: alarm 1s steps(2) infinite; }
@keyframes alarm { 50% { border-color: var(--sun); } }
.scare h4 { margin: 0; font: 800 22px/1.15 var(--display); color: #e5484d; }
.scare p { font-weight: 600; }
.scare .fakex { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #999; background: #eee; font: 800 14px/1 var(--body); color: #666; cursor: pointer; }
.trapbtn { border: 0; border-radius: 12px; padding: 14px 18px; font: 800 18px/1 var(--display); background: #e5484d; color: var(--white); cursor: pointer; box-shadow: 0 4px 0 #8e1d21; }
.trapbtn.green { background: #1bb35b; box-shadow: 0 4px 0 #0b6b33; }
.trapbtn.blue { background: #1a66d6; box-shadow: 0 4px 0 #0c3a80; }
.trapin { height: 40px; border: 2px solid #ccc; border-radius: 10px; padding: 0 10px; font: 600 15px/1 var(--mono); display: flex; align-items: center; color: #999; }
.bug { position: absolute; font-size: 30px; cursor: pointer; z-index: 6; user-select: none; }
.wheel { width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--ink); background: conic-gradient(#ff4d8d 0 60deg, #ffc928 0 120deg, #13995a 0 180deg, #8fd8ff 0 240deg, #7b5cff 0 300deg, #ff6a3d 0); animation: spin 2.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* privacy reveal + boss */
.board { width: min(560px, 100%); background: #d7b98a; border: var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 6px 0 var(--ink); display: grid; gap: 10px; }
.board h4 { margin: 0; font: 800 20px/1.2 var(--display); }
.note-pin { background: #fff8c4; border: var(--line-2); border-radius: 6px; padding: 10px 12px; font-weight: 700; transform: rotate(var(--r, -1deg)); box-shadow: 0 3px 0 var(--ink); }
.boss { width: min(680px, 100%); display: grid; gap: 14px; justify-items: center; }
.sea-fight { position: relative; width: 100%; height: 190px; border: var(--line); border-radius: 22px; background: var(--sky); overflow: hidden; box-shadow: 0 6px 0 var(--ink); }
.sea-fight .water { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: var(--sea); border-top: var(--line); }
.ship2 { position: absolute; right: 8%; bottom: 34px; width: 170px; transition: transform .6s var(--spring); }
.ship2.sink { animation: sink 2.2s ease-in forwards; }
@keyframes sink { 20% { transform: rotate(-12deg); } 100% { transform: translateY(220px) rotate(-30deg); } }
.cannon { position: absolute; left: 6%; bottom: 40px; width: 90px; }
.ball { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); z-index: 3; }
.hp { position: absolute; top: 12px; right: 12px; width: 160px; display: grid; gap: 4px; font: 700 12px/1 var(--mono); }
.hp .meter { width: 100%; height: 14px; }
.hp .meter i { background: var(--coral); }
.hearts { position: absolute; top: 10px; left: 12px; font-size: 24px; letter-spacing: 2px; }
.q { width: 100%; background: var(--white); border: var(--line); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); padding: 16px; display: grid; gap: 12px; }
.q-text { font: 800 20px/1.3 var(--display); text-align: center; }
.q-show { background: var(--paper); border: var(--line-2); border-radius: 14px; padding: 12px 14px; font-weight: 600; text-align: center; }
.q-show.mono { font: 700 16px/1.4 var(--mono); }
.cert { width: min(620px, 100%); background: var(--white); border: 6px double var(--ink); border-radius: 18px; padding: 26px; text-align: center; display: grid; gap: 10px; }
.cert h3 { font-size: clamp(28px, 5vw, 44px); }
.cert .nm { font: 800 clamp(30px, 6vw, 52px)/1 var(--display); color: var(--pink); }
.cert .seals { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 26px; }

/* paywall */
.pay { overflow-y: auto; padding: clamp(18px, 3vw, 32px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.pay h2 { font-size: clamp(28px, 4.4vw, 46px); }
.pay .lead { font-size: 17px; font-weight: 600; max-width: 34em; }
.locked-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; width: 100%; }
.lk { background: var(--white); border: var(--line-2); border-radius: 16px; padding: 12px; text-align: left; display: grid; gap: 4px; position: relative; box-shadow: 0 3px 0 var(--ink); }
.lk b { font: 800 16px/1.15 var(--display); }
.lk small { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.lk .n { position: absolute; top: -10px; right: -8px; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: var(--line-2); display: grid; place-items: center; font-size: 14px; }
.price-card { width: min(460px, 100%); background: var(--white); border: var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 6px 0 var(--ink); display: grid; gap: 12px; justify-items: center; }
.price-card .amt { font: 800 56px/1 var(--display); letter-spacing: -0.03em; }
.price-card .amt small { font-size: 18px; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; text-align: left; font-weight: 600; font-size: 15px; }
.ticks li::before { content: '✓ '; color: var(--leaf); font-weight: 800; }
.linkish { background: none; border: 0; text-decoration: underline; font-weight: 700; cursor: pointer; padding: 6px; color: var(--ink-2); }
.err { color: #c62f2f; font-weight: 700; font-size: 14px; }
.gate { display: grid; gap: 12px; justify-items: center; }
.gate .q-text { font-size: 24px; }
.gate-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.gate-opts button { height: 60px; border: var(--line); border-radius: 14px; background: var(--white); font: 800 22px/1 var(--display); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.small { font-size: 13px; color: var(--muted); }

/* phones */
@media (max-width: 760px) {
  .overlay { padding: 0; }
  .sheet { border-radius: 0; height: 100%; border: 0; box-shadow: none; }
  .sheet.narrow { height: 100%; }
  .lvl-top { padding: max(10px, env(safe-area-inset-top)) 10px 10px; gap: 8px; }
  .lvl-title .kick { font-size: 10px; }
  .meter { width: 70px; }
  .meter-wrap .tail-ico { width: 24px; height: 24px; }
  .lvl-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lvl-side { border-left: 0; border-top: var(--line); padding: 8px 10px max(8px, env(safe-area-inset-bottom)); flex-direction: row; align-items: flex-end; min-height: 0; }
  .lvl-side .sly-box { order: 2; margin: 0; flex: none; width: 92px; }
  .lvl-side .sly-box .sly-svg { width: 92px; }
  .lvl-side .sly-say { position: absolute; right: 100px; bottom: calc(100% + 8px); max-width: 230px; font-size: 13px; z-index: 3; }
  .lvl-side .sly-say::after { left: auto; right: -9px; bottom: 14px; transform: rotate(-45deg); }
  .lvl-side .dz-label { display: none; }
  .lvl-side .coach { flex: 1; min-width: 0; }
  .coach .pixel-svg { width: 46px; height: 46px; }
  .coach .bubble { font-size: 14px; padding: 8px 11px; }
  .deck { height: 280px; }
  .river { height: 340px; }
  .planks { left: 46px; right: 46px; }
  .river .bank { width: 40px; }
  .hopper { left: 2px; width: 40px; }
  .hopper .agent-svg { width: 40px; height: 48px; }
  .page { height: 360px; }
  .pw-scene { grid-template-columns: 80px 1fr; }
  .bot-wrap .bot-svg { width: 74px; }
  .map-banner p { font-size: 13px; }
  .pin { transform-origin: center; }
  .pin-name { font-size: 11px; padding: 2px 7px; }
  .pin:not(.current) .pin-name { display: none; }
  .pin { margin-top: -50px; }
  .map-banner { width: calc(100vw - 24px); }
  .lvl-title .kick { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pin-num { width: 40px; height: 40px; font-size: 18px; }
  .gate-opts { grid-template-columns: repeat(2, 1fr); }
  .pay, .title-card { padding-top: max(66px, calc(env(safe-area-inset-top) + 56px)); }
  .locked-row { grid-template-columns: 1fr 1fr; }
}
@media print {
  body.game > *:not(.overlay) { display: none !important; }
  .overlay { position: static; background: none; backdrop-filter: none; }
  .sheet { border: 0; box-shadow: none; height: auto; }
  .lvl-top, .lvl-side, .row-btns, .stars, .outro > :not(.cert) { display: none !important; }
}
#pins.flat { inset: 90px 16px 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-content: center; pointer-events: auto; }
#pins.flat .pin { position: static; margin: 0; width: auto; transform: none !important; }

/* ---------- v2: the desk (one loop: stamp it, find the tail) ---------- */
.lvl-top .hearts { position: static; font-size: 22px; letter-spacing: 2px; white-space: nowrap; }
.lvl-top .hearts .lost { opacity: .5; }
.desk { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(12px, 2.4vw, 22px); background: var(--sky); }
.intro2 { width: min(620px, 100%); margin: auto 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.intro-sly { position: relative; display: grid; justify-items: center; }
.intro-sly .sly-svg { width: min(210px, 46vw); }
.intro-sly .sly-say, .sly-corner .sly-say { background: var(--white); border: var(--line-2); border-radius: 18px; padding: 10px 14px; font: 700 16px/1.35 var(--body); max-width: 320px; position: relative; margin-bottom: 8px; }
.intro-sly .sly-say::after { content: ''; position: absolute; bottom: -10px; left: 50%; width: 16px; height: 16px; background: var(--white); border-right: var(--line-2); border-bottom: var(--line-2); transform: translateX(-50%) rotate(45deg); }
.rule-new { background: var(--white); border: var(--line); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 16px 18px; display: grid; gap: 10px; width: 100%; }
.rule-big { display: flex; gap: 14px; align-items: center; text-align: left; }
.rule-big i { font-style: normal; font-size: 40px; width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: var(--sun); border: var(--line); border-radius: 18px; }
.rule-big b { font: 800 clamp(20px, 3vw, 26px)/1.2 var(--display); }
.rule-big.small { background: var(--white); border: var(--line-2); border-radius: 18px; padding: 10px 14px; width: 100%; }
.rule-big.small i { width: 52px; height: 52px; font-size: 30px; }
.rule-big.small b { font-size: 18px; }
.rule-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rule-icons i { font-style: normal; font-size: 28px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--sun); border: var(--line-2); border-radius: 14px; }
.how { font-size: 17px; font-weight: 600; max-width: 30em; background: var(--paper); border: var(--line-2); border-radius: 16px; padding: 10px 14px; }

.desk-bar { width: min(560px, 100%); display: grid; gap: 8px; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { flex: 1; max-width: 46px; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .7); border: var(--line-2); }
.dots i.now { background: var(--sun); }
.dots i.ok { background: var(--leaf); }
.dots i.miss { background: var(--coral); }
.trace { position: relative; height: 16px; border: var(--line-2); border-radius: 999px; background: var(--white); overflow: visible; }
.trace i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--sun); }
.trace.late i { background: var(--coral); }
.trace span { position: absolute; top: -9px; left: -14px; font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(16, 34, 61, .3)); }
.desk-main { width: min(560px, 100%); position: relative; flex: 1; min-height: 250px; display: grid; align-items: center; }
.slot { position: relative; z-index: 1; }
.sly-corner { position: absolute; right: -230px; bottom: 0; width: 200px; display: grid; justify-items: center; pointer-events: none; }
.sly-corner .sly-svg { width: 170px; }
.sly-corner .sly-say { font-size: 14px; max-width: 200px; }
.sly-corner .sly-say:empty { display: none; }
.sly-corner.hurt .sly-svg { animation: hurt .5s ease; }
.sly-corner.laugh .sly-svg { animation: laugh .6s ease; }
.toast { width: min(560px, 100%); min-height: 54px; display: flex; align-items: center; justify-content: center; text-align: center; font: 600 18px/1.35 var(--body); padding: 8px 14px; border-radius: 16px; }
.toast:empty { visibility: hidden; }
.toast.info { background: var(--white); border: var(--line-2); }
.toast.good { background: var(--leaf-2); border: 2px solid var(--leaf); }
.toast.bad { background: var(--coral-2); border: 2px solid var(--coral); }
.verdict, .nextrow { width: min(560px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
.nextrow { grid-template-columns: 1fr; }
.verdict .btn, .nextrow .btn { width: 100%; min-height: 66px; font-size: 22px; }
.verdict .btn:disabled { opacity: 1; }

/* the message card */
.mcard { position: relative; background: var(--white); border: var(--line); border-radius: 24px; box-shadow: 0 7px 0 var(--ink); padding: 0; overflow: hidden; touch-action: pan-y; user-select: none; cursor: grab; }
.m-app { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--paper-2); border-bottom: var(--line-2); font: 700 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.m-in { padding: 16px 18px 20px; display: grid; gap: 10px; font-size: 19px; line-height: 1.4; font-weight: 600; }
.m-from { display: grid; gap: 2px; }
.m-from .b, .m-who .b { font-weight: 800; font-family: var(--display); font-size: 20px; }
.m-from .small, .m-who .small { font-size: 14px; color: var(--muted); font-weight: 700; word-break: break-all; }
.m-subj { font: 800 22px/1.25 var(--display); }
.m-btn { display: flex; }
.m-btn .part { background: var(--leaf); color: var(--white); font: 800 18px/1 var(--display); padding: 12px 18px; border-radius: 12px; border: var(--line-2); }
.m-btn.red .part { background: #e5484d; }
.m-who { display: flex; gap: 12px; align-items: center; }
.m-who i { font-style: normal; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--sky); border: var(--line-2); display: grid; place-items: center; font-size: 22px; }
.m-who.chat i { border-radius: 12px; background: var(--grape); }
.m-bubble { background: #e9eef5; border-radius: 20px 20px 20px 6px; padding: 12px 16px; font-size: 20px; }
.m-bubble.call { background: var(--ink); color: var(--white); border-radius: 20px; }
.ch-chat .m-in { background: #182c4d; color: var(--white); }
.ch-chat .m-bubble { background: var(--white); color: var(--ink); }
.ch-chat .m-who .b { color: #7dffb0; }
.ch-call .m-in { background: linear-gradient(#24407a, #10223d); color: var(--white); }
.ch-call .m-who .small { color: #9fb4d4; }
.m-pop { border: 4px solid #e5484d; border-radius: 16px; padding: 14px; display: grid; gap: 10px; text-align: center; justify-items: center; background: #fff8f6; }
.m-pop-t { font: 800 22px/1.2 var(--display); color: #c62f2f; }
.m-pop.calm { border: var(--line-2); background: var(--white); }
.m-pop.calm .m-pop-t { color: var(--ink); }
.m-pop.calm .m-btn .part { background: var(--ink); }
.m-pop:not(.calm) { animation: alarm 1s steps(2) infinite; }
.m-ask { font: 800 20px/1.3 var(--display); }
.m-url, .m-pw { font: 700 clamp(17px, 3.6vw, 22px)/1.4 var(--mono); background: var(--paper); border: var(--line-2); border-radius: 14px; padding: 14px; word-break: break-all; }
.m-pw { letter-spacing: .06em; text-align: center; font-size: clamp(20px, 4.4vw, 26px); }
.m-post { display: grid; gap: 10px; justify-items: center; text-align: center; }
.m-pic { font-size: 76px; line-height: 1; width: 100%; padding: 16px 0; background: var(--sky); border: var(--line-2); border-radius: 16px; }
.m-post .m-body { font: 800 21px/1.3 var(--display); }
.mcard .lab { position: absolute; top: 54px; font: 800 22px/1 var(--display); border: 4px solid; border-radius: 10px; padding: 4px 10px; opacity: 0; background: var(--white); z-index: 3; pointer-events: none; }
.mcard .lab.l { left: 14px; color: var(--pink); transform: rotate(-10deg); }
.mcard .lab.r { right: 14px; color: var(--leaf); transform: rotate(10deg); }
/* finding the tail */
.part { border-radius: 8px; transition: background .2s, box-shadow .2s; }
.mcard.find { cursor: pointer; }
.mcard.find .part { cursor: pointer; box-shadow: 0 2px 0 rgba(16, 34, 61, .25); }
.mcard.find .part:hover { background: rgba(255, 201, 40, .35); }
.mcard.find .tail, .mcard.find .part { outline: 2px dashed rgba(16, 34, 61, .25); outline-offset: 2px; }
.part.tail.hint { animation: hintglow 1.1s ease infinite; }
.part.tail.got, .part.tail.reveal { background: var(--pink-2) !important; box-shadow: 0 0 0 3px var(--pink) !important; outline: none !important; }
.ch-chat .part.tail.got, .ch-chat .part.tail.reveal, .ch-call .part.tail.got, .ch-call .part.tail.reveal { color: var(--ink); }

/* the rulebook */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(16, 34, 61, .45); }
.modal-in { width: min(480px, 100%); max-height: 100%; overflow-y: auto; background: var(--paper); border: var(--line); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); padding: 20px; display: grid; gap: 12px; }
.modal-in h3 { font-size: 28px; }
.rulelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rulelist li { display: flex; gap: 12px; align-items: center; background: var(--white); border: var(--line-2); border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: 16px; }
.rulelist i { font-style: normal; font-size: 26px; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--sun); border: var(--line-2); border-radius: 12px; }
.reveal-sly.laughing .sly-svg { animation: laugh .7s ease infinite; }

@media (max-width: 1100px) {
  .sly-corner { right: -6px; bottom: auto; top: -76px; width: 92px; z-index: 2; }
  .sly-corner .sly-svg { width: 84px; }
  .sly-corner .sly-say { position: absolute; right: 88px; top: 8px; width: max-content; max-width: 200px; font-size: 13px; }
  .desk-main { margin-top: 70px; }
}
@media (max-width: 760px) {
  .desk { padding: 10px 12px; gap: 10px; }
  .m-in { font-size: 17px; padding: 14px 14px 16px; }
  .m-subj { font-size: 19px; }
  .m-bubble { font-size: 18px; }
  .toast { font-size: 16px; min-height: 48px; }
  .verdict .btn, .nextrow .btn { min-height: 60px; font-size: 20px; }
  .rule-big i { width: 54px; height: 54px; font-size: 32px; }
  .intro2 { gap: 12px; }
  .how { font-size: 15px; }
}
