/* stadt land fluss: bright and playful, nothing like the dark wawaparty rooms */
@font-face { font-family: "SlfTitle"; src: url("/slf/fonts/slf-title-latin.woff2") format("woff2"); font-weight: 700; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "SlfTitle"; src: url("/slf/fonts/slf-title-ext.woff2") format("woff2"); font-weight: 700; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "SlfHand"; src: url("/slf/fonts/slf-hand-latin.woff2") format("woff2"); font-weight: 400; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "SlfHand"; src: url("/slf/fonts/slf-hand-ext.woff2") format("woff2"); font-weight: 400; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

#slf {
  --ink: #26343f; --paper: #fffdf6; --teal: #17a2c0; --teal-d: #0f7d95; --green: #2fa84f; --green-d: #1f7a37;
  --red: #e5534b; --yellow: #ffd23f; --blue: #3b9be0; --gray: #4a5560; --blurple: #7289da;
  --shadow: 4px 5px 0 rgb(38 52 63 / 0.22);
}
#slf, #slf * { box-sizing: border-box; }
#slf { color-scheme: light; }
#slf {
  margin: 0; min-height: 100vh; color: var(--ink); background: #bfe8f7;
  font: 18px/1.35 "SlfHand", "Segoe Print", "Bradley Hand", "Comic Sans MS", sans-serif;
  -webkit-text-size-adjust: 100%;
}
#slf h1, #slf h2, #slf h3, #slf .brand, #slf .btn, #slf .title { font-family: "SlfTitle", "SlfHand", sans-serif; font-weight: 700; }
#slf button, #slf input, #slf select { font: inherit; color: inherit; }
#slf [hidden] { display: none !important; }

/* background scenery, only css */
#slf .sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(#8fd6ef 0%, #cdeefa 55%, #eaf9ff 100%); }
#slf .cloud { position: absolute; width: 150px; height: 46px; border-radius: 50px; background: #fff; opacity: 0.85; animation: slf-drift 90s linear infinite; }
#slf .cloud::before, #slf .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
#slf .cloud::before { width: 62px; height: 62px; left: 22px; top: -30px; }
#slf .cloud::after { width: 48px; height: 48px; left: 78px; top: -20px; }
#slf .c1 { top: 12%; left: -200px; } #slf .c2 { top: 30%; left: -200px; animation-duration: 140s; animation-delay: -60s; transform: scale(0.7); } #slf .c3 { top: 6%; left: -200px; animation-duration: 110s; animation-delay: -30s; transform: scale(1.2); }
@keyframes slf-drift { to { transform: translateX(calc(100vw + 400px)); } }
#slf.reduce .cloud { animation: none; left: 20%; }
#slf .hill { position: absolute; bottom: -14vh; width: 90vw; height: 34vh; border-radius: 50%; }
#slf .h1 { left: -20vw; background: #7ccf5a; } #slf .h2 { right: -25vw; width: 100vw; height: 28vh; background: #5cb84a; }

#slf .top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--teal); border-bottom: 3px solid var(--ink); box-shadow: 0 3px 0 rgb(38 52 63 / 0.18); }
#slf .grow { flex: 1; }
#slf .brand, #slf .toplink { color: #fff; text-decoration: none; font-size: 21px; }
#slf .toplink { font-size: 16px; color: #04252d; }
#slf .toplink:hover { text-decoration: underline; }
#slf .lang { position: relative; }
#slf .lang-btn { display: flex; align-items: center; width: 40px; height: 32px; justify-content: center; padding: 0; border: 2px solid var(--ink); border-radius: 10px; background: #fff; cursor: pointer; }
#slf .flag { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; }
#slf .lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; margin: 0; padding: 6px; list-style: none; min-width: 200px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); }
#slf .lang-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; }
#slf .lang-list button:hover, #slf .lang-list button.on { background: #dff3f9; }

#slf .app { max-width: 1080px; margin: 0 auto; padding: 18px 16px 60px; }
#slf .toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 60; margin: 0; padding: 10px 18px; background: var(--ink); color: #fff; border-radius: 14px; opacity: 0; pointer-events: none; transition: 0.25s; max-width: 90vw; text-align: center; }
#slf .toast.show { opacity: 1; transform: translate(-50%, 0); }
#slf .toast.error { background: #c4342d; }
#slf .legal { text-align: center; padding: 0 0 18px; font-size: 14px; }
#slf .legal a { color: var(--ink); } #slf .legal span { margin: 0 8px; }

