
:root {
  color-scheme: dark;
  --bg: #06122e;
  --glass: rgba(5, 18, 49, .82);
  --line: rgba(88, 133, 255, .48);
  --text: #f7f9ff;
  --muted: #9fb0d4;
  --green: #39ff88;
  --blue: #22d3ff;
  --red: #ff315f;
  --pink: #ff45d4;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #040b1d; color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100dvh; overflow: auto; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(rgba(2,8,25,.28), rgba(2,8,25,.62)), url('/background.png') center / cover no-repeat;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgba(34,211,255,.16), transparent 34%), radial-gradient(circle at 82% 15%, rgba(255,69,212,.16), transparent 34%);
}
button { font: inherit; }
.activity-shell { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 12px; }
.activity-card { width: min(620px, 100%); border: 1px solid rgba(104,138,255,.52); border-radius: 20px; background: linear-gradient(145deg, rgba(6,20,54,.90), rgba(3,10,31,.91)); box-shadow: 0 24px 70px rgba(0,0,0,.36), 0 0 30px rgba(54,107,255,.10); overflow: hidden; }
.mini-radio { min-height: 64px; display: grid; grid-template-columns: 86px minmax(0,1fr) 44px 38px; gap: 9px; align-items: center; padding: 8px 12px; border-bottom: 1px solid rgba(83,132,255,.28); background: rgba(3,12,35,.74); }
.rr-logo { width: 82px; height: auto; display: block; }
.radio-track { min-width: 0; display: grid; gap: 2px; }
.radio-kicker { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: 1.3px; }
.radio-track strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.round-button, .mute-button { display: grid; place-items: center; border: 1px solid rgba(78,184,255,.65); color: #fff; background: rgba(14,42,91,.78); cursor: pointer; box-shadow: 0 0 12px rgba(34,211,255,.14); }
.round-button { width: 42px; height: 42px; border-radius: 50%; font-size: 17px; }
.mute-button { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.round-button:hover, .mute-button:hover { border-color: var(--blue); box-shadow: 0 0 14px rgba(34,211,255,.35); }
.game { padding: 12px 14px 15px; }
.game-brand { position: relative; width: min(430px, 94%); margin: 0 auto 5px; display: flex; justify-content: center; }
.game-brand img { display: block; width: 100%; max-height: 118px; object-fit: contain; }
.game-number { position: absolute; right: 2%; bottom: 2px; border: 1px solid rgba(75,197,255,.66); border-radius: 999px; background: rgba(5,18,54,.90); padding: 3px 10px; font-weight: 950; font-size: 12px; box-shadow: 0 0 12px rgba(34,211,255,.22); }
.word-board { width: max-content; margin: 4px auto 8px; display: grid; gap: 5px; }
.word-row { display: grid; grid-template-columns: repeat(5, 52px); gap: 5px; }
.word-cell { width: 52px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(104,150,255,.58); border-radius: 7px; background: rgba(5,19,51,.54); color: #fff; font-size: 23px; font-weight: 950; text-transform: uppercase; box-shadow: inset 0 0 12px rgba(38,83,190,.08); }
.word-cell.filled { border-color: rgba(83,211,255,.9); box-shadow: 0 0 9px rgba(34,211,255,.16); }
.word-cell.correct, .word-key.correct { background: linear-gradient(145deg, rgba(20,185,101,.98), rgba(57,255,136,.82)); border-color: #75ffae; box-shadow: 0 0 10px rgba(57,255,136,.58); color: #fff; }
.word-cell.present, .word-key.present { background: linear-gradient(145deg, rgba(7,133,196,.98), rgba(34,211,255,.84)); border-color: #69e7ff; box-shadow: 0 0 10px rgba(34,211,255,.58); color: #fff; }
.word-cell.absent, .word-key.absent { background: linear-gradient(145deg, rgba(153,16,54,.98), rgba(255,49,95,.80)); border-color: #ff6284; box-shadow: 0 0 9px rgba(255,49,95,.46); color: #fff; }
.word-message { min-height: 20px; margin: 5px auto 8px; text-align: center; color: #dfe7fa; font-size: 12px; font-weight: 750; }
.word-keyboard { width: max-content; max-width: 100%; margin: 0 auto; display: grid; gap: 4px; }
.word-key-row { width: max-content; max-width: 100%; margin: 0 auto; display: flex; justify-content: center; gap: 3px; }
.word-key { flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(110,145,230,.34); border-radius: 6px; background: rgba(111,137,181,.30); color: #fff; font-weight: 900; font-size: 11px; cursor: pointer; touch-action: manipulation; }
.word-key-wide { flex-basis: 58px; width: 58px; font-size: 8px; }
.word-key:disabled { cursor: default; }
.share-button { display: block; margin: 11px auto 0; border: 1px solid rgba(255,88,214,.72); border-radius: 999px; padding: 9px 20px; background: linear-gradient(90deg, rgba(15,126,187,.88), rgba(115,68,222,.90) 54%, rgba(225,45,174,.90)); color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 0 16px rgba(255,69,212,.20); }
.share-button[hidden] { display: none; }
.share-status { min-height: 15px; margin-top: 5px; text-align: center; font-size: 10px; color: var(--muted); }
.shake { animation: shake .25s linear; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
@media (max-width: 520px) {
  .activity-shell { align-items: flex-start; padding: 6px; }
  .activity-card { border-radius: 15px; }
  .mini-radio { grid-template-columns: 68px minmax(0,1fr) 40px 34px; min-height: 58px; gap: 6px; padding: 7px 8px; }
  .rr-logo { width: 64px; }
  .radio-track strong { font-size: 12px; }
  .round-button { width: 38px; height: 38px; }
  .mute-button { width: 32px; height: 32px; }
  .game { padding: 8px 8px 12px; }
  .game-brand { width: min(360px, 96%); }
  .game-brand img { max-height: 96px; }
  .word-row { grid-template-columns: repeat(5, 46px); gap: 4px; }
  .word-cell { width: 46px; height: 43px; font-size: 21px; }
  .word-key { flex-basis: 30px; width: 30px; height: 31px; font-size: 10px; }
  .word-key-wide { flex-basis: 51px; width: 51px; font-size: 7px; }
}
@media (max-width: 360px) {
  .word-row { grid-template-columns: repeat(5, 42px); }
  .word-cell { width: 42px; height: 40px; }
  .word-key { flex-basis: 27px; width: 27px; height: 30px; font-size: 9px; }
  .word-key-wide { flex-basis: 46px; width: 46px; }
}


/* === Kompakt volymkontroll v2 === */
.radio-track {
  align-content: center;
}

.mini-volume {
  display: flex;
  align-items: center;
  width: min(160px, 100%);
  height: 12px;
  margin-top: 1px;
}

.mini-volume input[type="range"] {
  width: 100%;
  height: 12px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

@media (max-width: 520px) {
  .mini-volume {
    width: min(125px, 100%);
  }
}


/* === Discord Activity kompakt v4 === */
@media (min-width: 521px) {
  .activity-shell { padding: 8px; }
  .activity-card { width: min(500px, 100%); border-radius: 16px; }

  .mini-radio {
    min-height: 50px;
    grid-template-columns: 62px minmax(0, 1fr) 34px 32px;
    gap: 7px;
    padding: 6px 9px;
  }

  .rr-logo { width: 58px; }
  .radio-kicker { font-size: 8px; }
  .radio-track strong { font-size: 12px; }
  .mini-volume { width: min(120px, 100%); height: 9px; }
  .mini-volume input[type="range"] { height: 9px; }
  .round-button { width: 32px; height: 32px; font-size: 13px; }
  .mute-button { width: 30px; height: 30px; font-size: 13px; }

  .game { padding: 6px 9px 8px; }
  .game-brand { width: min(315px, 88%); margin-bottom: 0; }
  .game-brand img { max-height: 72px; }
  .game-number { right: 0; bottom: 0; padding: 2px 8px; font-size: 10px; }

  .word-board { margin: 1px auto 4px; gap: 3px; }
  .word-row { grid-template-columns: repeat(5, 40px); gap: 3px; }
  .word-cell { width: 40px; height: 37px; border-radius: 6px; font-size: 18px; }

  .word-message { min-height: 15px; margin: 3px auto 4px; font-size: 10px; }

  .word-keyboard { gap: 3px; }
  .word-key-row { gap: 2px; }
  .word-key { flex: 0 0 27px; width: 27px; height: 27px; border-radius: 5px; font-size: 8px; }
  .word-key-wide { flex-basis: 47px; width: 47px; font-size: 7px; }

  .share-button { margin-top: 6px; padding: 7px 15px; font-size: 10px; }
  .share-status { min-height: 12px; margin-top: 3px; font-size: 9px; }
}

@media (min-width: 521px) and (max-height: 720px) {
  .activity-card { width: min(465px, 100%); }
  .game-brand { width: min(285px, 84%); }
  .game-brand img { max-height: 64px; }
  .word-row { grid-template-columns: repeat(5, 37px); }
  .word-cell { width: 37px; height: 34px; font-size: 17px; }
  .word-key { flex-basis: 25px; width: 25px; height: 25px; }
  .word-key-wide { flex-basis: 43px; width: 43px; }
}
