/* Ludo — ulkoasu. Mobile first; pelinäkymän layout valitaan JS:llä
   (body[data-layout]) ja laudan koko tulee muuttujasta --bs. */

@font-face { font-family: 'Lilita One'; src: url('/assets/fonts/lilita-one-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --red: #f2374b;   --red-d: #b51c33;
  --blue: #2f7bff;  --blue-d: #1a4fc4;
  --green: #18b866; --green-d: #0d7c43;
  --yellow: #ffc21a; --yellow-d: #d18a00;
  --grey: #aab0c4;  --grey-d: #7c839c;

  --bg-1: #2a1870;
  --bg-2: #120a35;
  --surface: rgba(41, 27, 102, .82);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .14);
  --text: #fbf8ff;
  --muted: #c3b8ec;
  --accent: #ffcf3f;
  --accent-d: #d99a00;
  --danger: #ff4d6d;
  --ok: #3ee08f;

  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 10px 30px rgba(6, 2, 30, .45);
  --font-display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs: clamp(.72rem, .68rem + .2vw, .8rem);
  --fs-s: clamp(.82rem, .78rem + .25vw, .92rem);
  --fs-m: clamp(.95rem, .9rem + .3vw, 1.06rem);
  --fs-l: clamp(1.15rem, 1rem + .7vw, 1.45rem);
  --fs-xl: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);

  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --kb: 0px;          /* mobiilinäppäimistön korkeus (visualViewport) */
  --bs: 300px;        /* laudan sivu, asetetaan JS:llä */
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font); font-size: var(--fs-m); color: var(--text);
  background: var(--bg-2);
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Tausta: syvä violetti, hehkut ja hento timanttikuvio. */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 15% 10%, rgba(255, 92, 168, .28), transparent 60%),
    radial-gradient(55vmax 55vmax at 90% 90%, rgba(47, 123, 255, .30), transparent 60%),
    radial-gradient(40vmax 40vmax at 85% 15%, rgba(255, 207, 63, .14), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
}
.bg::after { content: ''; position: absolute; inset: 0; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 4l6 20-6 20-6-20z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 48px 48px;
}

/* ---------------------------------------------------------------- napit */
.btn {
  --b: var(--surface-2); --bd: rgba(0, 0, 0, .25); --c: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--tap); padding: .6em 1.2em; border: 0; border-radius: 14px;
  background: var(--b); color: var(--c); font-weight: 900; letter-spacing: .01em;
  box-shadow: 0 4px 0 var(--bd), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
  touch-action: manipulation; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--bd), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:disabled { filter: grayscale(.8) brightness(.8); cursor: not-allowed; opacity: .7; }
