/* DrawLogo — beyaz tahta + işaretleyici kalem. Koyu mürekkep, kalın çerçeve, marker renkleri. */
:root {
  --bg: #e7e5f5;
  --ink: #16143a;
  --paper: #ffffff;
  --muted: #5b5883;
  --pink: #ff3d8b;
  --cyan: #19c6e6;
  --yellow: #ffc800;
  --green: #2bd576;
  --violet: #7a5cff;
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --radius: 14px;
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(22, 20, 58, 0.17) 1.3px, transparent 1.5px);
  background-size: 22px 22px;
  overscroll-behavior-y: none;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.screen {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

.screen--center {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

/* ─── Düğmeler ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  touch-action: manipulation;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow);
}

.btn--primary {
  background: var(--pink);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--yellow {
  background: var(--yellow);
}

.btn--small {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--ghost:hover,
.btn--ghost:active {
  transform: none;
  box-shadow: none;
}

.icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: none;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Alanlar ─── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 600;
}

.input::placeholder {
  color: #8b88b0;
  font-weight: 500;
}

.input--code {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.card {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ─── Ana ekran ─── */
.home {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .home {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

.wordmark {
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.wordmark__scribble {
  display: block;
  width: min(100%, 420px);
  height: 26px;
  margin-top: 6px;
  overflow: visible;
}

.wordmark__scribble path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: scribble 1.1s 0.25s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

@keyframes scribble {
  to {
    stroke-dashoffset: 0;
  }
}

.lede {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 1.2rem;
  font-weight: 500;
}

.how {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 40ch;
}

.how li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}

.how__dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.panel__or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.panel__or::before,
.panel__or::after {
  content: '';
  flex: 1;
  height: 2px;
  background: currentColor;
  opacity: 0.35;
}

.join-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.form-error {
  min-height: 1.3em;
  font-weight: 700;
  color: #c4155d;
}

/* ─── Lobi ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.logo-sm {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.lobby {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .lobby {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.roomcode {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 8px 8px 0 var(--ink);
}

.roomcode__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 4.6rem);
  letter-spacing: 0.12em;
  line-height: 1;
}

.roomcode__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.players {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 700;
}

.player--off {
  opacity: 0.5;
}

.player__dot {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}

.player__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.settings {
  display: grid;
  gap: 22px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  align-self: flex-start;
}

.stepper button {
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--paper);
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
}

.stepper button:hover:not(:disabled) {
  background: var(--yellow);
}

.stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper output {
  min-width: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  border-inline: var(--line);
  line-height: 48px;
}

.choice-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.choice {
  min-height: 44px;
  padding: 6px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
}

.choice[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

.choice:disabled {
  cursor: default;
}

.choice__count {
  margin-left: 6px;
  font-weight: 600;
  opacity: 0.65;
  font-size: 0.85rem;
}

.input--time {
  width: 96px;
  min-height: 44px;
  padding: 6px 10px;
  border-width: 2.5px;
  border-radius: 999px;
  text-align: center;
}

.input--time:not(:placeholder-shown) {
  background: var(--ink);
  color: #fff;
}

.readonly-note {
  padding: 10px 14px;
  border: 2.5px dashed var(--ink);
  border-radius: 12px;
  font-weight: 600;
}

.start-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.start-row .btn {
  min-height: 60px;
  font-size: 1.2rem;
}

/* ─── Bekleme / hazır ekranları ─── */
.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.spinner {
  width: 54px;
  height: 54px;
  border: 6px solid var(--ink);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.brand-slab {
  display: inline-block;
  max-width: 100%;
  padding: 14px 30px 18px;
  background: var(--pink);
  border: var(--line);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-1.5deg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 6.2rem);
  letter-spacing: -0.035em;
  line-height: 1;
  overflow-wrap: anywhere;
  animation: slab-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes slab-in {
  from {
    transform: rotate(-6deg) scale(0.6);
    opacity: 0;
  }
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ─── Çizim ekranı ─── */
.draw {
  max-width: 1280px;
  padding-top: 12px;
  padding-bottom: 24px;
}

.draw__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 12px;
}

.draw__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.draw__brand-name {
  display: inline-block;
  padding: 6px 18px 8px;
  background: var(--pink);
  border: var(--line);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.timer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}

.timer--low {
  color: #c4155d;
}

.timerbar {
  grid-column: 1 / -1;
  height: 12px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.timerbar__fill {
  height: 100%;
  width: 100%;
  background: var(--green);
  transform-origin: left center;
}

.timerbar--low .timerbar__fill {
  background: var(--pink);
}

.draw__body {
  display: grid;
  gap: 12px;
}

.draw__body .toolbox {
  order: 2;
}

@media (min-width: 900px) {
  .draw__body {
    grid-template-columns: 244px minmax(0, 1fr);
    align-items: start;
  }

  .draw__body .toolbox {
    order: 0;
  }
}

.board-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: min(100%, calc((100dvh - 250px) * 1.3333));
  min-width: min(100%, 260px);
  justify-self: center;
}

.board {
  position: relative;
  width: 100%;
  min-width: 260px;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: var(--line);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.board__canvas,
.board__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.board__overlay {
  touch-action: none;
  cursor: crosshair;
}

.board--disabled .board__overlay {
  cursor: not-allowed;
}

.board-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.board-lock__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  padding: 22px;
  text-align: center;
  background: var(--paper);
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.toolbox {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.toolbox__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbox__title {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.tool {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  touch-action: manipulation;
}

.tool[aria-pressed='true'] {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.tool:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.size-dot {
  display: block;
  border-radius: 50%;
  background: var(--ink);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 7px;
  width: 100%;
}

.swatch {
  aspect-ratio: 1;
  min-width: 34px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.swatch[aria-pressed='true'] {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
}

.swatch--custom {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#ff3d8b, #ffc800, #2bd576, #19c6e6, #7a5cff, #ff3d8b);
}

.swatch--custom input {
  position: absolute;
  inset: -8px;
  width: 200%;
  height: 200%;
  opacity: 0;
  cursor: pointer;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}

.draw__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.progress-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 700;
}

.pdot {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.pdot--done::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

/* ─── Açıklama (reveal) ─── */
.reveal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.reveal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reveal-title h2 {
  font-size: clamp(1.8rem, 6vw, 3rem);
}

.reveal-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .reveal-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
  }

  .original {
    position: sticky;
    top: 16px;
  }
}

.original {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.original__frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 18px;
  background: #fff;
  border: var(--line);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.original__frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.original__fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  text-align: center;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
}

.entry--mine {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet);
}

.entry--first {
  background: #fff7d1;
  box-shadow: var(--shadow);
}

.entry__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: block;
}

.entry__empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.entry__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  min-width: 0;
}

.entry__score {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}

.entry__score small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}

.rank--2 {
  background: #dfe3f2;
}

.rank--3 {
  background: #ffb27d;
}

.stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star {
  width: 44px;
  height: 44px;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.star svg {
  width: 100%;
  height: 100%;
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.star--on svg {
  fill: var(--yellow);
}

.stars__hint {
  margin-left: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.stars-static {
  display: flex;
  gap: 2px;
}

.stars-static svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.stars-static .on {
  fill: var(--yellow);
}

.actionbar {
  position: sticky;
  bottom: calc(12px + env(safe-area-inset-bottom));
  margin: 24px 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--paper);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.actionbar__info {
  font-weight: 700;
}

/* ─── Final ─── */
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  max-width: 620px;
  margin: 8px auto 28px;
}

.podium__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}

.podium__name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.podium__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  padding-top: 12px;
  border: var(--line);
  border-radius: 14px 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.podium__place {
  font-size: 2.4rem;
  line-height: 1;
}

.podium__pts {
  font-size: 1.05rem;
}

.podium__slot--1 .podium__block {
  height: 170px;
  background: var(--yellow);
}

.podium__slot--2 .podium__block {
  height: 130px;
  background: #dfe3f2;
}

.podium__slot--3 .podium__block {
  height: 100px;
  background: #ffb27d;
}

.podium__avatar {
  width: 44px;
  height: 44px;
  border: var(--line);
  border-radius: 50%;
}

.leaderboard {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.leaderboard li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  font-weight: 700;
}

.leaderboard__pts {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  margin: 0 -4px 6px;
}

.tab {
  flex: none;
  min-height: 44px;
  padding: 6px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
}

.tab[aria-selected='true'] {
  background: var(--ink);
  color: #fff;
}

.final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast--show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.conn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 40;
  padding: 6px 12px;
  background: var(--pink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .wordmark__scribble path {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 520px) {
  .screen {
    padding-inline: 14px;
  }

  .panel,
  .roomcode {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .timer {
    font-size: 1.6rem;
  }
}
