@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/fredoka-latin.woff2') format('woff2'); }
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lilita-one-latin.woff2') format('woff2'); }
:root {
  --ink: #23214a; --sky: #5fd0ff; --sky2: #bdf0ff; --sun: #ffd23f; --red: #f0323c; --orange: #ff9f1c;
  --grape: #8a4fff; --grass: #5ed15b; --pink: #ff6fae; --teal: #14c8b4; --blue: #2d7ff0; --cream: #fff8e6;
  --edge: 4px solid var(--ink); --hard: 6px 7px 0 var(--ink);
  --head: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Fredoka', 'Arial Rounded MT Bold', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--sky); font-size: 18px; line-height: 1.4; overflow-x: hidden; }
#app:focus { outline: 0; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--head); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 4px solid var(--grape); outline-offset: 3px; }
.karl { display: block; overflow: visible; }

/* HUD */
.hud { position: fixed; z-index: 30; inset: 10px 16px auto; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.hud a { pointer-events: auto; }
.logo img { display: block; height: 74px; filter: drop-shadow(2px 3px 0 rgba(35, 33, 74, .35)); transition: transform .15s; }
.logo:hover img { transform: rotate(-4deg) scale(1.06); }
.hudleft { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.meettag { display: block; padding: 3px 10px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 2px 0 var(--ink); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none; transform: rotate(-2deg); transition: transform .15s; }
.meettag:hover { transform: rotate(0) scale(1.06); }
body[data-page="meet"] .meettag { display: none; }
.chip { display: flex; gap: 8px; align-items: center; background: #fff; border: var(--edge); border-radius: 18px; padding: 5px 14px 5px 6px; box-shadow: 3px 4px 0 var(--ink); line-height: 1.15; max-width: 62vw; }
.chip b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip small { font-size: 13px; color: #55527e; }
.chip-go { background: var(--sun); padding: 10px 16px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) scale(1.05); } }
.badge { width: 42px; height: 46px; flex: none; display: grid; place-items: center; background: var(--rank); border: 3px solid var(--ink); clip-path: none; border-radius: 12px 12px 22px 22px; font-size: 21px; }

/* Home */
.world { position: relative; overflow: hidden; background: linear-gradient(var(--sky), var(--sky2) 70%); padding: 26px 16px 0; }
.sun { position: absolute; top: -130px; left: 50%; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%; opacity: .5; background: repeating-conic-gradient(#fff3a6 0 12deg, transparent 12deg 24deg); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cloud { position: absolute; width: 178px; height: 100px; margin-top: -44px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 178 100'%3E%3Cpath d='M28 96a26 26 0 0 1 0-52H37A38 38 0 1 1 113 44H150a26 26 0 0 1 0 52Z' fill='%23fff' stroke='%2323214a' stroke-width='4'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.cloud { left: 0; animation: rollby 110s linear infinite; }
.c1 { top: 170px; animation-delay: -28s; }
.c2 { top: 80px; scale: .8; animation-duration: 145s; animation-delay: -105s; }
.c3 { top: 560px; scale: .7; animation-duration: 170s; animation-delay: -60s; }
.c4 { top: 330px; scale: .9; animation-duration: 125s; animation-delay: -85s; }
@keyframes rollby { from { translate: -240px 0; } to { translate: calc(100vw + 60px) 0; } }
/* A bird or butterfly crosses the sky behind the house every few minutes. */
.flyer { position: absolute; z-index: 1; left: 0; font-size: 34px; line-height: 1; pointer-events: none; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 1px 1px rgba(35, 33, 74, .5)); animation: flyacross 20s linear forwards; }
.flyer.back { animation-name: flyback; }
.flyer i { display: inline-block; font-style: normal; animation: flybob 2.6s ease-in-out infinite; }
.flyer.right i { scale: -1 1; }
@keyframes flyacross { from { translate: -60px 0; } to { translate: calc(100vw + 60px) 0; } }
@keyframes flyback { from { translate: calc(100vw + 60px) 0; } to { translate: -60px 0; } }
@keyframes flybob { 0%, 100% { transform: translateY(-16px); } 50% { transform: translateY(16px) rotate(6deg); } }
.house { position: relative; max-width: 1040px; margin: 0 auto; z-index: 2; }
/* On larger screens the house sits in its surroundings. Phones and tablets keep full width for tapping. */
@media (min-width: 861px) { .house { zoom: .8; } }
.roof { position: relative; height: 290px; }
.roof::before { content: ''; position: absolute; inset: 0 -26px 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--ink); }
.roof::after { content: ''; position: absolute; inset: 9px -14px 6px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: repeating-linear-gradient(0deg, var(--red) 0 26px, #ff6a4d 26px 52px); }
.roof-sign { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%) rotate(-2.5deg); text-align: center; background: var(--sun); border: var(--edge); border-radius: 22px; padding: 10px 34px 12px; box-shadow: var(--hard); white-space: nowrap; }
.roof-sign span { font-weight: 600; font-size: 21px; }
.roof-sign h1 { margin: 0; font-size: clamp(33px, 6.8vw, 70px); color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.hello { position: absolute; z-index: 3; right: 3%; bottom: -8px; display: flex; align-items: flex-start; flex-direction: row-reverse; }
.hello-k { width: 158px; }
.bubble { position: relative; margin: 0 -12px 0 0; background: #fff; border: var(--edge); border-radius: 20px; padding: 10px 16px; font-weight: 600; box-shadow: 3px 4px 0 var(--ink); white-space: nowrap; transform: rotate(-4deg); }
.rooms { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 16px; background: var(--cream); border: var(--edge); border-top: 0; padding: 18px; box-shadow: var(--hard); }
.room { position: relative; overflow: hidden; display: block; border: var(--edge); border-radius: 22px; box-shadow: 4px 5px 0 var(--ink); transition: transform .16s cubic-bezier(.3, 1.8, .6, 1); }
.room:hover, .room:focus-visible { transform: rotate(-1.4deg) scale(1.035); z-index: 3; }
.room-art { position: absolute; inset: 0; }
.room-art svg { width: 100%; height: 100%; display: block; }
.room-sign { position: absolute; z-index: 3; left: 12px; top: 12px; max-width: 62%; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 6px 12px 8px; transform: rotate(-2deg); }
.room-sign b { display: block; font-family: var(--head); font-weight: 400; font-size: 25px; line-height: 1.05; }
.room-sign small { display: block; font-size: 14.5px; line-height: 1.2; margin-top: 2px; }
.room-k { position: absolute; z-index: 2; right: 4%; bottom: -24px; height: 96%; width: auto; }
.r-mountain { grid-column: span 5; grid-row: span 2; background: #9fe4ff; }
.r-mountain .room-k { height: 66%; right: 8%; bottom: 8px; }
.r-mountain .room-sign b { font-size: 34px; }
.r-theater { grid-column: span 3; background: repeating-linear-gradient(90deg, #d9202e 0 26px, #f0485a 26px 52px); }
.r-theater .room-k { height: 66%; right: 3%; bottom: -3px; }
.r-theater .room-sign { max-width: 58%; padding: 5px 9px 6px; }
.r-theater .room-sign b { font-size: 21px; }
.r-theater .room-sign small { font-size: 12.5px; }
.r-arcade { grid-column: span 4; background: #3a1f8f; }
.r-arcade .room-k { height: 104%; right: 3%; bottom: -14px; }
.r-arcade .room-sign { max-width: 52%; }
.r-quiz { grid-column: span 3; background: repeating-conic-gradient(from 10deg at 72% 72%, var(--sun) 0 14deg, var(--orange) 14deg 28deg); }
.r-quiz .room-k { height: 60%; right: 6%; bottom: -6px; }
.r-puzzle { grid-column: span 4; background: conic-gradient(var(--teal) 25%, #64e8d6 0 50%, var(--teal) 0 75%, #64e8d6 0) 0 0 / 70px 70px; }
.r-ask { grid-column: span 4; background: var(--pink); }
.r-joke, .r-facts { grid-column: span 4; width: 100%; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.r-joke { background: radial-gradient(circle, #5db4ff 0 13px, transparent 14px) 0 0 / 46px 46px, radial-gradient(circle, #5db4ff 0 13px, transparent 14px) 23px 23px / 46px 46px, #2d7ff0; }
.r-facts { background: linear-gradient(135deg, #ff9270 25%, transparent 25%) -30px 0 / 60px 60px, linear-gradient(225deg, #ff9270 25%, transparent 25%) -30px 0 / 60px 60px, linear-gradient(315deg, #ff9270 25%, transparent 25%) 0 0 / 60px 60px, linear-gradient(45deg, #ff9270 25%, transparent 25%) 0 0 / 60px 60px, #ff6a48; }
.r-facts .room-k { height: 88%; right: 2%; bottom: -24px; }
.r-facts .room-sign b { font-size: 24px; }
.f1 { left: 7%; bottom: 44px; font-size: 25px; transform: rotate(-7deg); }
.f2 { left: 23%; bottom: 12px; font-size: 23px; transform: rotate(5deg); }
.r-joke .room-k { height: 88%; right: 2%; bottom: -24px; }
.r-joke .room-sign b { font-size: 24px; }
.ha { position: absolute; font-family: var(--head); font-style: normal; color: #fff; opacity: .75; line-height: 1; }
.h1 { left: 7%; bottom: 18px; font-size: 44px; transform: rotate(-10deg); }
.h2 { left: 37%; bottom: 44px; font-size: 32px; transform: rotate(8deg); }
.h3 { left: 26%; bottom: 12px; font-size: 26px; transform: rotate(-4deg); }
.qm { position: absolute; font-family: var(--head); font-style: normal; color: #fff; opacity: .55; font-size: 90px; line-height: 1; }
.q1 { left: 8%; top: 92px; transform: rotate(-14deg); } .q2 { left: 30%; top: 112px; transform: rotate(10deg); font-size: 60px; } .q3 { right: 4%; top: 16px; transform: rotate(16deg); font-size: 110px; }
.r-ask .room-k { right: 2%; height: 94%; bottom: -30px; transform: scaleX(-1); }
.r-ask .room-sign b { font-size: 24px; }
.dot { position: absolute; width: 14px; height: 14px; background: var(--sun); box-shadow: 40px 30px 0 #5fd0ff, -30px 70px 0 var(--pink), 90px 110px 0 #5ed15b; animation: blink 1.4s steps(2) infinite; }
.d1 { left: 12%; top: 58%; } .d2 { left: 44%; top: 36%; animation-delay: .3s; } .d3 { left: 76%; top: 12%; animation-delay: .6s; } .d4 { left: 8%; top: 78%; animation-delay: .9s; }
@keyframes blink { 50% { opacity: .25; } }
.ground { position: relative; z-index: 3; display: grid; grid-template-columns: 124px 1fr auto; gap: 24px; align-items: center; margin: 0 -16px; padding: 22px max(28px, calc((100% - 1040px) / 2)) 58px; background: linear-gradient(#6fdc6a, var(--grass)); border-top: var(--edge); }
.rider { width: 124px; }
.about p { margin: 0; font-size: 19px; font-weight: 500; }
.about .star { margin-top: 6px; font-size: 15px; font-weight: 600; }
.mailbox { background: #fff; border: var(--edge); border-radius: 14px; padding: 8px 14px; box-shadow: 3px 4px 0 var(--ink); font-size: 15px; white-space: nowrap; }
.mailbox b { display: block; font-family: var(--head); font-weight: 400; font-size: 21px; }
.mailbox:hover { background: var(--sun); }

/* Shared pages */
.page { position: relative; max-width: 860px; min-height: 100vh; margin: 0 auto; padding: 100px 16px 90px; }
@media (max-width: 1340px) { .page { padding-top: 124px; } }
body[data-page="verse"], body[data-page="play"], body[data-page="mega"], body[data-page="join"], body[data-page="game"], body[data-page="room"], body[data-page="plans"], body[data-page="details"], body[data-page="help"] { background: repeating-linear-gradient(135deg, #ffd23f 0 60px, #ffdc66 60px 120px); }
body[data-page="arcade"] { background: #2c1773; }
body[data-page="home"] { background: var(--grass); }
.card { position: relative; z-index: 2; background: #fff; border: var(--edge); border-radius: 26px; box-shadow: var(--hard); padding: 24px; }
.title { font-size: clamp(38px, 7vw, 60px); text-align: center; color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; margin-bottom: .2em; }
.lead { font-size: 20px; }
.center { text-align: center; font-weight: 600; }
.big { font-family: var(--head); font-size: 30px; margin: .2em 0; line-height: 1.15; color: var(--blue); }
.fine { font-size: 15px; color: #55527e; margin: 16px 0 0; }
.back { display: inline-block; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 3px 12px; font-weight: 600; font-size: 16px; margin-bottom: 14px; box-shadow: 2px 3px 0 var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.btn { display: inline-block; font-family: var(--head); font-size: 22px; background: var(--red); color: #fff; border: var(--edge); border-radius: 18px; padding: 10px 24px; box-shadow: 4px 5px 0 var(--ink); transition: transform .1s; text-align: center; }
.btn:hover { transform: translate(-1px, -2px) rotate(-1deg); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn-b { background: var(--blue); }
.btn-g { background: #1fa84a; }
.btn-r { background: var(--red); }
.btn-go { background: #1fa84a; font-size: 24px; }
.linkbtn { background: none; border: 0; text-decoration: underline; margin-top: 12px; padding: 4px; }

/* Join */
.join { display: flex; align-items: center; gap: 16px; max-width: 900px; }
.join .card { flex: 1; min-width: 0; text-align: center; }
.join h1 { font-size: 40px; color: var(--red); }
.join .row { justify-content: center; }
.join-k { width: 210px; flex: none; }
.pick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.door { background: var(--sky2); border: var(--edge); border-radius: 60px 60px 16px 16px; padding: 24px 8px 14px; box-shadow: 4px 5px 0 var(--ink); transition: transform .15s; }
.door:nth-child(2) { background: #ffe08a; } .door:nth-child(3) { background: #ffc2dc; }
.door:hover { transform: translateY(-6px) rotate(-2deg); }
.door b { display: block; font-family: var(--head); font-weight: 400; font-size: 23px; }
.door small { display: block; font-size: 14px; line-height: 1.2; }
.door-i { display: block; font-size: 46px; line-height: 1.1; }
.nametag { display: inline-block; max-width: 100%; border: var(--edge); border-radius: 18px; overflow: hidden; margin: 6px 0; box-shadow: 4px 5px 0 var(--ink); transform: rotate(-2deg); }
.nametag small { display: block; background: var(--red); color: #fff; font-weight: 700; padding: 5px 24px; letter-spacing: .08em; }
.nametag b { display: block; padding: 16px 24px; font-family: var(--head); font-weight: 400; font-size: clamp(30px, 7vw, 46px); overflow-wrap: anywhere; }
.nametag i { font-style: normal; color: var(--blue); }
.buddies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.buddy { background: var(--cream); border: var(--edge); border-radius: 18px; padding: 8px 2px; box-shadow: 3px 4px 0 var(--ink); }
.buddy:hover { background: var(--sun); transform: rotate(-3deg) scale(1.05); }
.buddy span { display: block; font-size: 38px; line-height: 1.2; }
.buddy small { font-size: 14px; }

/* Memory Mountain */
.mtn { position: relative; overflow: hidden; background-color: #38b6e8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='70'%3E%3Cpath d='M8 22q14-11 28 0t28 0M84 54q14-11 28 0t28 0' fill='none' stroke='%23fff' stroke-opacity='.3' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); animation: swell 7s ease-in-out infinite alternate; }
@keyframes swell { to { background-position: 34px 12px; } }
body[data-page="mountain"] { background: #38b6e8; }
.isles { position: relative; height: 100%; max-width: 860px; margin: 0 auto; }
.isle { position: absolute; left: 0; right: 0; z-index: 2; }
.isle svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bridges { position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.bridges line { stroke: #9a6a35; stroke-width: 38; stroke-dasharray: 11 5; vector-effect: non-scaling-stroke; }
.dec { position: absolute; z-index: 2; margin-left: -14px; pointer-events: none; }
.dec svg { display: block; width: 100%; height: auto; overflow: visible; }
.peak { position: absolute; z-index: 2; left: 50%; width: min(320px, 78%); transform: translateX(-50%); }
.peak svg { display: block; width: 100%; height: auto; }
.peak .flag { position: absolute; left: 44%; top: -34px; font-size: 46px; line-height: 1; }
.fog { position: absolute; z-index: 5; top: 0; left: 0; right: 0; background: #fff; }
.fog svg { position: absolute; left: 0; bottom: -118px; width: 100%; height: 180px; display: block; }
.aheadsign { position: absolute; z-index: 6; width: min(230px, 46%); transform: translateX(-50%) rotate(-2deg); background: #c98a45; color: #fff; text-align: center; font-weight: 700; font-size: 17px; line-height: 1.2; border: var(--edge); border-radius: 14px; padding: 9px 10px; box-shadow: 4px 5px 0 var(--ink); }
.aheadsign a { text-decoration: underline; }
.trail { position: absolute; z-index: 3; left: 0; top: 0; width: 100%; height: 100%; }
.trail polyline { fill: none; stroke: #fff3c9; stroke-width: 18; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 26; }
.lvl { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%) rotate(-1.5deg); background: #c98a45; color: #fff; text-align: center; border: var(--edge); border-radius: 14px; padding: 6px 20px 8px; box-shadow: 4px 5px 0 var(--ink); white-space: nowrap; }
.lvl b { display: block; font-family: var(--head); font-weight: 400; font-size: 17px; }
.lvl span { display: block; font-family: var(--head); font-size: 26px; line-height: 1.1; }
.lvl small { display: block; font-size: 14px; }
.stop { position: absolute; z-index: 4; width: 64px; height: 64px; margin: 0 0 0 -32px; display: grid; place-items: center; background: #fff; border: var(--edge); border-radius: 50%; box-shadow: 3px 4px 0 var(--ink); transition: transform .15s; }
.stop:hover { transform: scale(1.14) rotate(-5deg); z-index: 6; }
.stop b { font-family: var(--head); font-weight: 400; font-size: 26px; }
.stop small { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 3px; white-space: nowrap; background: rgba(255, 255, 255, .94); border: 2px solid var(--ink); border-radius: 8px; padding: 0 6px; font-size: 13px; font-weight: 600; }
.stop.done { background: var(--sun); }
.stop.done b { color: var(--red); }
.stop.locked { background: #d9dcec; filter: saturate(.3); }
.stop.locked b { color: #6c6f8f; }
.stop.next { background: var(--red); color: #fff; animation: beat 1.1s ease-in-out infinite; }
.stop.next small { color: var(--ink); }
@keyframes beat { 50% { transform: scale(1.14); } }
.part { position: absolute; z-index: 8; left: 0; right: 0; overflow: hidden; pointer-events: none; }
.part i { position: absolute; top: 0; bottom: 0; width: 62%; background: radial-gradient(circle at 30% 30%, #fff 30%, #eaf8ff 72%); box-shadow: 0 0 60px 50px #fff; }
.part .l { left: -6%; animation: partL 1.7s .35s ease-in forwards; }
.part .r { right: -6%; animation: partR 1.7s .35s ease-in forwards; }
@keyframes partL { 18% { transform: translateX(-3%) scale(1.03); } 100% { transform: translateX(-125%); } }
@keyframes partR { 18% { transform: translateX(3%) scale(1.03); } 100% { transform: translateX(125%); } }
.stop.popin { animation: stopPop .5s cubic-bezier(.3, 1.9, .6, 1) backwards; }
@keyframes stopPop { from { transform: scale(0); } }
.stop.popin.next { animation: stopPop .5s cubic-bezier(.3, 1.9, .6, 1) backwards, beat 1.1s 2.2s ease-in-out infinite; }
.climber { position: absolute; z-index: 5; width: 96px; margin-left: -48px; pointer-events: none; }
.climber span { position: absolute; left: -12px; bottom: 6px; font-size: 32px; }
.summit { position: absolute; z-index: 7; top: 92px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); text-align: center; background: #fff; border: var(--edge); border-radius: 26px; box-shadow: var(--hard); padding: 16px; }

.summit h1 { font-size: 36px; color: var(--blue); margin-bottom: .1em; }
.summit p { margin: 0; }
.summit .row { justify-content: center; margin: 12px 0; }
.champ { font-size: 16px; }

/* Verse */
.verse .card { max-width: 660px; margin: 0 auto; }
.side-k { position: absolute; z-index: 3; right: -24px; bottom: 12px; width: 180px; }
.vhead { display: flex; gap: 14px; align-items: center; max-width: 660px; margin: 0 auto 12px; }
.vhead h1 { margin: 0; font-size: clamp(32px, 6vw, 44px); }
.vhead p { margin: 0; font-weight: 600; }
.vnum { flex: none; width: 66px; height: 66px; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--head); font-size: 30px; border: var(--edge); border-radius: 50%; box-shadow: 3px 4px 0 var(--ink); }
.rs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 auto 16px; max-width: 660px; }
.rs button { background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 3px 11px; font-weight: 600; font-size: 16px; }
.rs .past { background: #b8f0c4; }
.rs .on { background: var(--blue); color: #fff; }
blockquote { margin: 10px 0; padding: 16px 18px; background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; font-size: 25px; font-weight: 500; line-height: 1.4; max-height: 50vh; overflow: auto; }
blockquote cite { display: block; margin-top: 8px; font-family: var(--head); font-style: normal; color: var(--red); font-size: 20px; }
.blank { color: #c9c6e0; letter-spacing: -.5px; }
.blank.flash { color: var(--ink); letter-spacing: normal; background: var(--sun); border-radius: 6px; padding: 0 3px; animation: hintflash .4s ease-out; }
@keyframes hintflash { from { background: #fff; transform: scale(1.25); } }
.built { min-height: 64px; font-size: 21px; font-weight: 500; background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; padding: 9px 13px; }
.meter { height: 14px; background: #eceaf8; border: 3px solid var(--ink); border-radius: 9px; overflow: hidden; margin: 12px 0; }
.meter i { display: block; height: 100%; background: var(--grass); transition: width .2s; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts button { flex: 1 1 42%; background: var(--sun); border: var(--edge); border-radius: 14px; padding: 11px 10px; font-weight: 600; font-size: 19px; box-shadow: 3px 4px 0 var(--ink); }
.opts button:hover { background: #ffe382; }
.nope { animation: nope .4s; background: #ffb3b3 !important; }
@keyframes nope { 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.peek summary { font-weight: 700; cursor: pointer; font-size: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--sky2); border: 3px solid var(--ink); border-radius: 12px; padding: 3px 12px; font-weight: 600; }

/* Mega board */
.board { display: grid; gap: 10px; background: #c98a45; border: var(--edge); border-radius: 22px; padding: 14px; box-shadow: var(--hard); }
.plank { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 3px solid var(--ink); border-radius: 13px; padding: 8px 12px; transition: transform .14s; }
.plank:hover { transform: rotate(-.7deg) scale(1.015); }
.plank.locked { filter: grayscale(.75); opacity: .85; }
.box { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 8px; font-weight: 700; color: #1fa84a; font-size: 22px; }
.pn { font-family: var(--head); font-size: 32px; color: var(--red); width: 26px; }
.pt { flex: 1; min-width: 0; }
.pt b { display: block; font-family: var(--head); font-weight: 400; font-size: 21px; line-height: 1.1; }
.pt small { font-size: 14.5px; }
.pu { font-size: 14.5px; font-weight: 600; text-align: right; }

/* Arcade */
.arcade .lead { color: #fff; }
.arcade .title { -webkit-text-stroke-color: var(--pink); color: var(--sun); }
.cabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cab { background: #555a84; border: var(--edge); border-radius: 20px 20px 8px 8px; padding: 12px 10px; color: #fff; text-align: center; box-shadow: 4px 5px 0 #120a3d; transition: transform .15s; }
.cab:hover { transform: translateY(-5px); }
.cab.on { background: var(--red); }
.cabwrap:nth-child(even) .cab.on { background: var(--blue); }
.cabwrap { display: flex; flex-direction: column; }
.cabwrap .cab { flex: 1; }
.cabrec { margin: 6px 2px 0; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.screen { display: grid; place-items: center; height: 88px; background: #120a3d; border: 3px solid var(--ink); border-radius: 12px; font-size: 40px; margin-bottom: 8px; }
.cab b { display: block; font-family: var(--head); font-weight: 400; font-size: 19px; line-height: 1.1; }
.cab small { font-size: 14px; }
.toss { text-align: center; }
.toss .row { justify-content: center; }
.tossbook { font-family: var(--head); font-size: clamp(36px, 8vw, 54px); margin: 24px 0; color: var(--grape); }

/* Plans */
.plans { max-width: 1040px; }
.plangrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.plan { display: flex; flex-direction: column; background: #fff; border: var(--edge); border-radius: 24px; box-shadow: var(--hard); padding: 20px; }
.plan { --lean: 0deg; --size: 1; transform: rotate(var(--lean)) scale(var(--size)); }
.plan.hot { --lean: -1deg; --size: 1.02; background: var(--sky2); }
@media (hover: hover) { .plan:hover { animation: planwiggle .5s ease-in-out; } }
@keyframes planwiggle {
  25% { transform: rotate(calc(var(--lean) - 1.6deg)) scale(var(--size)); }
  50% { transform: rotate(calc(var(--lean) + 1.6deg)) scale(var(--size)); }
  75% { transform: rotate(calc(var(--lean) - .7deg)) scale(var(--size)); }
}
.plan h2 { font-size: 30px; margin: 0; color: var(--blue); }
.price { font-family: var(--head); font-size: 40px; margin: .1em 0 .2em; line-height: 1.05; }
.price small { display: block; font-family: var(--body); font-size: 15.5px; font-weight: 600; }
.plan ul { padding-left: 20px; margin: 0 0 16px; flex: 1; font-size: 17px; }
.plan .btn { font-size: 18px; padding: 10px 12px; }
.helpdetails { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.helpdetails .fine { margin: 0; }
.terms { max-width: 720px; margin: 22px auto 0; text-align: center; font-size: 15px; font-weight: 500; }

/* Celebrate */
.pop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(35, 33, 74, .72); overflow: hidden; }
.pop-card { position: relative; z-index: 2; width: min(430px, 100%); max-height: 94vh; overflow: auto; text-align: center; background: #fff; border: var(--edge); border-radius: 28px; box-shadow: var(--hard); padding: 16px 20px 24px; animation: boing .5s cubic-bezier(.3, 1.8, .6, 1); }
.pop-card .karl { height: 210px; margin: 0 auto; }
.pop-card h2 { font-size: 32px; color: var(--red); margin: 8px 0 .2em; }
.pop-card p { margin: 0 0 14px; font-size: 19px; }
@keyframes boing { from { transform: scale(.3) rotate(-10deg); } }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; animation: fall 2.2s linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* Demo tools */

/* Quiz Show and games */
.game, .quizhub, .ask, .crownpage { max-width: 900px; }
.host { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.host .karl { width: 86px; flex: none; }
.host .bubble { margin: 0; white-space: normal; transform: rotate(-1deg); font-size: 18px; }
.shows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.show { display: block; background: var(--c); border: var(--edge); border-radius: 24px; box-shadow: var(--hard); padding: 24px 20px; transition: transform .15s; }
.show:hover { transform: rotate(-1.2deg) scale(1.02); }
.show b { display: block; font-family: var(--head); font-weight: 400; font-size: 32px; line-height: 1.1; }
.show small { font-size: 17px; font-weight: 600; }
.show.soon { background: #e4e2f2; color: #5c5a80; box-shadow: none; }
.show.soon:hover { transform: none; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.who > * { min-width: 0; }
.who h2 { color: var(--red); font-size: 34px; }
.hints { margin: 0; padding-left: 24px; font-size: 21px; font-weight: 500; }
.hints li { animation: boing .35s; margin-bottom: 4px; }
.names { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-content: start; }
.names button, .pile button { background: var(--sun); border: 3px solid var(--ink); border-radius: 12px; padding: 8px; font-weight: 600; box-shadow: 2px 3px 0 var(--ink); }
.names button:disabled { background: #e4e2f2; color: #8a88a8; text-decoration: line-through; box-shadow: none; }
.storyboard { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.storyboard > * { min-width: 0; }
.pile { display: grid; gap: 8px; }
.pile button { background: #fff; text-align: left; font-size: 17px; line-height: 1.25; }
.told { margin: 0; min-height: 200px; background: var(--cream); border: var(--edge); border-radius: 18px; padding: 14px 14px 14px 36px; font-weight: 500; font-size: 17px; }
.told li { animation: boing .3s; margin-bottom: 7px; }
.told .empty { list-style: none; color: #6e6c90; margin-left: -20px; animation: none; }
.scramble { text-align: center; }
.spots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 18px; }
.spots .slot { width: 50px; height: 58px; display: grid; place-items: center; background: var(--cream); border: 3px dashed #8a88a8; border-radius: 10px; font-family: var(--head); font-size: 30px; }
.spots .slot.filled { background: var(--sun); border: 3px solid var(--ink); }
.tilebox { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 12px; }
.tile { touch-action: none; cursor: grab; background: var(--sun); border: var(--edge); border-radius: 12px; padding: 7px 14px; font-weight: 700; font-size: 19px; box-shadow: 3px 4px 0 var(--ink); }
.letters .tile { width: 52px; height: 56px; padding: 0; font-family: var(--head); font-weight: 400; font-size: 28px; background: #fff; }
.tile.lifted { opacity: .3; }
.tile.ghost { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -50%) rotate(-4deg); }
.clues { text-align: left; font-weight: 500; padding-left: 22px; margin: 16px 0 8px; min-height: 8px; }
.clues li { animation: boing .3s; }
.lookup { font-size: 16px; margin: 8px 0 0; }
.wd-round { font-weight: 700; color: var(--blue); margin: 0 0 4px; }
.wd-line { line-height: 2; max-height: none; }
.wd-line .slot { display: inline-block; text-align: center; line-height: 1.3; background: #fff; border-bottom: 3px solid var(--ink); border-radius: 5px 5px 0 0; }
.wd-line .slot.filled { background: var(--sun); padding: 0 4px; }
.asklist { display: grid; gap: 14px; }
.asklist h2 { color: var(--blue); }
.qa { border-top: 3px solid #e4e2f2; padding: 9px 0; }
.qa summary { cursor: pointer; font-weight: 700; font-size: 20px; }
.qa p { margin: 8px 0 2px; font-size: 19px; }
.center-card { text-align: center; }
.crown { width: min(340px, 100%); height: auto; }
.rise { animation: rise 1.5s ease-in forwards; }
@keyframes rise { 40% { transform: translateY(14px) rotate(-5deg); } 100% { transform: translateY(-420px) scale(.55) rotate(14deg); opacity: 0; } }
.gemrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; font-size: 15px; font-weight: 600; }
.gemrow span { display: flex; align-items: center; gap: 6px; background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 4px 7px; min-width: 0; overflow-wrap: anywhere; }
.gemrow i { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--ink); }
.howearn ul { margin: 0; padding-left: 22px; }
.toast { position: fixed; z-index: 70; left: 50%; top: 90px; transform: translateX(-50%); background: var(--grape); color: #fff; font-family: var(--head); font-size: 22px; border: var(--edge); border-radius: 16px; padding: 9px 20px; box-shadow: 4px 5px 0 var(--ink); animation: boing .4s; white-space: nowrap; }
.cert { background: #fff; border: 12px double var(--ink); padding: 34px 24px; text-align: center; font-size: 20px; }
.cert h1 { font-size: clamp(30px, 6vw, 46px); color: var(--red); }
.cert-top { font-family: var(--head); font-size: 24px; margin: 0 0 10px; color: var(--blue); }
.cert-line { width: min(420px, 90%); margin: 26px auto 18px; border-bottom: 3px solid var(--ink); }
.cert-v { font-style: italic; }
.cert-sign { font-family: var(--head); font-size: 22px; }
.center-row { justify-content: center; }
@media (max-width: 680px) {
  .who, .storyboard, .shows { grid-template-columns: 1fr; }
  .gemrow { grid-template-columns: repeat(2, 1fr); }
  .spots .slot { width: 40px; height: 48px; font-size: 24px; }
  .letters .tile { width: 44px; height: 50px; font-size: 24px; }
}
@media print {
  .hud, .back, .noprint { display: none !important; }
  body { background: #fff !important; }
}

body[data-page="quiz"] { background: repeating-linear-gradient(135deg, #7a3fe6 0 60px, #8a4fff 60px 120px); }
body[data-page="ask"] { background: repeating-linear-gradient(135deg, #ff6fae 0 60px, #ff8cc0 60px 120px); }
body[data-page="crown"] { background: repeating-linear-gradient(135deg, #ffd23f 0 60px, #ffdc66 60px 120px); }
body[data-page="quiz"] .page > .lead { color: #fff; }
@media (min-width: 1100px) { .side-k { right: -120px; } }

.about .star a, .terms a, .termlink { text-decoration: underline; font-weight: 700; }
.details { max-width: 760px; }
.draft { margin: 0 0 16px; background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; padding: 7px 12px; font-size: 15px; font-weight: 600; }
.term + .term { margin-top: 18px; padding-top: 16px; border-top: 3px solid #e4e2f2; }
.term h2 { margin-bottom: .25em; font-size: 25px; color: var(--blue); }
.term ul { margin: 0; padding-left: 22px; }
.term li + li { margin-top: 5px; }
.term p { margin: 0; }

.helpbox { margin-top: 18px; }
.meettop { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 60px 0 8px; }
.bobble { position: relative; display: block; width: 190px; flex: none; padding: 0; background: none; border: 0; cursor: pointer; }
.bobbody { width: 100%; height: auto; }
.bobhead { position: absolute; left: 25px; top: -48px; width: 128px; aspect-ratio: 430 / 640; transform-origin: 49% 94%; filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)); animation: bobble 1.5s ease-in-out infinite; }
.bobhead img { display: block; width: 100%; height: 100%; clip-path: polygon(12.1% 75.0%, 7.0% 68.8%, 4.7% 56.2%, 6.5% 52.3%, 10.5% 51.9%, 9.8% 43.8%, 11.6% 31.2%, 16.7% 23.4%, 23.3% 15.6%, 26.0% 7.5%, 34.9% 5.6%, 45.3% 3.4%, 51.2% 5.6%, 59.3% 2.8%, 67.4% 7.8%, 75.6% 12.2%, 81.4% 15.6%, 89.8% 18.8%, 84.2% 22.8%, 85.6% 28.9%, 88.8% 40.6%, 92.1% 42.5%, 90.7% 47.7%, 89.1% 51.2%, 91.9% 56.2%, 90.7% 64.1%, 88.8% 67.2%, 88.4% 75.0%, 82.6% 85.9%, 72.1% 93.0%, 55.8% 96.2%, 41.9% 95.3%, 27.9% 91.4%, 17.4% 82.8%); }
.bobhead.boing { animation: boingbob .9s ease-out, bobble 1.5s .9s ease-in-out infinite; }
@keyframes bobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(3px); } }
@keyframes boingbob { 0% { transform: rotate(0) translateY(0); } 15% { transform: rotate(-16deg) translateY(-14px); } 35% { transform: rotate(14deg) translateY(4px); } 55% { transform: rotate(-10deg) translateY(-5px); } 75% { transform: rotate(7deg); } 100% { transform: rotate(-5deg); } }
.bobsay { margin: 0; white-space: normal; max-width: 190px; font-size: 19px; }
body[data-page="meet"], body[data-page="about"] { background: repeating-linear-gradient(135deg, #5fd0ff 0 60px, #82dcff 60px 120px); }
.meet { max-width: 800px; }
.letter { position: relative; background: var(--cream); border: var(--edge); border-radius: 10px; box-shadow: var(--hard); padding: 30px clamp(18px, 6vw, 54px); font-size: 21px; line-height: 1.5; transform: rotate(-.6deg); background-image: repeating-linear-gradient(transparent 0 31px, #e6dcc0 31px 32px); }
.letter p { margin: 0 0 16px; }
.letter .hi { font-family: var(--head); font-size: 34px; color: var(--red); line-height: 1.2; }
.sign { margin: 22px 0 0 !important; text-align: right; }
.sign b { display: block; font-family: var(--head); font-weight: 400; font-size: 34px; color: var(--blue); line-height: 1.2; }
.lovegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.love { min-width: 0; text-align: center; background: #fff; border: var(--edge); border-radius: 18px; box-shadow: 3px 4px 0 var(--ink); padding: 10px 6px; }
.love .karl { height: 150px; width: 100%; }
.love p { margin: 4px 0 0; font-weight: 700; font-size: 16px; line-height: 1.15; }
.groundlinks { display: flex; flex-direction: column; gap: 10px; }
.meetlink { background: var(--sun); }
.meetlink:hover { background: #fff; }
a.hello { color: inherit; }
body[data-page="facts"] { background: repeating-linear-gradient(135deg, #ff6a48 0 60px, #ff8461 60px 120px); }
.factcats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.factcat { display: block; min-width: 0; background: var(--c); border: var(--edge); border-radius: 18px; box-shadow: 4px 5px 0 var(--ink); padding: 13px 14px; transition: transform .15s; }
.factcat:hover { transform: rotate(-1.5deg) scale(1.03); }
.factcat b { display: block; font-family: var(--head); font-weight: 400; font-size: 21px; line-height: 1.1; }
.factcat small { font-weight: 600; }
.factpage .card { text-align: center; }
.factbar { display: flex; justify-content: space-between; gap: 10px; max-width: 660px; margin: 0 auto 10px; font-weight: 700; }
.factcard { border-top: 14px solid var(--c); }
.factkarl { height: 150px; margin: 0 auto 4px; }
.factkarl.factkarl-small { height: 104px; }
.factshown { position: relative; max-width: 560px; margin: 8px auto 12px; padding: 16px 20px; background: #f4f2fc; border: 3px dashed #bdb9e0; border-radius: 14px; font-size: clamp(18px, 3vw, 22px); font-weight: 600; line-height: 1.3; }
.factshown p { margin: 0; }
.factshown.istrue { padding-top: 26px; }
.factstamp { position: absolute; font-family: var(--head); font-size: 30px; line-height: 1; letter-spacing: 2px; padding: 6px 12px; border: 4px solid currentColor; border-radius: 10px; background: rgba(255, 255, 255, .72); pointer-events: none; animation: stampin .28s cubic-bezier(.3, 1.6, .6, 1); }
.isfalse .factstamp { left: 50%; top: 50%; color: #e4332b; background: none; mix-blend-mode: multiply; transform: translate(-50%, -50%) rotate(-11deg); font-size: clamp(38px, 8vw, 52px); }
.istrue .factstamp { right: -8px; top: -16px; color: #1a9441; transform: rotate(7deg); }
@keyframes stampin { from { scale: 2; opacity: 0; } }
.factsays { margin: 12px 0 0; font-family: var(--head); font-size: 21px; color: var(--blue); }
.factline { font-size: clamp(22px, 4vw, 28px); font-weight: 600; line-height: 1.3; margin: 8px 0; }
.factref { font-family: var(--head); color: var(--red); font-size: 21px; margin: 4px 0 0; }
.factlabel.yeah { font-size: 38px; color: #1fa84a; animation: boing .45s cubic-bezier(.3, 1.8, .6, 1); }
.tfbtn { min-width: 130px; font-size: 27px; }
.soundbtn { display: block; margin: 14px auto 0; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 4px 12px; font-weight: 600; }
.factlabel { margin: 0 0 8px; font-family: var(--head); font-size: 28px; color: var(--red); }
.joke .row .btn { min-width: 112px; }
body[data-page="me"] { background: repeating-linear-gradient(135deg, #8a4fff 0 60px, #9a66ff 60px 120px); }
.trophy { max-width: 760px; }
.trophy > .card { margin-top: 14px; }
.trophy h2 { color: var(--blue); }
.trophyhead { display: flex; align-items: center; gap: 14px; }
.trophyhead > div { min-width: 0; flex: 1; }
.trophyhead h2 { margin: 0; font-size: clamp(27px, 6vw, 40px); overflow-wrap: anywhere; color: var(--ink); }
.trank { margin: 2px 0 0; font-weight: 700; font-size: 21px; }
.tbuddy { font-size: 58px; line-height: 1; flex: none; }
.trophykarl { width: 112px; flex: none; }
.trophybadges { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; text-align: center; }
.tbadge .barbadge { width: 52px; height: 58px; margin: 0 auto 4px; font-size: 25px; max-width: 100%; }
.tbadge small { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.tbadge.off .barbadge { background: #e4e2f2; border-color: #a8a6c4; }
.tbadge.off .badge-i { filter: grayscale(1); opacity: .35; }
.tbadge.off small { color: #7c7a9c; }
.tbadge.now .barbadge { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sun); }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat { min-width: 0; text-align: center; background: #fff; border: var(--edge); border-radius: 16px; box-shadow: 3px 4px 0 var(--ink); padding: 9px 5px; }
.stat b { display: block; font-family: var(--head); font-weight: 400; font-size: 25px; line-height: 1.1; }
.stat small { font-weight: 600; font-size: 14.5px; }
.timelist { list-style: none; margin: 0; padding: 0; }
.timelist li { border-top: 2px solid #e4e2f2; font-weight: 600; }
.timelist a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 5px 0; color: inherit; text-decoration: none; }
.timelist a span { flex: 1; min-width: 0; }
.timelist em { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-style: normal; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.timelist a:hover em, .timelist a:focus-visible em { filter: brightness(1.12); }
.timelist li:first-child { border-top: 0; }
.timelist b { white-space: nowrap; }
.hello .bubble { width: 228px; margin-top: -16px; white-space: normal; line-height: 1.25; }
.greetin { animation: boing .35s cubic-bezier(.3, 1.8, .6, 1); }
.greetline { display: none; }
.welcomecloud { position: absolute; z-index: 4; left: max(10px, calc(50% - 650px)); top: 116px; width: 258px; padding: 24px 20px; text-align: center; line-height: 1.1; background: #fff; border: var(--edge); border-radius: 70px 90px 80px 70px; box-shadow: 40px -14px 0 -18px #fff, -30px -16px 0 -14px #fff, 4px 6px 0 var(--ink); transform: rotate(-3deg); animation: floaty 5s ease-in-out infinite alternate; }
.welcomecloud span { display: block; font-weight: 700; font-size: 18px; }
.welcomecloud b { display: block; font-family: var(--head); font-weight: 400; font-size: 27px; color: var(--blue); overflow-wrap: anywhere; }
@keyframes floaty { to { translate: 0 10px; } }
body[data-page="leaderboard"] { background: repeating-linear-gradient(135deg, #1f8fb8 0 60px, #27a2cd 60px 120px); }
.leaders { max-width: 640px; }
.tabs { display: flex; justify-content: center; gap: 8px; margin: 8px 0 12px; }
.tabs a { background: #fff; border: var(--edge); border-radius: 14px; padding: 6px 18px; font-family: var(--head); font-size: 21px; box-shadow: 3px 4px 0 var(--ink); }
.tabs a.on { background: var(--sun); }
.board25 { list-style: none; margin: 0; padding: 12px; background: #fff; border: var(--edge); border-radius: 20px; box-shadow: var(--hard); }
.board25 li, .myrank { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; }
.board25 li:nth-child(even) { background: #f3f1fb; }
.board25 li.me, .myrank { background: var(--sun) !important; font-weight: 700; }
.board25 b, .myrank b { overflow-wrap: anywhere; }
.brank { font-family: var(--head); font-size: 20px; text-align: center; }
.bstars { font-weight: 700; white-space: nowrap; }
.myrank { margin-top: 14px; border: var(--edge); box-shadow: 4px 5px 0 var(--ink); }
.leaders .lead { color: #fff; margin-top: 14px; }
.campsub { color: var(--sun); margin: 0; font-family: var(--head); font-size: 25px; font-weight: 400; }
.vidwrap { position: relative; }
.bigplay { position: absolute; left: 50%; top: 50%; width: clamp(76px, 15vw, 118px); aspect-ratio: 1; padding: 0; transform: translate(-50%, -50%); background: var(--red); border: 5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 4px var(--ink), 0 8px 24px rgba(0, 0, 0, .5); animation: beatplay 1.5s ease-in-out infinite; }
.bigplay svg { display: block; width: 100%; height: 100%; }
.bigplay:hover { background: #ff5a4d; }
.bigplay[hidden] { display: none; }
@keyframes beatplay { 50% { transform: translate(-50%, -50%) scale(1.08); } }
.page.arcade { max-width: 1160px; }
.arcadelayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: end; }
.arcadekarl { width: 100%; height: auto; }
body[data-page="arcade"] { background: radial-gradient(circle at 15% 20%, #4a2bb0 0 2px, transparent 3px) 0 0 / 90px 90px, radial-gradient(circle at 70% 60%, #ff6fae 0 2px, transparent 3px) 0 0 / 130px 130px, #2c1773; }
body[data-page="theater"], body[data-page="backstage"] { background: repeating-linear-gradient(90deg, #5c0f22 0 44px, #731530 44px 88px); }
.theater { max-width: 1120px; }
.marquee { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px auto 18px; max-width: 620px; background: var(--sun); border: var(--edge); border-radius: 18px; box-shadow: var(--hard); padding: 12px 18px; }
.marquee h1 { margin: 0; font-size: clamp(32px, 7vw, 58px); color: var(--red); text-align: center; }
.marquee > i { width: 16px; height: 16px; flex: none; border-radius: 50%; background: #fff; border: 3px solid var(--ink); animation: blink 1s steps(2) infinite; }
.marqueekarl { position: absolute; right: 22px; bottom: 100%; margin-bottom: -6px; width: 104px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: center; background: #1b1537; color: #fff; border: var(--edge); border-radius: 22px; box-shadow: var(--hard); padding: 14px; min-height: 200px; }
.featvideo video, .showplayer video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.featinfo h2 { font-size: 27px; margin: 6px 0; }
.flabel { display: inline-block; background: var(--pink); color: var(--ink); font-weight: 700; border-radius: 8px; padding: 1px 9px; font-size: 15px; }
.fshow { margin: 0; }
.featinfo .btn { font-size: 19px; padding: 9px 16px; }
.ytwrap { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.ytwrap img, .ytwrap iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ytwrap.tall { aspect-ratio: 9 / 16; width: min(100%, calc(80vh * 9 / 16)); margin: 0 auto; }
.videoerr { margin: 8px 0 0; font-weight: 600; font-size: 15px; }
.showtitle { margin-top: 2px; }
.showplayer { max-width: 880px; margin: 0 auto; border: var(--edge); border-radius: 18px; background: #000; box-shadow: var(--hard); padding: 8px; }
.showinfo { max-width: 880px; margin: 16px auto; background: #fff; border: var(--edge); border-radius: 20px; padding: 14px 18px; }
.showinfo h2 { margin: 6px 0 4px; font-size: 28px; }
.showinfo p { margin: 0 0 10px; }
.shelfwrap { position: relative; margin-top: 20px; }
.shelfwrap > h2 { color: #fff; font-size: 27px; margin: 0 0 8px; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.shelf { display: flex; gap: 13px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 12px; scrollbar-width: thin; }
.poster, .epcard { position: relative; flex: 0 0 min(262px, 74vw); scroll-snap-align: center; background: #fff; border: var(--edge); border-radius: 16px; overflow: hidden; box-shadow: 3px 4px 0 var(--ink); transition: transform .14s; }
.poster:hover, .epcard:hover { transform: scale(1.03) rotate(-1deg); }
.poster img, .epcard img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e4e2f2; }
.poster b, .epcard b { display: block; padding: 6px 10px 0; font-size: 16.5px; line-height: 1.2; }
.poster small { display: block; padding: 0 10px 8px; }
.epcard b { padding-bottom: 9px; }
.epcard.now { outline: 5px solid var(--sun); outline-offset: -5px; }
.epdone { position: absolute; z-index: 2; left: 7px; top: 7px; background: #1fa84a; color: #fff; font-style: normal; font-weight: 700; font-size: 14px; line-height: 1.2; border: 2px solid var(--ink); border-radius: 9px; padding: 2px 8px; }
.epfav { position: absolute; z-index: 2; right: 7px; top: 5px; font-style: normal; font-size: 27px; line-height: 1; color: var(--sun); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.favbtn { display: block; margin: 10px 0; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 13px; font-weight: 700; box-shadow: 2px 3px 0 var(--ink); }
.favbtn.on { background: var(--sun); }
.shelf.eplist { flex-wrap: wrap; justify-content: center; overflow: visible; }
@media (min-width: 861px) {
  .fewpanel .shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .fewpanel .shelfgo { display: none; }
}
.shelfgo { position: absolute; z-index: 3; top: 44%; width: 42px; height: 42px; font-size: 26px; line-height: 1; background: #fff; border: var(--edge); border-radius: 50%; }
.shelfgo.l { left: -12px; } .shelfgo.r { right: -12px; }
.shelfgo[hidden] { display: none; }
.backstage { max-width: 820px; }
.backstage .card { margin-top: 14px; }
.backstage h2 { color: var(--blue); }
.flist { margin: 0; padding-left: 20px; }
.flist small { color: #5c5a80; }
.stagerow { border-top: 3px solid #e4e2f2; padding: 7px 0; }
.stagerow summary { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.stagerow summary img { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.stagerow summary b { min-width: 0; flex: 1; }
.stagecontrols { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.stagecontrols .live { background: #dff7e6; border: 3px solid var(--ink); border-radius: 10px; padding: 3px 11px; font-weight: 700; }
.stagecontrols select { font: inherit; padding: 4px 6px; max-width: 100%; }
.eplistb { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.eplistb li { padding: 3px 0; }
.badgebar { display: flex; justify-content: center; gap: 5px; margin: 9px 0 3px; }
.barbadge { width: 40px; height: 44px; flex: 0 1 40px; min-width: 0; display: grid; place-items: center; background: var(--rank); border: 3px solid var(--ink); border-radius: 11px 11px 20px 20px; font-size: 19px; }
.barbadge.off { background: #e4e2f2; border-color: #a8a6c4; }
.barbadge.off .badge-i { filter: grayscale(1); opacity: .35; }
.barbadge.now { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sun); }
.badgename { font-size: 16px; }
.arcadecard { max-width: 460px !important; padding: 14px; }
.screenwrap { position: relative; width: 100%; aspect-ratio: 360 / 480; border: var(--edge); border-radius: 14px; overflow: hidden; background: #2a2563; }
#gamecanvas { display: block; width: 100%; height: 100%; touch-action: none; }
.screenover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px; text-align: center; background: rgba(35, 33, 74, .84); color: #fff; font-size: 19px; font-weight: 600; }
.screenover p { margin: 0; }
.screenover[hidden] { display: none; }
.askcats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.askcat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; text-align: center; background: var(--c); border: var(--edge); border-radius: 20px; box-shadow: 4px 5px 0 var(--ink); padding: 12px 7px; transition: transform .15s; }
.askcat:hover, .askcat:focus-visible { transform: rotate(-2deg) scale(1.04); }
.askcat b { font-family: var(--head); font-weight: 400; font-size: 18px; line-height: 1.1; overflow-wrap: anywhere; }
.askart { width: 58px; height: 58px; flex: none; overflow: visible; }
.askqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; background: var(--c); border: var(--edge); border-radius: 24px; box-shadow: var(--hard); padding: 16px; }
.askq { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 88px; background: #fff; border: var(--edge); border-radius: 16px; padding: 10px 13px; font-weight: 700; font-size: 18px; line-height: 1.2; }
.askq span { min-width: 0; }
.askq .askart { transition: transform .3s; }
.askq:not(.calm):hover .askart, .askq:not(.calm):focus-visible .askart { transform: translateY(-5px) rotate(-7deg) scale(1.12); }
.askhelp { text-align: center; font-weight: 600; margin: 18px 0 0; color: #fff; }
.askhelp a { text-decoration: underline; }
.asktop { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.asktop .karl { width: 92px; flex: none; }
.asktop h1 { min-width: 0; margin: 0; font-size: clamp(27px, 5vw, 38px); color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.askanswer { font-size: 21px; margin: 0; }
.asksafe { margin: 14px 0 0; background: #eaf6ff; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-weight: 600; }
.looklabel { margin-top: 18px; color: var(--blue); }
.lookup-v { border-top: 3px solid #e4e2f2; padding: 7px 0; }
.lookup-v summary { cursor: pointer; font-weight: 700; }
.lookup-v p { margin: 6px 0 2px; }
.lookup-v small { color: #5c5a80; }
.joke { padding-top: 22px; }
.joke .karl { height: 190px; }
.jokesay { display: block; margin: 0 0 10px; white-space: normal; transform: rotate(-1deg); font-size: 21px; font-weight: 600; line-height: 1.3; }
.groan { font-family: var(--head); font-size: 22px; color: var(--grape); margin: 6px 0 0; animation: boing .4s; }
.joke .row { justify-content: center; }
.stoplock { position: absolute; right: -7px; top: -8px; font-size: 18px; font-style: normal; }
.popsay { display: inline-block; margin: 0 0 8px; font-family: var(--head); font-size: 28px; color: var(--red); animation: boing .55s .1s cubic-bezier(.3, 1.8, .6, 1) backwards; }
.pop-card .karl { animation: karlpop .55s cubic-bezier(.3, 1.8, .6, 1) backwards; }
@keyframes karlpop { from { transform: translateY(70px) scale(.5); } }
.timerbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin-bottom: 12px; background: #2a2563; color: #fff; border-radius: 12px; padding: 6px 14px; }
.timerbar span { font-family: var(--head); font-size: 26px; font-variant-numeric: tabular-nums; }
.timerbar b { font-family: var(--head); font-weight: 400; font-size: 17px; color: var(--sun); letter-spacing: .02em; }
.center-bar { justify-content: center; }
body[data-page="campfire"] { background: linear-gradient(#1b1f5e, #3a2a78 70%, #1f6b4f 70%); background-attachment: fixed; }
.camp { max-width: 720px; }
.camprow { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 6px 0 14px; min-height: 170px; }
.camprow .fire { width: 150px; height: auto; }
.campkarl { width: 104px; }
.campbuddy { font-size: 44px; line-height: 1.3; }
.fire { overflow: visible; }
.flame { transform-origin: 80px 132px; animation: flicker 1.1s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(.96, 1); } to { transform: scale(1.03, 1.07) rotate(1.5deg); } }
.firebtn { position: fixed; z-index: 20; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 196px; background: #2a2563; color: #fff; text-align: center; border: var(--edge); border-radius: 22px; padding: 8px 10px 12px; box-shadow: 5px 6px 0 var(--ink); line-height: 1.1; }
.firebtn .fire { width: 74px; height: auto; flex: none; }
.fireword { font-family: var(--head); font-size: 32px; letter-spacing: .02em; color: var(--sun); }
.firego { display: block; width: 100%; font-family: var(--head); font-size: 19px; background: #1fa84a; border: 3px solid var(--ink); border-radius: 12px; padding: 6px 4px; }
.firebtn:not(.hot) .firego { background: #5c5a80; }
.firebtn.hot { background: #d6431f; animation: nudge 2s ease-in-out infinite; }
.seqhelp { margin: -4px 0 8px; font-size: 17px; }
.helpform { display: grid; gap: 5px; }
.helpform label { margin-top: 8px; font-weight: 600; }
.helpform input, .helpform select, .helpform textarea { width: 100%; min-width: 0; font: inherit; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 9px 11px; }
.helpform textarea { resize: vertical; }

@media (max-width: 1020px) {
  .arcadelayout { grid-template-columns: minmax(0, 1fr); }
  .arcadekarl { width: min(320px, 86%); margin: 0 auto; }
}

/* Tablet and phone */
@media (max-width: 860px) {
  .rooms { grid-template-columns: repeat(2, 1fr); grid-template-rows: 230px; grid-auto-rows: 176px; gap: 12px; padding: 12px; }
  .r-mountain { grid-column: span 2; grid-row: span 1; }
  .r-theater, .r-arcade, .r-quiz, .r-puzzle { grid-column: span 1; }
  .r-ask, .r-joke { grid-column: span 1; }
  .r-facts { grid-column: span 2; }
  .r-joke .room-k { height: 50%; right: 4%; bottom: -8px; }
  .r-facts .room-k { height: 66%; right: 6%; bottom: -8px; }
  .r-facts .room-sign b { font-size: 21px; }
  .room-sign { max-width: 82%; }
  .room-sign b { font-size: 21px; } .room-sign small { font-size: 13.5px; }
  .r-mountain .room-sign b { font-size: 25px; }
  .r-ask .room-sign b, .r-joke .room-sign b { font-size: 21px; }
  .room-k { height: 62%; bottom: -8px; right: 2%; }
  .r-mountain .room-k { height: 72%; }
  .r-theater .room-k { height: 54%; right: 3%; bottom: -3px; }
  .r-theater .room-sign { max-width: 82%; }
  .r-arcade .room-k { height: 62%; right: 2%; bottom: -8px; }
  .r-arcade .room-sign { max-width: 82%; }
  .r-ask .room-k { height: 56%; bottom: -18px; right: 2%; }
  .q1, .q2, .q3, .ha { display: none; }
  .side-k { display: none; }
  .feature { grid-template-columns: 1fr; }
  .shelfgo { display: none; }
  .askcats { grid-template-columns: repeat(3, 1fr); }
  .askqs { grid-template-columns: 1fr; }
  .ground { grid-template-columns: 92px 1fr; gap: 14px; padding: 18px 16px 58px; }
  .rider { width: 92px; }
  .about p { font-size: 17px; }
  .groundlinks { grid-column: 1 / -1; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .mailbox { text-align: center; }
  .join { flex-direction: column; }
  .join-k { width: 120px; }
  .cabs { grid-template-columns: repeat(2, 1fr); }
  .plangrid { grid-template-columns: 1fr; }
  .plan.hot { transform: none; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .logo img { height: 56px; }
  .page { padding-top: 112px; }
  .letter { font-size: 19px; }
  .lovegrid { grid-template-columns: repeat(2, 1fr); }
  .trophybadges { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .trophykarl { width: 70px; }
  .tbuddy { font-size: 42px; }
  .stat b { font-size: 21px; }
  body[data-page="mountain"] #app { padding-bottom: 150px; }
  .firebtn { width: 138px; right: 10px; bottom: 10px; padding: 6px 7px 9px; }
  .firebtn .fire { width: 46px; }
  .fireword { font-size: 22px; }
  .firego { font-size: 14px; padding: 4px 2px; }
  .askcats { grid-template-columns: repeat(2, 1fr); }
  .climber { width: 54px; margin-left: -27px; }
  .climber span { font-size: 26px; left: -8px; }
  .world { padding-top: 84px; }
  .r-arcade .room-sign small, .r-theater .room-sign small, .r-quiz .room-sign small, .r-puzzle .room-sign small, .r-ask .room-sign small, .r-joke .room-sign small { display: none; }
  .chip small { font-size: 12px; }
  .roof { height: 232px; }
  .roof-sign { bottom: 14px; padding: 6px 18px 8px; }
  .roof-sign span { font-size: 16px; }
  .hello { display: none; }
  .roof::before { inset: 0 -14px 0; }
  .roof::after { inset: 9px -4px 6px; }
  .rooms { grid-template-rows: 260px; }
  .r-mountain .room-k { height: 54%; }
  .welcomecloud { position: relative; left: auto; top: auto; z-index: 3; margin: 14px auto 8px; width: fit-content; max-width: 94%; padding: 10px 24px; box-shadow: 3px 4px 0 var(--ink); transform: none; animation: none; }
  .welcomecloud span { font-size: 15px; }
  .welcomecloud b { font-size: 22px; }
  .hello-k { width: 70px; }
  .bubble { font-size: 13px; padding: 5px 9px; }
  .card { padding: 16px; }
  .pick3 { grid-template-columns: 1fr; }
  .door { border-radius: 26px; padding: 10px; }
  .door-i { font-size: 32px; }
  blockquote { font-size: 21px; }
  .pu { display: none; }
  .stop { width: 58px; height: 58px; margin-left: -29px; }
  .lvl span { font-size: 22px; }
  .big { font-size: 26px; }
  .join h1 { font-size: 32px; }
}
/* Puzzle Tower extras */
.ptodaybox { max-width: 340px; margin: 10px auto 16px; }
.tmore p { margin: 0 0 10px; font-weight: 600; }

/* No auto-renewals note on the Plans page */
.noauto { display: flex; flex-direction: column; align-items: center; margin: -10px 0 26px; }
.noautok { position: relative; z-index: 2; width: 112px; margin-bottom: -15px; }
.noauto .bubble { z-index: 1; margin: 0; transform: rotate(-1deg); padding: 18px 22px 10px; white-space: normal; text-align: center; font-size: 18px; line-height: 1.25; }
.noauto .bubble b { font-family: var(--head); font-weight: 400; color: var(--red); font-size: 22px; }

/* Character maker */
body[data-page="look"] { background: repeating-linear-gradient(135deg, #7ad66b 0 60px, #92e083 60px 120px); }
.lookpage { max-width: 860px; }
.lookgrid { display: grid; grid-template-columns: 270px 1fr; gap: 16px; align-items: start; margin-top: 10px; }
.lookshow { text-align: center; padding: 14px; }
.lookkid { display: block; width: 100%; max-width: 220px; margin: 0 auto; }
.lname { margin: 4px 0 8px; font-weight: 700; }
.lookshow .btn { font-size: 19px; padding: 8px 14px; }
.lookpick { padding: 16px; text-align: center; }
.lookpick h2 { margin: 10px 0 8px; color: var(--blue); }
.ltabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ltab { padding: 5px 13px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; font-family: var(--head); font-size: 18px; cursor: pointer; }
.ltab.on { background: var(--sun); }
.lswatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 10px 0; }
.lswatch { width: 50px; height: 50px; padding: 0; border: 4px solid var(--ink); border-radius: 50%; cursor: pointer; transition: transform .12s; }
.lswatch:hover { transform: scale(1.1); }
.lswatch.on { outline: 4px solid var(--sun); outline-offset: 2px; }
.lwords { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 8px 0; }
.lword { padding: 6px 12px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.lword.on { background: var(--sun); }
.lword:disabled { background: #e6e3f0; color: #6d6a93; cursor: default; }
.lnote { margin: 0 0 6px; }
.trophykid { width: 96px; flex: none; }
.tlookbtn { font-size: 17px; padding: 6px 12px; margin-top: 6px; }
.climber .kid { position: absolute; left: 62%; bottom: 0; width: 66%; }
.climber span { z-index: 2; }
@media (max-width: 720px) {
  .trophyhead .trophykarl, .trophyhead .tbuddy { display: none; }
  .trophykid { width: 84px; }
  .trophyhead h2 { overflow-wrap: normal; word-break: normal; }
  .lookgrid { grid-template-columns: 1fr; }
  .lookkid { max-width: 150px; }
  .lswatch { width: 44px; height: 44px; }
}

/* In-between screen sizes: smaller signs and Karls so he never hides behind a sign. */
@media (min-width: 861px) and (max-width: 1180px) {
  .room-sign { max-width: 58%; padding: 5px 9px 6px; }
  .room-sign b, .r-ask .room-sign b, .r-joke .room-sign b, .r-facts .room-sign b { font-size: 20px; }
  .r-mountain .room-sign b { font-size: 28px; }
  .room-sign small { font-size: 13px; }
  .r-arcade .room-k, .r-puzzle .room-k { height: 64%; right: 3%; bottom: -8px; }
  .r-quiz .room-k { height: 48%; right: 4%; bottom: -6px; }
  .r-theater .room-k { height: 56%; right: 2%; bottom: -3px; }
  .r-ask .room-k, .r-joke .room-k, .r-facts .room-k { height: 62%; right: 2%; bottom: -10px; }
  .r-mountain .room-k { height: 56%; right: 4%; }
}
.bcard small, .pcard small, .pname small { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; color: #55527e; }
.bcard small:last-child, .pcard small:last-child { padding-bottom: 5px; }
.bcard b, .pcard b { padding-bottom: 1px !important; }
.pname small { margin-top: 3px; font-family: var(--body); font-size: 15px; }
.tcards { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 10px; width: fit-content; margin: 6px auto 4px; padding: 8px 16px; background: var(--sun); color: var(--ink); border: var(--edge); border-radius: 16px; box-shadow: 4px 5px 0 var(--ink); text-decoration: none; transition: transform .15s; }
.tcards:hover { transform: rotate(-1deg) scale(1.04); }
.tcards b { font-family: var(--head); font-weight: 400; font-size: 22px; }
.tcards span { background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 0 8px; font-weight: 700; }
.tcount { margin: 4px 0 0; text-align: center; font-family: var(--head); font-size: 28px; color: var(--ink); }
.cardset { margin-top: 16px; }
.cardset h2 { margin: 0 0 6px; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; font-size: 26px; }
.cardset h2 small { font-size: 18px; }
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.bcard { position: relative; display: block; width: 100%; padding: 0; background: #fff; color: var(--ink); border: var(--edge); border-radius: 12px; overflow: hidden; box-shadow: 3px 4px 0 var(--ink); font: inherit; cursor: pointer; transition: transform .15s; }
button.bcard:hover { transform: rotate(-1.5deg) scale(1.04); }
.bcard img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bcard b { display: block; padding: 4px 6px; font-size: 14px; line-height: 1.15; text-align: center; }
.bcard.missing { cursor: default; background: #d7d4e8; }
.bcard.missing i { display: grid; place-items: center; aspect-ratio: 4 / 3; font-style: normal; font-family: var(--head); font-size: 42px; color: #8e8ab0; }
.cardview { position: fixed; z-index: 60; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; background: rgba(35, 33, 74, .82); }
.cardview[hidden] { display: none; }
.cardview img { max-width: min(100%, 460px); max-height: calc(100vh - 110px); border-radius: 14px; border: 4px solid #fff; }
.popcard { display: block; width: min(250px, 62vw); margin: 10px auto 4px; border-radius: 10px; border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); transform: rotate(-2deg); }
.popcount { display: block; font-weight: 700; line-height: 1.2; }
body[data-page="tower"] { background: repeating-conic-gradient(#14c8b4 0 25%, #3edccb 0 50%) 0 0 / 88px 88px; }
.tower { max-width: 760px; }
.tower .title { font-size: clamp(30px, 5.4vw, 46px); }
.towerhome .title { font-size: clamp(38px, 7vw, 60px); }
.tstack { position: relative; z-index: 2; max-width: 600px; margin: 14px auto 0; display: flex; flex-direction: column; }
.troof { align-self: center; width: 0; height: 0; border-left: 150px solid transparent; border-right: 150px solid transparent; border-bottom: 74px solid var(--red); filter: drop-shadow(0 -4px 0 var(--ink)); }
.tfloor { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--c); color: var(--ink); border: var(--edge); border-bottom-width: 0; text-decoration: none; transition: transform .15s; }
.tfloor:hover { transform: scale(1.025) rotate(-.5deg); }
.tfloor.locked { filter: saturate(.45); }
.tnum { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 50%; font-family: var(--head); font-size: 25px; }
.tname { flex: 1; min-width: 0; }
.tname b { display: block; font-family: var(--head); font-weight: 400; font-size: 24px; line-height: 1.1; }
.tname small { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.tgo { flex: none; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 3px 10px; font-family: var(--head); font-size: 17px; }
.tdoor { background: var(--cream); border: var(--edge); border-radius: 0 0 22px 22px; box-shadow: var(--hard); padding: 14px 18px 18px; text-align: center; }
.tdoor h2 { margin: 0 0 4px; font-size: 25px; color: var(--blue); }
.tdoor p { margin: 0 0 10px; font-size: 19px; font-weight: 600; line-height: 1.25; }
.tanswer { font-family: var(--head); font-size: 24px; color: #1a9441; text-align: center; }
.tanswer[hidden], .tdoor [hidden] { display: none; }
.tlead { text-align: center; color: var(--ink); font-weight: 700; }
.tlead2 { margin: 6px 0 12px; text-align: center; font-weight: 700; }
.tcard { text-align: center; }
.tcard h2 { margin: 0 0 2px; color: var(--blue); }
.tsay { margin: 4px 0 12px; font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pcard { position: relative; display: block; background: #fff; color: var(--ink); border: var(--edge); border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: 4px 5px 0 var(--ink); transition: transform .15s; }
.pcard:hover { transform: rotate(-1.5deg) scale(1.03); }
.pcard img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pcard b { display: block; padding: 6px 8px; font-size: 15px; line-height: 1.15; text-align: center; }
.pcard.locked img { filter: grayscale(.8) brightness(.8); }
.pcard i { position: absolute; font-style: normal; }
.pdone { left: 6px; top: 6px; width: 30px; height: 30px; display: grid; place-items: center; background: #1fa84a; color: #fff; border: 3px solid #fff; border-radius: 50%; font-weight: 700; }
.ptoday { right: 6px; top: 6px; background: var(--sun); border: 3px solid var(--ink); border-radius: 10px; padding: 0 7px; font-family: var(--head); font-size: 15px; }
.plock { left: 50%; top: 38%; transform: translate(-50%, -50%); font-size: 36px; }
.pcomputer { position: relative; z-index: 2; max-width: 500px; margin: 8px auto 0; }
.pmonitor { background: #d9d6ea; border: var(--edge); border-radius: 20px; box-shadow: var(--hard); padding: 12px; }
.pmonitor .timerbar { margin-bottom: 8px; }
.pstand { width: 90px; height: 26px; margin: 0 auto; background: #bdb9d6; border: var(--edge); border-top: 0; }
.pboard { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; background: var(--ink); border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; }
.pboard.whole { gap: 0; }
.ptile { display: block; aspect-ratio: 4 / 3; padding: 0; border: 0; background-color: #fff; background-repeat: no-repeat; cursor: pointer; }
.ptile.sel { outline: 5px solid var(--sun); outline-offset: -5px; position: relative; z-index: 1; filter: brightness(.8); }
.pname { margin: 8px 0 0; font-family: var(--head); font-size: 23px; text-align: center; line-height: 1.1; }
.pkarl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: -6px; position: relative; z-index: 3; }
.pkarl .bubble { margin: 0; max-width: 250px; white-space: normal; font-size: 17px; line-height: 1.25; }
.pkeys { width: 120px; flex: none; }
.wsgrid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; max-width: 460px; margin: 0 auto 12px; }
.wscell { aspect-ratio: 1; padding: 0; background: var(--cream); border: 2px solid var(--ink); border-radius: 7px; font-family: var(--head); font-size: clamp(16px, 4.5vw, 23px); color: var(--ink); cursor: pointer; }
.wscell.pick { background: var(--sun); }
.wscell.found { background: #7ee0a0; }
.wslist { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; }
.wslist span { background: var(--sky2); border: 3px solid var(--ink); border-radius: 10px; padding: 1px 10px; font-weight: 700; }
.wslist span.found { background: #7ee0a0; text-decoration: line-through; }
.cverse { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 14px; }
.cword { display: inline-flex; gap: 2px; align-items: flex-end; }
.ccell { display: inline-flex; flex-direction: column; align-items: center; width: 32px; }
.ccell i { font-style: normal; font-size: 22px; line-height: 1.2; }
.ccell b { display: block; width: 100%; height: 30px; border-bottom: 4px solid var(--ink); font-family: var(--head); font-weight: 400; font-size: 24px; line-height: 30px; color: #1a9441; }
.ccell.now { background: var(--sun); border-radius: 8px; }
.cmark { font-family: var(--head); font-size: 24px; }
.ckeyhead { font-size: 20px; }
.ckey { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 8px; margin: 4px 0 12px; }
.ckey span { background: var(--cream); border: 2px solid var(--ink); border-radius: 9px; padding: 1px 8px; font-weight: 700; }
.ckey i { font-style: normal; }
.tkeys { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 520px; margin: 0 auto; }
.tkey { width: 42px; height: 44px; padding: 0; background: var(--blue); color: #fff; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); font-family: var(--head); font-size: 21px; cursor: pointer; }
.tkey:disabled { background: #cfccdf; color: #807da0; box-shadow: none; cursor: default; }
.tkey.good:disabled { background: #1fa84a; color: #fff; }
.nope { animation: nope .34s; }
@keyframes nope { 25% { transform: translateX(-6px) rotate(-3deg); } 50% { transform: translateX(6px) rotate(3deg); } 75% { transform: translateX(-3px); } }
.mword { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 10px; }
.mcell { width: clamp(28px, 8vw, 42px); height: clamp(38px, 10vw, 50px); display: grid; place-items: center; background: var(--cream); border: 3px solid var(--ink); border-radius: 9px; font-family: var(--head); font-size: clamp(21px, 5.5vw, 29px); }
.mlamps { margin: 0 0 10px; font-size: 25px; min-height: 32px; }
.xnow { min-height: 26px; margin: 2px 0 10px; font-weight: 700; color: var(--ink); }
.xgrid { display: grid; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); gap: 2px; max-width: min(100%, calc(var(--w) * 40px)); margin: 0 auto 12px; }
.xgap { aspect-ratio: 1; }
.xcell { position: relative; aspect-ratio: 1; padding: 0; background: #fff; border: 2px solid var(--ink); border-radius: 4px; cursor: pointer; color: var(--ink); }
.xcell i { position: absolute; left: 2px; top: 0; font-style: normal; font-size: 10px; font-weight: 700; line-height: 1.1; }
.xcell b { font-family: var(--head); font-weight: 400; font-size: clamp(14px, 3.6vw, 21px); }
.xcell.word { background: var(--sky2); }
.xcell.now { background: var(--sun); }
.xclues { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; text-align: left; }
.xclues h3 { margin: 0 0 4px; color: var(--blue); }
.xclue { display: block; width: 100%; padding: 3px 6px; background: none; border: 0; border-radius: 7px; font: inherit; font-size: 16px; text-align: left; color: var(--ink); cursor: pointer; }
.xclue.on { background: var(--sky2); }
.xclue.good::after { content: ' ✓'; color: #1a9441; font-weight: 700; }
@media (max-width: 520px) {
  .tnum { width: 38px; height: 38px; font-size: 21px; }
  .tname b { font-size: 21px; }
  .tkey { width: 30px; height: 38px; font-size: 17px; border-radius: 7px; }
  .tkeys { gap: 3px; }
  .ccell { width: 25px; }
  .ccell i { font-size: 18px; }
  .xclues { grid-template-columns: 1fr; }
  .pkeys { width: 92px; }
  .picplay { display: flex; flex-direction: column; }
  .picplay > .back { order: -3; align-self: flex-start; }
  .picplay > .title { order: -2; }
  .picplay .pkarl { order: -1; margin: 0 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .part { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Parent accounts and site links */
.account .card { margin-bottom: 18px; }
.fh-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.fh-notice { background: #e4f9e4; border: var(--edge); border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.fh-error { background: #ffe3e3; border: var(--edge); border-radius: 14px; padding: 10px 14px; font-weight: 600; margin-top: 12px; }
.fh-error[hidden] { display: none; }
.helpform .fh-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.helpform .fh-check input { width: auto; flex: none; margin-top: 4px; }
.fh-hide { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fh-kid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 10px 0; border-bottom: 2px dashed rgba(0, 0, 0, .12); }
.fh-kidname small { display: inline-block; margin-left: 6px; }
.fh-qr { text-align: center; margin-top: 10px; }
.fh-qr svg { max-width: 100%; height: auto; }
.picgrid { grid-template-columns: repeat(3, minmax(0, 96px)); justify-content: center; }
.who .card { width: 100%; }
.plan .btn[disabled] { opacity: .65; cursor: default; }

/* Footer: colorful buttons, then one quiet line. */
.fh-sitefoot { padding: 18px 16px 24px; text-align: center; }
.fh-footnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fh-footnav a { padding: 7px 16px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); color: #fff; font-family: var(--head); font-size: 19px; line-height: 1.1; text-decoration: none; }
.fh-footnav a:hover { transform: translateY(-2px); }
.fh-footnav a:nth-child(1) { background: var(--red); }
.fh-footnav a:nth-child(2) { background: #1fa84a; }
.fh-footnav a:nth-child(3) { background: var(--blue); }
.fh-footnav a:nth-child(4) { background: var(--grape); }
.fh-footnav a:nth-child(5) { background: var(--sun); color: var(--ink); }
.fh-poweredby { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.fh-poweredby a { color: var(--ink); text-decoration: underline; }
.fh-poweredby a + a { margin-left: 14px; }

/* Plans, first-visit welcome, About */
.plancode { display: block; margin-top: 10px; text-align: center; font-weight: 700; font-size: 15px; text-decoration: underline; }
.welcomelogin a { font-weight: 700; text-decoration: underline; }
.aboutkarl { display: flex; justify-content: center; }
.aboutkarl .karl { height: 220px; }
.aboutpage .letter a { font-weight: 700; text-decoration: underline; }
.aboutpage .sign small { display: block; font-size: 15px; }
.aboutpage > .row { margin-top: 20px; }

/* A real bird, flapping */
.flybird { display: block; width: 50px; height: auto; }
.flywing { transform-box: fill-box; transform-origin: 30% 100%; animation: wingflap .32s ease-in-out infinite alternate; }
@keyframes wingflap { from { transform: rotate(-16deg); } to { transform: rotate(60deg) scaleY(.75); } }

/* Crown */
.gemhow { font-weight: 700; color: var(--grape); margin: 8px 0; }
.kingverse { max-width: 620px; margin: 20px auto 0; padding: 18px 20px; text-align: center; background: #fff8d6; border: var(--edge); border-radius: 20px; box-shadow: var(--hard); }
.kingverse h2 { margin: 0 0 6px; color: var(--red); text-transform: uppercase; }
.kingverse p { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.kingverse small { font-size: 14px; }
.offering { position: relative; width: min(340px, 100%); height: 250px; margin: 0 auto; }
.throneglow { position: absolute; right: -24px; top: 4px; width: 210px; height: 210px; pointer-events: none; border-radius: 50%; background: radial-gradient(#fff3a6, rgba(255, 210, 63, .5) 45%, transparent 70%); animation: throneglow 1.6s ease-in-out infinite alternate; }
@keyframes throneglow { from { opacity: .6; scale: .92; } to { opacity: 1; scale: 1.06; } }
.thronei { position: absolute; right: 18px; bottom: 6px; width: 122px; }
.offerkid { position: absolute; left: 0; bottom: 0; width: 112px; }
.offerkid svg { display: block; width: 100%; height: auto; }
.offercrown { position: absolute; left: 22px; top: 34px; width: 92px; }
.offercrown svg { display: block; width: 100%; height: auto; }
.offer-go .offerkid { animation: offerwalk 2.2s ease-in-out forwards; }
.offer-go .offercrown { animation: offercrown 2.8s ease-in-out forwards; }
.offered .offerkid { left: 72px; }
.offered .offercrown { left: auto; right: 34px; top: 112px; }
@keyframes offerwalk { to { left: 72px; } }
@keyframes offercrown { 75% { left: 94px; top: 34px; } to { left: calc(100% - 126px); top: 112px; } }
@media (prefers-reduced-motion: reduce) { .offer-go .offerkid, .offer-go .offercrown, .throneglow, .flywing { animation-duration: .01s; animation-iteration-count: 1; } }

/* Game start screens show the game behind the instructions */
.screenover.tease { gap: 10px; background: rgba(35, 33, 74, .12); }
.screenover.tease p { padding: 10px 12px; background: rgba(35, 33, 74, .92); border-radius: 14px; font-size: 16px; line-height: 1.25; }
.tosstease { pointer-events: none; opacity: .9; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 3px dashed #d9d6ee; }
.tosstease .tossbook { margin: 10px 0 14px; }
.tthumb { flex: none; width: 58px; height: 46px; background: #fff; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
.tthumb svg { display: block; width: 100%; height: 100%; }
@media (max-width: 520px) { .tthumb { width: 44px; height: 36px; } .fh-footnav a { padding: 6px 11px; font-size: 16px; } .firego { font-size: 12px; line-height: 1.1; } }
/* Logged-in players have a taller stack at the top left, so pages start lower. */
@media (max-width: 1560px) { body.fh-signedin .page { padding-top: 152px; } }
/* Arcade boxes show a picture of each game, grayed out until it is unlocked. */
.cab .screen { position: relative; aspect-ratio: 4 / 3; height: auto; padding: 0; overflow: hidden; }
.cab .screen canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.cab:not(.on) .screen canvas { filter: grayscale(1) brightness(.6); }
.cab .screen i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; font-style: normal; }
.timelist a span { text-decoration: underline; text-underline-offset: 3px; }
/* Picture Puzzle win message sits under the finished picture. */
.pwinbar { margin-top: 14px; padding: 12px 16px 16px; text-align: center; background: #fff; border: var(--edge); border-radius: 20px; box-shadow: var(--hard); }
.pwinbar h2 { margin: 0 0 8px; color: var(--red); font-size: 26px; }
.pwinbody { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 14px; align-items: center; margin-bottom: 12px; text-align: left; font-size: 16px; }
.pwinbody .popcard { grid-row: 1 / span 3; grid-column: 1; width: 120px; margin: 0; }
.tlead a { text-decoration: underline; color: inherit; }
/* Word Search drags count as taps, and the win shows on the Bible Cards page. */
.wsgrid { touch-action: none; user-select: none; -webkit-user-select: none; }
#wsay { font-size: 17px; font-weight: 700; }
.bcard.justwon { outline: 5px solid var(--sun); outline-offset: 2px; animation: cardwiggle 1s ease-in-out 3; z-index: 2; overflow: visible; }
.bcard em { position: absolute; z-index: 3; top: -10px; right: -8px; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--red); color: #fff; font-family: var(--head); font-style: normal; font-size: 15px; }
@keyframes cardwiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-4deg) scale(1.06); } 50% { transform: rotate(4deg) scale(1.06); } 80% { transform: rotate(-2deg) scale(1.03); } }
.seqcount { margin: 12px 0 0; text-align: center; font-family: var(--head); font-size: 20px; }
.cardrow { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 0; }
.cardrow img { min-width: 0; }
.cardarrow { flex: none; width: 48px; height: 64px; padding: 0; background: #fff; color: var(--ink); border: var(--edge); border-radius: 14px; font-family: var(--head); font-size: 34px; line-height: 1; cursor: pointer; }
.cardarrow[hidden] { display: none; }
@media (max-width: 520px) { .cardrow { position: relative; } .cardarrow { position: absolute; z-index: 2; width: 40px; } #cardprev { left: -6px; } #cardnext { right: -6px; } }
/* Mystery Word owls */
.mhow { margin: 12px 0 4px; text-align: center; font-weight: 600; }
.mowls { display: flex; justify-content: center; gap: clamp(4px, 2vw, 12px); margin: 6px 0 4px; }
.mowl { display: block; width: clamp(46px, 15vw, 64px); }
.mowl svg { display: block; width: 100%; height: auto; }
.mowl.gone { opacity: 0; animation: owlfly 1.1s ease-in; }
@keyframes owlfly { 0% { opacity: 1; transform: none; } 30% { opacity: 1; transform: translate(10px, -40px) rotate(-10deg) scale(1.1); } 100% { opacity: 0; transform: translate(90px, -300px) rotate(16deg) scale(.7); } }
.mlost[hidden] { display: none; }
.mlost { text-align: center; }
/* Books in Order: book covers on wooden shelves. Each row is 96px of book and 16px of shelf. */
.bshelf { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 16px 6px; min-height: 112px; padding: 0 8px; margin: 0 0 16px; border: 3px solid var(--ink); border-radius: 10px; background: repeating-linear-gradient(to bottom, #f4e3c4 0 96px, #9a6a35 96px 112px); background-attachment: local; }
.bbook { display: flex; align-items: center; justify-content: center; width: 80px; height: 96px; padding: 4px 4px 4px 10px; color: #fff; background: linear-gradient(to right, rgba(0, 0, 0, .28) 0 6px, transparent 6px), var(--c); border: 2px solid var(--ink); border-radius: 3px 8px 8px 3px; font-family: var(--head); font-size: 12.5px; line-height: 1.1; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.bbook span { display: block; padding: 3px 2px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 3px; width: 100%; }
.bbook:hover:not(:disabled) { transform: translateY(-4px); }
.bbook:disabled { color: #fff; opacity: 1; cursor: default; }
#xready[hidden] { display: none; }
.boardtabs { flex-wrap: wrap; }
.boardtabs a { font-size: 19px; padding: 6px 12px; }
.scoreboard li { grid-template-columns: minmax(0, 1fr) auto; }
.scoreboard a { color: inherit; text-decoration: underline; }
.scoreboard i { font-style: normal; font-weight: 700; }
.boardhead { margin: 0 0 10px; text-align: center; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.badgehelp { margin: 0 0 8px; font-weight: 600; }
.badgehelp a { text-decoration: underline; color: inherit; }
.badgehow { margin-top: 12px; }
.badgehow summary { font-weight: 700; cursor: pointer; }
.badgehow table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 15px; text-align: left; }
.badgehow th, .badgehow td { padding: 6px 8px 6px 0; border-top: 2px solid #e4e2f2; vertical-align: top; }