.btn--primary { --b: linear-gradient(180deg, #ffe066, var(--accent)); --bd: var(--accent-d); --c: #3a2400; }
.btn--secondary { --b: linear-gradient(180deg, #6aa4ff, var(--blue)); --bd: var(--blue-d); --c: #fff; }
.btn--danger { --b: linear-gradient(180deg, #ff7189, var(--danger)); --bd: #b3203d; --c: #fff; }
.btn--ghost { --b: rgba(255, 255, 255, .1); --bd: rgba(0, 0, 0, .3); }
.btn--big { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-l); min-height: 56px; padding: .5em 1.4em; border-radius: 18px; letter-spacing: .03em; }
.btn--small { min-height: var(--tap); padding: .4em .9em; font-size: var(--fs-s); }
.btn__icon { font-size: 1.2em; line-height: 1; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { filter: brightness(1.08); }
  .iconbtn:hover { background: rgba(255, 255, 255, .18); }
}
.linkbtn { background: none; border: 0; padding: 0 4px; min-width: var(--tap); color: var(--accent); text-decoration: underline; min-height: var(--tap); }

.iconbtn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--tap); height: var(--tap); border-radius: 14px; border: 0;
  background: rgba(255, 255, 255, .1); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.iconbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn--ghost { background: transparent; box-shadow: none; }
.iconbtn--small { width: var(--tap); height: var(--tap); }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 900;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg-2);
}

/* --------------------------------------------------------------- lomakkeet */
.input {
  width: 100%; min-height: var(--tap); padding: .65em .9em; border-radius: 14px;
  border: 2px solid var(--line); background: rgba(10, 4, 40, .45); color: var(--text);
  font-size: max(16px, 1rem);   /* < 16 px zoomaa iOS:ssä automaattisesti */
}
.input::placeholder { color: rgba(195, 184, 236, .6); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 207, 63, .25); }
.field { display: grid; gap: .45rem; margin: 0 0 1.1rem; padding: 0; border: 0; position: relative; min-width: 0; }
.field__label { font-weight: 900; font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0; }
.field__hint { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
label.field .field__hint { position: absolute; right: .8em; top: 2.5em; pointer-events: none; }
.error, .notice { margin: 0 0 1rem; padding: .7em .9em; border-radius: 12px; font-weight: 700; font-size: var(--fs-s); }
.error { background: rgba(255, 77, 109, .16); border: 1px solid rgba(255, 77, 109, .5); color: #ffd1da; }
.notice { background: rgba(255, 207, 63, .14); border: 1px solid rgba(255, 207, 63, .45); color: #ffeeb8; }

/* Värivalinta: iso pallo + symboli (värisokeille). */
.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.colorbtn {
  --c: var(--grey); --cd: var(--grey-d);
  display: grid; place-items: center; gap: .2rem; padding: .55rem .2rem .45rem; min-height: 64px;
  border-radius: 16px; border: 3px solid transparent; background: rgba(255, 255, 255, .06);
  font-size: var(--fs-xs); font-weight: 900;
}
.colorbtn__dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), transparent 40%), var(--c);
  box-shadow: 0 3px 0 var(--cd), inset 0 -3px 6px rgba(0, 0, 0, .2); color: #fff; font-size: 16px; line-height: 1; }
.colorbtn[aria-checked='true'] { border-color: var(--c); background: rgba(255, 255, 255, .14); }
.colorbtn:disabled { opacity: .35; cursor: not-allowed; }
.colorbtn:disabled .colorbtn__name::after { content: ' · varattu'; }

.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.avatarbtn { padding: 4px; border-radius: 50%; border: 3px solid transparent; background: rgba(255, 255, 255, .06); aspect-ratio: 1; min-height: var(--tap); }
.avatarbtn img { width: 100%; height: 100%; }
.avatarbtn[aria-checked='true'] { border-color: var(--accent); background: rgba(255, 207, 63, .15); transform: scale(1.04); }
@media (hover: hover) { .avatarbtn:hover, .colorbtn:hover:not(:disabled) { background: rgba(255, 255, 255, .14); } }

/* --------------------------------------------------------------- sivut */
.screen--page { min-height: 100vh; min-height: 100dvh; padding: calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal)); }
.page { width: 100%; max-width: 480px; margin: 0 auto; }
.page--wide { max-width: 1100px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 4vw, 26px); box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card > .btn--big { width: 100%; }