/* cards */
#slf .card { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
#slf .card > h2 { margin: 0; padding: 8px 16px; font-size: 18px; background: #eef6f9; border-bottom: 3px solid var(--ink); display: flex; align-items: center; gap: 10px; }
#slf .card > h2 .tag { margin-left: auto; font-size: 15px; font-weight: 400; background: var(--teal); color: #fff; border-radius: 999px; padding: 1px 12px; }
#slf .card .in { padding: 14px 16px; }
#slf .cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 820px) { #slf .cols { grid-template-columns: 1fr; } }
#slf .title { text-align: center; font-size: 34px; margin: 4px 0 16px; color: #1e6f86; text-shadow: 2px 2px 0 #fff; }

/* buttons */
#slf .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; border: 3px solid var(--ink); border-radius: 12px; background: var(--gray); color: #fff; font-size: 17px; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s, filter 0.15s; }
#slf .btn:hover { filter: brightness(1.1); }
#slf .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
#slf .btn.green { background: var(--green); } #slf .btn.red { background: var(--red); } #slf .btn.blue { background: var(--blue); } #slf .btn.yellow { background: var(--yellow); color: var(--ink); } #slf .btn.light { background: #fff; color: var(--ink); }
#slf .btn.big { font-size: 22px; padding: 12px 26px; }
#slf .btn.small { font-size: 14px; padding: 3px 10px; border-width: 2px; box-shadow: 0 2px 0 var(--ink); border-radius: 9px; }
#slf .btn:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.4); }
#slf input[type="text"], #slf .field { width: 100%; padding: 9px 12px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; outline: none; }
#slf input[type="text"]:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(23 162 192 / 0.25); }
#slf .msg { min-height: 1.3em; margin: 8px 0 0; font-size: 16px; }

/* home */
#slf .hero { text-align: center; padding-top: 10px; }
#slf .circles { display: flex; justify-content: center; align-items: flex-end; gap: 12px; }
#slf .circle { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 12px rgb(0 0 0 / 0.25); font-size: 42px; }
#slf .circle.mid { width: 120px; height: 120px; font-size: 64px; background: radial-gradient(#fff6c8, #ffd989); }
#slf .circle.l { background: linear-gradient(#fff2a8, #8bd16a); } #slf .circle.r { background: linear-gradient(#bfe8f7, #3fa3d9); }
#slf .logo { margin: 6px 0 0; font-size: clamp(44px, 9vw, 76px); line-height: 1; color: var(--yellow); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 5px 0 rgb(38 52 63 / 0.3); letter-spacing: 1px; }
#slf .sub { margin: 6px 0 18px; font-size: 22px; color: #1e6f86; font-family: "SlfTitle", sans-serif; font-style: italic; }
#slf .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
#slf .panel { max-width: 640px; margin: 0 auto 18px; }
#slf .discord { display: flex; align-items: center; gap: 14px; max-width: 420px; margin: 0 auto 18px; padding: 12px 18px; background: var(--blurple); border: 3px solid var(--ink); border-radius: 14px; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
#slf .discord b { font-family: "SlfTitle", sans-serif; font-size: 24px; letter-spacing: 1px; }
#slf .discord small { margin-left: auto; font-size: 16px; opacity: 0.95; }
#slf .logins { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
#slf .btn.discordb { background: #5865f2; } #slf .btn.twitchb { background: #9146ff; } #slf .btn.googleb { background: #fff; color: var(--ink); } #slf .btn.githubb { background: #24292f; }
#slf .btn .gimg { width: 20px; height: 20px; flex: none; }
#slf .btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
#slf .rows { display: grid; gap: 8px; }
#slf .row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
#slf .row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#slf .row small { opacity: 0.7; }
#slf .how { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
#slf .how li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; }
#slf .how li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-family: "SlfTitle", sans-serif; font-size: 15px; }

/* avatars and players */
#slf .av { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: #ddd center / cover no-repeat; }
#slf .av.s { width: 28px; height: 28px; }
#slf .pl { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 2px dashed #d6e4ea; }
#slf .pl:last-child { border-bottom: 0; }
#slf .pl .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#slf .pl.off { opacity: 0.45; }
#slf .pl .rank { width: 22px; text-align: center; font-family: "SlfTitle", sans-serif; }
#slf .badge { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 15px; border: 2px solid var(--ink); white-space: nowrap; }
#slf .badge.plus { background: var(--yellow); color: var(--ink); } #slf .badge.gray { background: #dfe7ea; color: var(--ink); } #slf .badge.ok { background: var(--green); }
#slf .chk { color: var(--green-d); font-size: 20px; }

