@font-face { font-family: Mochibop; font-weight: 400; font-display: swap; src: url(/fonts/Mochibop-Demo.ttf) format("truetype"); }
@font-face { font-family: Mochibop; font-weight: 600 800; font-display: swap; src: url(/fonts/MochibopBold-Demo.ttf) format("truetype"); }
:root {
  /* Christmas: wine-dark ground, Santa red does things, gold marks what matters, fir green means done. */
  --ink: #1a0d0f; --moss: #271518; --lift: #36201f; --line: #54322f; --line2: #7a4f4a; --text: #f8eee6; --muted: #d3bdb2; --white: #fff;
  --red: #c8202f; --red-up: #dc3343; --gold: #f5c04a; --on-gold: #2a1800; --fir: #2c7a4b; --ok: #8fcf8f; --blush: #ff9f95; --bad: #ffb0a6;
  --font: Mochibop, "Trebuchet MS", Arial, sans-serif; --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
* { box-sizing: border-box; margin: 0; }
html { color-scheme: dark; scrollbar-color: #8c2430 var(--ink); -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--text); font: 400 1.0625rem/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: 0; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img, svg, canvas { display: block; max-width: 100%; }
ol, ul { list-style: none; padding: 0; }
h1, h2 { font-weight: 700; line-height: 1.15; text-wrap: balance; color: #fff; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h1 i { font-style: normal; color: var(--gold); }
h2 { font-size: 1.4rem; }
b, strong { font-weight: 700; color: #fff; }
p { max-width: 66ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; text-decoration-color: var(--gold); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 20; background: var(--gold); color: var(--on-gold); padding: .6rem 1rem; } .skip:focus { top: 1rem; }
.loading { padding: 6rem 1.5rem; text-align: center; margin-inline: auto; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1rem; }
.meta { color: var(--muted); font-size: 1rem; }
.ico { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -.28em; }
img[src="/e/paws.svg"] { filter: brightness(0) invert(.82) sepia(1) hue-rotate(275deg) saturate(1.6); }
.pay { vertical-align: -.15em; display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid #0a0a0a; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; line-height: 1.2; min-height: 44px; padding: .5rem 1.15rem; text-decoration: none; transition: background .15s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.btn:hover { background: var(--red-up); transform: translateY(-2px); } .btn:active { transform: none; }
.btn.alt { background: transparent; color: var(--text); border-color: var(--line2); } .btn.alt:hover { background: transparent; border-color: var(--gold); color: #fff; }
.btn.small { min-height: 38px; padding: .3rem .85rem; } .btn.big { font-size: 1.2rem; min-height: 54px; padding: .6rem 1.5rem; } .btn.wide { width: 100%; }
.btn:disabled { background: var(--lift); color: #b79d93; border-color: var(--line); transform: none; cursor: not-allowed; }
.btn.hit { outline: 3px solid var(--gold); outline-offset: 3px; }
.link { background: none; border: 0; padding: .1rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.notice { border: 1px solid #8c4a48; background: #3a191d; border-radius: 10px; padding: .75rem 1rem; }
.notice.bar { margin: 1rem auto 0; width: max-content; max-width: calc(100% - 2rem); }
#toast { position: fixed; left: 50%; bottom: 1.4rem; translate: -50% 160%; z-index: 30; background: var(--gold); color: var(--on-gold); font-weight: 700; padding: .7rem 1.2rem; border-radius: 10px; max-width: calc(100vw - 2rem); width: max-content; transition: translate .35s cubic-bezier(.16, 1, .3, 1); pointer-events: none; visibility: hidden; }
#toast.show { translate: -50% 0; visibility: visible; } #toast.bad { background: var(--blush); color: #2a0d10; }

/* the hand-drawn boxes from abgesetzt.xyz */
.home aside section, .letter, .puzzle, .chapter, .notebook, .boost, .prizes li, .chests li, dialog.loot, .host, .locked, .mini-prizes li, .cabinet { border: 1.5px solid #ff9f954d; border-radius: var(--wobble); background: var(--moss); }

/* navbar */
#top { position: sticky; top: 0; z-index: 20; background: var(--red); border-bottom: 3px solid #0a0a0a; } #top:empty { display: none; }
#top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='13'%3E%3Cpath d='M0 0h120v4c-8 0-9 7-17 7s-8-6-16-6-10 8-20 8-9-7-18-7-9 4-17 4-9-6-16-6-8 5-16 5V0z' fill='%23fff'/%3E%3C/svg%3E") repeat-x; pointer-events: none; }
.bar { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); min-height: 64px; padding: .3rem max(1.25rem, (100vw - 1320px) / 2); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.55rem; color: #fff; text-decoration: none; } .brand .cat { width: 50px; height: 57px; margin-bottom: -6px; transition: transform .3s cubic-bezier(.16, 1, .3, 1); } .brand:hover .cat { transform: translateY(-4px) rotate(-5deg); }
.links { display: flex; align-items: center; gap: clamp(.1rem, 1vw, .7rem); } .nl { position: relative; display: flex; align-items: center; gap: .45rem; background: none; border: 0; color: #ffe9e4; text-decoration: none; padding: .6rem .75rem; font-size: 1.08rem; min-height: 44px; } .nl:hover { color: #fff; } .nl::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: .25rem; height: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5C20 2 36 6 52 4S84 2 98 5' fill='none' stroke='%23ffd35e' stroke-width='3.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; scale: 0 1; transform-origin: 0 50%; transition: scale .3s cubic-bezier(.16, 1, .3, 1); } .nl:hover::after { scale: .5 1; } .nl.on { color: #fff; font-weight: 700; } .nl.on::after { scale: 1 1; } .chev { width: 13px; transition: rotate .25s; } [aria-expanded="true"] .chev { rotate: 180deg; }
.todo:not(section) { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ffd35e; border: 2px solid #0a0a0a; flex: none; }
.drop { position: relative; } .menu { position: absolute; top: calc(100% + 16px); left: 0; min-width: 350px; background: #fff; color: #2a1114; border: 3px solid #0a0a0a; border-radius: 18px 14px 20px 13px; padding: .5rem; z-index: 30; box-shadow: 0 14px 28px -8px #0009; } .menu.right { min-width: 260px; left: auto; right: 0; }
.mrow { display: flex; align-items: center; gap: .8rem; width: 100%; background: none; border: 0; border-radius: 10px; padding: .55rem .8rem; min-height: 48px; text-align: left; text-decoration: none; color: #2a1114; } .mrow:hover, .mrow:focus-visible { background: #fde4dc; } .mrow.on { font-weight: 700; } .mrow .ico { width: 28px; height: 28px; flex: none; } .mrow span { flex: 1; } .mrow small { font-size: .95rem; color: #7a4a45; } .mrow .ok { color: #1f6b3d; font-weight: 700; } .menu img[src="/e/paws.svg"] { filter: none; } .mrow .todo { background: var(--red); }
.purse { display: flex; gap: 1.1rem; margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; } .purse > span { display: flex; align-items: center; gap: .4rem; } .purse b { color: #fff; } .purse img[src="/e/paws.svg"] { filter: brightness(0) invert(1); }
.mebtn { display: flex; align-items: center; gap: .5rem; background: #0000; border: 0; color: #fff; min-height: 48px; padding: 0; min-width: 0; } .mebtn .cat { width: 42px; height: 48px; } .mebtn .nametag { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mebtn:hover .nametag { text-decoration: underline; text-decoration-color: #ffd35e; text-underline-offset: .2em; }
#village { display: none; } .out #village { display: none !important; }
.nametag { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .whoami .link { color: var(--muted); }
.nametag { font-weight: 700; padding: .05rem .4rem; border-radius: 6px; color: #fff; }
.frame-gold { border: 2px solid #f0b93a; color: #ffe08a; } .frame-holly { border: 2px solid var(--gold); color: var(--gold); }
.frame-candy { border: 3px solid transparent; border-image: repeating-linear-gradient(45deg, #ff9f95 0 5px, #fff 5px 10px) 3; border-radius: 0; }
#village { border-bottom: 1px solid var(--line); background: var(--ink); } #village:empty { display: none; }
.tabs { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; max-width: 1320px; margin: 0 auto; padding: 0 1rem; justify-content: center; }
.tab { display: flex; align-items: center; gap: .5rem; padding: .7rem .85rem .65rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; position: relative; white-space: nowrap; } .tab:hover { color: #fff; } .tab.on { color: #fff; border-color: var(--gold); font-weight: 700; } .tab .ico { width: 24px; height: 24px; }
.todo-dot::after { content: ""; position: absolute; top: .55rem; left: 2rem; width: 10px; height: 10px; border-radius: 50%; background: var(--blush); border: 2px solid var(--ink); }
footer { display: none; border-top: 1px solid var(--line); text-align: center; padding: 1.3rem; font-size: .95rem; color: var(--muted); }

/* home */
.home { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 720px) minmax(230px, 290px); justify-content: center; gap: clamp(1rem, 2.5vw, 2.6rem); padding: 1.6rem clamp(1rem, 2.5vw, 2rem) 2rem; align-items: start; }
.home aside { display: grid; gap: 1.3rem; } .home aside section { padding: 1.2rem 1.3rem 1.3rem; position: relative; } .home .right { position: sticky; top: 96px; }
.income { text-align: center; margin: 0 auto .4rem; color: var(--muted); }
.todo ul { margin-top: .5rem; } .todo a { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; text-decoration: none; } .todo a:hover span { color: var(--gold); } .todo .ico { width: 26px; height: 26px; flex: none; } .todo small { margin-left: auto; color: var(--blush); font-size: .95rem; white-space: nowrap; } .todo .done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); } .todo .btn { margin-top: .8rem; }
.lights { display: flex; justify-content: space-between; margin: 1rem .3rem .8rem; border-top: 2px solid #7a4f4a; } .lights span { width: 20px; height: 26px; margin-top: -2px; border-radius: 40% 40% 50% 50%; background: var(--lift); border: 2px solid #7a4f4a; } .lights .on { background: var(--c); border-color: var(--c); }
progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); } progress::-webkit-progress-bar { background: var(--line); } progress::-webkit-progress-value { background: var(--gold); } progress::-moz-progress-bar { background: var(--gold); } .goal .btn { margin-top: .8rem; }
.panel { display: grid; gap: .7rem; } .panel .close { position: absolute; right: 1.3rem; top: 1.1rem; color: var(--muted); } .panel h2 { padding-right: 3.6rem; }
.legend { display: grid; gap: .35rem; } .legend li { display: flex; gap: .7rem; align-items: center; } .legend .ico { width: 26px; height: 26px; } .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #f5c04a80; background: #3a1d1ecc; }
.holder { display: flex; gap: .9rem; align-items: center; } .holder .cat { width: 68px; height: 68px; background: var(--pc); border-radius: 50%; padding: 5px; flex: none; } .holder div { display: grid; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; } .holder span { color: var(--muted); }
.news ul { margin-top: .4rem; } .news li { padding: .4rem 0; border-top: 1px solid var(--line); line-height: 1.4; overflow-wrap: anywhere; color: var(--muted); } .news li:first-child { border: 0; } .news .me { color: #fff; }
.tree { display: block; width: 100%; height: auto; max-height: max(960px, calc(100vh + 120px)); margin: 0 auto; overflow: visible; }
.tile { cursor: pointer; outline: none; scroll-margin-top: 150px; } .free { fill: #0f2a1bd9; stroke: #f5c04a66; stroke-width: 2; } .free.gift { stroke: var(--blush); } .free.candle, .free.star { stroke: #ffe08a; }
.ring { fill: none; stroke: none; stroke-width: 4; } .tile.reach .free { fill: #1f6b3d; stroke: var(--gold); } .tile.reach .ring { stroke: #fff; stroke-dasharray: 6 9; stroke-linecap: round; } .tile.mine .ring { stroke: #fff; stroke-dasharray: none; stroke-width: 3; }
.tile:hover .ring { stroke: var(--gold); stroke-dasharray: none; stroke-width: 6; } .tile.sel .ring, .tile:focus-visible .ring { stroke: #fff; stroke-dasharray: none; stroke-width: 8; }
.out .tile { pointer-events: none; }
.tile.pop > * { animation: pop .6s cubic-bezier(.16, 1, .3, 1); } .tile.shake > * { animation: shake .35s; }
@keyframes pop { from { scale: .2; rotate: -40deg; } 55% { scale: 1.25; } } @keyframes shake { 25% { translate: -6px 2px; } 60% { translate: 6px -2px; } }

/* welcome */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; max-width: 1180px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) 1.5rem 2rem; align-items: center; }
.welcome h1 { font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; } .lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; margin: 1rem 0 1.5rem; } .welcome .btn { margin-bottom: .9rem; } .welcome .notice { margin-bottom: 1.1rem; }
.welcome h2 { margin-top: 2rem; } .mini-prizes { display: grid; gap: .5rem; margin-top: .9rem; } .mini-prizes li { display: flex; align-items: center; gap: .9rem; padding: .4rem 1rem .4rem .7rem; max-width: 24rem; } .mini-prizes svg { width: 40px; height: 42px; flex: none; }

/* places */
.place { width: min(1120px, 100% - 2.5rem); margin: 0 auto; padding: clamp(1.6rem, 4vw, 3rem) 0 4rem; }
.place-head { margin-bottom: 1.8rem; } .place-head p { margin-top: .5rem; color: var(--muted); font-size: 1.1rem; }
.place h2.sub { margin: 2.6rem 0 1rem; }
.locked { padding: 1.6rem 1.8rem; display: grid; gap: 1rem; justify-items: start; }
.calendar { position: relative; border-radius: 18px; overflow: hidden; border: 1.5px solid var(--line); background: #12080a; } .cal-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doors { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; gap: clamp(.5rem, 1.4vw, 1.1rem); padding: clamp(.8rem, 3vw, 2.4rem); }
.door { position: relative; aspect-ratio: 1; padding: 0; border: 2px dashed #ffffff70; border-radius: 10px; background: #1a0d0f8c; color: #fff; display: grid; place-items: center; font-weight: 700; } .door.big { grid-column: span 2; grid-row: span 2; } .door:nth-child(3n) { rotate: -1.4deg; } .door:nth-child(3n+1) { rotate: 1deg; }
.door-n { font-size: clamp(1.4rem, 3.6vw, 2.7rem); text-shadow: 0 2px 8px #000; } .big .door-n { font-size: clamp(2.4rem, 7vw, 5rem); }
.door.missed { background: #1a0d0fc4; border-color: #ffffff2e; color: #b39c93; } .door.missed .door-n { text-decoration: line-through; }
.door.open { border: 4px solid #fff; background: #fff; border-radius: 6px; } .door-in { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; } .door.open .door-n { position: absolute; left: .45rem; bottom: .15rem; font-size: 1.2rem; z-index: 1; }
.door.today { background: var(--red); border: 4px solid #fff; color: #fff; animation: breathe 1.4s ease-in-out infinite alternate; transform-origin: 0 50%; } .door.today .door-n { text-shadow: none; } .door.today:hover { background: var(--red-up); } .door.opening { animation: swing .5s forwards; }
button.door:not(.today):hover { border-color: var(--blush); } .door.has:not(.open) { border-color: var(--blush); } .tag { position: absolute; z-index: 2; top: -.55rem; right: -.45rem; display: flex; align-items: center; gap: .3rem; background: var(--blush); color: #2a0d10; font-size: .85rem; line-height: 1; padding: .3rem .55rem .25rem .35rem; border-radius: 8px; rotate: 4deg; } .tag .prize-art { width: 20px; height: 20px; }
@keyframes breathe { to { transform: scale(1.05); } } @keyframes swing { to { transform: perspective(500px) rotateY(-100deg); } }
.special { display: flex; align-items: center; gap: 1.4rem; border: 1.5px solid var(--blush); border-radius: var(--wobble); background: #3a191d; padding: 1.3rem 1.8rem; margin-bottom: 1.4rem; } .place section.special h2 { margin: 0; } .special > div { flex: 1; } .special > .prize-art { width: 64px; height: 64px; flex: none; } .in { color: var(--ok); font-weight: 700; }
.gives ul { display: grid; gap: .8rem; margin-top: 1rem; } .gives li { display: flex; gap: 1.1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); } .gives .prize-art { width: 44px; height: 44px; } .gives li > div { display: grid; flex: 1; line-height: 1.45; color: var(--muted); } .gives i { color: var(--ok); font-style: normal; } .gives .won b { color: var(--ok); }
.bonus { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; display: grid; justify-items: center; gap: .3rem; } .bonus > b { color: var(--blush); font-size: 1.15rem; } dialog .prize-art { width: 80px; height: 80px; margin: 0 auto .8rem; } dialog p { margin-inline: auto; } .wonbar { background: var(--blush); color: #2a0d10; border-radius: 10px; padding: .6rem 1rem; margin: 0 auto .8rem; text-align: center; } .wonbar b { color: inherit; }
dialog.loot.how { text-align: left; } .how h2 { font-size: 1.8rem; } .how ol { margin-top: 1rem; display: grid; gap: .7rem; } .how li { color: var(--muted); } .how b { color: var(--gold); } .how .row { justify-content: flex-start; } .panel > .link { justify-self: start; color: var(--gold); }
.streak { margin-top: 3rem; } .streak > p { color: var(--muted); } .chests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; } .chests li { padding: 1.2rem; display: grid; justify-items: center; text-align: center; gap: .25rem; align-content: start; } .chests .gift-art { width: 96px; filter: saturate(.15) brightness(.6); } .chests .ready .gift-art, .chests .done .gift-art { filter: none; } .chests b { font-size: 1.15rem; } .chests i { color: var(--ok); font-style: normal; } .chests .ready { border-color: var(--gold); }
dialog.loot { margin: auto; color: var(--text); padding: 1.8rem 2rem; max-width: min(640px, calc(100vw - 2rem)); text-align: center; background: var(--moss); border-radius: 18px; } dialog::backdrop { background: #0d0506e0; } dialog .row { justify-content: center; } .loot-row { display: flex; justify-content: center; gap: 1.2rem; margin: 1.2rem 0 .8rem; align-items: flex-start; flex-wrap: wrap; } .loot-row .card { width: 200px; } .loot-item { width: 190px; display: grid; gap: .35rem; justify-items: center; } .loot-pay { font-size: 1.35rem; margin-inline: auto; }
.flip { animation: flip .9s cubic-bezier(.16, 1, .3, 1); } @keyframes flip { from { transform: perspective(700px) rotateY(180deg) scale(.6); } }
.friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .7rem; margin: 1rem 0; max-height: 50vh; overflow: auto; } .friends button { background: var(--lift); border: 1px solid var(--line); border-radius: 12px; padding: .6rem; display: grid; justify-items: center; overflow-wrap: anywhere; } .friends .cat { width: 62px; } .friends button:hover { border-color: var(--gold); }
.card { background: var(--moss); border: 2px solid var(--line); border-radius: 12px; padding: 7px 7px 10px; position: relative; } .card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; height: auto; } .card figcaption { display: grid; text-align: center; line-height: 1.3; padding-top: .5rem; font-size: .95rem; color: var(--muted); }
.r1 { border-color: #8fd0ff !important; } .r2 { border-color: var(--blush) !important; } .r3 { border-color: #ffd34d !important; } .card.r1 figcaption { color: #8fd0ff; } .card.r2 figcaption { color: var(--blush); } .card.r3 figcaption { color: #ffd34d; }
.card.unknown { border-style: dashed; background: none; display: grid; place-items: center; align-content: center; min-height: 170px; opacity: .6; } .unknown span { font-size: 2.6rem; font-weight: 700; } .unknown b { font-weight: 400; color: var(--muted); } .give { position: absolute; top: 12px; right: 12px; }

.letters { display: grid; gap: 1.3rem; } .letter { padding: 1.6rem 1.8rem; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1.6rem; } .letter:nth-child(odd) { rotate: -.25deg; } .letter:nth-child(even) { rotate: .25deg; } .letter.solved { border-color: #f5c04a80; }
.stamp { display: grid; justify-items: center; gap: .6rem; align-self: start; font-size: .95rem; } .stamp-ico { width: 66px; height: 66px; } .stamp .pay { flex-wrap: wrap; justify-content: center; white-space: normal; } .letter.out .stamp { opacity: .4; }
.riddle-text { font-size: 1.2rem; line-height: 1.55; margin: .5rem 0 .2rem; overflow-wrap: anywhere; } .ask { display: flex; gap: .6rem; max-width: 30rem; margin: .9rem 0 .6rem; } input, select { border: 1px solid #7a4f4a; border-radius: 8px; background: var(--ink); padding: .5rem .85rem; width: 100%; min-width: 0; min-height: 44px; caret-color: var(--gold); } input::placeholder { color: #b79d93; } input:focus, select:focus { border-color: var(--gold); outline-offset: 0; }
.answer { font-weight: 700; font-size: 1.6rem; color: var(--ok); text-transform: capitalize; margin: .4rem 0 .2rem; }
.more { margin-top: 2rem; } summary { cursor: pointer; font-weight: 700; } summary::marker { color: var(--gold); } .more dt { margin-top: .9rem; max-width: 64ch; color: var(--muted); } .more dd { margin: 0; font-weight: 700; color: var(--gold); text-transform: capitalize; } .more ul { margin-top: .6rem; }

.puzzle { padding: clamp(.9rem, 2.5vw, 2rem); overflow: hidden; border-radius: 18px; } .puzzle button:not(.btn) { background: none; border: 0; padding: 0; } .dead button { cursor: default; } .puzzle-foot { margin-top: 1rem; color: var(--muted); } .em { width: 100%; height: auto; aspect-ratio: 1; }
.hunt, .odd, .shelf { display: grid; grid-template-columns: repeat(var(--c), 1fr); } .hunt button:hover .em, .odd button:hover .em { filter: brightness(1.15); } .odd { gap: .8rem; padding: .4rem; } .hit { outline: 3px solid var(--gold) !important; outline-offset: 3px; border-radius: 12px; } .emoji { font-size: clamp(2.2rem, 7vw, 4.2rem); line-height: 1.4; }
.choices { justify-content: center; } .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; } .shelf { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .5rem; gap: .15rem; } .shelf span { display: block; } .shelf .em { padding: 13%; } .shelf > * { border-radius: 10px; aspect-ratio: 1; } .shelf .marked { box-shadow: inset 0 0 0 2px var(--blush); background: #4a2226 !important; } .pz-diff > .btn { display: flex; margin: 0 auto; } .tangle { width: 100%; }
.shadow-target { width: 190px; margin: 0 auto 1.2rem; } .shadows { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; } .shadows button { background: var(--gold) !important; border-radius: 12px; padding: .6rem !important; } .shadows button:hover { background: var(--blush) !important; } .shadows .hit { background: #fff !important; }

.game-info { font-weight: 700; padding: .8rem; } .memory { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; width: min(100%, 620px); padding: 0 .8rem .9rem; } .mem { position: relative; aspect-ratio: 1; border: 0; background: none; padding: 0; } .mem > span { position: absolute; inset: 0; border: 1.5px solid #ff9f9566; border-radius: 12px; backface-visibility: hidden; transition: transform .35s; display: grid; place-items: center; } .mem-back { background: var(--lift) url(/e/gift.svg) center / 42% no-repeat; } .mem-face { background: var(--blush); transform: rotateY(180deg); padding: 8%; } .mem-face .cat { height: 100%; } .mem.up .mem-back { transform: rotateY(180deg); } .mem.up .mem-face { transform: none; } .mem.ok .mem-face { background: var(--gold); }
.slide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: min(100% - 1.6rem, 460px); margin-bottom: 1rem; } .slide button { aspect-ratio: 1; border: 0; border-radius: 8px; background-size: 300% 300%; background-color: var(--lift); } .slide .gap { visibility: hidden; }

.case { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.8rem; align-items: start; } .chapter, .notebook { padding: 1.6rem 1.8rem; } .chapter h2 { font-size: 1.6rem; } .scene { margin: .8rem 0; color: var(--muted); } .notebook { border-color: #f5c04a66; rotate: .4deg; } .notebook ul { margin-top: .5rem; } .notebook li { padding: .5rem 0; border-top: 1px solid var(--line); line-height: 1.45; } .clue { color: var(--ok); margin-top: .8rem; }
.pages { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; } .pages button { width: 40px; height: 40px; border: 1px solid #7a4f4a; border-radius: 8px; background: none; padding: 0; } .pages .done { border-color: var(--gold); color: var(--gold); } .pages .on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); font-weight: 700; }
.accuse { display: grid; gap: .8rem; max-width: 24rem; margin-top: 1rem; justify-items: start; } .accuse label { display: grid; width: 100%; } .suspects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; } .suspects li { display: grid; text-align: center; line-height: 1.4; align-content: start; font-size: .98rem; color: var(--muted); } .suspects img { width: 100%; height: auto; aspect-ratio: .85; object-fit: cover; border-radius: 12px; margin-bottom: .6rem; } .suspects li:nth-child(1) img { object-position: 50% 90%; } .suspects li:nth-child(2) img { object-position: 38% 50%; }

.boosts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; } .boost { padding: 1.1rem 1.3rem; display: grid; grid-template-columns: 46px 1fr; gap: .6rem 1rem; align-items: center; align-content: start; } .boost-ico { width: 46px; height: 46px; } .boost div { display: grid; line-height: 1.4; } .boost span { color: var(--muted); } .boost .btn { grid-column: 2; justify-self: start; }
.place section > h2 { margin-top: 2.6rem; } .place .host { margin-top: 1.6rem; padding: 1.4rem 1.8rem 1.8rem; } .place .host > h2 { margin-top: 0 !important; } .wares { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.4rem 1rem; margin-top: 1rem; } .wares li { display: grid; gap: .15rem; justify-items: center; text-align: center; align-content: start; line-height: 1.4; } .wares li > span { font-size: .95rem; color: var(--muted); } .wares .btn { margin-top: .4rem; } .wares i { font-style: normal; color: var(--ok); }
.item-art { width: 100%; aspect-ratio: 1.15; border: 1.5px solid var(--line); border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--moss); margin-bottom: .4rem; } .item-art .wear { width: 54%; height: auto; } .item-art .room-thumb { width: 100%; height: 100%; object-fit: cover; } .frame-demo { display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; aspect-ratio: 1.8; }

.wardrobe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.4rem; align-items: start; } .ward-left { position: sticky; top: 96px; }
.portrait { position: relative; width: 100%; aspect-ratio: 1; border: 1.5px solid #ff9f9566; border-radius: 18px; overflow: hidden; touch-action: none; user-select: none; } .room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; } .portrait .cat { position: absolute; left: 50%; bottom: 5%; height: 82%; translate: -50% 0; filter: drop-shadow(0 8px 14px #000a); overflow: visible; } .portrait [data-slot] { cursor: grab; } .portrait [data-slot]:active { cursor: grabbing; } .portrait .grip { outline: 1px dashed #fff; outline-offset: 1px; } .nameplate { position: absolute; left: .8rem; top: .8rem; background: #1a0d0fd9; border-radius: 8px; padding: .2rem .5rem; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .heart { position: absolute; bottom: 60%; animation: float 1.2s forwards; pointer-events: none; } @keyframes float { to { transform: translateY(-110px); opacity: 0; } }
.sliders { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: center; margin-top: 1rem; } .slider { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: center; color: var(--muted); } input[type="range"] { min-height: 28px; padding: 0; border: 0; background: none; accent-color: var(--gold); }
.ctabs { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; border-bottom: 1px solid var(--line); } .ctabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: .4rem 0 .5rem; color: var(--muted); } .ctabs button:hover { color: #fff; } .ctabs .on { color: #fff; border-color: var(--gold); font-weight: 700; } .shelfbox { padding-top: 1.1rem; } .shelfbox h3 { font-size: 1.1rem; margin: 1.3rem 0 .2rem; color: #fff; } .shelfbox .meta { margin-top: .9rem; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; } .opt { position: relative; aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 12px; background: var(--moss); padding: 9px; display: grid; place-items: center; overflow: hidden; font-size: .95rem; transition: border-color .15s; } .opt:hover:not(:disabled) { border-color: #b98a80; } .opt svg, .opt img { width: 100%; height: 100%; object-fit: contain; min-height: 0; } .opt.on { border: 2.5px solid var(--gold); } .cats .opt { background: #40282a; padding: 4px; } .cats .opt.on { background: #5a3a18; } .lock { cursor: not-allowed; } .lock > * { filter: grayscale(1) brightness(.5); opacity: .55; } .rooms .opt { padding: 0; aspect-ratio: 1.25; } .thumb { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; } .tints .opt.on { border: 3px solid #fff; outline: 2px solid var(--gold); } .tints .opt:disabled { opacity: .3; cursor: not-allowed; } .tints .x { color: #1a0d0f; font-weight: 700; } .opt .frame-demo { width: 60px; font-size: 1.1rem; }
.bg-c_mint { background: #4f9d68; } .bg-c_pink { background: #f4b2d8; } .bg-c_lilac { background: #b79cf5; } .bg-c_sky { background: #8fd0ff; } .bg-c_butter { background: #ffe08a; } .bg-c_peach { background: #ffb07a; } .bg-c_red { background: #c9323f; } .bg-c_ink { background: #1a2233; } .bg-p_dots { background: #2c4a5e radial-gradient(circle, #fff 12%, transparent 13%) 0 0 / 34px 34px; } .bg-p_candy { background: repeating-linear-gradient(45deg, #d93a4a 0 22px, #fff 22px 44px); } .bg-p_check { background: repeating-linear-gradient(90deg, #0006 0 26px, transparent 26px 52px), repeating-linear-gradient(0deg, #0006 0 26px, transparent 26px 52px), #b3263a; }
.mini { position: relative; width: 84px; height: 84px; flex: none; border-radius: 12px; overflow: hidden; border: 3px solid var(--pc); } .mini .cat { position: absolute; left: 50%; bottom: 2%; height: 88%; width: auto; translate: -50% 0; background: none; border-radius: 0; padding: 0; } .item-art .room-thumb { display: block; } .item-art span.room-thumb { width: 100%; height: 100%; }
.hdays { display: grid; grid-template-columns: repeat(12, 1fr); gap: .5rem; margin: 1.2rem 0; } .hdays button { width: 100%; aspect-ratio: 1; border: 1px solid #7a4f4a; border-radius: 8px; background: none; padding: 0; position: relative; } .hdays button:disabled { opacity: .3; cursor: default; } .hdays .has { border-color: var(--blush); color: var(--blush); } .hdays .on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); } .hdays .prize-art { position: absolute; right: -5px; top: -7px; width: 22px; height: 22px; }
.dayform { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; } .dayform h3, .dayform .row, .dayform .only { grid-column: 1 / -1; } .dayform .only { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; } .dayform label { display: grid; gap: .25rem; color: var(--muted); } .draws li { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem 0; border-top: 1px solid var(--line); } .draws { margin-top: 1.4rem; } .draws div { display: grid; line-height: 1.45; color: var(--muted); } .bench { margin-top: .8rem; } .bench li { display: flex; justify-content: space-between; padding: .5rem 0; border-top: 1px solid var(--line); } .hp-art { position: relative; width: 76px; flex: none; } .hp-art .prize-art { position: absolute; right: -6px; bottom: -4px; width: 34px !important; height: 34px !important; background: var(--ink); border-radius: 50%; padding: 5px; }
.album > p { color: var(--muted); } .cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1rem; }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: .6rem; margin-top: 1rem; } .podium li { flex: 1 1 0; max-width: 190px; display: grid; justify-items: center; text-align: center; min-width: 0; } .pod-cat { width: 78%; } .p1 .pod-cat { width: 100%; } .podium .nametag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .podium .me .nametag { color: var(--gold); } .block { width: 100%; height: var(--h); margin-top: .5rem; border-radius: 10px 10px 0 0; display: grid; place-items: start center; font-size: 2.2rem; line-height: 1.8; background: var(--lift); } .block b { color: inherit; } .p1 .block { background: #ffd34d; color: #2b2000; font-size: 3.4rem; } .p2 .block { background: #c9d5de; color: #1d262c; } .p3 .block { background: #d8905a; color: #2b1505; } .empty { color: var(--muted); padding-bottom: .4rem; }
.prizes { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding-top: 1.6rem; } .prizes li { padding: 1.2rem 1.4rem; display: flex; gap: 1.3rem; align-items: center; grid-column: span 3; } .prizes .p1 { grid-column: span 6; border-color: #ffd34d80; } .gift-box { position: relative; flex: none; width: 112px; } .gift-art { width: 100%; } .gift-box .prize-art { position: absolute; right: -10px; bottom: -4px; width: 46px; height: 46px; background: var(--ink); border: 1.5px solid var(--line); border-radius: 50%; padding: 8px; } .p1 .gift-box { width: 170px; } .p1 .gift-box .prize-art { width: 60px; height: 60px; } .prizes li > div { display: grid; line-height: 1.45; color: var(--muted); } .prizes b { font-size: 1.25rem; } .prizes .p1 b { font-size: 1.9rem; line-height: 1.3; } .place-no { color: var(--gold); }
.rest { margin-top: 2rem; } .rest li { display: flex; gap: 1rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line); } .rest .cat { width: 42px; height: 48px; } .rest .nametag { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rk { width: 2ch; text-align: right; color: var(--muted); } .rest li > span { color: var(--muted); } .rest .nametag { color: #fff; } .rest b { font-variant-numeric: tabular-nums; min-width: 4.2rem; text-align: right; } .rest .me .nametag { color: var(--gold); }
.rules li { padding: .35rem 0; color: var(--muted); } .host { padding: .4rem 1.8rem 1.8rem; margin-top: 3rem; border-radius: 18px; } .host h2 { margin-top: 1.2rem !important; } .host > p { color: var(--muted); } .prow { display: flex; gap: 1.1rem; padding: 1rem 0; border-top: 1px solid var(--line); align-items: center; } .prow > div { flex: 1; display: grid; grid-template-columns: 3rem 9rem 1fr; gap: .5rem; align-items: center; } .prow > div input:last-child { grid-column: 1 / -1; } .hp-art .prize-art { width: 52px; height: 52px; } .host > .btn { margin-top: .8rem; }
.credits { width: min(1000px, 100% - 2.5rem); margin: 0 auto; padding: 3rem 0; } .credits li { padding: .45rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; } .credits ul { margin-top: 1.4rem; } .credits h2 { margin-top: 2rem; }

@media (max-width: 1100px) { .home { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mid { grid-column: 1 / -1; grid-row: 1; } .right { position: static; } .suspects { grid-template-columns: repeat(3, 1fr); } .cards { grid-template-columns: repeat(4, 1fr); } .boosts { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .home { grid-template-columns: minmax(0, 1fr); padding: 1rem 1rem 1.5rem; } .mid { grid-row: auto; } .right { order: 1; } .left { order: 2; }
  .panel:has(.close) { position: fixed !important; left: .6rem; right: .6rem; bottom: .6rem; z-index: 12; box-shadow: 0 -6px 40px #000c; gap: .45rem; padding: 1rem 1.1rem !important; border-radius: 16px !important; }
  .welcome { grid-template-columns: 1fr; gap: 1rem; padding-top: 2rem; } .place { width: calc(100% - 2rem); } .doors { grid-template-columns: repeat(4, 1fr); } .tag { font-size: 0; gap: 0; padding: .25rem; } .special { flex-wrap: wrap; } .ward-left { position: static; } .sliders { grid-template-columns: 1fr; gap: .4rem; } .hdays { grid-template-columns: repeat(6, 1fr); } .dayform, .dayform .only { grid-template-columns: 1fr 1fr; } .chests { grid-template-columns: 1fr 1fr; }
  .letter { grid-template-columns: 1fr; gap: .9rem; padding: 1.3rem; border-radius: 16px; } .stamp { grid-template-columns: auto auto; align-items: center; justify-self: start; } .stamp-ico { width: 40px; height: 40px; }
  .case, .wardrobe { grid-template-columns: minmax(0, 1fr); } .shadows { grid-template-columns: repeat(3, 1fr); } .pair { grid-template-columns: 1fr; } .cards, .suspects, .wares { grid-template-columns: repeat(2, 1fr); }
  .podium { gap: .25rem; } .podium .nametag { font-size: .85rem; padding: 0 .1rem; } .pod-stars { font-size: .9rem; } .block { font-size: 1.4rem; } .p1 .block { font-size: 2rem; } .prizes li { grid-column: 1 / -1 !important; border-radius: 16px; } .gift-box { width: 84px; } .p1 .gift-box { width: 112px; } .p1 .gift-box .prize-art { width: 46px; height: 46px; } .prizes .p1 b { font-size: 1.45rem; }
  .prow > div { grid-template-columns: 3rem 1fr; } .prow > div input { grid-column: 1 / -1; } .rest li > span:nth-of-type(3) { display: none; } .odd { gap: .3rem; padding: 0; } .chapter, .notebook { padding: 1.3rem; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* dice, pranks, four in a row */
.tile.foe .ring { stroke: #ff6b7a; stroke-width: 6; } .tile.buddy .ring { stroke: var(--gold); stroke-width: 6; stroke-dasharray: 6 9; stroke-linecap: round; } .tile.src .ring { stroke: #fff; stroke-width: 7; stroke-dasharray: none; }
.placerow { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; } .placerow .btn { flex: 1; padding-inline: .7rem; } .stepper { display: flex; align-items: center; gap: .5rem; } .stepper b { min-width: 1.6ch; text-align: center; font-size: 1.15rem; } .stepper button:not(.link) { width: 36px; height: 36px; border: 1px solid #7a4f4a; border-radius: 8px; background: none; line-height: 1; } .stepper button:disabled { opacity: .35; } .btn.alt.on { border-color: var(--gold); color: var(--gold); }
.versus b { color: var(--gold); } .sources { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: var(--muted); } .sources button { border: 1px solid #7a4f4a; border-radius: 8px; background: none; padding: .2rem .6rem; } .sources .on { border-color: var(--gold); color: var(--gold); } .sources button:disabled { opacity: .4; }
.fight { border-block: 1px solid var(--line); padding: .8rem 0; display: grid; gap: .6rem; } .round { display: flex; justify-content: space-between; } .dice { display: flex; gap: .35rem; } .die { width: 38px; height: 38px; border-radius: 9px; background: var(--gold); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 6px; animation: tumble .5s cubic-bezier(.16, 1, .3, 1); } .def .die { background: var(--blush); } .die i { width: 7px; height: 7px; border-radius: 50%; background: #1a0d0f; place-self: center; } .fight p b { color: var(--gold); }
@keyframes tumble { from { transform: rotate(-200deg) scale(.4); } }
.die[data-n="1"] i { grid-area: 2 / 2; } .die[data-n="2"] i:nth-child(1), .die[data-n="3"] i:nth-child(1), .die[data-n="4"] i:nth-child(1), .die[data-n="5"] i:nth-child(1), .die[data-n="6"] i:nth-child(1) { grid-area: 1 / 1; } .die[data-n="2"] i:nth-child(2), .die[data-n="3"] i:nth-child(2), .die[data-n="4"] i:nth-child(2), .die[data-n="5"] i:nth-child(2), .die[data-n="6"] i:nth-child(2) { grid-area: 3 / 3; } .die[data-n="3"] i:nth-child(3), .die[data-n="5"] i:nth-child(5) { grid-area: 2 / 2; } .die[data-n="4"] i:nth-child(3), .die[data-n="5"] i:nth-child(3), .die[data-n="6"] i:nth-child(3) { grid-area: 1 / 3; } .die[data-n="4"] i:nth-child(4), .die[data-n="5"] i:nth-child(4), .die[data-n="6"] i:nth-child(4) { grid-area: 3 / 1; } .die[data-n="6"] i:nth-child(5) { grid-area: 2 / 1; } .die[data-n="6"] i:nth-child(6) { grid-area: 2 / 3; }
.onme { display: grid; gap: .5rem; margin-bottom: .8rem; } .onme li { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; background: #3a191d; border: 1.5px solid var(--blush); border-radius: 12px; padding: .6rem 1rem; } .onme div { flex: 1; min-width: 12rem; } .pranks { text-align: left; margin-top: .8rem; } .pranks li { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--line); } .pranks div { display: grid; line-height: 1.4; } .pranks span { color: var(--muted); }
textarea { width: 100%; border: 1px solid #7a4f4a; border-radius: 10px; background: var(--ink); color: inherit; font: inherit; padding: .7rem .9rem; margin-top: 1rem; resize: vertical; }
.rules table { border-collapse: collapse; margin-top: 1rem; width: min(100%, 720px); } .rules th { text-align: left; color: #fff; padding: .5rem 1rem .5rem 0; } .rules td { border-top: 1px solid var(--line); padding: .55rem 1rem .55rem 0; color: var(--muted); } .rules td:last-child { color: var(--text); } .rules p { color: var(--muted); margin-top: .5rem; }
.mt { margin-top: 1.2rem; } .friends.wide { max-height: none; } .rows { margin-top: .8rem; } .rows li { display: flex; gap: 1rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); } .rows span { color: var(--muted); flex: 1; } .sharebox { max-width: 36rem; }
.four { display: grid; grid-template-columns: 130px minmax(0, 620px) 130px; gap: 1.6rem; align-items: center; justify-content: center; margin: 1.4rem 0; } .side { display: grid; justify-items: center; gap: .5rem; text-align: center; opacity: .5; overflow-wrap: anywhere; } .side .disc { width: 84px; height: 84px; } .side.now { opacity: 1; } .side.now b { color: var(--gold); }
.disc { display: grid; place-items: center; border-radius: 50%; width: 100%; height: 100%; padding: 9%; } .disc.a { background: var(--blush); } .disc.b { background: #8fd0ff; } .disc.empty { border: 2px dashed #7a4f4a; } .disc .cat { width: 100%; height: 100%; }
.grid4 { display: grid; grid-template-columns: repeat(7, 1fr); background: #8c1f2c; border: 3px solid #0a0a0a; border-radius: 18px; padding: 10px; overflow: hidden; } .col4 { background: none; border: 0; padding: 0 3px; display: grid; gap: 6px; border-radius: 10px; } .col4:disabled { cursor: default; } .col4:hover:not(:disabled), .col4:focus-visible { background: #a92b3a; } .hole { aspect-ratio: 1; border-radius: 50%; background: #24090d; display: block; position: relative; } .hole.win .disc { outline: 4px solid #fff; outline-offset: -2px; } .hole.last:not(.win) .disc { outline: 2px solid #fff; outline-offset: -2px; } .fall .disc { animation: drop calc(.12s * var(--r) + .15s) cubic-bezier(.5, 0, .9, .6); } @keyframes drop { from { transform: translateY(calc(-108% * var(--r))); } }
@media (max-width: 760px) { .four { grid-template-columns: 1fr 1fr; gap: 1rem; } .grid4 { grid-column: 1 / -1; grid-row: 2; padding: 6px; border-radius: 12px; } .col4 { padding: 0 2px; gap: 4px; } .side .disc { width: 56px; height: 56px; } .rows li { flex-wrap: wrap; } }
.slide-wrap { display: flex; gap: 1.2rem; align-items: flex-start; justify-content: center; width: 100%; } .slide { flex: 0 1 460px; } .slide .right { box-shadow: inset 0 0 0 2px #f5c04a80; } .slide-peek { width: 130px; aspect-ratio: 1; border-radius: 10px; background-size: cover; border: 1px solid var(--line); flex: none; } @media (max-width: 760px) { .slide-peek { width: 76px; } .slide-wrap { flex-direction: column-reverse; align-items: center; gap: .5rem; } .slide { flex: none; } }

/* phone: tabs at the bottom, menus as sheets */
@media (max-width: 1100px) {
  .links, .me-drop { display: none; } .bar { min-height: 56px; } body:not(.out) { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  body:not(.out) #village { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--red); border-top: 3px solid #0a0a0a; padding-bottom: env(safe-area-inset-bottom); }
  .bts { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 640px; margin: 0 auto; } .bt { position: relative; display: grid; justify-items: center; gap: .1rem; padding: .5rem .2rem .45rem; background: none; border: 0; color: #ffe1db; text-decoration: none; font-size: .9rem; line-height: 1.2; min-height: 64px; } .bt .ico { width: 30px; height: 30px; } .bt.on { color: #fff; font-weight: 700; background: #9c1523; } .bt .todo { position: absolute; top: .4rem; left: calc(50% + 12px); } .bt img[src="/e/paws.svg"] { filter: brightness(0) invert(1); }
  .sheet.menu { position: absolute; left: .6rem; right: .6rem; top: auto; bottom: calc(100% + 10px); min-width: 0; max-height: 70vh; overflow-y: auto; }
  #toast { bottom: calc(90px + env(safe-area-inset-bottom)); } .panel:has(.close) { bottom: calc(80px + env(safe-area-inset-bottom)) !important; max-height: 58vh; overflow-y: auto; }
}

/* ---------- the Christmas market ---------- */
body[data-place="arcade"] .place { width: min(1240px, 100% - 2.5rem); padding-top: 2.4rem; }
.market { position: relative; } .market::before { content: ""; position: absolute; z-index: -1; inset: -4rem calc(50% - 50vw) auto; height: 900px; background: linear-gradient(#1a0d0f99, #1a0d0fc4 45%, var(--ink) 92%), url(/img/glow.webp) center 22% / cover no-repeat; } body[data-place="arcade"] main { overflow-x: clip; position: relative; isolation: isolate; }
.market-head p { margin-top: .4rem; font-size: 1.12rem; text-shadow: 0 1px 6px #000; } .market-head h1 { text-shadow: 0 2px 10px #000; }
.lights-line { display: flex; justify-content: space-between; border-top: 4px solid #0a0a0a; border-radius: 50% / 0 0 100% 100%; margin: 1.6rem 0 -.4rem; padding: 0 1%; } .bulb { width: 22px; height: auto; margin-top: -3px; transform-origin: 50% 0; animation: sway 2.6s ease-in-out infinite alternate; } .bulb:nth-child(3n) { filter: hue-rotate(-50deg) saturate(1.6); animation-delay: -.9s; } .bulb:nth-child(3n+1) { filter: hue-rotate(75deg); animation-delay: -1.7s; } @keyframes sway { from { rotate: -9deg; } to { rotate: 9deg; } }
.stalls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem 1.8rem; align-items: end; margin-top: 1.4rem; }
.stall { position: relative; display: grid; justify-items: center; text-decoration: none; color: #fff; text-align: center; } .stall.big { grid-column: span 2; grid-row: span 2; }
.stall-art { position: relative; display: block; width: 100%; aspect-ratio: 1 / .92; } .stall-art > img, .st-cat { position: absolute; } .st-back { left: 4%; width: 92%; top: 22%; height: 62%; object-fit: fill; } .st-cat { left: 50%; bottom: 20%; width: 44%; translate: -50% 0; transition: translate .35s cubic-bezier(.16, 1, .3, 1); } .st-cat .cat { width: 100%; } .st-counter { left: 0; width: 100%; bottom: 0; height: 30%; object-fit: fill; } .st-awn { left: -2%; width: 104%; top: 0; height: 34%; object-fit: fill; transition: translate .3s cubic-bezier(.16, 1, .3, 1); } .st-good { width: 17%; max-height: 20%; object-fit: contain; object-position: 50% 100%; bottom: 25.5%; } .st-good.g0 { left: 9%; } .st-good.g1 { right: 8%; } .st-good.g2 { right: 25%; width: 13%; }
.st-sign { position: relative; margin-top: -2.4rem; min-width: 62%; max-width: 96%; background: url(/m/plank.webp) center / 100% 100% no-repeat; color: #2a1800; font-weight: 700; font-size: 1.15rem; line-height: 1.15; padding: .7rem 1.5rem .65rem; transition: rotate .3s cubic-bezier(.16, 1, .3, 1); } .stall:nth-child(odd) .st-sign { rotate: -1.6deg; } .stall:nth-child(even) .st-sign { rotate: 1.2deg; } .st-note { margin-top: .4rem; color: var(--muted); } .big .st-sign { font-size: 2rem; margin-top: -4rem; padding: 1.1rem 2.4rem 1rem; } .big .st-note { color: var(--gold); font-size: 1.15rem; } .stall:hover .st-cat { translate: -50% -9%; } .stall:hover .st-sign { rotate: 0deg; } .stall:hover .st-awn { translate: 0 -3%; } .stall:focus-visible { outline-offset: 8px; border-radius: 16px; }
.st-bulbs { position: absolute; left: 5%; right: 5%; top: 31%; display: flex; justify-content: space-between; } .st-bulbs .bulb { width: 5%; }
.closed { grid-column: 1 / -1; background: #26332d; border: 10px solid #a86b3e; border-radius: 10px; outline: 3px solid #0a0a0a; padding: 1.6rem 2rem; display: grid; gap: 1rem; justify-items: start; }
.chalk { grid-column: span 2; grid-row: span 2; align-self: stretch; background: #26332d; border: 12px solid #a86b3e; outline: 4px solid #0a0a0a; border-radius: 10px 14px 9px 13px; padding: 1.5rem 1.8rem; color: #f2f4ee; } .chalk h2 { font-size: 1.7rem; color: #fff; } .chalk h2:not(:first-child), .place .chalk h2:not(:first-child) { margin-top: 1.4rem; } .chalk p { color: #d8e2d8; margin-top: .6rem; } .chalk li { display: flex; align-items: center; gap: .8rem; padding: .42rem 0; border-bottom: 2px dashed #f2f4ee38; font-size: 1.1rem; } .chalk li b { margin-left: auto; color: #ffe08a; font-variant-numeric: tabular-nums; } .chalk-medals { margin-top: .5rem; } .chalk .medal-ico { width: 34px; height: 34px; opacity: .5; filter: grayscale(.7); } .chalk .got .medal-ico { opacity: 1; filter: none; } .chalk .me { color: #ffe08a; font-weight: 700; } .chalk-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chalk-unlock { display: flex; align-items: center; gap: .7rem; } .chalk-unlock img { height: 44px; width: auto; }
/* one stall open */
.booth-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-bottom: 1.2rem; } .booth-tools { display: flex; gap: 1.3rem; justify-content: flex-end; } .back { color: var(--muted); } .back:hover { color: #fff; }
.booth { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; } .booth.solo { grid-template-columns: minmax(0, 900px); justify-content: center; } .booth .chalk { padding: 1.2rem 1.3rem; } .booth .chalk li { font-size: 1.02rem; padding: .34rem 0; }
.booth-awn { height: 74px; margin: 0 -14px -14px; background-size: 100% 100%; background-repeat: no-repeat; position: relative; z-index: 2; pointer-events: none; }
.cabinet { position: relative; border: 0; border-radius: 0; border-left: 14px solid #a86b3e; border-right: 14px solid #a86b3e; box-shadow: inset 3px 0 #0a0a0a, inset -3px 0 #0a0a0a, -3px 0 #0a0a0a, 3px 0 #0a0a0a; background: #2b1916; min-height: 380px; display: grid; place-items: center; overflow: hidden; } .cabinet:not(.playing) { padding-top: 20px; }
.cabinet-idle { display: grid; justify-items: center; text-align: center; gap: .7rem; padding: 2rem 1.5rem; } .cabinet-idle .cat { width: 160px; } .idle-text { font-size: 1.25rem; color: #fff; } .idle-help { color: var(--muted); } .score { font-weight: 700; font-size: 4.4rem; line-height: 1; color: var(--gold); } .result-medal { width: 110px; height: 110px; } .unlock { display: flex; align-items: center; gap: .8rem; color: var(--ok); font-weight: 700; } .unlock img { height: 60px; width: auto; } .result .row { justify-content: center; }
.booth-counter { position: relative; display: flex; align-items: center; min-height: 104px; margin: 0 -14px; padding: 1.5rem 2rem 1rem; background: url(/m/counter.webp) center / 100% 100% no-repeat; } .booth-buttons { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; } .booth-counter .meta { color: #2a1800; font-weight: 700; } .booth-counter .link { color: #2a1800; text-decoration-color: #2a1800; } .booth-counter .btn.alt { background: #fff3e0; color: #2a1800; border-color: #0a0a0a; } .booth-counter .btn.alt:hover { background: #fff; color: #2a1800; } .booth-counter .btn:disabled { background: #8c6a4c; color: #2a1800; border-color: #0a0a0a; } .booth-cat { position: absolute; right: 3%; bottom: 62%; width: 92px; pointer-events: none; }
.game-hold { width: 100%; display: grid; place-items: center; } .stage-root { position: relative; width: 100%; display: grid; place-items: center; } .stage { display: block; width: auto; max-width: 100%; max-height: min(70vh, 640px); touch-action: none; outline: 0; background: #12080a; } .stage:focus-visible { outline: 0; } .stage-root.dom { padding: 1rem 1rem 1.4rem; } .game-x { position: absolute; z-index: 5; right: 10px; bottom: 10px; background: #0a0a0ab0; color: #fff; border: 0; border-radius: 8px; padding: .3rem .8rem; min-height: 36px; } .game-x:hover { background: #0a0a0a; }
.pad { display: none; } .stage-root.touch.has-pad { grid-template: "c c" auto "l r" auto / 1fr 1fr; gap: 12px 0; } .stage-root.touch.has-pad .stage { grid-area: c; } .touch .pad { display: grid; padding: 4px 18px 12px; } .pad-l { grid-area: l; justify-content: start; } .pad-r { grid-area: r; justify-content: end; } .pad button { width: 92px; height: 92px; border-radius: 50%; border: 4px solid #0a0a0a; background: #fff; padding: 18px; touch-action: none; user-select: none; -webkit-touch-callout: none; } .pad button:active { background: var(--gold); transform: scale(.94); } .pad img { width: 100%; pointer-events: none; } .pl img { rotate: 180deg; } .pd img { rotate: 90deg; } .pu img { rotate: -90deg; }
.touch.has-pad .stage { max-height: min(62vh, 560px); } .in-game .stage-root.touch.has-pad { align-content: center; } .in-game .touch.has-pad .stage { max-height: calc(100dvh - 190px) !important; } @media (orientation: landscape) and (max-height: 560px) { .in-game .stage-root.touch.has-pad { grid-template: "l c r" 1fr / auto 1fr auto; gap: 0; align-items: center; } .in-game .touch.has-pad .stage { max-height: 100dvh !important; max-width: calc(100vw - 200px); justify-self: center; } .in-game .pad { padding: 0 10px; align-self: end; } .pad button { width: 74px; height: 74px; } } @media (pointer: coarse) { .game-x { bottom: auto; top: 10px; right: 50%; translate: 50% 0; } } @media (pointer: coarse) and (orientation: landscape) { .game-x { right: auto; left: 8px; translate: 0; } }
.in-game { overflow: hidden; } .in-game .cabinet { position: fixed; inset: 0; z-index: 60; border: 0; box-shadow: none; background: #12080a; } .in-game .stage { max-height: 100dvh; max-width: 100vw; } .in-game .cabinet, .in-game .game-hold, .in-game .stage-root { height: 100%; } .in-game .game-hold { align-content: center; }
.memory { grid-template-columns: repeat(var(--c, 5), 1fr) !important; width: min(100%, 640px, 62vh * 1.1) !important; } .mem-back { background: var(--red) url(/g/b0.webp) center / 62% no-repeat !important; border-color: #0a0a0a !important; border-width: 3px !important; } .mem-face { background: #fff6ea !important; border: 3px solid #0a0a0a !important; } .mem.ok .mem-face { background: #bfe6c4 !important; } .game-info { color: #fff; font-size: 1.15rem; white-space: pre-wrap; text-align: center; } .slide { grid-template-columns: repeat(var(--n, 3), 1fr) !important; } .slide .right { box-shadow: inset 0 0 0 3px #ffe08a; }
@media (max-width: 960px) { .stalls { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; } .stall.big, .chalk { grid-column: 1 / -1; grid-row: auto; } .booth, .booth.solo { grid-template-columns: minmax(0, 1fr); } .booth-top { grid-template-columns: 1fr auto; } .booth-top h1 { grid-column: 1 / -1; grid-row: 2; } .st-sign { font-size: 1rem; padding: .6rem 1rem .55rem; margin-top: -1.8rem; } .big .st-sign { font-size: 1.5rem; margin-top: -2.8rem; } .lights-line .bulb:nth-child(2n) { display: none; } .booth-cat { display: none; } .booth-counter { padding: 1.3rem 1.2rem .9rem; } }
.place .chalk > h2:first-child { margin-top: 0; } .stalls > .chalk { display: flex; flex-direction: column; } .stalls > .chalk li { font-size: 1.25rem; padding: .55rem 0; } .stalls > .chalk .medal-ico { width: 44px; height: 44px; } .stalls > .chalk h2 { font-size: 2.1rem; } .stalls > .chalk .chalk-foot { margin-top: auto; padding-top: 1rem; }
.in-game #top, .in-game #village { display: none !important; } body.in-game { padding-bottom: 0 !important; } body:not(.in-game) .game-x { display: none; } .booth-main:has(.playing) .booth-buttons, .booth-main:has(.playing) .booth-cat { visibility: hidden; } .booth-main:has(.playing .stage) .booth-counter::after { content: "P or Esc pauses"; position: absolute; left: 50%; translate: -50% 0; color: #2a1800; font-weight: 700; } @media (pointer: coarse) { .booth-main:has(.playing .stage) .booth-counter::after { content: ""; } }
.place:not(:has(.playing)) .leave { display: none; }
@media (max-width: 960px) { .stall.big { justify-self: center; width: min(100%, 440px); } }

/* giveaways: paper raffle tickets */
.gives-block { margin-bottom: 2.6rem; } .gives-block > h2, .nitro h2 { margin-bottom: .6rem; }
.nitro { margin-bottom: 2.8rem; padding: 1.8rem clamp(1rem, 3vw, 2.2rem) 2rem; background: #8c1826; border: 3px solid #0a0a0a; border-radius: 22px 16px 24px 15px; }
.nitro-top { display: flex; gap: 1.2rem; align-items: center; } .nitro-top .prize-art { width: 76px; height: 76px; flex: none; } .nitro h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0; } .nitro p { color: #ffe9e2; } .count b { font-size: 1.35em; color: var(--gold); font-variant-numeric: tabular-nums; }
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.1rem; margin: 1.5rem 0 1rem; }
.ticket { display: flex; min-height: 124px; color: #ffe9e2; --cut: radial-gradient(circle 11px at 92px 0, #0000 10.5px, #000 11px) 0 0 / 100% 51% no-repeat, radial-gradient(circle 11px at 92px 100%, #0000 10.5px, #000 11px) 0 100% / 100% 51% no-repeat; -webkit-mask: var(--cut); mask: var(--cut); background: #6d0f1b; }
.ticket-stub { width: 92px; flex: none; display: grid; place-items: center; border-right: 3px dashed #ffffff55; } .ticket-ico { width: 46px; height: 46px; opacity: .55; } .ticket-body { display: grid; align-content: center; gap: .25rem; padding: 1rem 1.2rem; flex: 1; } .ticket-body b { font-size: 1.25rem; } .ticket-body span { line-height: 1.4; }
.ticket.got { background: #f5c04a; color: #3a2100; } .ticket.got b { color: #2a1000; } .ticket.got .ticket-stub { border-color: #7a4d00; background: #e8a92c; } .ticket.got .ticket-ico { opacity: 1; filter: none !important; width: 54px; height: 54px; }
.ticket progress, .chance + progress { width: 100%; } .chance { font-weight: 700; color: #fff; } .wonline { color: var(--gold) !important; font-weight: 700; font-size: 1.1rem; }
.crowd { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin-top: .9rem; align-items: end; } .crowd li { position: relative; width: 68px; text-align: center; } .crowd .cat { width: 54px; height: 62px; margin: 0 auto; } .crowd span { display: block; font-size: .9rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .crowd .me span { color: var(--gold); font-weight: 700; } .crowd b { position: absolute; top: 0; right: 0; background: var(--gold); color: #2a1000; border-radius: 8px; padding: 0 .4rem; font-size: .9rem; } .crowd .more { width: auto; align-self: center; color: #ffe1d9; }
.gives-list { display: grid; gap: 1.6rem; } .gv { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1.3rem; align-items: start; padding-bottom: 1.6rem; border-bottom: 2px dashed var(--line); } .gv:last-child { border: 0; padding-bottom: 0; } .gv h3 { font-size: 1.35rem; color: #fff; line-height: 1.2; } .give-act { align-self: center; }
.give-day { background: #fff; color: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 12px 10px 13px 9px; text-align: center; line-height: 1; overflow: hidden; } .give-day small { display: block; background: var(--red); color: #fff; padding: .3rem 0; font-size: 1rem; border-bottom: 3px solid #0a0a0a; } .give-day b { display: block; color: #1a0d0f; font-size: 2.2rem; padding: .45rem 0 .5rem; } .gv.g-past .give-day { opacity: .6; } .prize-side .prize-art { width: 54px; height: 54px; }
.givebox { display: grid; gap: .8rem; } .gb { display: flex; gap: .8rem; align-items: center; } .gb .prize-art { width: 40px; height: 40px; flex: none; } .gb b, .gb span { display: block; line-height: 1.35; } .gb span { color: var(--muted); } .givebox .btn { justify-self: start; }
.center { text-align: center; margin: 1rem auto; } .ticket-line { display: flex; gap: .6rem; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; max-width: none; } .ticket-line .ico { width: 34px; height: 34px; }
.w-gives { display: grid; gap: .5rem; margin: .6rem 0 1.4rem; } .w-gives li { display: flex; gap: .7rem; align-items: center; } .w-gives .prize-art { width: 34px; height: 34px; }
.gate { display: flex; gap: 1.2rem; align-items: flex-start; background: #8c1826; border: 3px solid #0a0a0a; border-radius: 20px 15px 22px 14px; padding: 1.4rem 1.6rem; margin: .6rem 0; } .gate-icon { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #0a0a0a; flex: none; } .gate p { color: #ffe9e2; margin-top: .3rem; }
.inline { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: end; margin-top: 1rem; } .inline label { display: grid; gap: .3rem; } .check { display: flex !important; align-items: center; gap: .6rem; } .check input { width: 24px; height: 24px; accent-color: var(--red); }
@media (max-width: 620px) { .gv { grid-template-columns: 64px minmax(0, 1fr); gap: .9rem; } .give-day b { font-size: 1.6rem; } .prize-side { display: none; } .give-act { grid-column: 1 / -1; } .give-act .btn { width: 100%; } .inline { grid-template-columns: 1fr; } .gate { flex-wrap: wrap; } .nitro-top { align-items: flex-start; } .nitro-top .prize-art { width: 54px; height: 54px; } }

/* ---------- phone and tablet ---------- */
html { -webkit-tap-highlight-color: transparent; } button, a, .tile, input, select { touch-action: manipulation; } .nl { white-space: nowrap; } .bar { padding-left: max(1.25rem, env(safe-area-inset-left), (100vw - 1320px) / 2); padding-right: max(1.25rem, env(safe-area-inset-right), (100vw - 1320px) / 2); }
.jump { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 0 1.6rem; padding: .3rem 0; } .jump::-webkit-scrollbar { display: none; } .jump button { flex: none; border: 2px solid var(--line2); border-radius: 10px; background: var(--moss); min-height: 44px; padding: .3rem 1rem; } .jump button:hover { border-color: var(--gold); color: #fff; } .place section[id] { scroll-margin-top: 90px; }
@media (max-width: 1100px) {
  /* lying down: tree on the left, everything else beside it */
  .home { grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr); grid-template-rows: repeat(6, auto) 1fr; gap: 1.1rem 1.6rem; } .home aside { display: contents; } .home .mid { grid-column: 1; grid-row: 1 / span 7; } .home aside section { grid-column: 2; position: relative; } .home .todo { order: 1; } .home .panel { order: 2; } .home .panel:has(.close) { order: 0; position: sticky; top: 84px; z-index: 5; } .home .givebox { order: 3; } .home .goal { order: 4; } .home .news { order: 5; }
  .link, .more, .back { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 900px) {
  .home { display: flex; flex-direction: column; align-items: stretch; gap: 1.2rem; padding: .9rem 1rem 1.5rem; max-width: 760px; margin: 0 auto; } .home aside { display: contents; } .home .todo { order: 1; } .home .mid { order: 2; } .home .panel { order: 3; } .home .givebox { order: 4; } .home .goal { order: 5; } .home .news { order: 6; }
  /* today's tasks as one row of big buttons */
  .home section.todo:has(li) { padding: 0; border: 0; background: none; } .home section.todo:has(li) h2 { display: none; } .todo ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin: 0; } .todo li { display: flex; } .todo li a { position: relative; flex: 1; flex-direction: column; gap: .2rem; text-align: center; padding: .6rem .2rem .55rem; background: var(--moss); border: 2px solid var(--line); border-radius: 13px 10px 14px 9px; min-width: 0; justify-content: start; } .todo li .ico { width: 34px; height: 34px; } .todo li span { font-size: .95rem; line-height: 1.15; overflow-wrap: anywhere; } .todo li small { margin: 0; white-space: normal; font-size: .9rem; line-height: 1.15; } .todo li.done a { background: #1f3a28; border-color: #3f7a52; } .todo li.done span { text-decoration: none !important; color: #cfe9d2 !important; } .todo li.done a::after { content: ""; position: absolute; right: 5px; top: 5px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 11l5 5L17 4' fill='none' stroke='%238fcf8f' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .home .panel:has(.close) { position: fixed !important; top: auto !important; z-index: 12; } .panel:has(.close) { left: max(.6rem, calc(50vw - 340px)); right: max(.6rem, calc(50vw - 340px)); bottom: calc(80px + env(safe-area-inset-bottom)) !important; z-index: 12; max-height: 52vh; overflow-y: auto; box-shadow: 0 -6px 40px #000c; gap: .45rem; padding: 1rem 1.1rem !important; border-radius: 16px !important; } body:has(.panel .close) { padding-bottom: 56vh !important; } .panel .close { min-height: 44px; top: .5rem; }
  .income { text-align: center; margin-inline: auto; } .stepper button { min-width: 48px; min-height: 48px; } .prow input, .prow select, .dayform input, .dayform select { min-height: 46px; } .bench .link, .rows .link { padding-inline: .5rem; }
}
@media (max-width: 760px) {
  /* branches as big as the screen allows */
  .tree-wrap { margin-inline: -1rem; overflow: hidden; } .tree-wrap .tree { width: 119%; max-width: none; margin-left: -9.5%; }
  h1 { font-size: 2rem; } .place { padding-top: 1.4rem; } .place-head { margin-bottom: 1.2rem; } .odd { grid-template-columns: repeat(7, 1fr) !important; } .odd button { min-height: 44px; }
  /* your cat stays in view while you pick things */
  .ward-left { position: sticky; top: 66px; z-index: 8; background: var(--ink); margin: 0 -1rem; padding: .7rem 1rem .8rem; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: .5rem 1rem; align-items: center; border-bottom: 2px solid var(--line); } .ward-left .portrait { grid-row: 1 / span 2; margin: 0; } .ward-left .row { margin: 0; gap: .5rem; align-self: center; } .ward-left .row .btn { width: 100%; padding-inline: .5rem; } .ward-left .sliders { grid-column: 1 / -1; grid-row: 3; grid-template-columns: 1fr 1fr auto; gap: .8rem; margin: 0; align-items: end; } .ward-left .nameplate { transform: scale(.85); transform-origin: 0 0; } .wardrobe { gap: 1rem; }
  .ctabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; } .ctabs::-webkit-scrollbar { display: none; } .ctabs button { flex: none; min-height: 44px; } .opts.cats { grid-template-columns: repeat(4, 1fr) !important; gap: .5rem; }
  .boost .btn, .wares .btn { min-height: 44px; } .wares { gap: .7rem; } dialog.loot { max-height: 88dvh; overflow-y: auto; } .booth-tools { gap: .6rem; } .chalk { padding: 1.2rem 1.1rem; } .cabinet { min-height: 0; } .cabinet-idle { padding: 1rem 1rem 1.4rem; gap: .4rem; } .cabinet-idle .cat { width: 110px; } .booth-top h1 { font-size: 1.8rem; }
}
@media (max-width: 400px) { .brand span { font-size: 1.3rem; } .bar { gap: .6rem; padding-inline: .8rem; } .purse { gap: .7rem; } .todo li span { font-size: .85rem; } }
@media (max-width: 345px) { .brand span { display: none; } }
/* a phone lying on its side */
@media (orientation: landscape) and (max-height: 500px) { #top { position: static; } .bt { min-height: 48px; grid-auto-flow: column; gap: .5rem; align-items: center; justify-content: center; } .bt .ico { width: 24px; height: 24px; } body:not(.out) { padding-bottom: calc(56px + env(safe-area-inset-bottom)); } .ward-left { position: static; } .panel:has(.close) { bottom: calc(58px + env(safe-area-inset-bottom)) !important; max-height: 70vh; } }

/* how it works */
a.purse { text-decoration: none; min-height: 44px; align-items: center; }
.place section[id^="g-"] { margin: 2.8rem 0; } .gsteps { display: grid; gap: .6rem; max-width: 62ch; margin-bottom: 1rem; font-size: 1.15rem; } .gsteps b { color: var(--gold); }
.gday { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 400px); gap: 2rem clamp(1.5rem, 5vw, 4rem); align-items: start; } .gtips { display: grid; gap: .75rem; margin: 1rem 0; max-width: 66ch; } .gtips li { padding-left: 1.6rem; position: relative; } .gtips li::before { content: ""; position: absolute; left: 0; top: .62em; width: 11px; height: 11px; border-radius: 50% 45% 55% 50%; background: var(--red); border: 2px solid #0a0a0a; }
.receipt { background: #fff; color: #1a0d0f; padding: 1.4rem 1.4rem 2.2rem; rotate: .8deg; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; } .receipt b { color: #1a0d0f; } .rc-head { font-weight: 700; font-size: 1.5rem; text-align: center; padding-bottom: .5rem; border-bottom: 3px dashed #1a0d0f; } .receipt li { display: flex; align-items: baseline; gap: .5rem; padding: .4rem 0; } .receipt li i { flex: 1; border-bottom: 2px dotted #bfa9a4; } .receipt li small { display: block; font-size: .9rem; color: #7a4a45; } .receipt li b { white-space: nowrap; font-variant-numeric: tabular-nums; } .receipt .rc-done span, .receipt .rc-done b { color: #1f6b3d; } .rc-total { display: flex; justify-content: space-between; border-top: 3px dashed #1a0d0f; margin-top: .5rem; padding-top: .7rem; font-size: 1.3rem; font-weight: 700; max-width: none; } .rc-foot { margin-top: .8rem; font-size: 1rem; line-height: 1.45; color: #6a3d39; }
.gtree { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin: 1.2rem 0; } .gtree li { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; } .gtree .ico, .gtree .dot { width: 38px; height: 38px; } .gtree .dot { border-radius: 50%; border: 4px solid #b98a3a; background: #14301f; } .gtree b { color: var(--gold); font-size: 1.7rem; }
.gplace { font-size: 1.15rem; margin: .6rem 0 1rem; } .gbars { display: grid; gap: .55rem; margin-top: 1rem; max-width: 760px; } .gbars li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) 4rem; gap: .8rem; align-items: center; } .gbars div { background: var(--moss); border-radius: 8px; height: 22px; overflow: hidden; } .gbars i { display: block; height: 100%; background: var(--red); border-radius: 8px; } .gst { display: inline-flex; gap: .35rem; align-items: center; font-weight: 700; color: #fff; }
.gthree { display: grid; gap: .7rem; margin: 1rem 0 1.4rem; } .gthree li { display: flex; gap: .8rem; align-items: center; } .gthree .ico { width: 34px; height: 34px; flex: none; } .gscroll { overflow-x: auto; } .gpay { border-collapse: collapse; width: min(100%, 620px); } .gpay th { text-align: center; padding: .4rem .6rem; } .gpay th:first-child { text-align: left; } .gpay th .ico { width: 28px; height: 28px; margin: 0 auto; } .gpay td { border-top: 1px solid var(--line); padding: .5rem .6rem; text-align: center; font-variant-numeric: tabular-nums; } .gpay td:first-child { text-align: left; }
#g-faq details { border-top: 1px solid var(--line); max-width: 760px; } #g-faq summary { cursor: pointer; font-weight: 700; color: #fff; padding: .8rem 0; min-height: 48px; } #g-faq summary::marker { color: var(--gold); } #g-faq details p { padding: 0 0 1rem; color: var(--text); }
@media (max-width: 900px) { .gday { grid-template-columns: minmax(0, 1fr); } .receipt { max-width: 440px; width: 100%; margin: 0 auto; } } @media (max-width: 560px) { .gbars li { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; } .gbars div { grid-column: 1 / -1; grid-row: 2; height: 14px; } .gpay td, .gpay th { padding-inline: .3rem; } }

/* ---------- the paper calendar ---------- */
.door, .door.today, .door.open, .door.missed, .door.has:not(.open) { border: 0; background: none; border-radius: 12px; perspective: 700px; overflow: visible; animation: none; } .door { box-shadow: 0 0 0 3px #0a0a0a, 0 0 0 6px #fff; } .doors { gap: clamp(.9rem, 1.8vw, 1.4rem); }
.door-dark { position: absolute; inset: 0; border-radius: 12px; background: #2a0d10; } .door .door-in { inset: 0; border-radius: 12px; }
.flap { position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; transform-origin: 0 50%; transition: transform .8s cubic-bezier(.3, .9, .3, 1); backface-visibility: visible; overflow: hidden; }
.pa0 { background: repeating-linear-gradient(45deg, #c8202f 0 16px, #fff6ea 16px 32px); } .pa1 { background: radial-gradient(circle 6px at 14px 14px, #fff6ea 97%, #0000) 0 0 / 28px 28px, #2c7a4b; } .pa2 { background: repeating-linear-gradient(0deg, #0000 0 18px, #8c182680 18px 30px), repeating-linear-gradient(90deg, #0000 0 18px, #8c182680 18px 30px), #f5c04a; } .pa3 { background: repeating-linear-gradient(90deg, #fff6ea 0 14px, #c8202f 14px 18px, #fff6ea 18px 30px, #2c7a4b 30px 34px); } .pa4 { background: conic-gradient(from 45deg at 50% 25%, #c8202f 0 90deg, #0000 0) 0 0 / 26px 26px, #8c1826; } .pa5 { background: radial-gradient(circle 4px at 10px 10px, #f5c04a 97%, #0000) 0 0 / 22px 22px, radial-gradient(circle 4px at 21px 21px, #fff6ea 97%, #0000) 0 0 / 22px 22px, #7a1420; }
.doodle { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 2px 0 #0a0a0a55); } .flap .door-n, .door.open .door-n { position: absolute; left: 7px; bottom: 7px; top: auto; min-width: 1.75em; padding: .05em .3em; text-align: center; font-size: clamp(1.05rem, 2.2vw, 1.55rem); line-height: 1.45; background: #fff; color: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 10px 8px 11px 7px; text-shadow: none; text-decoration: none; } .big .flap .door-n { font-size: clamp(1.7rem, 3.8vw, 2.8rem); }
.door.missed .flap { filter: grayscale(.9) brightness(.45); } .door.missed .door-n { text-decoration: line-through; } button.door:not(.today):hover .flap, div.door.shut:hover .flap { transform: rotateY(-9deg); }
.door.open .flap { transform: rotateY(-97deg); box-shadow: none; filter: brightness(.8); } .door.open .flap > * { opacity: 0; } .door.open { z-index: 1; }
.door.today { z-index: 3; cursor: pointer; } .door.today .flap { animation: wiggle 1.6s ease-in-out infinite; } .open-me { position: absolute; top: 8px; right: 8px; background: #f5c04a; color: #2a1000; border: 3px solid #0a0a0a; border-radius: 10px 8px 11px 7px; padding: .1rem .5rem; font-size: clamp(.8rem, 1.5vw, 1.05rem); line-height: 1.4; rotate: 4deg; } .door.today:hover .flap { animation: none; transform: rotateY(-24deg); } .door.opening .flap { animation: none !important; transform: rotateY(-97deg) !important; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotateY(0) rotate(0); } 66% { transform: rotateY(-12deg) rotate(-1.5deg); } 74% { transform: rotateY(-4deg) rotate(1.5deg); } 82% { transform: rotateY(-14deg) rotate(-1deg); } }
.door .tag { top: -12px; right: -10px; background: #f5c04a; border: 3px solid #0a0a0a; color: #2a1000; font-weight: 700; padding: .2rem .5rem .2rem .3rem; } .door .tag .ico { width: 24px; height: 24px; }
.effect { background: #f5c04a; color: #2a1000; border: 3px solid #0a0a0a; border-radius: 13px 10px 14px 9px; padding: .6rem 1rem; max-width: none; margin: 0 0 1rem; } .effect b { color: #2a1000; } .loot .effect { margin: .9rem 0; } .loot .ticket { text-align: left; margin: 1rem auto; max-width: 420px; }
/* surprises */
dialog.sur { max-width: min(640px, 94vw); overflow-x: hidden; } .wheel-svg { border-radius: 50%; } .sur-body { display: grid; justify-items: center; gap: 1.2rem; margin: 1.2rem 0; } .wheel { position: relative; width: min(400px, 72vw, 52vh); margin-top: 14px; } .wheel-svg { width: 100%; height: auto; } .wheel-pin { position: absolute; left: 50%; top: -16px; width: 44px; height: 54px; translate: -50% 0; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); } .wheel-pin::after { content: ""; position: absolute; inset: 4px 7px 10px; background: #0a0a0a; clip-path: inherit; } .sur-res:empty { display: none; }
.won { display: grid; justify-items: center; gap: .8rem; } .won-what { display: flex; gap: 1.4rem; font-size: 2rem; font-weight: 700; color: #fff; } .won-what span { display: flex; align-items: center; gap: .5rem; } .won-what .ico { width: 46px; height: 46px; }
.pick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.4rem, 2vw, 1.2rem); width: 100%; } .pick { background: none; border: 0; padding: .4rem; min-height: 120px; display: grid; place-items: center; align-content: center; gap: .5rem; color: #fff; transition: transform .3s cubic-bezier(.16, 1, .3, 1); } .pick .gift-art { width: 100%; max-width: 150px; height: auto; } .pick:not(:disabled):hover { transform: translateY(-8px) rotate(-2deg); } .pick.mine:not(.shown) { animation: rattle .18s linear infinite; } .pick.shown { opacity: .55; } .pick.shown.mine { opacity: 1; transform: scale(1.12); } @keyframes rattle { 0% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-4px); } 100% { transform: rotate(-4deg); } }
.scratch { position: relative; width: min(340px, 78vw); aspect-ratio: 1; background: #fff6ea; border: 4px solid #0a0a0a; border-radius: 16px; overflow: hidden; } .sc-grid { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); } .sc-grid span { display: grid; place-items: center; align-content: center; border: 1px dashed #c9b4a8; color: #1a0d0f; } .sc-grid b { color: #1a0d0f; line-height: 1.2; } .sc-grid img[src="/e/paws.svg"] { filter: none; } .scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; touch-action: none; cursor: grab; transition: opacity .5s; } .scratch canvas.gone { opacity: 0; pointer-events: none; } .scratch.done .hit { background: #f5c04a; }
.santa { width: 180px; transition: transform .9s cubic-bezier(.6, 0, .8, .3); } .santa.off { transform: translateX(120vw) rotate(14deg); }
@media (max-width: 760px) { .doors { gap: .85rem; padding: 1.1rem; } .door .tag { font-size: 0; padding: .15rem; gap: 0; } .open-me { top: 4px; right: 4px; padding: 0 .3rem; } .flap .door-n { left: 4px; bottom: 4px; border-width: 2px; } .door { box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 4px #fff; } }
@media (prefers-reduced-motion: reduce) { .door.today .flap { transform: rotateY(-10deg); } }
@media (max-width: 760px) { .door:not(.big) .doodle { width: 68%; height: 68%; translate: 9% -9%; } .door:not(.big) .flap .door-n, .door.open .door-n { font-size: .92rem; border-radius: 7px; padding: 0 .25em; } .door.today .doodle { translate: 4% 8% !important; } }

/* name colours and gradients, all bright enough for the dark page */
.ink { font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; } .ink_red { color: #ff7d84; } .ink_fir { color: #7fd39b; } .ink_ice { color: #8fd0ff; } .ink_orange { color: #ffb05c; } .ink_pink { color: #ffa3cf; } .ink_lilac { color: #cbb4ff; } .ink_gold { color: #ffd84d; }
.ink_fire, .ink_frost, .ink_berry, .ink_forest, .ink_sunset, .ink_xmas, .ink_candy, .ink_sea, .ink_aurora, .ink_rainbow, .ink_glitter, .ink_album { color: transparent; -webkit-background-clip: text; background-clip: text; }
.ink_fire { background-image: linear-gradient(180deg, #fff0a0, #ffb23e 45%, #ff5d4d); } .ink_frost { background-image: linear-gradient(180deg, #fff, #bfe6ff 50%, #6fbcff); } .ink_berry { background-image: linear-gradient(90deg, #ffb3d6, #ff6f91, #ff7d5c); } .ink_forest { background-image: linear-gradient(90deg, #d8f08a, #7fd39b, #46c2a0); } .ink_sunset { background-image: linear-gradient(90deg, #ffd84d, #ff8f6b, #ff7fc0, #c79bff); } .ink_xmas { background-image: linear-gradient(90deg, #ff6b73 0 30%, #fff 45% 55%, #6fd08f 70%); } .ink_candy { background-image: repeating-linear-gradient(115deg, #ff7680 0 .55em, #ffe9e6 .7em 1.15em, #ff7680 1.3em); } .ink_sea { background-image: linear-gradient(90deg, #b8fff0, #5fd0ff, #8f9dff); }
.ink_aurora { background-image: linear-gradient(90deg, #8dffb5, #5fe0e8, #9d9bff, #ff9be0, #8dffb5); } .ink_rainbow { background-image: linear-gradient(90deg, #ff7d84, #ffb05c, #ffe66b, #7fe39b, #7fc8ff, #cbb4ff, #ff7d84); } .ink_glitter { background-image: linear-gradient(105deg, #e0a52e 0 35%, #fff7d0 48% 52%, #e0a52e 65%); } .ink_album { background-image: linear-gradient(105deg, #ffd84d, #ffa3cf 30%, #fff 50%, #8fd0ff 70%, #ffd84d); }
.ink_aurora, .ink_rainbow, .ink_glitter, .ink_album { background-size: 300% 100%; animation: inkflow 6s linear infinite; } .ink_glitter { animation-duration: 3.2s; } @keyframes inkflow { from { background-position: 300% 0; } to { background-position: 0 0; } }
.mebtn .inked { background: none; padding: 0; } /* no box behind the name in the top bar */ .ink-demo { display: grid; place-items: center; width: 100% !important; font-size: 1.15rem; font-weight: 700; overflow: hidden; } .item-art .ink-demo { font-size: 1.7rem; } .nameplate .nametag { background: #1a0d0fcc; } .news .ink, .crowd .ink, .chalk .ink { font-weight: 700; }
@media (forced-colors: active) { .ink { color: CanvasText !important; background: none !important; } }

/* Mountains of Christmas, Apache License 2.0 */
@font-face { font-family: "Mountains of Christmas"; font-weight: 700; font-display: swap; src: url(/fonts/MountainsofChristmas-Bold.ttf) format("truetype"); }
.font_xmas { font-family: "Mountains of Christmas", var(--font); font-weight: 700; font-size: 1.32em; line-height: 1; }

/* badges */
.nb { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.28em; margin-right: .3em; } img.nb[src="/e/paws.svg"] { filter: none; }
.badges ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.4rem 1rem; margin-top: 1.2rem; } .badges li > * { display: grid; justify-items: center; align-content: start; text-align: center; gap: .25rem; width: 100%; background: none; border: 0; padding: .4rem; color: var(--text); line-height: 1.3; } .badges .cap { width: 92px; height: 92px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); } .badges button:hover .cap { transform: rotate(-8deg) scale(1.06); } .badges .cap.off image { filter: grayscale(1) brightness(.5); } .badges .cap.off path:first-child { opacity: .25; } .badges li > div { color: var(--muted); } .badges li > div b { color: var(--muted); } .badges span { font-size: .95rem; } .badges .on b { color: var(--gold); } .badges .on .cap { filter: drop-shadow(0 0 0 #000); outline: 4px solid var(--gold); outline-offset: 2px; border-radius: 50%; }
/* boss */
.boss { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.4rem; align-items: center; background: #5d0f1a; border: 3px solid #0a0a0a; border-radius: 20px 15px 22px 14px; padding: 1.2rem 1.5rem; margin-bottom: 1.2rem; } .boss-pic { width: 100%; animation: bossbob 2.2s ease-in-out infinite alternate; } .boss.down .boss-pic { animation: none; filter: grayscale(1) brightness(.7); rotate: 90deg; } .boss-pic.ouch { animation: ouch .5s; } @keyframes bossbob { to { transform: translateY(-9px) rotate(3deg); } } @keyframes ouch { 20% { transform: translateX(-14px) rotate(-6deg); filter: brightness(1.8); } 60% { transform: translateX(12px) rotate(5deg); } } .boss p { color: #ffe9e2; margin: .5rem 0; } .boss .row { margin-top: .6rem; }
.hp { position: relative; height: 30px; background: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 10px; overflow: hidden; margin-top: .5rem; } .hp i { position: absolute; inset: 0 auto 0 0; background: #f5c04a; transition: width .7s cubic-bezier(.16, 1, .3, 1); } .hp span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
.boss-hit { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .boss-hit b { color: var(--gold); } .boss-top { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .7rem; } .boss-top li { display: flex; align-items: center; gap: .4rem; } .boss-top .cat { width: 34px; height: 39px; } .boss-top b { color: var(--gold); }
.cbar { display: flex; align-items: center; gap: .8rem; text-decoration: none; background: var(--moss); border: 2px solid var(--line2); border-radius: 13px 10px 14px 9px; padding: .6rem 1rem; margin-bottom: 1rem; min-height: 52px; } .cbar .ico { width: 32px; height: 32px; flex: none; } .cbar:hover { border-color: var(--gold); } .cbar.todo-now { border-color: var(--gold); background: #3d2a12; }
/* best dressed */
.c-now { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 3px solid #0a0a0a; } .c-now .cat { position: absolute; left: 12%; bottom: 2%; width: 76%; height: auto; } .c-enter { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 2rem; align-items: center; } .c-now p { position: absolute; left: 8px; bottom: 8px; background: #1a0d0fd0; padding: .15rem .6rem; border-radius: 8px; } .catwalk { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 1.2rem; margin-top: 1.4rem; } .catwalk li { display: grid; gap: .6rem; justify-items: center; } .catwalk .c-now { width: 100%; } .catwalk .on .c-now { border-color: var(--gold); } .catwalk.won b { font-size: 1.5rem; color: var(--gold); }
@media (max-width: 760px) { .boss { grid-template-columns: 96px minmax(0, 1fr); gap: .9rem; padding: 1rem; align-items: start; } .c-enter { grid-template-columns: 1fr; } .catwalk { grid-template-columns: 1fr 1fr; gap: 1.2rem .8rem; } .badges ul { grid-template-columns: repeat(3, 1fr); gap: 1rem .3rem; } .badges .cap { width: 74px; height: 74px; } }
/* snowball duel */
.d-rules { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-bottom: 1.6rem; } .d-rules b { color: var(--gold); }
.arena { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 820px; margin: 1rem auto; padding: 1.2rem 1.4rem 3.4rem; border: 3px solid #0a0a0a; border-radius: 20px 15px 22px 14px; overflow: hidden; background: linear-gradient(#1a0d0f99, #1a0d0f55 55%, #fff0 55%), linear-gradient(#0000 66%, #eef6fb 66%), url(/img/snowy.webp) center / cover; } .d-side { position: relative; display: grid; justify-items: center; gap: .4rem; } .d-name { font-weight: 700; } .d-hearts, .d-balls { display: flex; gap: 3px; } .d-hearts img { width: 30px; height: auto; } .d-balls img { width: 24px; height: auto; } .d-balls .no { opacity: .22; } .d-balls { background: #1a0d0fb0; padding: .2rem .6rem; border-radius: 10px; } .d-cat { width: min(190px, 34vw); transition: transform .3s; } .d-side.b .d-cat { scale: -1 1; } .d-side.mv-duck .d-cat { transform: translateY(26%) scaleY(.55); } .d-side.mv-pack .d-cat { animation: packy .7s 2; } .d-side.hurt .d-cat { animation: ouch .6s .65s 2; } .d-side.lost .d-cat { transform: rotate(90deg); filter: grayscale(.8); } @keyframes packy { 50% { transform: translateY(10%) scaleY(.9); } }
.d-fly { position: absolute; top: 44%; width: 46px; z-index: 2; animation: flyr .7s cubic-bezier(.3, .1, .7, 1) forwards; } .d-fly.big { width: 104px; } .d-side.a .d-fly { left: 60%; } .d-side.b .d-fly { right: 60%; animation-name: flyl; } @keyframes flyr { 50% { translate: 130% -70px; } to { translate: min(380px, 48vw) 0; rotate: 500deg; opacity: 0; } } @keyframes flyl { 50% { translate: -130% -70px; } to { translate: max(-380px, -48vw) 0; rotate: -500deg; opacity: 0; } }
.d-say { position: absolute; left: 0; right: 0; bottom: .7rem; text-align: center; color: #1a0d0f; font-weight: 700; max-width: none; padding: 0 1rem; line-height: 1.25; } .d-ready { position: absolute; top: 44%; background: #f5c04a; color: #2a1000; font-weight: 700; border: 3px solid #0a0a0a; border-radius: 9px; padding: 0 .5rem; rotate: -6deg; } .d-wait { align-self: center; padding: 5rem 0; color: #fff; } .d-time { max-width: 820px; height: 12px; margin: 0 auto 1rem; background: var(--moss); border-radius: 6px; overflow: hidden; } .d-time i { display: block; height: 100%; width: 100%; background: var(--gold); transition: width .25s linear; }
.d-moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; max-width: 820px; margin: 0 auto 1rem; } .d-move { border: 3px solid #0a0a0a; border-radius: 13px 10px 14px 9px; background: var(--red); color: #fff; padding: .7rem .4rem; min-height: 68px; display: grid; line-height: 1.25; } .d-move:hover:not(:disabled) { background: var(--red-up); } .d-move:disabled { background: var(--lift); color: #b79d93; } .d-move:disabled b { color: inherit; } .d-move.on { background: #f5c04a !important; color: #2a1000 !important; } .d-move.on b { color: #2a1000; } @media (max-width: 560px) { .d-moves { grid-template-columns: 1fr 1fr; } .d-hearts img { width: 22px; } .d-balls img { width: 17px; } .arena { padding-inline: .6rem; } }
/* finale */
.finale { position: relative; display: grid; justify-items: center; text-align: center; gap: 1.1rem; min-height: 68vh; align-content: center; } .f-clock { font-weight: 700; font-size: clamp(3.4rem, 13vw, 8.5rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; } .f-place { font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--gold); } .finale h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); } .f-gift .gift-art { width: min(240px, 50vw); height: auto; animation: rattle .5s linear infinite; } .f-who { font-size: 1.3rem; } .f-cat { position: relative; width: min(360px, 74vw); aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 6px solid #fff; animation: pop .6s cubic-bezier(.16, 1, .3, 1); } .f-cat .cat { position: absolute; left: 12%; bottom: 2%; width: 76%; height: auto; } .f-cat.fp1 { border-color: #ffd34d; width: min(430px, 82vw); }
.f-crowd { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; max-width: 900px; } .f-crowd .cat { width: 62px; height: 71px; } .f-crowd li { animation: bossbob .9s ease-in-out infinite alternate; } .f-list { display: grid; gap: .6rem; width: min(100%, 640px); } .f-list li { display: grid; grid-template-columns: 2rem 64px minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; text-align: left; border-bottom: 2px dashed var(--line); padding-bottom: .5rem; } .f-list .cat { width: 60px; height: 69px; grid-row: span 2; } .f-list li > b { font-size: 1.8rem; color: var(--gold); grid-row: span 2; } .f-prize { grid-column: 3 / -1; color: var(--gold); padding-left: .4rem; } .f-list .fp1 .nametag { font-size: 1.4rem; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; } .confetti i { position: absolute; top: -20px; width: 12px; height: 18px; animation: fallc 3s linear forwards; } @keyframes fallc { to { translate: 40px 108vh; rotate: 900deg; } } .recap { display: grid; justify-items: start; gap: 1rem; } .recap canvas { width: min(100%, 560px); height: auto; border-radius: 10px; }
/* new moving name colours */
.ink_couture, .ink_boss { color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 300% 100%; animation: inkflow 5s linear infinite; } .ink_couture { background-image: linear-gradient(100deg, #fff, #ffc2e2 25%, #f5c04a 50%, #ffc2e2 75%, #fff); } .ink_boss { background-image: linear-gradient(100deg, #ff6b73, #ffb05c 35%, #fff0a0 50%, #ff6b73); }

/* helper cat */
#helper { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: 14px; z-index: 22; display: grid; justify-items: end; gap: .5rem; pointer-events: none; } #helper > * { pointer-events: auto; } .in-game #helper, .out #helper { display: none; } .hcat { position: relative; width: 86px; background: none; border: 0; padding: 0; transition: transform .25s cubic-bezier(.16, 1, .3, 1); } .hcat:hover { transform: translateY(-6px) rotate(-3deg); } .hcat .cat { filter: drop-shadow(0 3px 5px #000a); } .hcat .todo { position: absolute; right: 6px; top: 18px; width: 16px; height: 16px; }
.hb { position: relative; width: min(330px, 84vw); background: #fff; color: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 18px 14px 20px 13px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 10px 24px -8px #000b; } .hb::after { content: ""; position: absolute; right: 34px; bottom: -15px; width: 24px; height: 24px; background: #fff; border: solid #0a0a0a; border-width: 0 3px 3px 0; transform: rotate(45deg) skew(12deg, 12deg); } .hb p { line-height: 1.4; padding-right: 3.2rem; } .hb .row { margin-top: .7rem; gap: .4rem 1rem; } .hb .link { color: #1a0d0f; min-height: 38px; } .hb-x { position: absolute; right: .8rem; top: .7rem; background: none; border: 0; color: #7a4a45; min-height: 32px; } @media (max-width: 1100px) { #helper { bottom: calc(82px + env(safe-area-inset-bottom)); } .hcat { width: 66px; } } body:has(.panel .close) #helper { display: none; } @media (max-width: 760px) { body[data-place="cat"] #helper { display: none; } }
dialog.tour { max-width: min(520px, 94vw); } .tour-art { display: grid; place-items: center; height: 170px; margin-bottom: .6rem; } .tour-art img, .tour-art .cat { height: 165px; width: auto; } .tour p { margin: .6rem auto 0; } .tour-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; } .tour-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); } .tour-dots .on { background: var(--gold); } .tour .row { justify-content: center; }
/* mouse */
.mouse { background: none; border: 0; padding: 0 .2rem; margin-left: .35em; vertical-align: -.25em; min-width: 34px; animation: nibble 3.5s ease-in-out infinite; } .mouse img { width: 34px; height: auto; } .mouse.run { animation: none; transition: transform .7s cubic-bezier(.6, 0, .9, .4); transform: translateX(110vw) rotate(8deg); } @keyframes nibble { 0%, 78%, 100% { transform: none; } 84% { transform: rotate(-9deg); } 92% { transform: rotate(7deg) translateY(-2px); } }
/* reactions */
.react-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; } .react-row button { display: grid; justify-items: center; gap: .15rem; background: var(--lift); border: 2px solid var(--line2); border-radius: 12px 9px 13px 8px; padding: .5rem .2rem; min-height: 64px; } .react-row button:hover:not(:disabled) { border-color: var(--gold); } .react-row button:disabled { opacity: .5; } .react-row .ico { width: 30px; height: 30px; } .react-row span { font-size: .95rem; line-height: 1.1; }
.hi-cat { position: relative; width: 190px; aspect-ratio: 1; margin: 0 auto .8rem; border-radius: 16px; overflow: hidden; border: 3px solid #0a0a0a; } .hi-cat .cat { position: absolute; left: 12%; bottom: 2%; width: 76%; height: auto; } dialog.hi .row { justify-content: center; } dialog.hi .react-row { margin-top: 1rem; } button.pod-cat, .catbtn { background: none; border: 0; padding: 0; color: inherit; } button.pod-cat:hover .cat, .catbtn:hover .cat { transform: translateY(-4px); } button.pod-cat .cat { transition: transform .2s; }
#reacts { position: fixed; left: 14px; bottom: 16px; z-index: 26; } .rb > span { min-width: 0; line-height: 1.25; } .rb .ink, .rb .rn { display: block; max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; } @media (max-width: 1100px) { #reacts { bottom: calc(84px + env(safe-area-inset-bottom)); } } .rb { display: flex; align-items: center; gap: .6rem; background: #fff; color: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 16px 12px 17px 11px; padding: .4rem .9rem .4rem .5rem; max-width: min(380px, 78vw); animation: rbin .5s cubic-bezier(.16, 1, .3, 1); transition: opacity .6s, translate .6s; } .rb .cat { width: 46px; height: 53px; flex: none; } .rb .ico { width: 32px; height: 32px; flex: none; } .rb .ink { filter: brightness(.62) saturate(1.4); } .rb .link { color: #1a0d0f; white-space: nowrap; } .rb.bye { opacity: 0; translate: -30px 0; } .rb.hiss .cat { animation: ouch .5s 2; } @keyframes rbin { from { translate: -120% 0; } }
/* team day */
.team { border: 3px solid #0a0a0a; border-radius: 20px 15px 22px 14px; background: var(--moss); padding: 1.1rem 1.4rem 1.2rem; margin-bottom: 1.2rem; } .tm-bar { height: 22px; border: 3px solid #0a0a0a; border-radius: 10px; background: #2c7a4b; overflow: hidden; margin: .7rem 0; } .tm-bar i { display: block; height: 100%; background: #c8202f; border-right: 3px solid #0a0a0a; transition: width .7s; } .tm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .tm-h { display: flex; gap: .8rem; align-items: baseline; } .tm.green { text-align: right; } .tm.green .tm-h { flex-direction: row-reverse; } .tm b { font-size: 1.2rem; } .tm-avg { font-weight: 700; font-size: 1.7rem; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.2; } .tm.me b { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: .2em; } .tm-n { color: var(--muted); } .tm-cats { display: flex; flex-wrap: wrap; } .tm.green .tm-cats { justify-content: flex-end; } .tm-cats .cat { width: 36px; height: 41px; } .team p { margin-top: .7rem; color: var(--muted); }
/* a little snow */
#snow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; } .in-game #snow { display: none; } #snow i { position: absolute; top: -14px; border-radius: 50%; background: #fff; opacity: .55; animation: snowfall 20s linear infinite; } @keyframes snowfall { to { transform: translate(var(--d), 104vh); } }
/* night lights */
.tree-wrap { position: relative; } .night-btn { position: absolute; left: 12px; top: 8px; display: flex; gap: .5rem; align-items: center; background: #1a0d0fd0; border: 2px solid var(--line2); border-radius: 11px; min-height: 42px; padding: .2rem .8rem; } .night-btn:hover { border-color: var(--gold); } .night-btn .ico { width: 24px; height: 24px; } .night .tree { filter: none; } .night .tile image { filter: brightness(.82); } .tw { animation: twinkle 3.2s ease-in-out infinite; } @keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .18; } } .zz { animation: bossbob 1.8s ease-in-out infinite alternate; } .nl-lights { pointer-events: none; }
.acts { width: 100% !important; min-width: 820px; } .acts td:first-child { font-weight: 700; color: #fff; } .acts .off { opacity: .5; } .odd-score { background: #6d0f1b; color: #ffb0a6; font-weight: 700; } .acts .link { margin-left: .5rem; }

.swap { margin: 1rem 0 1.4rem; } .swap .row { margin-top: .6rem; }

.card-group { margin-top: 1.8rem; } .card-group h3 { display: flex; gap: .8rem; align-items: baseline; font-size: 1.2rem; color: #fff; margin-bottom: .7rem; } .card-group small { font-size: 1rem; font-weight: 400; color: var(--muted); }

/* the mystery as a chat */
.chat { background: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 16px 12px 17px 11px; padding: .9rem 1.1rem 1.1rem; margin: 1rem 0 1.2rem; display: grid; gap: .8rem; } .chat-ch { font-weight: 700; color: var(--gold); border-bottom: 2px dashed var(--line); padding-bottom: .5rem; max-width: none; } .msg { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: .8rem; align-items: start; } .msg .cat { width: 48px; height: 55px; } .msg b { display: block; line-height: 1.2; } .msg span { line-height: 1.4; } .msg.same { margin-top: -.5rem; } .msg.same .msg-cat, .msg.same b { display: none; } .msg.same { grid-template-columns: minmax(0, 1fr); padding-left: calc(48px + .8rem); } .chapter .riddle-text { font-size: 1.15rem; }
.sus-cat { display: grid; place-items: end center; background: var(--moss); border: 3px solid #0a0a0a; border-radius: 16px 12px 17px 11px; padding: .6rem .6rem 0; overflow: hidden; } .sus-cat .cat { width: 100%; max-width: 130px; height: auto; } .suspects { grid-template-columns: repeat(9, minmax(0, 1fr)) !important; gap: .9rem; } @media (max-width: 1000px) { .suspects { grid-template-columns: repeat(5, 1fr) !important; } } @media (max-width: 560px) { .suspects { grid-template-columns: repeat(3, 1fr) !important; gap: .8rem; } }
.test-row { margin-bottom: 1.2rem; align-items: center; }

/* ---------- everything on one screen ---------- */
.tbars { display: grid; gap: .8rem; } .tbars:empty { display: none; } .tbars > * { margin: 0 !important; } .movehint { font-weight: 700; color: var(--gold); }
@media (min-width: 1101px) and (min-height: 540px) {
  body.in-tree { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; } .in-tree main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .in-tree .home { flex: 1; min-height: 0; width: 100%; padding: 1.3rem clamp(1rem, 2vw, 2rem) .6rem; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) minmax(230px, 300px); grid-template-rows: minmax(0, 1fr); align-items: stretch; max-width: 1500px; margin: 0 auto; }
  .in-tree .home aside { align-content: start; max-height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #7a4f4a transparent; padding-bottom: 5.5rem; } .in-tree .home .right { position: static; }
  .in-tree .mid { min-height: 0; display: flex; flex-direction: column; } .in-tree .income { margin: 0 0 .3rem; text-align: center; max-width: none; } .in-tree .tree-wrap { flex: 1; min-height: 0; } .in-tree .tree-wrap .tree { width: 100%; height: 100%; max-height: none; }
  .in-tree .night-btn { top: 0; left: 0; }

}
@media (min-width: 821px) and (min-height: 540px) {
  body[data-place="arcade"] { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; } body[data-place="arcade"] main { flex: 1; min-height: 0; } body[data-place="arcade"] .place { height: 100%; width: min(1500px, 100% - 3rem); padding: 1.5rem 0 1rem; display: flex; flex-direction: column; }
  .market { flex: 1; min-height: 0; display: flex; flex-direction: column; } .market-head { display: flex; align-items: baseline; gap: 1.4rem; } .market-head h1 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); white-space: nowrap; margin: 0; } .market-head p { margin: 0; font-size: 1rem; max-width: none; } .lights-line { margin: .5rem 0 -.2rem; } .lights-line .bulb { width: 18px; }
  .stalls { flex: 1; min-height: 0; margin-top: .6rem; gap: .9rem 1.3rem; grid-template-columns: minmax(300px, 2fr) repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: stretch; }
  .stall { grid-row: span 2; min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; container-type: size; } .stall-art { height: 100%; width: auto; max-width: 100%; aspect-ratio: 1 / .92; justify-self: center; } .st-sign { font-size: clamp(.85rem, 1vw, 1.1rem); padding: .45rem .9rem .42rem; margin-top: -1.5rem; min-width: 0; } .st-note { font-size: .9rem; margin-top: .1rem; line-height: 1.25; }
  .stall.big { grid-column: 1; grid-row: 1 / span 3; width: auto; justify-self: stretch; } .big .st-sign { font-size: 1.5rem; margin-top: -2.4rem; padding: .75rem 1.8rem .7rem; } .big .st-note { font-size: 1.02rem; }
  .stalls > .chalk { grid-column: 1; grid-row: 4 / span 3; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: .8rem 1.1rem; border-width: 9px; } .stalls > .chalk h2 { font-size: 1.25rem; } .stalls > .chalk h2:not(:first-child) { margin-top: .6rem !important; } .stalls > .chalk li { font-size: 1rem; padding: .22rem 0; } .stalls > .chalk .medal-ico { width: 26px; height: 26px; } .stalls > .chalk p { margin-top: .3rem; font-size: .95rem; } .stalls > .chalk .chalk-unlock img { height: 32px; }
  .stalls > .closed { grid-column: 1; grid-row: 1 / span 6; align-self: center; }

  .booth-page { flex: 1; min-height: 0; display: flex; flex-direction: column; } .booth-top { margin-bottom: .5rem; } .booth-top h1 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); margin: 0; } .booth, .booth.solo { flex: 1; min-height: 0; align-items: stretch; } .booth.solo { grid-template-columns: minmax(0, 1200px); } .booth-main { min-height: 0; display: flex; flex-direction: column; } .booth-awn { flex: none; height: clamp(40px, 8vh, 74px); } .booth-side { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .booth .cabinet { flex: 1; min-height: 0; } .booth-counter { flex: none; min-height: 0; padding: 1.1rem 2rem .8rem; } .cabinet-idle { padding: .8rem 1.5rem; gap: .4rem; overflow-y: auto; max-height: 100%; } .cabinet-idle .cat { width: clamp(80px, 16vh, 160px); } .score { font-size: clamp(2.6rem, 8vh, 4.4rem); }
  .booth-main:has(.playing) .booth-counter { display: none; } .booth-main:has(.playing) { padding-bottom: .3rem; } .cabinet.playing { border-bottom: 14px solid #a86b3e; }
}
@media (min-width: 1000px) {
  .cabinet.playing { container-type: size; padding: 0; } .cabinet.playing .game-hold, .cabinet.playing .stage-root { height: 100%; align-content: center; } .cabinet.playing .stage-root:not(.touch) .stage { height: min(100cqh, 100cqw / var(--ar, 1.7)); width: auto; max-width: none; max-height: none; }
  .cabinet.playing .memory { width: min(100cqw - 2rem, 900px, (100cqh - 80px) * var(--c, 5) / var(--r, 4)) !important; } .cabinet.playing .slide { width: min(100cqw - 200px, 100cqh - 90px) !important; flex: none; margin: 0; } .cabinet.playing .stage-root.dom { padding: .4rem 1rem; align-content: center; }
}
@media (max-width: 760px) {
  .home { gap: .7rem; padding: .6rem .8rem 1rem; } .tbars { order: 3; } .todo li a { padding: .35rem .15rem .4rem; } .todo li .ico { width: 26px; height: 26px; } .todo li span { font-size: .85rem; } .todo li small { font-size: .8rem; } .income { font-size: .95rem; margin: 0 auto; line-height: 1.3; } .tree-wrap { margin-inline: -.8rem; } .night-btn { left: 10px; top: 0; min-height: 38px; padding: .1rem .6rem; font-size: .9rem; }
  .panel:has(.close) { padding: .75rem .9rem !important; gap: .3rem !important; max-height: 46vh; } .panel:has(.close) h2 { font-size: 1.15rem; margin: 0; } .panel:has(.close) .holder .mini { width: 44px; height: 44px; } .panel:has(.close) .meta { font-size: .92rem; line-height: 1.3; margin: .1rem 0; } body:has(.panel .close) { padding-bottom: 48vh !important; }
  .market-head p { font-size: 1rem; margin-top: .1rem; } .lights-line { margin: .7rem 0 -.2rem; } .lights-line .bulb { width: 17px; } .stalls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem .6rem; margin-top: .9rem; } .stall.big { width: min(100%, 300px); } .st-sign { font-size: .88rem; padding: .42rem .7rem .4rem; margin-top: -1.15rem; min-width: 0; max-width: 108%; } .st-note { font-size: .82rem; line-height: 1.2; margin-top: .15rem; } .big .st-note { font-size: 1rem; }
  .stalls > .chalk { padding: .8rem 1rem; border-width: 8px; } .stalls > .chalk h2 { font-size: 1.2rem; } .stalls > .chalk li { font-size: 1rem; padding: .25rem 0; } .stalls > .chalk .medal-ico { width: 28px; height: 28px; } .chalk-medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; } .chalk-medals li { flex-direction: column; gap: .1rem !important; border: 0 !important; text-align: center; } .chalk-medals li b { margin: 0 !important; }
  .booth-top { margin-bottom: .5rem; gap: .2rem .8rem; } .booth-awn { height: 44px; } .booth-counter { min-height: 0; padding: 1rem 1rem .7rem; } .booth-buttons { gap: .5rem .7rem; } .cabinet-idle .idle-text { font-size: 1.05rem; } .booth { gap: 1rem; }
}

.tbars { grid-template-columns: minmax(0, 1fr); } .home .tbars > * { grid-column: 1 !important; grid-row: auto !important; order: 0 !important; }
.home .boss { grid-template-columns: 76px minmax(0, 1fr); gap: .8rem; padding: .9rem 1rem; align-items: start; } .home .boss h2 { font-size: 1.25rem; } .home .boss .row { margin-top: .6rem; gap: .5rem; } .home .boss .btn { padding: .35rem .7rem; } .home .boss p { font-size: .95rem; line-height: 1.35; }
@media (min-width: 1101px) and (min-height: 540px) { .in-tree .left .boss { grid-template-columns: minmax(0, 1fr); } .in-tree .left .boss-pic { width: 84px; margin: 0 auto -.4rem; } .in-tree .left .tbars > * { padding: .8rem 1rem; } }
@media (min-width: 901px) and (max-width: 1100px) { .tbars { grid-column: 2; order: 0; } }
@media (max-width: 900px) { .tbars { order: 2; } .home .mid { order: 1; } .home .todo { order: 0; } .home .panel { order: 3; } }
@media (min-width: 1101px) and (min-height: 540px) { .market::before { height: auto; bottom: -1rem; } }
@media (max-width: 760px) { .stalls > .chalk { order: 9; } .stall.big { width: min(100%, 250px); } .booth-counter { padding: 1rem 1.1rem 1.1rem; } .booth-counter .btn.big { padding: .55rem 1rem; font-size: 1.08rem; } .booth-counter .meta { font-size: .95rem; background: #f0cf9c; border-radius: 8px; padding: .1rem .5rem; } }
@media (max-width: 760px) { .booth-buttons { width: 100%; } .booth-buttons .btn.big { flex: 1 0 auto; text-align: center; justify-content: center; white-space: nowrap; } .booth-buttons .meta { flex-basis: 100%; text-align: center; } }
@media (min-width: 821px) and (max-width: 1100px) and (min-height: 540px) { body[data-place="arcade"]:not(.in-game) { padding-bottom: 72px !important; } .stalls { grid-template-columns: minmax(200px, 1.6fr) repeat(5, minmax(0, 1fr)); gap: .5rem .7rem; } .st-sign { font-size: .8rem; padding: .35rem .5rem; margin-top: -1.1rem; } .st-note { font-size: .8rem; } .big .st-sign { font-size: 1.15rem; margin-top: -1.8rem; } .market-head p { font-size: .9rem; } .booth { grid-template-columns: minmax(0, 1fr) 220px; gap: 1rem; } .booth.solo { grid-template-columns: minmax(0, 1fr); } .booth-top { grid-template-columns: 1fr auto 1fr; } .booth-top h1 { grid-column: auto; grid-row: auto; } }
@media (min-width: 761px) and (max-width: 1100px) { .tree-wrap .tree { max-height: max(420px, calc(100dvh - 205px)); } }
.sure p { font-size: 1.15rem; } .sure .row { justify-content: center; }
.betpick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .2rem 0 1rem; } .betpick > b { margin-right: .3rem; } .betpick button { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; border: 2px solid var(--line2); border-radius: 10px; background: var(--moss); padding: .2rem .8rem; font-weight: 700; } .betpick button.on { background: var(--gold); color: #2a1800; border-color: #0a0a0a; } .betpick button:disabled { opacity: .4; } .betpick .meta { flex-basis: 100%; }
.pot { display: inline-flex; align-items: center; gap: .4rem; background: var(--gold); color: #2a1800; font-weight: 700; border: 2px solid #0a0a0a; border-radius: 10px; padding: .25rem .8rem; margin-top: .6rem; }
.feedbox { margin-top: 1rem; } .feeddays { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: .4rem 0; max-width: 380px; } .feeddays span { display: grid; place-items: center; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 7px; } .feeddays img { width: 78%; opacity: .18; filter: grayscale(1); } .feeddays .on { background: #1f3a28; border-color: #3f7a52; } .feeddays .on img { opacity: 1; filter: none; } .feeddays .now { border-color: var(--gold); } .feeddays .miss { border-color: #7a2a30; }
@media (max-width: 760px) { .ward-left .feedbox { grid-column: 1 / -1; margin: 0; } .ward-left .feeddays { grid-template-columns: repeat(24, 1fr); max-width: none; gap: 2px; } .ward-left .feeddays span { border-width: 1px; border-radius: 4px; } .ward-left .feedbox .meta { display: none; } }
/* Cat 2048 */
.m48-root { --s: min(92vw, calc(100dvh - 210px), 540px); } .cabinet.playing .m48-root { --s: min(100cqw - 2rem, 100cqh - 70px, 620px); }
.m48 { position: relative; width: var(--s); aspect-ratio: 1; background: #3a1d1f; border: 4px solid #0a0a0a; border-radius: 18px 14px 19px 13px; touch-action: none; outline: 0; --g: calc(var(--s) * .022); --c: calc((var(--s) - var(--g) * 5 - 8px) / 4); }
.m48:focus-visible { box-shadow: 0 0 0 4px var(--gold); } .m48bg { position: absolute; inset: var(--g); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); } .m48bg i { background: #ffffff12; border-radius: 12px; }
.m48t { position: absolute; left: var(--g); top: var(--g); width: var(--c); height: var(--c); translate: calc(var(--x) * (var(--c) + var(--g))) calc(var(--y) * (var(--c) + var(--g))); transition: translate .12s ease-out; border-radius: 12px; border: 3px solid #0a0a0a; display: grid; place-items: center; overflow: hidden;
  background: hsl(calc(350 + var(--k) * 33) 62% calc(88% - var(--k) * 2.8%)); z-index: 2; }
.m48t.gone { z-index: 1; } .m48t.new { animation: m48in .18s ease-out; } .m48t.pop { animation: m48pop .2s ease-out; } @keyframes m48in { from { opacity: .25; } } @keyframes m48pop { 50% { scale: 1.12; } }
.m48-cat { position: absolute; inset: 2% 4% 0; display: grid; place-items: center; } .m48-cat .cat { width: 100%; height: 100%; }
.m48t b { position: absolute; bottom: 5%; left: 50%; translate: -50% 0; background: url(/m/plank.webp) center / 100% 100% no-repeat; color: #2a1800; font-size: calc(var(--c) * .2); line-height: 1; padding: .18em .55em .14em; min-width: 46%; text-align: center; font-variant-numeric: tabular-nums; }
.m48t[data-v="1024"] b, .m48t[data-v="2048"] b { font-size: calc(var(--c) * .16); } .m48t[data-v="2048"] { box-shadow: 0 0 0 4px var(--gold); }
.m48-pick { display: grid; gap: .6rem; justify-items: center; } .m48-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; width: min(100%, 640px); }
.m48-picks button { display: grid; gap: .2rem; justify-items: center; background: var(--moss); border: 3px solid #0a0a0a; border-radius: 14px; padding: .5rem .3rem .4rem; color: #fff; } .m48-picks button:hover, .m48-picks button:focus-visible { background: var(--red); } .m48-picks .cat { width: 72px; height: 82px; } .m48-picks span { font-size: .9rem; }
.badgerace progress { flex: 1; max-width: 320px; height: 14px; accent-color: var(--gold); }
/* a big tree on a phone: never smaller than this, then it scrolls sideways */
@media (max-width: 760px) { .tree-wrap { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; } .tree-wrap::-webkit-scrollbar { display: none; } .tree-wrap .tree { min-width: calc(var(--tw) * .46px); } }
.tour-more { display: inline-block; margin: .3rem 0 .2rem; color: var(--gold); font-weight: 700; }
/* stalls always fit their box: never wider than the box, never taller than the room above the sign */
@media (min-width: 821px) and (min-height: 540px) { .stalls .stall-art { width: min(100cqw, (100cqh - 3.4rem) / .92); height: auto; max-width: none; } .stalls .stall.big .stall-art { width: min(100cqw, (100cqh - 4.6rem) / .92); } .st-sign { max-width: 100%; overflow-wrap: anywhere; } }
@media (min-width: 821px) and (max-width: 1100px) and (min-height: 540px) { .stalls { grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); } .stall.big { grid-row: 1 / span 4 !important; } .stalls > .chalk { grid-row: 5 / span 4 !important; } .stalls > .closed { grid-row: 1 / span 8 !important; } }
@media (min-width: 821px) and (min-height: 540px) { .stalls .stall-art { align-self: end; } body[data-place="arcade"] .place { padding-bottom: .5rem; } }
@media (min-width: 821px) and (max-width: 1100px) and (min-height: 540px) { body[data-place="arcade"] .place { padding-top: 1rem; } }
@media (min-width: 821px) and (min-height: 540px) { .market::before { height: auto; bottom: -1rem; } }
/* settings */
.set-block { margin-top: 2rem; max-width: 760px; } .set-block h2 { margin-bottom: .4rem; } .set-list { display: grid; }
.set-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: center; padding: .95rem 0; border-top: 1px solid var(--line); } .set-ico { width: 30px; height: 30px; } .set-text { display: grid; gap: .1rem; } .set-text span { color: var(--muted); line-height: 1.35; } .set-extra { grid-column: 2 / -1; }
.switch { position: relative; width: 62px; height: 36px; border-radius: 99px; border: 3px solid #0a0a0a; background: #4a2a2d; padding: 0; flex: none; transition: background .2s; } .switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: translate .22s cubic-bezier(.16, 1, .3, 1); } .switch[aria-checked="true"] { background: var(--red); } .switch[aria-checked="true"] span { translate: 26px 0; } .switch:focus-visible, .seg button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.seg { display: inline-flex; border: 3px solid #0a0a0a; border-radius: 12px; overflow: hidden; } .seg button { background: #4a2a2d; color: #fff; border: 0; padding: .45rem .8rem; min-height: 40px; font-weight: 700; } .seg button + button { border-left: 2px solid #0a0a0a; } .seg button[aria-checked="true"] { background: var(--gold); color: #2a1800; }
.vol { display: flex; align-items: center; gap: .8rem; max-width: 420px; } .vol output { min-width: 3.2ch; font-variant-numeric: tabular-nums; color: var(--muted); }
.vol input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 12px; border-radius: 99px; border: 2px solid #0a0a0a; background: linear-gradient(90deg, var(--red) var(--v), #4a2a2d var(--v)); } .vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid #0a0a0a; cursor: pointer; } .vol input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #0a0a0a; cursor: pointer; } .vol input:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 760px) { .set-row { grid-template-columns: 28px minmax(0, 1fr) auto; } .set-ico { width: 26px; height: 26px; } .set-block .row .btn { flex: 1 1 100%; } }
.m48t[data-v="2048"] .m48-cat text { fill: #b8860b; }
/* friend games: challenge, waiting, the end */
.vs-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.4rem; align-items: center; background: #3a191d; border: 3px solid #0a0a0a; border-radius: 20px 15px 22px 14px; padding: 1.2rem 1.5rem; margin: .4rem 0 1.4rem; max-width: 820px; }
.vs-card .vs-cat .cat { width: 100%; height: auto; } .vs-card.wait { background: #2a1a1c; } .vs-who { font-size: 1.3rem; font-weight: 700; color: #fff; max-width: none; } .vs-bet { margin-top: .4rem; } .vs-bet b, .vs-gain { display: inline-flex; align-items: center; gap: .15rem; color: var(--gold); } .vs-bet img, .vs-gain img, .btn img { vertical-align: -4px; } .vs-card .sharebox { margin: .8rem 0 .4rem; } .vs-card .row { margin-top: .9rem; }
.betown { display: inline-flex; align-items: center; gap: .3rem; border: 2px solid var(--line2); border-radius: 10px; background: var(--moss); padding: 0 .4rem 0 .6rem; min-height: 44px; } .betown input { width: 4.6em; background: transparent; border: 0; color: #fff; font: inherit; font-weight: 700; padding: .3rem 0; } .betown input::placeholder { color: var(--muted); } .betown:has(input.on) { background: var(--gold); border-color: #0a0a0a; } .betown:has(input.on) input { color: #2a1800; } .betown:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.vs-end { position: relative; overflow: hidden; min-width: min(420px, calc(100vw - 2rem)); } .vs-end h2 { font-size: 2.4rem; margin: .2rem 0; } .vs-end.won h2 { color: var(--gold); } .vs-end-cat { width: 150px; margin: 0 auto; } .vs-end-cat .cat { width: 100%; height: auto; } .vs-end.won .vs-end-cat { animation: vsjump .7s cubic-bezier(.16, 1, .3, 1) 2; } .vs-end.lost .vs-end-cat { filter: grayscale(.5); rotate: -6deg; } .vs-gain { font-size: 1.8rem; font-weight: 700; justify-content: center; } .vs-end .row { justify-content: center; }
@keyframes vsjump { 40% { translate: 0 -18px; rotate: -4deg; } }
.confetti { position: absolute; inset: 0; pointer-events: none; } .confetti i { position: absolute; top: -12px; left: var(--x); width: 9px; height: 14px; background: var(--red); rotate: var(--r); animation: fall 2.2s var(--d) cubic-bezier(.3, .1, .6, 1) forwards; } .confetti i:nth-child(3n) { background: var(--gold); } .confetti i:nth-child(3n+1) { background: #5fbf7f; } .confetti i:nth-child(4n) { background: #fff; }
@keyframes fall { to { translate: 0 520px; rotate: calc(var(--r) + 540deg); } }
@media (max-width: 760px) { .vs-card { grid-template-columns: 76px minmax(0, 1fr); gap: .9rem; padding: 1rem; } .vs-who { font-size: 1.1rem; } .vs-card .row .btn { flex: 1 1 auto; } .betpick { gap: .4rem; } .betpick button { padding: .2rem .6rem; } }
/* ---------- the showdown: Four in a Row and the snowball duel ---------- */
:root { --pa: #ff8f8f; --pb: #8fd0ff; }
.vsbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: .8rem; max-width: 640px; margin: .4rem auto 1rem; }
.vsp { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .8rem; align-items: center; background: #2a1719; border: 3px solid #0a0a0a; border-radius: 18px 14px 19px 13px; padding: .6rem .9rem .6rem .6rem; transition: translate .35s cubic-bezier(.16, 1, .3, 1), border-color .2s, background .2s; }
.vsp.b { grid-template-columns: minmax(0, 1fr) auto; padding: .6rem .6rem .6rem .9rem; text-align: right; } .vsp.b .vsp-cat { grid-column: 2; grid-row: 1 / span 2; } .vsp.b .vsp-name, .vsp.b .vsp-sub { grid-column: 1; justify-self: end; }
.vsp-cat { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; padding: 7px; border: 3px solid #0a0a0a; } .vsp.a .vsp-cat { background: var(--pa); } .vsp.b .vsp-cat { background: var(--pb); } .vsp-cat .cat { width: 100%; height: 100%; } .vsp.b .vsp-cat .cat { scale: -1 1; }
.vsp-name { font-weight: 700; color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: end; } .vsp-name small { color: var(--gold); font-size: .85em; } .vsp-sub { align-self: start; min-height: 1.6rem; color: var(--muted); font-size: .92rem; } .vsp-count { color: var(--muted); }
.vsp-turn { display: inline-block; background: var(--gold); color: #2a1800; border: 2px solid #0a0a0a; border-radius: 8px; padding: 0 .5rem; font-size: .9rem; }
.vsp.now { translate: 0 -6px; border-color: var(--gold); background: #3d2023; } .vsp.lost { opacity: .55; } .vsp.won { border-color: var(--gold); }
.vs-mid { display: grid; justify-items: center; gap: .3rem; padding-bottom: .5rem; } .vs-mid b { font-size: 1.6rem; color: #fff; line-height: 1; letter-spacing: .02em; -webkit-text-stroke: 1px #0a0a0a; } .vs-pot { display: inline-flex; align-items: center; gap: .2rem; background: var(--gold); color: #2a1800; font-weight: 700; border: 2px solid #0a0a0a; border-radius: 9px; padding: .05rem .5rem; font-variant-numeric: tabular-nums; } .vs-pot img { width: 20px; height: 20px; }
/* Four in a Row */
.four { display: block !important; max-width: 640px; margin: 0 auto 1rem !important; } .four .grid4 { margin-top: .2rem; }
.disc.a { background: var(--pa) !important; } .disc.b { background: var(--pb) !important; } .disc { border: 3px solid #0a0a0a; }
.grid4 { background: #8c1f2c; border: 4px solid #0a0a0a; border-radius: 20px 16px 21px 15px; padding: 10px 8px; box-shadow: 0 10px 24px #0007; } .hole { background: #1a0709; box-shadow: inset 0 4px 0 #0009; } .hole.win .disc { outline: 4px solid var(--gold) !important; outline-offset: -1px; } .hole.last:not(.win) .disc { outline: 3px solid #fff; outline-offset: -2px; }
.hole.land .ghost { opacity: 0; transition: opacity .12s; } .grid4.mine .col4:hover .hole.land .ghost, .grid4.mine .col4:focus-visible .hole.land .ghost { opacity: .45; } .col4:hover:not(:disabled), .col4:focus-visible { background: #a5303f; outline: 0; } .grid4.mine { box-shadow: 0 0 0 4px var(--gold), 0 10px 24px #0007; }
/* snowball duel */
.arena { max-width: 640px !important; padding-top: .4rem !important; } .arena .d-time { position: absolute; left: 0; right: 0; top: 0; height: 7px; margin: 0; border-radius: 0; background: #0006; z-index: 3; } .d-side { padding-top: 1.4rem; } .d-cat { width: min(200px, 36vw) !important; } .vsbar .d-hearts { display: inline-flex; gap: 2px; } .vsbar .d-hearts img { width: 22px; height: auto; }
.d-moves { max-width: 640px !important; } .d-move { display: grid !important; grid-template-rows: 46px auto auto; justify-items: center; align-content: start; gap: .2rem; padding: .55rem .3rem .6rem !important; background: #2a1719 !important; border: 3px solid #0a0a0a; transition: translate .2s cubic-bezier(.16, 1, .3, 1), background .2s; } .d-move:hover:not(:disabled) { background: #3d2023 !important; translate: 0 -3px; } .d-move b { font-size: 1.05rem; color: #fff; } .d-art img { height: 42px; width: auto; } .d-art img.big { height: 46px; filter: drop-shadow(10px 0 0 #fff8); } .d-cost { display: inline-flex; gap: 2px; align-items: center; color: var(--muted); font-size: .85rem; min-height: 18px; } .d-cost img { width: 16px; height: 16px; }
.d-move.on { background: var(--gold) !important; } .d-move.on b, .d-move.on .d-cost { color: #2a1800 !important; } .d-move:disabled { opacity: .45; } .d-move:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 760px) { .vsbar { gap: .4rem; margin-bottom: .7rem; } .vsp { grid-template-columns: 1fr !important; grid-template-rows: auto auto auto; justify-items: center; text-align: center !important; padding: .55rem .4rem !important; row-gap: .15rem; } .vsp .vsp-cat { grid-row: 1 !important; grid-column: 1 !important; width: 56px; height: 56px; } .vsp .vsp-name, .vsp .vsp-sub { grid-column: 1 !important; justify-self: center !important; max-width: 100%; } .vs-mid b { font-size: 1.2rem; } .vsp-turn { font-size: .8rem; } .vsbar .d-hearts img { width: 17px; } .d-moves { grid-template-columns: repeat(4, 1fr) !important; gap: .4rem !important; } .d-move { grid-template-rows: 34px auto auto; } .d-art img { height: 32px; } .d-move b { font-size: .92rem; } .vsp-count { font-size: .8rem; } }
.four { max-width: min(640px, calc((100dvh - 350px) * 1.12), 100%) !important; } .four .vsbar { max-width: none; }
/* friend game lobby */
.lob { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 2.2rem; align-items: start; }
.lob-new { background: #2a1719; border: 3px solid #0a0a0a; border-radius: 20px 15px 22px 14px; padding: 1.3rem 1.5rem 1.5rem; } .lob-new h2 { margin: 0 0 .2rem; }
.lob-label { font-weight: 700; color: #fff; margin: 1.1rem 0 .5rem; }
.lob-who { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .6rem; max-height: 320px; overflow-y: auto; scrollbar-width: thin; padding: 3px; }
.lob-pick { display: grid; justify-items: center; gap: .2rem; background: #3a2124; border: 3px solid #0a0a0a; border-radius: 14px 11px 15px 10px; padding: .5rem .3rem .45rem; color: #fff; min-width: 0; transition: translate .2s cubic-bezier(.16, 1, .3, 1), background .2s; } .lob-pick:hover { translate: 0 -2px; background: #472a2d; }
.lob-pick .lob-face { width: 58px; height: 58px; } .lob-pick .nametag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; } .lob-pick small { color: var(--muted); font-size: .8rem; } .lob-pick.any .lob-face img { width: 40px; height: 40px; }
.lob-pick.on { background: var(--gold); color: #2a1800; } .lob-pick.on small { color: #5a3a10; } .lob-pick.on .nametag { color: #2a1800; } .lob-pick:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lob-face { display: grid; place-items: center; width: 44px; height: 48px; flex: none; } .lob-face .cat { width: 100%; height: 100%; }
.lob-go { width: 100%; justify-content: center; margin-top: .4rem; } .lob-go img { width: 24px; height: 24px; vertical-align: -5px; }
.lob-how { margin-top: 1rem; color: var(--muted); } .lob-how summary { cursor: pointer; color: #fff; font-weight: 700; } .lob-how .d-rules { margin: .6rem 0 0; display: grid; gap: .3rem; }
.lob-side { display: grid; gap: 1.6rem; } .lob-group h2 { font-size: 1.3rem; margin: 0 0 .3rem; display: flex; align-items: baseline; gap: .7rem; } .lob-record { font-size: .95rem; color: var(--muted); font-weight: 400; }
.lob-group ul { display: grid; } .lob-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); } .lob-row b { display: block; color: #fff; line-height: 1.2; } .lob-row div > span { color: var(--muted); font-size: .92rem; }
.lob-group.hot { background: #3d2023; border: 3px solid var(--gold); border-radius: 18px 14px 19px 13px; padding: .9rem 1rem .4rem; } .lob-group.hot h2 { color: var(--gold); } .lob-group.hot .lob-row:first-child { border-top: 0; }
.lob-fish { display: inline-flex; align-items: center; gap: .15rem; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; } .lob-fish img { width: 20px; height: 20px; }
.lob-act { display: flex; gap: .7rem; align-items: center; justify-content: end; } .lob-res { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.4ch; text-align: right; } .lob-res.won { color: #7fd39b; } .lob-res.lost { color: var(--bad, #ff9a92); } .lob-res.draw { color: var(--muted); }
.lob-empty { display: grid; justify-items: center; text-align: center; gap: .6rem; padding: 2rem 1rem; color: var(--muted); border: 2px dashed var(--line2); border-radius: 18px; } .lob-empty .cat { width: 110px; height: auto; }
@media (max-width: 900px) { .lob { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; } .lob-side { order: -1; } .lob-side:not(:has(.lob-group)) { order: 1; } }
@media (max-width: 760px) { .lob-new { padding: 1rem; } .lob-who { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; } .lob-row { grid-template-columns: 38px minmax(0, 1fr) auto; } .lob-row .lob-act { grid-column: 2 / -1; justify-content: start; } .lob-row .lob-fish { grid-row: 1; grid-column: 3; } }
.lob .betpick { margin-top: 1.1rem; } .lob .betpick > b { flex-basis: 100%; color: #fff; margin: 0 0 .1rem; }
@media (max-width: 900px) { .lob-side { display: contents; } .lob-group.hot { order: -1; } .lob-new { order: 0; } .lob-group { order: 1; } .lob-empty { display: none; } }
/* ---------- while you play: the market at night behind the game ---------- */
.cabinet.playing { display: flex !important; flex-direction: column; background: #12080a; isolation: isolate; }
.cabinet.playing::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(ellipse at 50% 55%, #0000 30%, #0a0406e6 80%), url(/img/glow.webp) center / cover; filter: blur(14px) brightness(.55) saturate(1.2); }
.cabinet.playing .game-hold { flex: 1; min-height: 0; } .cabinet.playing .game-x { display: none !important; }
.playbar { position: relative; z-index: 3; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; padding: .45rem .7rem; background: #12080acc; border-bottom: 2px solid #0a0a0a; }
.pb-title { display: flex; align-items: baseline; gap: .6rem; justify-self: center; white-space: nowrap; } .pb-title b { color: #fff; font-size: 1.1rem; } .pb-mode { font-size: .8rem; font-weight: 700; color: #f1dcd5; background: #3a2124; border: 2px solid #0a0a0a; border-radius: 8px; padding: 0 .45rem; } .pb-mode.ranked { background: var(--gold); color: #2a1800; }
.pb-tools { display: flex; gap: .4rem; justify-self: end; } .pb-leave { justify-self: start; }
.pb-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .15rem .7rem; background: #2a1719; color: #fff; border: 2px solid #0a0a0a; border-radius: 10px; font-weight: 700; font-size: .9rem; } .pb-btn:hover { background: #3d2023; } .pb-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; } .pb-btn[aria-pressed="false"] { color: var(--muted); } .pb-ico { width: 20px; height: 20px; }
.pb-arrow { width: 10px; height: 10px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; rotate: 45deg; margin-left: 4px; }
.pb-lights { position: absolute; z-index: 4; left: 4%; right: 4%; top: 46px; height: 26px; display: flex; justify-content: space-between; border-top: 3px solid #0a0a0a; border-radius: 50% / 0 0 100% 100%; pointer-events: none; } .pb-lights .bulb { width: 16px; margin-top: -3px; }
.cabinet.playing .stage { box-shadow: 0 0 0 4px #0a0a0a, 0 18px 50px #000c; border-radius: 6px; } .cabinet.playing .stage-root.dom { background: #1a0d0fd9; border: 3px solid #0a0a0a; border-radius: 18px; width: auto; max-width: 100%; }
.in-game .cabinet.playing { display: flex !important; } .in-game .playbar { padding-top: max(.45rem, env(safe-area-inset-top)); } .in-game .pb-lights { top: calc(46px + env(safe-area-inset-top)); }
@media (max-width: 560px) { .playbar { grid-template-columns: auto 1fr auto; } .pb-title { justify-self: start; gap: .4rem; } .pb-title b { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; } .pb-tools .pb-btn span:not(.pb-pause), .pb-leave span:not(.pb-arrow) { display: none; } .pb-btn { padding: .15rem .55rem; } .pb-lights { display: none; } }
@media (prefers-reduced-motion: reduce) { .pb-lights .bulb { animation: none; } }
/* keys */
.set-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: .8rem 0 .4rem; } .set-keys li { display: flex; align-items: center; gap: .6rem; background: #2a1719; border: 2px solid #0a0a0a; border-radius: 12px; padding: .5rem .6rem; } .set-keys img { width: 34px; height: 34px; } .set-keys span { flex: 1; }
.keycap { min-width: 64px; min-height: 42px; padding: .2rem .7rem; background: #f6eee9; color: #1a0d0f; border: 2px solid #0a0a0a; border-bottom-width: 5px; border-radius: 9px; font-weight: 700; font-size: 1.05rem; } .keycap:hover { background: #fff; } .keycap.wait { background: var(--gold); font-size: .85rem; } .keycap:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pb-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.pb-lights { display: none !important; } .booth .cabinet.playing .playbar { margin-top: 14px; } .booth-page:has(.cabinet.playing) .booth-tools { visibility: hidden; }
.cabinet.playing .game-hold { container-type: size; height: auto !important; flex: 1 1 0; }
/* ---------- playing on a computer: boards on both sides, the game in the middle ---------- */
.ps { display: none; }
@media (min-width: 1000px) {
  body:not(.in-game) .cabinet.playing { display: grid !important; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px); grid-template-rows: minmax(0, 1fr); gap: 1rem; padding: 2rem 1.2rem 1rem !important; align-items: stretch; }
  body:not(.in-game) .cabinet.playing .playbar { display: none; }
  body:not(.in-game) .cabinet.playing .ps { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  body:not(.in-game) .cabinet.playing .game-hold { grid-column: 2; grid-row: 1; height: 100% !important; }
  body:not(.in-game) .booth-page:has(.cabinet.playing) .booth-top, body:not(.in-game) .booth:has(.cabinet.playing) .booth-side { display: none; } body:not(.in-game) .booth:has(.cabinet.playing) { grid-template-columns: minmax(0, 1fr); }
}
.ps-left { background: #26332d; border: 10px solid #a86b3e; outline: 3px solid #0a0a0a; border-radius: 10px 14px 9px 13px; padding: 1.1rem 1.1rem 1rem; color: #e3ebe3; gap: .7rem; }
.ps-left h2 { font-size: 1.6rem; color: #fff; margin: 0; line-height: 1.1; } .ps-left .pb-mode { align-self: start; } .ps-help { line-height: 1.45; } .ps-keys { color: #c9d6c9; font-size: .95rem; }
kbd { display: inline-block; min-width: 1.8em; text-align: center; background: #f6eee9; color: #1a0d0f; border: 2px solid #0a0a0a; border-bottom-width: 4px; border-radius: 7px; padding: 0 .35em; font: inherit; font-weight: 700; font-size: .9em; line-height: 1.5; }
.ps-btns { margin-top: auto; display: grid; gap: .5rem; } .ps-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; background: #f6eee9; color: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 12px 10px 13px 9px; font-weight: 700; } .ps-btn:hover { background: #fff; } .ps-btn[aria-pressed="false"] { background: #b8aaa4; } .ps-btn.out { background: var(--red); color: #fff; } .ps-btn.out:hover { background: var(--red-up, #d93a46); } .ps-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; } .ps-btn .pb-ico { width: 22px; height: 22px; }
.ps-right .chalk { flex: 1; margin: 0; } .ps-right .chalk h2 { font-size: 1.3rem; } .ps-best { font-size: 2rem; font-weight: 700; color: #ffe08a; }
/* ---------- back buttons and text links: real little buttons instead of underlined text ---------- */
.back { display: inline-flex; align-items: center; gap: .55rem; justify-self: start; min-height: 42px; padding: .3rem .95rem .3rem .75rem; background: #2a1719; color: #fff !important; border: 3px solid #0a0a0a; border-radius: 12px 10px 13px 9px; font-weight: 700; text-decoration: none; transition: background .2s, translate .2s cubic-bezier(.16, 1, .3, 1); } .back:hover { background: var(--red); translate: -2px 0; } .back:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.back-arrow, .pb-arrow { display: inline-block; width: 10px; height: 10px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; rotate: 45deg; margin-left: 3px; flex: none; }
.link { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .2rem .75rem; background: #ffffff0a; color: #fff; border: 2px solid var(--line2, #5a3a3d); border-radius: 10px 8px 11px 7px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; } .link:hover { background: #ffffff16; border-color: var(--gold); color: #fff; } .link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; } .link:disabled { opacity: .5; cursor: default; }
.panel > .link { color: var(--gold); } .booth-counter .link { color: #2a1800; border-color: #2a1800; background: #fff6; } .booth-counter .link:hover { background: #fffa; } .whoami .link { color: var(--muted); } .lob-act .link, .lob-row .link { min-height: 34px; padding: .1rem .6rem; }
/* full screen on a computer: the stall without its awning, boards stay */
.booth-page:fullscreen { background: #1a0d0f; padding: 1rem 1.2rem; display: flex; flex-direction: column; overflow: hidden; } .booth-page:fullscreen .booth-awn { display: none; } .booth-page:fullscreen .booth, .booth-page:fullscreen .booth-main { flex: 1; min-height: 0; height: 100%; } .booth-page:fullscreen .booth-main { display: flex; flex-direction: column; }
.booth-page:fullscreen .cabinet { flex: 1; min-height: 0; } .booth-page:fullscreen .cabinet.playing { padding-top: 1rem !important; border-top: 14px solid #a86b3e; }
.booth-page::backdrop { background: #1a0d0f; }
.fs-ico { width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) 0 0 / 6px 3px, linear-gradient(currentColor, currentColor) 0 0 / 3px 6px, linear-gradient(currentColor, currentColor) 100% 0 / 6px 3px, linear-gradient(currentColor, currentColor) 100% 0 / 3px 6px, linear-gradient(currentColor, currentColor) 0 100% / 6px 3px, linear-gradient(currentColor, currentColor) 0 100% / 3px 6px, linear-gradient(currentColor, currentColor) 100% 100% / 6px 3px, linear-gradient(currentColor, currentColor) 100% 100% / 3px 6px; background-repeat: no-repeat; }
.cabinet.playing { overflow: clip; }
/* phone: only the game, and one round button in the corner */
.pb-corner, .pb-menu { display: none; }
@media (max-width: 999px) {
  .in-game .cabinet.playing .playbar { display: none !important; }
  .in-game .pb-corner { display: grid; place-items: center; position: absolute; z-index: 8; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); width: 44px; height: 44px; border-radius: 50%; background: #0a0a0ab3; color: #fff; border: 2px solid #ffffff55; }
  .in-game .pb-corner .pb-pause { width: 13px; height: 16px; }
  .in-game .pb-menu:not([hidden]) { display: grid; gap: .6rem; position: absolute; z-index: 9; left: 50%; top: 50%; translate: -50% -50%; width: min(300px, 84vw); background: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 20px 15px 22px 14px; padding: 1.2rem; box-shadow: 0 20px 60px #000c; }
  .pb-menu-title { font-size: 1.6rem; color: #fff; text-align: center; margin-bottom: .2rem; } .pb-menu .go { background: var(--gold); }
}
/* full screen: with the button, or with F11 */
body.f11:has(.cabinet.playing) #top, body.f11:has(.cabinet.playing) #village, body.f11:has(.cabinet.playing) #helper, body.f11:has(.cabinet.playing) #snow { display: none !important; }
body.f11:has(.cabinet.playing) main, body.f11:has(.cabinet.playing) .place { height: 100dvh !important; padding: 0 !important; width: 100% !important; max-width: none !important; }
body.f11 .booth-page:has(.cabinet.playing) { height: 100dvh; background: #1a0d0f; padding: 1rem 1.2rem; display: flex; flex-direction: column; overflow: hidden; } body.f11 .booth-page:has(.cabinet.playing) .booth-awn { display: none; } body.f11 .booth-page:has(.cabinet.playing) .booth, body.f11 .booth-page:has(.cabinet.playing) .booth-main { flex: 1; min-height: 0; height: 100%; } body.f11 .booth-page:has(.cabinet.playing) .booth-main { display: flex; flex-direction: column; } body.f11 .booth-page:has(.cabinet.playing) .cabinet { flex: 1; min-height: 0; } body.f11 .booth-page .cabinet.playing { padding-top: 1rem !important; border-top: 14px solid #a86b3e; }
/* which copy of a thing you are moving */
.copy-pick { grid-column: 1 / -1; justify-self: start; } .copy-pick button { min-width: 48px; } .copy-pick button.on { background: var(--gold); color: #2a1800; } .sliders > .row { gap: .4rem; flex-wrap: wrap; }
/* ---------- the walk for new players: a ring around the real button and a card next to it ---------- */
.walk-ring { position: fixed; z-index: 90; border-radius: 14px; box-shadow: 0 0 0 4px var(--gold), 0 0 0 9999px #0a0406b3; pointer-events: none; transition: left .3s cubic-bezier(.16, 1, .3, 1), top .3s cubic-bezier(.16, 1, .3, 1), width .3s cubic-bezier(.16, 1, .3, 1), height .3s cubic-bezier(.16, 1, .3, 1); }
.walk-ring.tap { animation: walk-pulse 1.4s ease-in-out infinite; } .walk-ring.still { transition: none; }
@keyframes walk-pulse { 50% { box-shadow: 0 0 0 7px var(--gold), 0 0 0 9999px #0a0406b3; } }
.walk-ring.dim { inset: 0; border-radius: 0; box-shadow: none; background: #0a0406b3; animation: none; }
.walk-card { position: fixed; z-index: 91; background: #fffaf3; color: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 18px 14px 19px 13px; padding: 1rem 1.1rem .8rem; box-shadow: 0 16px 40px #000a; }
.walk-card::before { content: ""; position: absolute; left: calc(var(--arrow, 50%) - 11px); width: 18px; height: 18px; background: #fffaf3; border: 3px solid #0a0a0a; rotate: 45deg; }
.walk-card.below::before { top: -12px; border-right: 0; border-bottom: 0; } .walk-card.above::before { bottom: -12px; border-left: 0; border-top: 0; } .walk-card.over::before, .walk-card.mid::before { display: none; }
.walk-card.mid { left: 50%; top: 50%; translate: -50% -50%; width: min(400px, calc(100vw - 32px)); text-align: center; }
.walk-card h2 { font-size: 1.5rem; margin: 0 0 .3rem; color: #1a0d0f; line-height: 1.15; } .walk-card p { margin: 0 0 .6rem; line-height: 1.45; }
.walk-step { font-size: .85rem; font-weight: 700; color: var(--red); margin-bottom: .1rem !important; }
.walk-art { display: grid; place-items: center; } .walk-art .cat { width: 120px; height: auto; }
.walk-btns { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .4rem; } .walk-card.mid .walk-btns { justify-content: center; }
.walk-card .link { color: #5a2a2e; background: #0000000a; border-color: #0000002a; } .walk-card .link:hover { color: #1a0d0f; border-color: var(--red); background: #0000000f; }
.walk-more { margin-bottom: .5rem; }
@media (prefers-reduced-motion: reduce) { .walk-ring { transition: none; } .walk-ring.tap { animation: none; } }
/* ---------- leaderboard: the top five on their gift boxes, on a stage under the market lights ---------- */
.lb-stage { position: relative; isolation: isolate; margin: 1.4rem 0 2.6rem; padding: 0 clamp(.6rem, 2.5vw, 2rem); border: 14px solid #a86b3e; border-radius: 8px; box-shadow: inset 0 0 0 3px #0a0a0a, 0 0 0 3px #0a0a0a, 0 18px 40px #000a; overflow: hidden; background: #12080a; } /* the same wooden frame as the market stalls */
.lb-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#12080a 0%, #12080a00 30%, #12080a00 62%, #12080a 100%), url(/img/glow.webp) center 30% / cover; filter: saturate(1.1) brightness(.5) blur(2px); }
.lb-awn { display: block; width: calc(100% + 2 * clamp(.6rem, 2.5vw, 2rem)); max-width: none; height: clamp(54px, 9vw, 96px); object-fit: cover; object-position: bottom; margin: 0 calc(-1 * clamp(.6rem, 2.5vw, 2rem)); }
.lb-lights { display: flex; justify-content: space-between; margin: -.4rem 4% 0; height: 30px; border-top: 3px solid #0a0a0a; border-radius: 0 0 50% 50% / 0 0 100% 100%; } .lb-lights img { width: 22px; margin-top: -5px; }
.podium { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 0; margin: .6rem calc(-1 * clamp(.6rem, 2.5vw, 2rem)) 0; }
.podium li { max-width: none; flex: none; display: grid; grid-row: span 2; grid-template-rows: subgrid; justify-items: center; text-align: center; min-width: 0; padding: 0 .4rem; }
.podium .pl4 { grid-column: 1; } .podium .pl2 { grid-column: 2; } .podium .pl1 { grid-column: 3; } .podium .pl3 { grid-column: 4; } .podium .pl5 { grid-column: 5; }
.pd-stand { align-self: end; width: 100%; display: grid; justify-items: center; } .pd-who { display: grid; justify-items: center; gap: .1rem; width: 100%; min-width: 0; padding-bottom: .2rem; }
.pd-cat { width: 70%; background: none; border: 0; padding: 0; margin-bottom: -8%; position: relative; z-index: 2; cursor: pointer; transition: translate .25s cubic-bezier(.16, 1, .3, 1); } .pd-cat:hover { translate: 0 -6px; } .pd-cat:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 14px; } .pd-cat .cat { width: 100%; height: auto; display: block; }
.pl1 .pd-cat { width: 92%; } .pl2 .pd-cat, .pl3 .pd-cat { width: 80%; }
.pd-who .nametag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #0a0a0acc; padding: .05rem .5rem; border-radius: 8px; position: relative; z-index: 3; }
.pd-stars { display: inline-flex; align-items: center; gap: .25rem; font-variant-numeric: tabular-nums; color: #fff; position: relative; z-index: 3; } .pd-stars svg { width: 18px; height: 18px; } .pd-stars b { font-size: 1.05rem; } .pl1 .pd-stars b { font-size: 1.35rem; color: var(--gold); }
.pd-free { color: var(--muted); font-weight: 700; padding: 2rem 0 .6rem; }
.pd-gift { position: relative; width: 66%; } .pl1 .pd-gift { width: 100%; } .pl2 .pd-gift { width: 86%; } .pl3 .pd-gift { width: 78%; } .pl5 .pd-gift { width: 58%; }
.pd-gift .gift-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px #000a); }
.pd-no { position: absolute; left: 50%; top: 58%; translate: -50% -50%; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: #fffaf3; color: #1a0d0f; border: 3px solid #0a0a0a; font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.5rem); line-height: 1; } .pl1 .pd-no { font-size: clamp(1.3rem, 3.2vw, 2.1rem); }
.pd-icon { position: absolute; right: 4%; bottom: 8%; width: 30%; max-width: 46px; aspect-ratio: 1; display: grid; place-items: center; background: #1a0d0f; border: 2px solid #0a0a0a; border-radius: 50%; } .pd-icon .prize-art { width: 70%; height: 70%; }
.pd-prize { align-self: stretch; width: calc(100% + .8rem); margin: 0 -.4rem; display: grid; align-content: start; justify-items: center; gap: .25rem; padding: 1rem .5rem 1.4rem; background: url(/m/plank.webp) center top / 100% 30px no-repeat, linear-gradient(#5a3420, #3a2014); border-top: 3px solid #0a0a0a; }
.pd-prize small { padding-top: .7rem; color: #f1c99a; font-weight: 700; font-size: .82rem; } .pd-prize b { color: #fff; font-size: 1.05rem; line-height: 1.15; } .pl1 .pd-prize b { color: var(--gold); font-size: 1.25rem; } .pd-prize span { color: #e9d6c8; font-size: .88rem; line-height: 1.35; max-width: 22ch; }
.podium .me .nametag { outline: 2px solid var(--gold); }
@media (max-width: 720px) {
  .podium { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); }
  .podium .pl2 { grid-column: 1 / 3; grid-row: 1 / span 2; } .podium .pl1 { grid-column: 3 / 5; grid-row: 1 / span 2; } .podium .pl3 { grid-column: 5 / 7; grid-row: 1 / span 2; }
  .podium .pl4 { grid-column: 1 / 4; grid-row: 3 / span 2; } .podium .pl5 { grid-column: 4 / 7; grid-row: 3 / span 2; } .podium .pl4 .pd-gift, .podium .pl5 .pd-gift { width: 44%; } .podium .pl4 .pd-cat, .podium .pl5 .pd-cat { width: 48%; }
  .podium .pl4 .pd-who { padding-top: 1rem; } .pd-prize span { display: none; } .pd-prize { padding: .8rem .3rem 1rem; } .pd-prize b { font-size: .92rem; } .pl1 .pd-prize b { font-size: 1.02rem; } .pd-who .nametag { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .pd-cat { transition: none; } }
/* everybody after the top five: a scoreboard */
.scores { margin-top: 1rem; } .scores h2 { margin-bottom: .6rem; }
.rest { margin: 0; background: #1f1214; border: 3px solid #0a0a0a; border-radius: 18px 14px 19px 13px; overflow: hidden; } .rest li { display: grid; grid-template-columns: 3.2rem 50px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .55rem 1.1rem .55rem .6rem; border-top: 2px dashed #ffffff14; } .rest li:first-child { border-top: 0; }
.rest .rk { font-size: 1.5rem; font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; } .rest .catbtn { background: none; border: 0; padding: 0; } .rest .cat { width: 50px; height: 54px; }
.rest-name { min-width: 0; display: grid; } .rest-name .nametag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rest-name > span { color: var(--muted); font-size: .88rem; }
.rest-stars { display: inline-flex; align-items: center; gap: .3rem; font-size: 1.15rem; font-variant-numeric: tabular-nums; } .rest-stars svg { width: 20px; height: 20px; }
.rest li.me { background: var(--gold); } .rest li.me .rk, .rest li.me .rest-name > span, .rest li.me .rest-stars { color: #2a1800; } .rest li.me .nametag { color: #2a1800; }
/* the climb button says what it costs, the same as the text under it */
.climb-txt { display: grid; text-align: left; line-height: 1.15; } .climb-txt small { font-size: .8rem; font-weight: 700; opacity: .85; }
/* ---------- giveaways: the raffle is a market booth, the tickets are real paper, the dates are gift tags ---------- */
.nitro { position: relative; isolation: isolate; padding: 0 clamp(.6rem, 2.5vw, 2rem) 2rem; background: #8c1826; border: 14px solid #a86b3e; border-radius: 8px; box-shadow: inset 0 0 0 3px #0a0a0a, 0 0 0 3px #0a0a0a, 0 18px 40px #000a; overflow: hidden; }
.nitro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0000 40%, #5e0d17), repeating-linear-gradient(90deg, #ffffff06 0 2px, #0000 2px 9px); }
.nitro .lb-lights { margin-bottom: 1rem; } .nitro-top .prize-art { width: 88px; height: 88px; filter: drop-shadow(0 8px 12px #0008); }
.ticket { position: relative; color: #3a1a1c; background: #fffaf3; min-height: 132px; transition: translate .25s cubic-bezier(.16, 1, .3, 1), rotate .25s cubic-bezier(.16, 1, .3, 1); }
.ticket:not(.got) { background: #e7d7c9; color: #6a4a46; } .ticket:not(.got) b { color: #4a2a2c; } .ticket:not(.got) .ticket-stub { border-color: #00000030; } .ticket:not(.got) .ticket-ico { opacity: .45; }
.ticket-stub { display: grid; align-content: center; justify-items: center; gap: .3rem; border-right: 3px dashed #0000002e; } .ticket-stub small { font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: inherit; opacity: .8; writing-mode: horizontal-tb; }
.ticket-body { position: relative; } .ticket-body b { color: #1a0d0f; }
.ticket.got { background: #fffaf3; color: #3a1a1c; } .ticket.got b { color: var(--red); } .ticket.got .ticket-stub { background: var(--red); border-color: #0000; color: #fff; } .ticket.got .ticket-stub small { color: #fff; }
.ticket.got:hover { translate: 0 -3px; rotate: -.6deg; }
.stamp { position: absolute; right: .9rem; top: .7rem; rotate: -12deg; border: 3px solid var(--red); color: var(--red) !important; border-radius: 8px; padding: .05rem .55rem; font-weight: 700; font-size: 1.05rem !important; line-height: 1.3; opacity: .85; mix-blend-mode: multiply; pointer-events: none; }
.ticket progress { accent-color: var(--red); height: 12px; }
.nitro .count, .nitro .chance, .nitro p { color: #ffe9e2; }
/* the date is a little gift tag on a string */
.give-day { position: relative; margin-top: 18px; background: #fffaf3; border: 3px solid #0a0a0a; border-radius: 6px 6px 14px 14px; clip-path: none; overflow: visible; rotate: -4deg; box-shadow: 0 8px 16px #0007; }
.give-day::before { content: ""; position: absolute; left: 50%; top: 7px; width: 12px; height: 12px; translate: -50% 0; border-radius: 50%; background: var(--ink); border: 2px solid #0a0a0a; }
.give-day::after { content: ""; position: absolute; left: calc(50% - 1px); top: -20px; width: 3px; height: 30px; background: var(--gold); border-radius: 2px; rotate: 8deg; transform-origin: bottom; }
.give-day small { background: none; color: var(--red); border: 0; padding: 1.4rem 0 0; font-weight: 700; font-size: .95rem; } .give-day b { padding: .1rem 0 .55rem; font-size: 2.3rem; }
.gv:nth-child(even) .give-day { rotate: 3deg; } .gv.g-now .give-day { background: var(--gold); } .gv.g-now .give-day small { color: #5a2a00; }
.gv { border-bottom: 2px dashed #ffffff1c; } .gv h3 { font-size: 1.5rem; } .prize-side .prize-art { width: 64px; height: 64px; filter: drop-shadow(0 6px 10px #0008); }
.gv.g-now { background: #3a1a1d; border: 3px solid var(--gold); border-radius: 18px 14px 19px 13px; padding: 1.2rem 1.3rem 1.3rem; }
@media (prefers-reduced-motion: reduce) { .ticket { transition: none; } }
.gv .ticket { max-width: 480px; margin-top: .8rem; min-height: 112px; }
.badgerace { background: #2a1719; border: 3px solid #0a0a0a; border-radius: 18px 14px 19px 13px; padding: 1.1rem 1.3rem 1.2rem; } .badgerace > h2 { margin-top: 0; } .badgerace .gb .prize-art { width: 58px; height: 58px; filter: drop-shadow(0 6px 10px #0008); } .badgerace .gb b { font-size: 1.15rem; color: #fff; }
/* ---------- picture puzzle: bigger, on a market board, with the doodle cats ---------- */
body[data-place="toys"] .place { max-width: min(1240px, calc(100% - 2rem)); }
.puzzle { border: 14px solid #a86b3e; border-radius: 8px; box-shadow: inset 0 0 0 3px #0a0a0a, 0 0 0 3px #0a0a0a, 0 18px 40px #000a; background: #2a1517; padding: clamp(.8rem, 2.4vw, 1.8rem); }
.puzzle img.em { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; user-select: none; } .em.flip { scale: -1 1; }
.hunt { gap: 0; padding: .4rem; background: #22100f; border-radius: 12px; }
.hunt button { position: relative; transition: scale .2s cubic-bezier(.16, 1, .3, 1), filter .2s; } .hunt button:hover { z-index: 2; filter: drop-shadow(0 0 0 #fff) brightness(1.08); scale: 1.12; } .hunt button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.hunt-find { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: -.2rem auto 1rem; width: max-content; max-width: 100%; padding: .5rem 1.4rem .5rem 1.1rem; background: url(/m/plank.webp) center / 100% 100% no-repeat; color: #2a1800; font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem); }
.hunt-target { width: clamp(64px, 9vw, 96px); height: auto; filter: drop-shadow(0 6px 8px #0008); }
.odd { gap: clamp(.3rem, 1.2vw, 1rem); padding: .6rem; background: #22100f; border-radius: 12px; } .odd button { border-radius: 14px; transition: scale .2s cubic-bezier(.16, 1, .3, 1), background .2s; } .odd button:hover { scale: 1.07; background: #ffffff0d; }
.shelf { background: #fffaf3; border: 3px solid #0a0a0a; gap: .2rem; padding: .7rem; } .shelf .em { padding: 10%; } .shelf button.marked { background: #f5c04a66; border-radius: 10px; outline: 3px solid var(--red); }
.pair { gap: clamp(.8rem, 2vw, 1.6rem); }
@media (max-width: 720px) { .puzzle { border-width: 9px; padding: .6rem; } .hunt-find { margin-bottom: .7rem; } }
@media (prefers-reduced-motion: reduce) { .hunt button, .odd button { transition: none; } }
/* phone held upright: the game starts under the round pause button, so the hearts and bars stay in their own corner */
@media (max-width: 999px) and (orientation: portrait) {
  .in-game .cabinet.playing .game-hold { box-sizing: border-box; padding-top: calc(64px + env(safe-area-inset-top)); }
  .in-game .cabinet.playing .stage { max-height: calc(100dvh - 64px - env(safe-area-inset-top)); }
  .in-game .cabinet.playing .touch.has-pad .stage { max-height: calc(100dvh - 254px - env(safe-area-inset-top)) !important; }
}
.nitro-art { object-fit: contain; filter: drop-shadow(0 4px 8px #0006); }
/* lots of cats: on a phone the crowd wraps into more rows instead of getting tiny */
@media (max-width: 720px) { .hunt { grid-template-columns: repeat(8, 1fr) !important; } .odd { grid-template-columns: repeat(7, 1fr) !important; } }
@media (min-width: 721px) and (max-width: 1100px) { .hunt { grid-template-columns: repeat(12, 1fr) !important; } }
/* how the tree works: short parts with headings */
dialog.how { max-width: min(640px, 94vw); max-height: 88dvh; overflow-y: auto; } dialog.how h3 { margin: 1.3rem 0 .4rem; font-size: 1.15rem; color: var(--gold); } .how-lead { font-size: 1.05rem; } dialog.how .steps { display: grid; gap: .45rem; } dialog.how .steps li { line-height: 1.45; }
/* the fish basket */
.basket { display: grid; gap: .6rem; } .bk-top { display: flex; gap: .7rem; align-items: center; } .bk-top img { flex: none; } .bk-top h2 { margin: 0; } .bk-top p { margin: .1rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.bk-meter { height: 14px; background: #2a1719; border: 2px solid #0a0a0a; border-radius: 99px; overflow: hidden; } .bk-meter i { display: block; height: 100%; background: #8fd0ff; border-radius: 99px; transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.bk-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; } .bk-row small { color: var(--muted); }
/* things you only get from badges */
.ink_starlight, .ink_noir, .ink_prank { color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 300% 100%; animation: inkflow 6s linear infinite; }
.ink_starlight { background-image: linear-gradient(100deg, #fff7d0, #ffd84d 25%, #fff 50%, #ffd84d 75%, #fff7d0); } .ink_noir { background-image: linear-gradient(100deg, #e9e2dc, #8a7f86 30%, #fff 50%, #8a7f86 70%, #e9e2dc); } .ink_prank { background-image: linear-gradient(100deg, #7fe39b, #ffe66b 25%, #ff7d84 50%, #ffe66b 75%, #7fe39b); animation-duration: 3s; }
.frame-frame_paws { border: 2px dashed #ffa3cf; color: #ffd6ea; } .frame-frame_snow { border: 2px solid #bfe6ff; color: #e8f6ff; box-shadow: 0 0 0 2px #0a0a0a, inset 0 0 0 1px #ffffff55; } .frame-frame_lights { border: 3px solid transparent; border-image: repeating-linear-gradient(90deg, #ff7d84 0 6px, #ffd84d 6px 12px, #7fe39b 12px 18px, #8fd0ff 18px 24px) 3; border-radius: 0; }
.bd-fish { display: block; color: var(--gold); font-weight: 700; font-size: .8rem; margin-top: .15rem; }
@media (prefers-reduced-motion: reduce) { .ink_starlight, .ink_noir, .ink_prank { animation: none; } }
/* the 404 page */
.lost-page { min-height: 100dvh; display: grid; place-items: center; background: var(--ink); padding: 1.5rem 1rem; }
.lost { display: grid; justify-items: center; text-align: center; gap: .6rem; max-width: 540px; }
.lost-art { position: relative; width: 220px; } .lost-cat { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 24px #000a); } .lost-hat { position: absolute; left: 30%; top: -12%; width: 52%; height: auto; rotate: -14deg; }
.lost-code { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; } .lost h1 { margin: 0; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.05; } .lost-text { color: var(--muted); line-height: 1.5; max-width: 38ch; }
.lost-row { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }
/* loading: the tree lights come on one after the other while the cat waits */
.boot { min-height: 70dvh; display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center; padding: 2rem 1rem; }
.boot-lights { display: flex; gap: clamp(.6rem, 3vw, 1.1rem); padding-top: .4rem; border-top: 3px solid #0a0a0a; border-radius: 50% 50% 0 0 / 30% 30% 0 0; width: min(340px, 80vw); justify-content: space-between; margin-bottom: .6rem; }
.boot-lights img { width: 20px; margin-top: -5px; opacity: .25; filter: saturate(.3); animation: boot-bulb 1.8s calc(var(--i) * .16s) infinite; }
@keyframes boot-bulb { 0%, 100% { opacity: .25; filter: saturate(.3); } 30%, 60% { opacity: 1; filter: saturate(1.2) drop-shadow(0 0 6px #ffd84d); } }
.boot-cat { position: relative; width: 150px; animation: boot-hop 1.8s cubic-bezier(.45, 0, .55, 1) infinite; } .boot-sticker { width: 100%; height: auto; display: block; } .boot-hat { position: absolute; width: 56%; height: auto; left: 25%; top: -16%; rotate: -10deg; }
@keyframes boot-hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.boot-name { margin: .2rem 0 0; font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; } .boot-name i { color: var(--gold); font-style: normal; } .boot-text { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .boot-lights img { animation: none; opacity: 1; filter: none; } .boot-cat { animation: none; } }
/* the card that explains today */
dialog.intro { max-width: min(520px, 94vw); } .intro-art { display: grid; place-items: center; height: 120px; margin-bottom: .4rem; } .intro-art img { max-height: 120px; width: auto; filter: drop-shadow(0 8px 14px #0008); }
.intro-list { display: grid; gap: .55rem; margin: .4rem 0 1rem; padding-left: 1.2rem; } .intro-list li { line-height: 1.45; }
/* host corner: who won what */
.hw-list { display: grid; gap: 0; margin: .6rem 0 0; padding: 0; list-style: none; }
.hw { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--line); }
.hw-pic { display: grid; place-items: center; width: 3rem; height: 3rem; } .hw-pic svg { width: 100%; height: auto; }
.hw-label { display: block; font-size: .85rem; color: var(--muted); font-weight: 700; } .hw-what { display: block; }
.hw-who { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; } .hw-who b { padding: .15rem .6rem; border-radius: 99px; background: #e8b04a22; border: 1px solid #e8b04a66; color: var(--gold); font-size: .9rem; }
.hw-wait { display: block; margin-top: .2rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) { .hw { grid-template-columns: 2.4rem minmax(0, 1fr); } .hw > .btn { grid-column: 2; justify-self: start; } .hw-pic { width: 2.4rem; height: 2.4rem; } }
/* ---------- guess the song: one record in the middle of the page ---------- */
.sg-head { text-align: center; margin-inline: auto; max-width: 560px; }
.song { width: min(100%, 620px); margin: 0 auto; display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.sg-deck { position: relative; width: 100%; display: grid; justify-items: center; gap: .3rem; padding: 1.8rem 1rem 1.4rem; border-radius: 26px 22px 28px 20px; border: 3px solid #0a0a0a;
  background: radial-gradient(circle at 50% 36%, #4a2326 0, #2a1517 55%, #1c0e10 100%); box-shadow: 0 18px 40px #0009; }
.sg-player { position: relative; width: clamp(190px, 56vw, 250px); aspect-ratio: 1; margin-bottom: .7rem; }
.sg-disc { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #0a0a0a; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: repeating-radial-gradient(circle at 50% 50%, #161012 0 2px, #241a1d 2px 4px); box-shadow: 0 14px 28px #000c, 0 0 0 10px #f5c04a14; transition: box-shadow .4s cubic-bezier(.16, 1, .3, 1), scale .25s cubic-bezier(.16, 1, .3, 1); }
.sg-disc::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: linear-gradient(135deg, #ffffff17, #0000 45%); pointer-events: none; }
.sg-disc:hover { scale: 1.02; } .sg-disc:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.sg-label { width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--red); border: 3px solid #0a0a0a; display: grid; place-items: center; overflow: hidden; } .sg-label img { width: 86%; height: auto; }
.sg-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); border: 3px solid #0a0a0a; box-shadow: 0 6px 14px #0008; display: grid; place-items: center; transition: opacity .2s, scale .25s cubic-bezier(.16, 1, .3, 1); }
.sg-play::before { content: ""; margin-left: 12%; border-left: 16px solid var(--on-gold); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.sg-disc:hover .sg-play { scale: 1.08; }
.sg-deck.on .sg-disc { animation: sg-spin 1.8s linear infinite; box-shadow: 0 14px 28px #000c, 0 0 0 10px #f5c04a33, 0 0 46px #f5c04a40; } .sg-deck.on .sg-play { opacity: 0; scale: .6; } @keyframes sg-spin { to { rotate: 360deg; } }
.sg-arm { position: absolute; right: -6%; top: -4%; width: 9px; height: 52%; background: #c9c1bb; border: 2px solid #0a0a0a; border-radius: 6px; transform-origin: 50% 6px; rotate: 14deg; transition: rotate .5s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.sg-arm::before { content: ""; position: absolute; top: -9px; left: -8px; width: 21px; height: 21px; border-radius: 50%; background: #8a7f86; border: 2px solid #0a0a0a; }
.sg-arm::after { content: ""; position: absolute; bottom: -6px; left: -5px; width: 15px; height: 13px; background: #3a2124; border: 2px solid #0a0a0a; border-radius: 3px; }
.sg-deck.on .sg-arm { rotate: 32deg; }
.sg-len { font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.sg-hint { color: var(--muted); }
.sg-track { width: min(280px, 80%); height: 12px; margin-top: .5rem; background: #140a0b; border: 2px solid #0a0a0a; border-radius: 99px; overflow: hidden; } .sg-fill { display: block; height: 100%; width: 0; background: var(--gold); }
/* the six lengths on one line */
.sg-steps { position: relative; width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; }
.sg-steps::before { content: ""; position: absolute; left: 8.33%; right: 8.33%; top: 9px; height: 3px; background: var(--line2); border-radius: 3px; }
.sg-steps li { position: relative; display: grid; justify-items: center; gap: .15rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sg-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--moss); border: 3px solid var(--line2); }
.sg-steps b { font-size: .95rem; } .sg-steps small { display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; } .sg-star { width: 14px; height: 14px; }
.sg-steps .used { opacity: .5; } .sg-steps .used b { text-decoration: line-through; } .sg-steps .used .sg-dot { background: var(--line2); }
.sg-steps .now { color: var(--gold); } .sg-steps .now .sg-dot { background: var(--gold); border-color: #0a0a0a; scale: 1.25; box-shadow: 0 0 0 5px #f5c04a33; }
/* four answers */
.sg-options { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; text-align: left; }
.sg-opt { display: flex; align-items: center; gap: .7rem; min-height: 64px; padding: .6rem .9rem; background: #fffaf3; color: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 16px 12px 17px 11px; box-shadow: 0 4px 0 #0a0a0a; font-weight: 700; transition: translate .15s, box-shadow .15s, background .15s; }
.sg-opt:hover:not(:disabled) { translate: 0 -2px; box-shadow: 0 6px 0 #0a0a0a; background: #fff; } .sg-opt:active:not(:disabled) { translate: 0 3px; box-shadow: 0 1px 0 #0a0a0a; } .sg-opt:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sg-letter { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; border: 2px solid #0a0a0a; font-size: .95rem; }
.sg-name { display: grid; gap: .1rem; min-width: 0; justify-items: start; text-align: left; } .sg-name small { font-weight: 400; font-size: .85rem; color: #7a5a55; }
.sg-opt.bad { background: #3a2124; color: #b89a94; box-shadow: none; translate: 0 3px; cursor: default; } .sg-opt.bad .sg-name > span { text-decoration: line-through; } .sg-opt.bad .sg-letter { background: #5a3a3d; } .sg-opt.bad .sg-name small { color: #8a6a65; }
.sg-opt.right { background: var(--gold); color: var(--on-gold); } .sg-opt.right .sg-letter { background: var(--on-gold); color: var(--gold); } .sg-opt.right .sg-name small { color: #5a3a10; }
.song.over .sg-opt:not(.right):not(.bad) { opacity: .55; }
.sg-row { width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem 1.4rem; flex-wrap: wrap; }
.sg-left { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); } .sg-left i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid #0a0a0a; } .sg-left i.gone { background: var(--line); } .sg-left span { margin-left: .3rem; }
.sg-answer { width: 100%; display: grid; justify-items: center; gap: .15rem; padding: 1rem; background: url(/m/plank.webp) center / 100% 100% no-repeat; color: var(--on-gold); }
.sg-answer span { font-weight: 700; } .sg-answer b { font-size: clamp(1.3rem, 4vw, 1.8rem); } .sg-answer small { font-size: .95rem; font-weight: 700; color: #5a3a10; }
.sg-foot { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) { .sg-options { grid-template-columns: 1fr; } .sg-opt { min-height: 56px; } .sg-player { width: min(46vw, 180px); } .sg-deck { gap: .15rem; } .sg-steps b { font-size: .8rem; } .sg-steps small { font-size: .75rem; } .sg-deck { padding-top: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .sg-deck.on .sg-disc { animation: none; } .sg-arm, .sg-disc, .sg-play, .sg-opt { transition: none; } }
/* snow when you guess the song */
.sg-snow { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.sg-snow i { position: absolute; top: -40px; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff8; animation: sg-fall var(--d) cubic-bezier(.3, .1, .6, 1) both; }
.sg-snow i.big { background: none; box-shadow: none; color: #eaf6ff; filter: drop-shadow(0 0 6px #c8ecffaa); } .sg-snow i.big svg { width: 100%; height: 100%; display: block; }
@keyframes sg-fall { 0% { translate: 0 0; rotate: 0deg; } 100% { translate: var(--w) calc(100vh + 80px); rotate: var(--r); } }
/* ---------- the shop: three stalls on a street, a manhole, and the night market below ---------- */
.shop-street { position: relative; margin-top: .4rem; }
.shop-street .lights-line { margin: .4rem 0 -.4rem; }
.shop-stalls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; align-items: end; max-width: 880px; margin: 1rem auto 0; }
.shop-stall { position: relative; display: grid; justify-items: center; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: #fff; text-align: center; }
.shop-stall .stall-art { width: 100% !important; height: auto !important; max-width: none; } .shop-stall .st-sign { font-size: 1.2rem !important; padding: .6rem 1.5rem .55rem !important; margin-top: -1.8rem !important; min-width: 60% !important; } .shop-stall .st-sign { rotate: -1.2deg; } .shop-stall:nth-child(2) .st-sign { rotate: 1.4deg; } .shop-stall .st-note { margin-top: .3rem; color: var(--muted); font-size: .92rem; }
.nm-stall { cursor: default; } .nm-stall .stall-art { filter: none; }
.shop-stall .stall-art { transition: translate .35s cubic-bezier(.16, 1, .3, 1), filter .35s; filter: brightness(.72) saturate(.8); }
.shop-stall:hover .stall-art, .shop-stall.lit .stall-art { filter: none; } .shop-stall:hover .stall-art { translate: 0 -4px; }
.shop-stall.lit .st-sign { background-color: transparent; box-shadow: 0 0 0 3px var(--gold), 0 8px 20px #0008; border-radius: 6px; }
.shop-stall:focus-visible { outline: none; } .shop-stall:focus-visible .st-sign { outline: 3px solid var(--gold); outline-offset: 4px; }
.cobbles { position: relative; height: 84px; margin-top: 1.2rem; border-radius: 18px 14px 20px 12px; border: 3px solid #0a0a0a;
  background: radial-gradient(circle at 20% 40%, #4a3a3a 0 9px, transparent 10px) 0 0 / 46px 30px, radial-gradient(circle at 70% 70%, #43343a 0 10px, transparent 11px) 0 0 / 52px 34px, linear-gradient(#3a2b2e, #2a1f22); box-shadow: inset 0 10px 24px #0008; }
.manhole { position: absolute; right: 12%; top: 50%; width: 92px; translate: 0 -50%; display: block; border-radius: 50%; transition: rotate .4s cubic-bezier(.16, 1, .3, 1), scale .3s cubic-bezier(.16, 1, .3, 1); }
.manhole svg { width: 100%; height: auto; display: block; } .manhole:hover { rotate: -12deg; scale: 1.06; } .manhole:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.mh-slots { animation: mh-glow 2.8s ease-in-out infinite alternate; } @keyframes mh-glow { from { opacity: .55; } to { opacity: 1; } }
.mh-steam { position: absolute; left: 50%; bottom: 60%; width: 0; pointer-events: none; } .mh-steam i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #ffffff2e; filter: blur(4px); animation: mh-steam 3.6s ease-out infinite; }
.mh-steam i:nth-child(2) { animation-delay: 1.2s; left: -14px; } .mh-steam i:nth-child(3) { animation-delay: 2.4s; left: 8px; }
@keyframes mh-steam { 0% { translate: 0 0; scale: .5; opacity: 0; } 25% { opacity: .9; } 100% { translate: 6px -70px; scale: 1.8; opacity: 0; } }
.shop-counter { max-width: 980px; margin: 1.8rem auto 0; padding: 1.4rem clamp(1rem, 3vw, 1.8rem) 1.8rem; background: linear-gradient(#3a2320, #2a1719); border: 3px solid #0a0a0a; border-radius: 20px 16px 22px 14px; box-shadow: 0 16px 36px #0009; }
.place .shop-counter > h2 { margin: 0 0 1rem !important; display: inline-block; background: url(/m/plank.webp) center / 100% 100% no-repeat; color: var(--on-gold); padding: .45rem 1.4rem; font-size: 1.4rem; rotate: -1deg; }
.shop-ups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.shop-up { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; gap: .5rem .9rem; align-items: center; padding: 1rem 1.1rem; background: #fffaf3; color: #1a0d0f; border: 3px solid #0a0a0a; border-radius: 16px 12px 17px 11px; box-shadow: 0 6px 16px #0007; }
.shop-up .boost-ico { width: 52px; height: 52px; } .shop-up b { color: #1a0d0f; font-size: 1.1rem; } .shop-up > div { display: grid; line-height: 1.3; } .shop-up span { color: #5a3a3a; font-size: .95rem; } .shop-up small { color: #8a5a4a; font-weight: 700; margin-top: .2rem; }
.shop-up .btn { grid-column: 1 / -1; justify-self: start; }
.shop-rumour { margin: 1.2rem 0 0; color: var(--muted); font-style: italic; }
.shop-shelves { margin-bottom: 1rem; } .shop-shelves button.on { background: var(--gold); color: var(--on-gold); border-color: #0a0a0a; }
.shop-counter .wares { margin-top: .4rem; }
/* the night market */
.nmkt { position: relative; padding-bottom: 2rem; } .nmkt::before { content: ""; position: absolute; z-index: -1; inset: -4rem calc(50% - 50vw) -2rem; background: radial-gradient(ellipse at 50% 20%, #1d2b55 0, #10162e 45%, #090b17 100%); }
.nmkt::after { content: ""; position: absolute; z-index: -1; inset: -4rem calc(50% - 50vw) 40%; background: radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 8%, #fffc, transparent), radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent), radial-gradient(1px 1px at 72% 26%, #fffb, transparent), radial-gradient(1.5px 1.5px at 88% 10%, #fff, transparent), radial-gradient(1px 1px at 44% 30%, #fff9, transparent); }
.night-back { display: inline-flex; margin-bottom: .6rem; }
.nmkt .place-head p { color: #c9d3f0; }
.night-scene { max-width: 980px; margin: 0 auto; }
.nm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem; align-items: center; margin-top: 1rem; }
.nm-stall { width: min(100%, 380px); justify-self: center; }
.nm-board { display: grid; gap: 1rem; padding: 1.4rem 1.5rem; background: #141a33; border: 3px solid #0a0a0a; border-radius: 20px 16px 22px 14px; box-shadow: 0 18px 40px #000b, 0 0 0 1px #2c3a6b inset; }
.nm-now { margin: 0; color: #dfe6ff; } .nm-now b { color: var(--gold); } .nm-now .ico, .nm-now svg { width: 22px; height: 22px; vertical-align: -5px; }
.nm-offers { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.nm-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pips pips" "name btn" "text btn"; gap: .2rem 1rem; align-items: center; padding: 1rem 1.1rem; background: #1d2547; border: 2px solid #33417a; border-radius: 14px; }
.nm-pips { grid-area: pips; display: flex; gap: .35rem; margin-bottom: .3rem; } .nm-pips i { width: 28px; height: 8px; border-radius: 4px; background: #33417a; } .nm-pips i.on { background: var(--gold); box-shadow: 0 0 10px #f5c04a66; }
.nm-offer > b { grid-area: name; font-size: 1.2rem; color: #fff; } .nm-offer > p { grid-area: text; margin: 0; color: #c9d3f0; } .nm-offer strong { color: var(--gold); font-size: 1.1rem; }
.nm-offer .btn, .nm-done { grid-area: btn; } .nm-done { color: #8f9cc9; font-weight: 700; }
.nm-foot { margin: 0; color: #8f9cc9; font-size: .92rem; }
@media (max-width: 760px) {
  .shop-stalls { gap: .6rem; } .shop-stall .st-sign { font-size: .9rem !important; padding: .4rem .6rem !important; margin-top: -1.1rem !important; min-width: 0 !important; } .shop-stall .st-note { font-size: .78rem; }
  .shop-ups { grid-template-columns: 1fr; gap: .7rem; } .shop-up { grid-template-columns: 44px minmax(0, 1fr) auto; padding: .8rem .9rem; } .shop-up .btn { grid-column: auto; justify-self: end; } .shop-up .boost-ico { width: 44px; height: 44px; } .cobbles { height: 70px; } .manhole { width: 72px; right: 8%; }
  .nm-row { grid-template-columns: 1fr; gap: 1rem; } .nm-stall { width: min(100%, 260px); } .nm-board { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .mh-slots, .mh-steam i { animation: none; } .mh-steam { display: none; } .manhole, .shop-stall .stall-art { transition: none; } }
/* ---------- the page when the game can't load ---------- */
.oops { display: grid; justify-items: center; text-align: center; gap: .6rem; max-width: 560px; margin: 0 auto; padding: clamp(2.5rem, 9vh, 6rem) 1rem 3rem; }
.oops h1 { margin: .8rem 0 0; font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.1; text-wrap: balance; } .oops > p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 42ch; }
.oops-art { position: relative; width: 240px; height: 250px; }
.oops-server { position: absolute; left: 30px; right: 30px; bottom: 0; height: 132px; display: grid; gap: 6px; padding: 8px; background: #2a2427; border: 4px solid #0a0a0a; border-radius: 12px 10px 13px 9px; box-shadow: 0 18px 30px #000a, inset 0 3px 0 #ffffff14; }
.oops-slot { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: #3b3438; border: 2px solid #0a0a0a; border-radius: 6px; }
.oops-vent { width: 46%; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, #0a0a0a 0 4px, transparent 4px 8px); opacity: .7; }
.oops-leds { display: flex; gap: 6px; } .oops-leds i { width: 8px; height: 8px; border-radius: 50%; background: #5fd17a; box-shadow: 0 0 6px #5fd17a; animation: oops-blink 1.3s steps(2, jump-none) infinite; }
.oops-slot:nth-child(2) .oops-leds i { animation-delay: .4s; } .oops-slot:nth-child(3) .oops-leds i { animation-delay: .8s; } .oops-leds i:nth-child(2) { animation-duration: .9s; } .oops-leds i:nth-child(3) { animation-duration: 1.7s; }
.oops-leds i.red { background: #ff5a5a; box-shadow: 0 0 8px #ff5a5a; animation-duration: .6s; }
@keyframes oops-blink { 50% { opacity: .25; } }
.oops-cat { position: absolute; left: 50%; bottom: 112px; width: 170px; height: auto; translate: -50% 0; transform-origin: 50% 100%; animation: oops-breathe 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 0 #0006); }
@keyframes oops-breathe { 50% { scale: 1.03 .97; } }
.oops-z { position: absolute; right: 18px; top: 0; } .oops-z b { position: absolute; color: #fff; font-size: 1.3rem; opacity: 0; animation: oops-z 3.6s ease-out infinite; }
.oops-z b:nth-child(2) { animation-delay: 1.2s; font-size: 1.6rem; } .oops-z b:nth-child(3) { animation-delay: 2.4s; font-size: 2rem; }
@keyframes oops-z { 0% { translate: 0 40px; opacity: 0; } 20% { opacity: 1; } 100% { translate: 26px -10px; opacity: 0; } }
.oops-row { display: grid; justify-items: center; gap: .5rem; margin-top: 1rem; } .oops-auto { margin: 0; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .oops-cat, .oops-z b, .oops-leds i { animation: none; } .oops-z b { opacity: .7; } .oops-z b:nth-child(2) { translate: 12px -14px; } .oops-z b:nth-child(3) { translate: 24px -30px; } }
/* the shop street in 3D: the middle stall faces you, the two outer ones turn in towards it, the cobbles lie flat */
.shop-street { perspective: 1100px; perspective-origin: 50% 20%; }
.shop-stalls { transform-style: preserve-3d; }
.shop-stall { transform-style: preserve-3d; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.shop-stall:nth-child(1) { transform: rotateY(32deg) translateZ(-40px); transform-origin: 100% 60%; }
.shop-stall:nth-child(2) { transform: translateZ(40px); z-index: 1; }
.shop-stall:nth-child(3) { transform: rotateY(-32deg) translateZ(-40px); transform-origin: 0% 60%; }
.shop-stall:nth-child(1):hover, .shop-stall:nth-child(1).lit { transform: rotateY(24deg) translateZ(-16px); }
.shop-stall:nth-child(3):hover, .shop-stall:nth-child(3).lit { transform: rotateY(-24deg) translateZ(-16px); }
.shop-stall .stall-art::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -6%; height: 12%; border-radius: 50%; background: #0008; filter: blur(8px); z-index: -1; }
.cobbles { height: 150px; margin-top: .6rem; margin-bottom: -48px; transform: rotateX(54deg); transform-origin: 50% 0; }
.manhole { width: 110px; }
@media (max-width: 760px) {
  .shop-street { perspective: 700px; }
  .shop-stall:nth-child(1) { transform: rotateY(20deg) translateZ(-20px); } .shop-stall:nth-child(3) { transform: rotateY(-20deg) translateZ(-20px); } .shop-stall:nth-child(2) { transform: translateZ(26px); }
  .shop-stall:nth-child(1):hover, .shop-stall:nth-child(1).lit { transform: rotateY(14deg); } .shop-stall:nth-child(3):hover, .shop-stall:nth-child(3).lit { transform: rotateY(-14deg); }
  .cobbles { height: 120px; margin-bottom: -40px; } .manhole { width: 84px; }
}
@media (prefers-reduced-motion: reduce) { .shop-stall { transition: none; } }
/* ---------- home, calmer: today on the left, the tree in the middle, what happened on the right ---------- */
.todo-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; } .todo-head h2 { margin: 0; }
.todo-count { font-size: .9rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding: .1rem .55rem; border-radius: 99px; background: #ffffff0d; }
.todo-count.all { color: var(--on-gold); background: var(--gold); }
.home .basket { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .9rem 1rem !important; }
.basket img { width: 44px; height: auto; } .bk-mid { display: grid; gap: .3rem; min-width: 0; }
.bk-line { display: flex; justify-content: space-between; gap: .5rem; } .bk-line span { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.home .basket .bk-meter { margin: 0; } .bk-mid small { color: var(--muted); font-size: .82rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home .goal { padding: .9rem 1.1rem 1rem !important; } .home .goal h2 { font-size: 1.15rem; } .home .goal p { margin: .3rem 0 .5rem; color: var(--muted); font-size: .9rem; }
.tree-key { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .5rem; }
.tree-key ul { display: flex; gap: .9rem; margin: 0; padding: 0; list-style: none; } .tree-key li { display: flex; align-items: center; gap: .3rem; } .tree-key .ico, .tree-key .dot { width: 22px; height: 22px; } .tree-key b { color: var(--gold); font-variant-numeric: tabular-nums; }
.tree-key .link { font-size: .92rem; }
.give-today { margin: 0 !important; } .give-today svg { width: 38px; height: 38px; flex: none; } .give-today > div { display: grid; flex: 1; min-width: 0; line-height: 1.25; } .give-today span { color: var(--muted); font-size: .88rem; }
.home .basket { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "img line line" "img meter meter" "img note btn"; gap: .35rem .8rem; }
.home .basket > img { grid-area: img; align-self: center; } .home .basket .bk-mid { display: contents; } .home .basket .bk-line { grid-area: line; } .home .basket .bk-meter { grid-area: meter; } .home .basket .bk-mid small { grid-area: note; align-self: center; } .home .basket > .btn { grid-area: btn; }
@media (max-width: 900px) { .todo ul { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)) !important; gap: .35rem !important; } .home section.todo:has(li) .todo-head { display: none; } .tree-key { gap: .4rem .9rem; } .tree-key ul { gap: .6rem; } }
/* the shop: a market at night behind it, and the stalls stand on the cobbles */
body[data-place="shop"] main { overflow-x: clip; }
.place:has(> .shop-street) { position: relative; isolation: isolate; }
.place:has(> .shop-street)::before { content: ""; position: absolute; z-index: -1; top: -3rem; left: calc(50% - 50vw); right: calc(50% - 50vw); height: 760px; background: linear-gradient(#1a0d0fa8, #1a0d0fc4 55%, var(--ink) 100%), url(/img/street.webp) center 40% / cover no-repeat; pointer-events: none; }
.shop-stalls { position: relative; z-index: 2; margin-bottom: -170px; }
.shop-stall .st-note { text-shadow: 0 1px 4px #000, 0 0 10px #000; color: #f3dcd4; }
.cobbles { position: relative; z-index: 1; height: 260px; margin-top: 0; margin-bottom: -96px; transform: rotateX(50deg); background-color: #2a1f22; box-shadow: inset 0 18px 30px #000a, 0 30px 40px -20px #000; }
.manhole { top: auto; bottom: 10%; translate: 0 0; right: 14%; }
@media (max-width: 760px) { .shop-stalls { margin-bottom: -96px; } .cobbles { height: 170px; margin-bottom: -60px; } .manhole { bottom: 6%; } }
.shop-stalls { margin-bottom: -120px; } .cobbles { height: 320px; margin-bottom: -120px; } .manhole { bottom: 7%; right: 9%; width: 120px; }
@media (max-width: 760px) { .shop-stalls { margin-bottom: -70px; } .cobbles { height: 200px; margin-bottom: -70px; } .manhole { bottom: 5%; right: 6%; width: 80px; } }
.cobbles { margin-bottom: -80px; } @media (max-width: 760px) { .cobbles { margin-bottom: -50px; } }
/* going down the manhole */
.manhole.open svg { animation: mh-slide .5s cubic-bezier(.5, 0, .2, 1) forwards; } @keyframes mh-slide { to { translate: 70% -18%; rotate: 70deg; } }
.manhole.open::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, #ffd27a 0, #ff9a3c 35%, #1b1030 75%); box-shadow: 0 0 40px 10px #ffb85c88; z-index: -1; animation: mh-hole .5s ease-out both; }
@keyframes mh-hole { from { scale: .3; opacity: 0; } }
.mh-fall { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1d2b55, #090b17 70%); clip-path: circle(0 at var(--x) var(--y)); animation: mhf-open .65s .38s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes mhf-open { to { clip-path: circle(150vmax at var(--x) var(--y)); } }
.mh-fall i { position: absolute; top: 100%; width: 3px; height: var(--h); border-radius: 3px; background: linear-gradient(#ffd27a00, #ffd27a); animation: mhf-streak .55s linear infinite; }
.mh-fall i:nth-child(3n) { background: linear-gradient(#c8ecff00, #c8ecff); } .mh-fall i:nth-child(4n) { width: 2px; }
@keyframes mhf-streak { from { translate: 0 0; } to { translate: 0 -130vh; } }
.mh-fall.land { animation: mhf-out .6s ease-out forwards; clip-path: circle(150vmax at var(--x) var(--y)); } @keyframes mhf-out { to { opacity: 0; } }
/* landing in the night market */
.night-scene.arrive .lights-line .bulb { animation: nm-bulb .7s cubic-bezier(.3, 1.6, .5, 1) both, sway 2.6s 0.7s ease-in-out infinite alternate; }
.night-scene.arrive .lights-line .bulb:nth-child(odd) { animation-delay: .35s, 1s; } .night-scene.arrive .lights-line .bulb:nth-child(even) { animation-delay: .5s, 1.1s; }
@keyframes nm-bulb { from { translate: 0 -60px; opacity: 0; } }
.night-scene.arrive .nm-stall { animation: nm-rise .8s .25s cubic-bezier(.2, 1.4, .4, 1) both; } @keyframes nm-rise { from { translate: 0 80px; scale: .9; opacity: 0; } }
.night-scene.arrive .nm-board { animation: nm-in .6s .55s cubic-bezier(.16, 1, .3, 1) both; } @keyframes nm-in { from { translate: 30px 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mh-fall { display: none; } .night-scene.arrive *, .manhole.open svg { animation: none !important; } }
/* the night market is night all the way down */
body:has(.nmkt) { background: #090b17; }
.nmkt::before { bottom: 0; } body:has(.nmkt) main { overflow-x: clip; }
/* the page scrollbar: our own candy cane floating over the edge (scrollbar.js), so it takes no space */
html.candy-scroll { scrollbar-width: none; } html.candy-scroll::-webkit-scrollbar { display: none; }
#candy-bar { position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: 14px; opacity: 0; transition: opacity .3s; }
#candy-bar.on, #candy-bar:hover { opacity: 1; } #candy-bar[hidden] { display: none; }
.candy-thumb { position: absolute; right: 3px; top: 0; width: 9px; border-radius: 10px; border: 2px solid #0a0a0a; background: repeating-linear-gradient(135deg, #c8202f 0 8px, #fff4ec 8px 16px); box-shadow: 0 2px 8px #0008; cursor: grab; transition: width .15s, right .15s; }
#candy-bar:hover .candy-thumb, #candy-bar.drag .candy-thumb { width: 12px; right: 1px; } #candy-bar.drag .candy-thumb { cursor: grabbing; }
body:has(.nmkt) .candy-thumb { background: repeating-linear-gradient(135deg, #f5c04a 0 8px, #1d2b55 8px 16px); }
@media (prefers-reduced-motion: reduce) { #candy-bar, .candy-thumb { transition: none; } }
/* small scroll boxes inside the page keep a thin candy scrollbar */
@supports selector(::-webkit-scrollbar) {
  .home aside::-webkit-scrollbar, .stalls > .chalk::-webkit-scrollbar { width: 8px; } .home aside::-webkit-scrollbar-track, .stalls > .chalk::-webkit-scrollbar-track { background: transparent; }
  .home aside::-webkit-scrollbar-thumb, .stalls > .chalk::-webkit-scrollbar-thumb { border: 2px solid var(--ink); border-radius: 10px; background: repeating-linear-gradient(135deg, #c8202f 0 6px, #fff4ec 6px 12px); }
}
.nmkt::before { background: linear-gradient(to bottom, #090b1700 50%, #090b17 calc(100% - 2px)), radial-gradient(ellipse at 50% 20%, #1d2b55 0, #10162e 45%, #090b17 100%); }
/* giveaway tickets in pink: soft pink while you don't have it, bright pink once it's yours */
.ticket:not(.got) { background: linear-gradient(135deg, #ffe3ee, #ffc9dd); color: #7a2f52; } .ticket:not(.got) b { color: #4a1430; } .ticket:not(.got) .ticket-stub { border-color: #c2185b44; background: #ffd2e3; } .ticket:not(.got) .ticket-ico { opacity: .6; }
.ticket.got { background: linear-gradient(135deg, #ff9ccb, #ff6fae); color: #3a0a22; } .ticket.got b { color: #2a0618; } .ticket.got .ticket-stub { border-color: #9c1b5a88; background: #ff5aa0; } .ticket.got .ticket-stub small { color: #3a0a22; }
.ticket.got::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 20%, #ffffff66, transparent 40%); }
/* the menus in groups */
.menu .msep { border: 0; border-top: 1.5px solid #2a11141a; margin: .35rem .7rem; }
.menu .mhead { margin: .35rem .9rem .1rem; font-size: .78rem; font-weight: 700; color: #8a5a55; }
.menu .mrow.signout { color: #8c1826; } .menu .mrow.signout:hover, .menu .mrow.signout:focus-visible { background: #ffe1db; }
/* ---------- before December: Pawmas is asleep ---------- */
body.out:has(.dream) { background: radial-gradient(ellipse at 50% 25%, #2a1f45 0, #150f24 45%, #0b0912 100%) fixed; }
.dream { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center; padding: 2rem 1.2rem 4rem; }
.dream-art { position: relative; width: min(340px, 78vw); aspect-ratio: 1.15; margin-bottom: .6rem; }
.dream-cat { position: absolute; left: 50%; bottom: 20%; width: 62%; translate: -50% 0; transform-origin: 50% 100%; animation: dream-breathe 3.6s ease-in-out infinite; filter: drop-shadow(0 10px 18px #000a); }
.dream-cat .cat { width: 100%; height: auto; display: block; }
.dream-bed { position: absolute; left: 6%; right: 6%; bottom: 6%; height: 26%; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 30%, #c8202f, #8c1826 70%); border: 4px solid #0a0a0a; box-shadow: inset 0 10px 0 #ffffff22, 0 14px 30px #000b; }
.dream-bed::before { content: ""; position: absolute; left: 8%; right: 8%; top: -12%; height: 34%; border-radius: 50%; background: #fff4ec; border: 4px solid #0a0a0a; }
.dream-z { position: absolute; right: 12%; top: 4%; } .dream-z b { position: absolute; color: #e6dcff; font-size: 1.6rem; opacity: 0; animation: dream-z 4s ease-out infinite; }
.dream-z b:nth-child(2) { animation-delay: 1.3s; font-size: 2rem; } .dream-z b:nth-child(3) { animation-delay: 2.6s; font-size: 2.6rem; }
@keyframes dream-breathe { 50% { scale: 1.035 .965; } }
@keyframes dream-z { 0% { translate: 0 50px; opacity: 0; } 20% { opacity: 1; } 100% { translate: 34px -24px; opacity: 0; } }
.dream h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.05; text-wrap: balance; color: #fff; text-shadow: 0 4px 18px #000a; }
.dream-sub { margin: .2rem 0 0; font-size: clamp(1.2rem, 3.5vw, 1.6rem); color: #d9ccf5; } .dream-sub b { color: var(--gold); }
.dream-count { margin: 1.2rem 0 0; padding: .55rem 1.2rem; border-radius: 99px; background: #ffffff10; border: 1.5px solid #ffffff22; color: #e6dcff; font-variant-numeric: tabular-nums; } .dream-count b { color: #fff; }
.dream .notice { margin: .8rem 0 0; }
.dream-host { position: fixed; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 99px; font-size: .82rem; color: #ffffff59; text-decoration: none; transition: color .2s, background .2s; }
.dream-host .ico { width: 16px; height: 16px; opacity: .5; } .dream-host:hover, .dream-host:focus-visible { color: #fff; background: #ffffff14; } .dream-host:hover .ico { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dream-cat, .dream-z b { animation: none; } .dream-z b { opacity: .7; } .dream-z b:nth-child(2) { translate: 16px -18px; } .dream-z b:nth-child(3) { translate: 32px -40px; } }
/* the candy-cane countdown */
.candy-count { margin-top: 1.4rem; display: grid; justify-items: center; gap: .6rem; }
.cc-title { margin: 0; color: #e6dcff; font-weight: 700; letter-spacing: .02em; }
.cc-row { display: flex; gap: clamp(.45rem, 2vw, .9rem); }
.cc-tile { position: relative; display: grid; justify-items: center; min-width: clamp(64px, 18vw, 92px); padding: .55rem .5rem .45rem; border-radius: 18px 14px 19px 13px; border: 6px solid transparent;
  background: linear-gradient(#fffaf3, #fff1e6) padding-box, repeating-linear-gradient(135deg, #c8202f 0 9px, #fff 9px 18px) border-box; background-size: auto, 200% 200%;
  box-shadow: 0 10px 24px #000a, inset 0 -6px 0 #f1d9c9; animation: cc-stripes 6s linear infinite; }
.cc-tile:nth-child(2) { rotate: 2deg; } .cc-tile:nth-child(3) { rotate: -1.5deg; } .cc-tile:nth-child(1) { rotate: -2deg; } .cc-tile:nth-child(4) { rotate: 1.5deg; }
.cc-tile::after { content: ""; position: absolute; top: -14px; left: 50%; width: 22px; height: 14px; translate: -50% 0; border-radius: 50% 50% 0 0; background: #2c7a4b; border: 3px solid #0a0a0a; border-bottom: 0; }
.cc-num { font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1; color: #c8202f; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #0000001a; }
.cc-num.pop { animation: cc-pop .35s cubic-bezier(.2, 1.5, .4, 1); }
.cc-label { margin-top: .15rem; font-size: .8rem; font-weight: 700; color: #2c7a4b; }
@keyframes cc-stripes { to { background-position: 0 0, 100% 100%; } }
@keyframes cc-pop { from { scale: 1.25; } }
@media (prefers-reduced-motion: reduce) { .cc-tile, .cc-num.pop { animation: none; } }
@media (min-width: 1101px) and (min-height: 540px) { .market.no-day .stalls > .closed { grid-row: 1 / span 4; } } /* no game of the day: 16 stalls, so the duel gets the bottom of the first column */
@media (min-width: 1101px) and (min-height: 540px) { .market.no-day .stalls > .stall:last-child { grid-column: 1; grid-row: 5 / span 2; } }
/* music on the sleeping page */
.dream-music { position: fixed; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem .5rem .7rem; border-radius: 99px; border: 2px solid #ffffff33; background: #ffffff14; color: #f3ecff; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.dream-music .ico { width: 24px; height: 24px; } .dream-music:hover { background: #ffffff22; } .dream-music:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dream-music.on { border-color: var(--gold); background: #f5c04a22; } .dream-music.on .ico { animation: dream-bop 1.2s ease-in-out infinite; }
@keyframes dream-bop { 50% { translate: 0 -2px; rotate: -6deg; } }
@media (prefers-reduced-motion: reduce) { .dream-music.on .ico { animation: none; } }
/* the pillow the cat sleeps on */
.dream-pillow { position: absolute; left: 2%; right: 2%; bottom: 2%; width: 96%; height: auto; filter: drop-shadow(0 12px 18px #000a); }
.dream-cat { bottom: 24%; z-index: 1; }