.hero { text-align: center; margin: clamp(4px, 3vh, 28px) 0 clamp(14px, 3vh, 26px); }
.hero__tag { margin: .4rem auto 0; color: var(--muted); font-size: var(--fs-s); max-width: 30ch; }
.logo { display: inline-flex; align-items: center; gap: clamp(8px, 2vw, 14px); }
.logo__word {
  font-family: var(--font-display); font-size: clamp(3rem, 2rem + 6vw, 4.6rem); line-height: 1; letter-spacing: .04em;
  background: linear-gradient(180deg, #fff6c9 0%, var(--accent) 55%, #ff8a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #a9450e) drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}
.logo__die {
  width: clamp(38px, 9vw, 52px); aspect-ratio: 1; border-radius: 22%; position: relative;
  background: linear-gradient(145deg, #fff, #e4dcff); box-shadow: 0 5px 0 #b3a6e6, 0 10px 18px rgba(0, 0, 0, .3);
  animation: bob 3s ease-in-out infinite;
}
.logo__die--a { transform: rotate(-12deg); }
.logo__die--b { transform: rotate(10deg); animation-delay: -1.5s; }
.logo__die i { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.logo__die--a i:nth-child(1) { left: 16%; top: 16%; } .logo__die--a i:nth-child(2) { right: 16%; top: 16%; }
.logo__die--a i:nth-child(3) { left: 41%; top: 41%; } .logo__die--a i:nth-child(4) { left: 16%; bottom: 16%; }
.logo__die--a i:nth-child(5) { right: 16%; bottom: 16%; }
.logo__die--b i { background: var(--blue); }
.logo__die--b i:nth-child(1) { left: 16%; top: 16%; } .logo__die--b i:nth-child(2) { left: 41%; top: 41%; } .logo__die--b i:nth-child(3) { right: 16%; bottom: 16%; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.divider { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0 1rem; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.join { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.input--code { text-transform: uppercase; letter-spacing: .3em; font-family: var(--font-display); font-size: 1.25rem; text-align: center; }
.foot { text-align: center; color: var(--muted); font-size: var(--fs-xs); margin-top: 1.4rem; }
.foot a { color: var(--accent); }
.foot p { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .3em; }

/* --------------------------------------------------------------- lobby */
.lobby { display: grid; gap: 16px; }
.lobby__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.lobby__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-l); letter-spacing: .03em; }
.lobby__label { margin: .3rem 0 0; text-align: center; color: var(--muted); font-size: var(--fs-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.lobby__code {
  margin: .1rem 0 .6rem; text-align: center; font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 4vw, 3.6rem);
  letter-spacing: .18em; color: var(--accent); text-shadow: 0 4px 0 #8a4b00, 0 0 24px rgba(255, 207, 63, .35); user-select: all;
}
.lobby__share { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.lobby__h { display: flex; align-items: center; gap: .5rem; margin: 1.3rem 0 .6rem; font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pill { padding: .1em .6em; border-radius: 99px; background: rgba(255, 255, 255, .12); color: var(--text); letter-spacing: 0; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.prow {
  --c: var(--grey); display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; min-height: 60px;
  border-radius: 16px; background: rgba(255, 255, 255, .06); border-left: 6px solid var(--c);
  animation: pop-in .35s cubic-bezier(.3, 1.5, .5, 1);
}
.prow--empty { border-left-color: transparent; border: 2px dashed var(--line); background: none; color: var(--muted); justify-content: center; font-size: var(--fs-s); animation: none; }
.prow__av { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--c); }
.prow__name { flex: 1; min-width: 0; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; text-align: left; padding: 0; min-height: var(--tap); }
.prow__tag { font-size: var(--fs-xs); font-weight: 900; padding: .15em .55em; border-radius: 99px; background: rgba(255, 207, 63, .2); color: var(--accent); }
.prow__tag--off { background: rgba(255, 77, 109, .2); color: #ffb3c1; }
.prow__sym { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
@keyframes pop-in { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.settings { display: grid; gap: .8rem; }
.seg { display: grid; gap: .35rem; }
.seg__label { font-weight: 700; font-size: var(--fs-s); }
.seg__opts { display: flex; gap: 4px; padding: 4px; background: rgba(0, 0, 0, .25); border-radius: 14px; }
.seg__opts button { flex: 1; min-height: 40px; min-width: 0; border: 0; border-radius: 10px; background: transparent; font-weight: 900; font-size: var(--fs-s); color: var(--muted); padding: 0 .3em; }
.seg__opts button[aria-checked='true'] { background: var(--accent); color: #3a2400; box-shadow: 0 2px 0 var(--accent-d); }
.rulechips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.rulechips li { padding: .35em .8em; border-radius: 99px; background: rgba(255, 255, 255, .1); font-weight: 700; font-size: var(--fs-s); }
.waiting { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 1.2rem 0 0; color: var(--muted); font-weight: 700; text-align: center; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.lobby__actions { display: grid; gap: .8rem; margin-top: 1.3rem; justify-items: center; }
.startwrap { display: grid; gap: .4rem; width: 100%; text-align: center; }
.startwrap .btn { width: 100%; }
.lobby__chat { min-height: 360px; height: 52vh; height: 52dvh; display: flex; }
.lobby__chat .chat { border-radius: 24px; }
@media (min-width: 900px) {
  .lobby { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; margin-top: 4vh; }
  .lobby__chat { position: sticky; top: 16px; height: min(640px, calc(100dvh - 32px)); }
}

/* --------------------------------------------------------------- chat */
.chat {
  display: flex; flex-direction: column; width: 100%; min-height: 0; flex: 1;
  background: rgba(22, 12, 64, .92); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem .35rem .9rem; border-bottom: 1px solid var(--line); flex: none; position: relative; touch-action: none; }
.chat__grip { display: none; position: absolute; left: 50%; top: 6px; width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); translate: -50% 0; }
.chat__title { margin: 0; flex: 1; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-m); letter-spacing: .04em; }
.chat__close { display: none; }
.chat__log { list-style: none; margin: 0; padding: .6rem .7rem; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .5rem; }
.msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: .5rem; align-items: start; animation: pop-in .25s ease-out; }
.msg__av { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px var(--c, var(--grey)); }
.msg__meta { display: flex; align-items: baseline; gap: .45rem; font-size: var(--fs-xs); }
.msg__name { font-weight: 900; color: var(--c); background: none; border: 0; padding: 0; font-size: var(--fs-s); min-height: 24px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg__time { color: var(--muted); }
.msg__text { margin: .1rem 0 0; padding: .45em .7em; border-radius: 4px 14px 14px 14px; background: rgba(255, 255, 255, .09); word-wrap: break-word; overflow-wrap: anywhere; font-size: var(--fs-s); width: fit-content; max-width: 100%; }
.msg--me .msg__text { background: rgba(255, 207, 63, .16); }
.msg--system { display: block; text-align: center; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; padding: .15rem .4rem; }
.msg--system span { display: inline-block; padding: .25em .8em; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.chat__quick { display: flex; gap: .4rem; padding: .4rem .6rem 0; overflow-x: auto; scrollbar-width: none; flex: none; }
.chat__quick::-webkit-scrollbar { display: none; }
.chat__quick button { flex: none; min-height: 36px; padding: 0 .8em; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); font-weight: 700; font-size: var(--fs-s); white-space: nowrap; }
.chat__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; padding: .5rem .6rem calc(.6rem + var(--chat-sab, 0px)); flex: none; }
.btn--send { width: var(--tap); padding: 0; }
.btn--send svg { width: 22px; height: 22px; fill: currentColor; }
.chat-off .chat, .chat-off .chatbtn, .chat-off .bubble--chat { display: none !important; }

/* --------------------------------------------------------------- dialogit */
.dlg { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(420px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); }
.dlg--wide { max-width: min(560px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(8, 3, 30, .65); backdrop-filter: blur(3px); }
.dlg[open] { animation: pop-in .22s ease-out; }
.dlg__inner { display: grid; gap: .7rem; padding: 22px; border-radius: 24px; background: linear-gradient(180deg, #3a2790, #24165e); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dlg__title { margin: 0 0 .3rem; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-l); letter-spacing: .03em; }
.dlg__text { margin: 0; text-align: center; color: var(--muted); }
.dlg__row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.opt { display: grid; gap: .3rem; padding: .5rem .7rem; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.switch { display: flex; align-items: center; gap: .8rem; min-height: var(--tap); font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; width: 50px; height: 30px; flex: none; border-radius: 15px; background: rgba(0, 0, 0, .35); transition: background .2s; }
.switch__ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.switch input:checked + .switch__ui { background: var(--ok); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--accent); outline-offset: 2px; }
.range { display: grid; grid-template-columns: 1fr 3.2em; align-items: center; gap: .6rem; padding-left: 62px; }
.range output { font-size: var(--fs-xs); font-weight: 900; color: var(--muted); text-align: right; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: var(--tap); background: transparent; margin: 0; }
input[type='range']::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(0, 0, 0, .35) var(--p, 50%)); }
input[type='range']::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .35); }
input[type='range']::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--accent); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
input[type='range']::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
input[type='range']:disabled { opacity: .4; }
.ruleslist { margin: 0; padding-left: 1.2em; display: grid; gap: .5rem; font-size: var(--fs-s); line-height: 1.45; max-height: 60dvh; overflow-y: auto; }

.popover { position: fixed; z-index: 60; display: grid; gap: .4rem; padding: .7rem; min-width: 180px; border-radius: 16px; background: #2f1f7c; border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop-in .15s ease-out; }
.popover__name { margin: 0 0 .2rem; font-weight: 900; text-align: center; }

/* --------------------------------------------------------------- ilmoitukset */
.conn { position: fixed; z-index: 80; top: calc(8px + var(--sat)); left: 50%; translate: -50% 0; display: flex; align-items: center; gap: .6rem; padding: .55em 1.1em; border-radius: 99px; background: #ff9f1c; color: #2b1700; font-weight: 900; box-shadow: var(--shadow); }
.conn__spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .25); border-top-color: #2b1700; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toasts { position: fixed; z-index: 70; left: 50%; top: 22%; translate: -50% 0; display: grid; gap: .5rem; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: .55em 1.2em; border-radius: 99px; background: rgba(20, 10, 60, .92); border: 2px solid var(--accent); font-family: var(--font-display); font-size: var(--fs-l); letter-spacing: .03em; text-align: center; box-shadow: var(--shadow); animation: toast 1.8s ease forwards; }
.toast--error { border-color: var(--danger); font-family: var(--font); font-weight: 900; font-size: var(--fs-s); }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* =============================================================== PELINÄKYMÄ */
body[data-screen='game'] { overflow: hidden; overscroll-behavior: none; }
.screen--game {
  position: fixed; inset: 0; display: grid; overflow: hidden;
  height: 100vh; height: 100dvh;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: 'top' 'stage' 'controls';
}
.screen--game .chat__log, .screen--game .input { user-select: text; -webkit-user-select: text; }
.gtop { grid-area: top; display: flex; align-items: center; gap: .5rem; padding: 8px 10px 4px; }
.turnlabel { flex: 1; margin: 0; text-align: center; font-family: var(--font-display); font-size: var(--fs-l); letter-spacing: .03em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 0 14px var(--tc, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turnlabel--side { display: none; }
.stage { grid-area: stage; position: relative; min-height: 0; min-width: 0; display: grid; place-items: center; padding: 4px 8px; }

/* Kehys: kortit laudan ylä- ja alapuolella (oletus) tai sivuilla (landscape).
   Laudan koko --bs lasketaan JS:llä stagen mitoista, joten ruudukko on aina tarkka. */
.frame { display: grid; gap: var(--fg, 6px); justify-content: center; align-content: center;
  grid-template-columns: calc(var(--bs) / 2 - var(--fg, 6px) / 2) calc(var(--bs) / 2 - var(--fg, 6px) / 2);
  grid-template-rows: auto var(--bs) auto;
  grid-template-areas: 'c1 c2' 'b b' 'c0 c3'; }
.board { grid-area: b; width: var(--bs); height: var(--bs); position: relative; }
.board svg { width: 100%; height: 100%; overflow: visible; }
.pcard[data-corner='0'] { grid-area: c0; } .pcard[data-corner='1'] { grid-area: c1; }
.pcard[data-corner='2'] { grid-area: c2; } .pcard[data-corner='3'] { grid-area: c3; }

/* Pelaajakortti */
.pcard { --c: var(--grey); --cd: var(--grey-d); position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: var(--ch, 56px); }
.pcard[data-corner='2'], .pcard[data-corner='3'] { flex-direction: row-reverse; text-align: right; }
.pcard--empty { visibility: hidden; }
.pcard__av { position: relative; height: 100%; aspect-ratio: 1; flex: none; }
.pcard__av img { position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 50%; background: #fff; }
.pcard__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pcard__ring circle { fill: none; stroke-width: 9; }
.pcard__ring .bgc { stroke: var(--c); opacity: .35; }
.pcard__ring .fg { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 289 289; stroke-dashoffset: 0; }
.pcard__ring .fg.is-low { stroke: var(--danger); }
.pcard__body { min-width: 0; display: grid; gap: 2px; }
.pcard__name { font-weight: 900; font-size: var(--fs-s); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: none; border: 0; padding: 0; text-align: inherit; color: var(--text); min-height: 22px; }
.pcard__meta { display: flex; gap: 4px; align-items: center; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.pcard[data-corner='2'] .pcard__meta, .pcard[data-corner='3'] .pcard__meta { justify-content: flex-end; }
.pcard__homes { display: inline-flex; gap: 2px; }
.pcard__homes i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.pcard__homes i.on { background: var(--c); box-shadow: 0 0 6px var(--c); }
.pcard__status { padding: 0 .45em; border-radius: 99px; background: rgba(255, 77, 109, .25); color: #ffc2cf; white-space: nowrap; }
.pcard__status--rank { background: rgba(255, 207, 63, .25); color: var(--accent); }
.pcard--turn .pcard__av { animation: turnpulse 1.4s ease-in-out infinite; }
.pcard--turn .pcard__name { color: var(--c); }
.pcard--off .pcard__av img { filter: grayscale(1) brightness(.7); }
@keyframes turnpulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); } 50% { transform: scale(1.07); filter: drop-shadow(0 0 10px var(--c)); } }

/* Kuplat (reaktiot ja chat) avatarin vieressä */
.bubble { position: absolute; z-index: 5; bottom: 70%; left: 60%; width: max-content; max-width: min(56vw, 220px); padding: .35em .7em; border-radius: 14px 14px 14px 4px; background: #fff; color: #23164f; font-weight: 700; font-size: var(--fs-s); line-height: 1.25; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); pointer-events: none; animation: bubble 3.2s ease forwards; overflow-wrap: anywhere; }
.pcard[data-corner='2'] .bubble, .pcard[data-corner='3'] .bubble { left: auto; right: 60%; border-radius: 14px 14px 4px 14px; }
.pcard[data-corner='1'] .bubble, .pcard[data-corner='2'] .bubble { bottom: auto; top: 70%; }
.bubble--emoji { background: none; box-shadow: none; font-size: 2.2rem; padding: 0; animation: emoji 2s ease forwards; }
@keyframes bubble { 0% { opacity: 0; transform: scale(.6); } 8% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes emoji { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 15% { opacity: 1; transform: scale(1.3) rotate(8deg); } 30% { transform: scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-24px) scale(.9); } }

/* Ohjaimet: noppa + reaktiot */
.controls { grid-area: controls; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 22px); padding: 6px 12px 10px; }
.controls__btns { display: none; gap: 8px; }
.dicewrap { display: grid; justify-items: center; gap: 2px; }
.dicehint { margin: 0; min-height: 1.2em; font-size: var(--fs-xs); font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.reactions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 260px; }
.reactions button { width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); font-size: 22px; line-height: 1; display: grid; place-items: center; transition: transform .1s; }
.reactions button:active { transform: scale(.85); }
.reactions button:disabled { opacity: .4; }

/* 3D-noppa: kuutio, jonka tahkot ovat pisteitä. */
.dice { --size: clamp(44px, 11vmin, 62px); --dc: var(--accent); --dcd: var(--accent-d);
  position: relative; width: calc(var(--size) * 1.55); height: calc(var(--size) * 1.55); border: 0; padding: 0; border-radius: 26%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .18), transparent 70%), var(--dc);
  box-shadow: 0 6px 0 var(--dcd), 0 12px 24px rgba(0, 0, 0, .35); perspective: 600px; display: grid; place-items: center;
  transition: filter .2s, box-shadow .2s, transform .1s;
}
.dice:disabled { cursor: default; filter: saturate(.5) brightness(.75); }
.dice.is-ready { animation: dice-ready 1s ease-in-out infinite; }
.dice:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 var(--dcd), 0 6px 14px rgba(0, 0, 0, .35); }
@keyframes dice-ready { 0%, 100% { box-shadow: 0 6px 0 var(--dcd), 0 0 0 0 rgba(255, 255, 255, .55); } 50% { box-shadow: 0 6px 0 var(--dcd), 0 0 0 10px rgba(255, 255, 255, 0); } }
.cube { position: relative; width: var(--size); height: var(--size); transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(16deg); transition: transform .55s cubic-bezier(.2, 1.4, .4, 1); }
.cube.is-rolling { transition: none; animation: tumble .45s linear infinite; }
@keyframes tumble { from { transform: rotateX(0) rotateY(0) rotateZ(0); } to { transform: rotateX(360deg) rotateY(720deg) rotateZ(180deg); } }
.face { position: absolute; inset: 0; border-radius: 18%; background: linear-gradient(145deg, #fff, #ece6ff); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .06), inset 0 -4px 8px rgba(0, 0, 0, .12); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14%; backface-visibility: hidden; }
.face i { width: 72%; aspect-ratio: 1; border-radius: 50%; place-self: center; background: radial-gradient(circle at 35% 30%, #5a4a8a, #1d1240); }
.face--1 i { grid-area: 2 / 2; background: radial-gradient(circle at 35% 30%, #ff7a8c, var(--red-d)); width: 90%; }
.dice--mini { --size: 28px; border-radius: 12px; width: var(--tap); height: var(--tap); }
.dice--mini .face { padding: 12%; }

/* Poissa-ilmoitus */
.away { position: absolute; z-index: 20; left: 50%; top: calc(56px + var(--sat)); translate: -50% 0; display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem .5rem 1rem; border-radius: 16px; background: rgba(255, 159, 28, .95); color: #2b1700; font-weight: 900; box-shadow: var(--shadow); width: max-content; max-width: calc(100% - 24px); }
.away p { margin: 0; font-size: var(--fs-s); }

/* Voittoruutu */
.results { position: absolute; z-index: 30; inset: 0; display: grid; place-items: center; padding: calc(12px + var(--sat)) 12px calc(12px + var(--sab)); background: rgba(10, 4, 34, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; grid-area: 1 / 1 / -1 / -1; }
.results__inner { width: min(460px, 100%); padding: clamp(16px, 4vw, 26px); border-radius: 26px; background: linear-gradient(180deg, #43309e, #24165e); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; animation: pop-in .4s cubic-bezier(.3, 1.4, .5, 1); }
.results__title { margin: 0 0 .8rem; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); color: var(--accent); text-shadow: 0 3px 0 #8a4b00; }
.podium { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; text-align: left; }
.podium li { --c: var(--grey); display: grid; grid-template-columns: 36px 48px minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 16px; background: rgba(255, 255, 255, .07); border-left: 5px solid var(--c); }
.podium li.first { background: linear-gradient(90deg, rgba(255, 207, 63, .3), rgba(255, 255, 255, .06)); }
.podium .rank { font-family: var(--font-display); font-size: 1.5rem; text-align: center; color: var(--accent); }
.podium img { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c); }
.podium .who { min-width: 0; }
.podium .nm { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.podium .st { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; display: block; }
.podium .rs { font-size: var(--fs-xs); font-weight: 900; padding: .2em .6em; border-radius: 99px; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.podium .rs--ready { background: rgba(62, 224, 143, .25); color: #a8ffd2; }
.podium .rs--left { background: rgba(255, 77, 109, .2); color: #ffb3c1; }
.results__actions { display: grid; gap: .6rem; }

/* Chat pelinäkymässä */
.gchat { display: contents; }

/* ---------- portrait (puhelin pystyssä): chat alhaalta liukuvana paneelina ---------- */
body[data-layout='portrait'] .gchat .chat {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: var(--kb);
  height: min(50dvh, 460px); border-radius: 22px 22px 0 0; border-bottom: 0;
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .9, .3, 1); visibility: hidden;
  --chat-sab: var(--sab);
}
body[data-layout='portrait'] .gchat .chat__grip, body[data-layout='portrait'] .gchat .chat__close { display: block; }
body[data-layout='portrait'] .gchat .chat__close { display: grid; }
body[data-layout='portrait'] .gchat .chat__head { padding-top: 14px; }
body[data-layout='portrait'] .chat-open .gchat .chat { transform: none; visibility: visible; }
/* Chat auki: lauta kutistuu paneelin yläpuolelle, kortit ja ohjaimet väistyvät. */
body[data-layout='portrait'] .chat-open { padding-bottom: calc(min(50dvh, 460px) + var(--kb)); }
body[data-layout='portrait'] .chat-open .controls,
body[data-layout='portrait'] .chat-open .pcard { display: none; }
body[data-layout='portrait'] .chat-open .frame { grid-template-rows: 0 var(--bs) 0; gap: 0; }
body[data-layout='portrait'] .chat-open #mini-dice:not(.is-hidden) { display: grid !important; }
body[data-layout='portrait'] .chat-open .results { bottom: calc(min(50dvh, 460px) + var(--kb)); }
/* Voittoruutu peittää pelialueen mutta jättää pysyvän chatin näkyviin. */
body[data-layout='landscape'] .results { grid-area: 1 / 1 / 2 / 3; }
body[data-layout='tablet'] .results, body[data-layout='desktop'] .results { grid-area: 1 / 1 / 3 / 3; }

/* ---------- landscape (puhelin vaakana): kortit sivuilla, ohjaimet oikealla ---------- */
body[data-layout='landscape'] .screen--game {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: 'stage controls chat';
}
body[data-layout='landscape'] .gtop { display: none; }
body[data-layout='landscape'] .frame {
  grid-template-columns: var(--cw, 120px) var(--bs) var(--cw, 120px);
  grid-template-rows: calc(var(--bs) / 2 - var(--fg, 6px) / 2) calc(var(--bs) / 2 - var(--fg, 6px) / 2);
  grid-template-areas: 'c1 b c2' 'c0 b c3'; }
body[data-layout='landscape'] .pcard { flex-direction: column !important; justify-content: flex-start; text-align: center !important; height: auto; gap: 2px; }
body[data-layout='landscape'] .pcard[data-corner='0'], body[data-layout='landscape'] .pcard[data-corner='3'] { justify-content: flex-end; }
body[data-layout='landscape'] .pcard__av { width: min(var(--cw, 120px), 64px, 20dvh); height: auto; }
body[data-layout='landscape'] .pcard__meta { justify-content: center !important; }
body[data-layout='landscape'] .pcard__name { max-width: 100%; text-align: center; }
body[data-layout='landscape'] .controls { flex-direction: column; justify-content: space-between; padding: 8px 8px 8px 0; width: clamp(120px, 18vw, 170px); }
body[data-layout='landscape'] .controls__btns { display: flex; }
body[data-layout='landscape'] .turnlabel--side { display: block; flex: none; font-size: var(--fs-m); white-space: normal; line-height: 1.1; max-width: 100%; }
body[data-layout='landscape'] .reactions { display: grid; grid-template-columns: repeat(3, var(--tap)); gap: 4px; max-width: none; }
body[data-layout='landscape'] .reactions button { font-size: 20px; }
/* Chat auki vaakatilassa: kortit pelkiksi avatareiksi ja reaktiot piiloon, jotta lauta pysyy isona. */
body[data-layout='landscape'] .chat-open .reactions,
body[data-layout='landscape'] .chat-open .turnlabel--side,
body[data-layout='landscape'] .chat-open .pcard__body,
body[data-layout='landscape'] .chat-open .dicehint { display: none; }
body[data-layout='landscape'] .chat-open .controls { width: auto; padding-left: 4px; }
body[data-layout='landscape'] .chat-open .gchat .chat { width: min(280px, 34vw); }
body[data-layout='landscape'] .gchat .chat { grid-area: chat; width: min(300px, 36vw); display: none; border-radius: 0; border-width: 0 0 0 1px; }
body[data-layout='landscape'] .chat-open .gchat .chat { display: flex; }
body[data-layout='landscape'] .gchat .chat__close { display: grid; }
body[data-layout='landscape'] .gchat .chat { padding-bottom: var(--kb); }


/* ---------- tablet (pysty, iso) ja desktop (vaaka, iso): pysyvä chat ---------- */
body[data-layout='tablet'] .screen--game {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: 'top top' 'stage stage' 'controls chat';
}
body[data-layout='tablet'] .controls { flex-direction: column; justify-content: center; padding: 8px 4px 12px 16px; width: 230px; }
body[data-layout='tablet'] .gchat .chat { grid-area: chat; height: clamp(210px, 25dvh, 300px); border-radius: 22px 22px 0 0; margin: 0 12px 0 4px; width: auto; --chat-sab: var(--sab); }
body[data-layout='tablet'] .chat-collapsed .gchat .chat { height: 52px; }

body[data-layout='desktop'] .screen--game {
  grid-template-columns: minmax(0, 1fr) clamp(170px, 15vw, 230px) auto;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: 'top top chat' 'stage controls chat';
  max-width: 2000px; margin: 0 auto;
}
body[data-layout='desktop'] .controls { flex-direction: column; justify-content: center; gap: 26px; }
body[data-layout='desktop'] .gchat .chat { grid-area: chat; width: clamp(300px, 24vw, 380px); border-radius: 0; border-width: 0 0 0 1px; }
body[data-layout='desktop'] .chat-collapsed .gchat .chat { width: 60px; }
body[data-layout='tablet'] .gchat .chat__close, body[data-layout='desktop'] .gchat .chat__close { display: grid; }
body[data-layout='desktop'] .gchat .chat__close svg { transform: rotate(-90deg); }
body[data-layout='desktop'] .chat-collapsed .gchat .chat__close svg { transform: rotate(90deg); }
body[data-layout='tablet'] .chat-collapsed .gchat .chat__close svg { transform: rotate(180deg); }
.chat-collapsed .gchat .chat > :not(.chat__head) { display: none; }
body[data-layout='desktop'] .chat-collapsed .gchat .chat__head { flex-direction: column; padding: 8px 6px; border: 0; }
body[data-layout='desktop'] .chat-collapsed .gchat .chat__title { writing-mode: vertical-rl; flex: none; }
/* Pysyvässä chatissa yläpalkin chat-nappi on turha, paitsi pienennettynä se avaa. */
body[data-layout='desktop'] .gtop .chatbtn, body[data-layout='tablet'] .gtop .chatbtn { display: none; }

/* --------------------------------------------------------------- SVG-lauta */
.bd-piece { cursor: default; }
.bd-piece.is-movable { cursor: pointer; }
.bd-piece.is-movable .bd-pin { animation: pulse .9s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
.bd-piece.is-movable .bd-halo { opacity: 1; animation: halo .9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bd-piece:focus { outline: none; }
.bd-piece:focus-visible .bd-halo { opacity: 1; stroke: #fff; stroke-width: 8; }
.bd-halo { opacity: 0; }
@keyframes pulse { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.1); } }
@keyframes halo { 0%, 100% { transform: scale(.85); opacity: .9; } 50% { transform: scale(1.15); opacity: .35; } }
.bd-yard--turn .bd-yard-frame { animation: yardglow 1.4s ease-in-out infinite; }
@keyframes yardglow { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
.board.is-shake { animation: shake .35s ease; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 1px); } }

/* --------------------------------------------------------------- liikkeen vähennys */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .05s !important; }
  .bd-piece.is-movable .bd-halo { opacity: 1; }
  .cube.is-rolling { animation: none; }
  .logo__die { animation: none; }
}