/* lobby */
#slf .share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; background: #e4f6fb; border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
#slf .share code { flex: 1; min-width: 160px; word-break: break-all; font-size: 16px; }
#slf .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
#slf .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 2px solid var(--ink); border-radius: 10px; color: #fff; background: var(--teal); cursor: pointer; font-size: 17px; box-shadow: 0 2px 0 var(--ink); }
#slf .chip.sel { background: var(--green); }
#slf .chip.sel::after { content: "×"; opacity: 0.8; }
#slf .chip.sug::before { content: "+"; opacity: 0.8; }
#slf .chip:disabled { cursor: default; }
#slf h3.sec { margin: 10px 0 2px; font-size: 16px; opacity: 0.8; }
#slf .addrow { display: flex; gap: 8px; margin-bottom: 14px; }
#slf .set { display: grid; gap: 10px; }
#slf .set label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
#slf .set .lbl { flex: 1; }
#slf .set input[type="range"] { width: 150px; accent-color: var(--teal); }
#slf .set input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--green); }
#slf .set .val { min-width: 54px; text-align: right; font-family: "SlfTitle", sans-serif; }
#slf .note { opacity: 0.7; font-size: 16px; }

/* playing */
#slf .letterbox { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 3px solid var(--ink); background: linear-gradient(#fff, #f1f9fc); }
#slf .letter { display: grid; place-items: center; flex: none; width: 74px; height: 74px; border-radius: 50%; background: var(--red); color: #fff; border: 4px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-family: "SlfTitle", sans-serif; font-size: 46px; line-height: 1; animation: slf-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes slf-pop { from { transform: scale(0.2) rotate(-40deg); } }
#slf .letter.huge { width: 190px; height: 190px; font-size: 130px; margin: 14px auto; }
#slf .timer { flex: 1; }
#slf .bar { height: 26px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; position: relative; }
#slf .bar > i { position: absolute; inset: 0 auto 0 0; width: 100%; background: repeating-linear-gradient(-45deg, var(--teal), var(--teal) 12px, #35b9d6 12px, #35b9d6 24px); transition: width 0.3s linear; }
#slf .bar.hurry > i { background: repeating-linear-gradient(-45deg, var(--red), var(--red) 12px, #ef7a73 12px, #ef7a73 24px); }
#slf .bar b { position: relative; display: block; text-align: center; color: var(--ink); font-size: 15px; line-height: 20px; mix-blend-mode: normal; text-shadow: 0 0 4px #fff, 0 0 4px #fff; }
#slf .banner { margin: 12px 16px 0; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; background: var(--yellow); text-align: center; animation: slf-wiggle 0.6s 3; }
@keyframes slf-wiggle { 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
#slf .fields { display: grid; gap: 12px; padding: 16px; }
#slf .field-row { display: flex; align-items: stretch; border: 3px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
#slf .field-row label { display: flex; align-items: center; padding: 0 16px; min-width: 110px; max-width: 40%; background: #eef6f9; border-right: 3px solid var(--ink); font-family: "SlfTitle", sans-serif; font-size: 16px; }
#slf .field-row input { flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 10px 14px; font-size: 20px; background: transparent; box-shadow: none !important; outline: none; }
#slf .field-row .mark { display: grid; place-items: center; width: 50px; background: #4a5560; color: #fff; font-size: 20px; transition: background 0.2s; }
#slf .field-row.ok { background: #f1ffd9; } #slf .field-row.ok .mark { background: var(--green); } #slf .field-row.bad .mark { background: var(--red); }
#slf .field-row:focus-within { border-color: var(--teal); }
#slf .donebar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 16px 18px; }

/* voting + results */
#slf .cat { border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; margin: 0 0 14px; background: #fff; }
#slf .cat > h3 { margin: 0; padding: 6px 14px; background: var(--green); color: #fff; font-size: 18px; border-bottom: 3px solid var(--ink); }
#slf .ans { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 2px dashed #d6e4ea; flex-wrap: wrap; }
#slf .ans:last-child { border-bottom: 0; }
#slf .ans .who { flex: none; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; opacity: 0.8; }
#slf .ans .txt { flex: 1; min-width: 100px; font-size: 20px; }
#slf .ans.bad .txt { text-decoration: line-through; opacity: 0.55; }
#slf .ans.out .txt { text-decoration: line-through; opacity: 0.55; }
#slf .ans.empty .txt { opacity: 0.4; }
#slf .vb { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 9px; background: #dfe7ea; cursor: pointer; font-size: 15px; box-shadow: 0 2px 0 var(--ink); }
#slf .vb.no.on { background: var(--red); color: #fff; } #slf .vb.yes.on { background: var(--blue); color: #fff; }
#slf .vb:disabled { opacity: 0.4; cursor: default; }
#slf .look { text-decoration: none; }
#slf .pts { min-width: 56px; text-align: center; }
#slf .why { font-size: 14px; opacity: 0.7; }

/* end */
#slf .podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 10px 0 18px; }
#slf .step { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 118px; }
#slf .step .av { width: 56px; height: 56px; }
#slf .step .blk { width: 100%; display: grid; place-items: start center; padding-top: 6px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; font-size: 34px; }
#slf .step.p1 .blk { height: 120px; background: #ffd23f; } #slf .step.p2 .blk { height: 86px; background: #d9e1e6; } #slf .step.p3 .blk { height: 62px; background: #e9b585; }
#slf .center { text-align: center; }
#slf .cd { font-size: 20px; }
#slf .confetti { position: fixed; top: -20px; width: 10px; height: 14px; z-index: 40; pointer-events: none; animation: slf-fall linear forwards; }
@keyframes slf-fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (max-width: 560px) {
  #slf .brand { white-space: nowrap; font-size: 18px; }
  #slf .toplink { display: none; }
  #slf .title { font-size: 28px; }
  #slf .top { gap: 8px; padding: 8px 10px; }
}

#slf .chip.off { background: #b9b4a8; color: #6f6a5f; cursor: not-allowed; box-shadow: none; border-color: #8d887c; }
#slf .chip.off:disabled { opacity: 0.85; }
#slf .lists { display: grid; gap: 8px; margin: 8px 0 4px; }
#slf .lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#slf .lrow .ln { font-weight: 700; margin-right: auto; }

#slf .watching { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#slf .card.spec[hidden] { display: none; }
#slf .card.spec { margin-top: 14px; }

/* ===== inside tick: the categories page takes over the whole screen while you're in a categories room ===== */
body.slf-on > *:not(#slf):not(script):not(#toast):not(.toast) { display: none !important; }
body.slf-on { background: #bfe8f7 !important; overflow-y: auto; }
#slf { position: relative; z-index: 1; min-height: 100vh; isolation: isolate; text-align: left; letter-spacing: normal; text-transform: none; }
#slf[hidden] { display: none !important; }
#slf .sky { z-index: -1; }
#slf .brand { display: inline-flex; align-items: center; gap: 8px; }
#slf .brand img { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgb(38 52 63 / 0.35)); }
#slf .toplink { color: #fff; font-family: "SlfTitle", sans-serif; }
/* tick's own button/input styles must not leak in */
#slf button, #slf input, #slf a.btn { min-height: 0; min-width: 0; letter-spacing: normal; text-transform: none; line-height: 1.2; }
#slf input[type="text"] { height: auto; }
#slf .btn { width: auto; }
#slf .logins .btn { color: #fff; }
#slf .btn.miowawab { background: #e8577a; }
@media (prefers-reduced-motion: reduce) { #slf .cloud { animation: none; left: 20%; } #slf .letter, #slf .banner { animation: none; } }
#slf .nm, #slf .rank, #slf .badge, #slf .who, #slf .val, #slf code, #slf .chk { font-family: "SlfHand", "Comic Sans MS", sans-serif; letter-spacing: normal; text-transform: none; }
#slf .badge, #slf .rank, #slf .val { font-family: "SlfTitle", "SlfHand", sans-serif; }
#slf .share code { background: none; color: var(--ink); padding: 0; border: 0; font-size: 17px; }
#slf .pl .nm { font-size: 18px; color: var(--ink); }
#slf .hero, #slf .hero h1 { text-align: center; width: 100%; max-width: none; }
#slf .card, #slf .panel { padding: 0; }
#slf .panel { max-width: 640px; margin: 0 auto 18px; }
#slf .hero .logo { display: block; margin: 6px auto 0; text-align: center; max-width: none; width: auto; }
#slf .panel { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0; }
#slf .card.panel { background: var(--paper) !important; border: 3px solid var(--ink) !important; box-shadow: var(--shadow) !important; border-radius: 18px; }
