:root {
  --bg: #f8fcff;
  --surface: #ffffff;
  --text: #0d2547;
  --muted: #5d718c;
  --line: #b9d9ef;
  --accent: #087ee8;
  --accent-strong: #005dc0;
  --good: #24a66a;
  --danger: #e94040;
  --gold: #f2a51a;
  --bubble: #d7f1ff;
  --play-bg: url("assets/luftblasen/images/backgrounds/classic-theme-background.png");
  --bubble-img: url("assets/luftblasen/images/bubble.png");
  --bonus-img: url("assets/luftblasen/images/bubblebonus.png");
  --multiplier-img: url("assets/luftblasen/images/bubblemultiplier.png");
  --shadow: 0 20px 55px rgba(19, 81, 135, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 22% 12%, rgba(8, 126, 232, 0.12), transparent 28%),
    linear-gradient(135deg, #f8fcff 0%, #eef8ff 48%, #fffdf8 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.show-splash {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.game-shell {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0;
}

body:not(.show-splash) {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

body:not(.show-splash) .game-shell {
  width: min(calc(100% - 18px), 720px, calc((100vh - 18px) * 0.72));
  width: min(calc(100% - 18px), 720px, calc((100dvh - 18px) * 0.72));
  min-width: min(100% - 18px, 390px);
  height: 100vh;
  height: 100dvh;
  padding: 9px 0;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding: 28px;
  background:
    radial-gradient(circle at 24% 18%, rgba(8, 126, 232, 0.18), transparent 28%),
    linear-gradient(135deg, #eef8ff 0%, #ffffff 54%, #e9f6ff 100%);
}

.splash-screen.hidden {
  display: none;
}

.splash-brand {
  text-align: center;
}

.splash-brand h1 {
  margin: 0;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 10vw, 7rem);
  font-style: italic;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 3px 0 white, 0 16px 32px rgba(8, 126, 232, 0.2);
}

.splash-brand p {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.4;
}

.splash-theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 12px;
  width: min(760px, 100%);
}

.splash-difficulty {
  display: grid;
  gap: 10px;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(19, 81, 135, 0.1);
}

.splash-difficulty span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.splash-difficulty input {
  accent-color: var(--accent);
}

.splash-difficulty small {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.splash-difficulty small b:last-child {
  text-align: right;
}

.splash-difficulty strong {
  color: var(--accent-strong);
}

.sound-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
}

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

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.splash-theme {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(19, 81, 135, 0.12);
}

.splash-theme .theme-icon {
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
}

.splash-theme.active {
  border-color: var(--accent);
  background: #eaf7ff;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent), 0 16px 36px rgba(19, 81, 135, 0.16);
}

.start-button {
  min-width: 220px;
  min-height: 50px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent-strong);
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(0, 93, 192, 0.22);
}

.how-button {
  min-width: 150px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(19, 81, 135, 0.12);
}

.how-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 36, 70, 0.42);
  backdrop-filter: blur(6px);
}

.how-panel.hidden {
  display: none;
}

.how-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(780px, 92dvh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 28px 70px rgba(6, 36, 70, 0.32);
}

.how-card h2 {
  margin: 0 46px 20px 0;
  color: var(--accent-strong);
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 0.95;
}

.how-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.how-steps {
  display: grid;
  gap: 10px;
}

.how-steps section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #f7fcff;
}

.how-steps b {
  display: block;
  color: var(--accent-strong);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.1;
}

.how-steps p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.splash-version {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.hud {
  display: none;
}

.hud-card,
.play-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hud-card {
  min-width: 0;
  padding: 8px 11px;
}

.hud-card span,
.side-panel h2,
.difficulty-control span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hud-card strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.hud-card.compact strong {
  font-size: clamp(1.2rem, 2vw, 1.9rem);
}

.sum-card em {
  display: block;
  margin-top: 3px;
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.sum-meter {
  height: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e8f4fb;
}

.sum-meter i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--good));
  transition: width 180ms ease, background 180ms ease;
}

.layout {
  display: block;
}

.side-panel h2 {
  margin: 0 0 9px;
}

.theme-list {
  display: grid;
  gap: 6px;
}

.theme-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
}

.theme-button {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 5px 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.theme-button.active {
  border-color: var(--accent);
  background: #eaf7ff;
  box-shadow: inset 0 0 0 2px rgba(8, 126, 232, 0.14);
}

.theme-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
}

.bubble-icon {
  border: 2px solid #69bfff;
  background: radial-gradient(circle at 34% 28%, white 0 18%, #b7e8ff 45%, #4eb2f4 100%);
}

.tile-icon {
  border-radius: 5px;
  background: linear-gradient(145deg, #ffc23d, #a35b00);
  color: #1f1304;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 950;
}

.difficulty-control {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.difficulty-control input {
  accent-color: var(--accent);
}

.difficulty-control small {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.button-grid {
  display: grid;
  gap: 7px;
}

.primary-button,
.secondary-button {
  min-height: 36px;
  padding: 0 10px;
}

.primary-button {
  background: var(--accent-strong);
  color: white;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-strong);
}

.play-card {
  min-height: 590px;
  padding: 7px;
}

body:not(.show-splash) .play-card {
  height: calc(100vh - 18px);
  height: calc(100dvh - 18px);
  min-height: 0;
}

.playfield {
  position: relative;
  min-height: 576px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.82) 0 3px, transparent 4px),
    radial-gradient(circle at 80% 34%, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    var(--play-bg);
  background-position: center;
  background-size: cover;
}

body:not(.show-splash) .playfield {
  height: 100%;
  min-height: 0;
}

.field-message {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  transform: translateX(-50%);
  width: min(92%, 600px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.end-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 36, 70, 0.34);
  backdrop-filter: blur(5px);
}

.end-screen.hidden {
  display: none;
}

.end-panel {
  width: min(420px, 94%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  text-align: center;
  box-shadow: 0 24px 60px rgba(6, 36, 70, 0.28);
}

.end-panel h2 {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 2.1rem;
  line-height: 1;
}

.end-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}

.end-stats div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 8px;
  background: #f7fcff;
}

.end-stats dt {
  color: var(--accent-strong);
  font-size: 0.63rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.end-stats dd {
  margin: 5px 0 0;
  overflow: hidden;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.end-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.end-primary,
.end-secondary {
  min-height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 950;
}

.end-primary {
  border: 0;
  background: var(--accent-strong);
  color: white;
}

.end-secondary {
  border: 1px solid var(--line);
  padding: 0 16px;
  background: white;
  color: var(--accent-strong);
}

.field-hud {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.72fr 1fr 0.72fr;
  gap: 6px;
  pointer-events: none;
}

.field-timer {
  position: absolute;
  top: auto;
  left: 10px;
  right: 10px;
  bottom: 140px;
  z-index: 5;
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 28, 54, 0.42);
  box-shadow: 0 8px 20px rgba(5, 25, 48, 0.18);
  pointer-events: none;
}

.field-timer i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--good), var(--gold));
  transform-origin: left center;
  transition: background 140ms ease, transform 140ms linear;
}

.field-timer.warning {
  height: 7px;
  background: rgba(75, 45, 0, 0.58);
}

.field-timer.critical {
  height: 9px;
  background: rgba(93, 8, 8, 0.7);
  box-shadow: 0 0 0 2px rgba(233, 64, 64, 0.22), 0 0 24px rgba(233, 64, 64, 0.42);
  animation: timer-pulse 650ms ease-in-out infinite;
}

.timer-stat.warning strong {
  color: #ffe08a;
}

.timer-stat.critical strong {
  color: #ff8a7a;
}

@keyframes timer-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.62;
  }
}

.field-controls {
  position: absolute;
  right: 10px;
  bottom: 86px;
  z-index: 6;
  display: flex;
  gap: 6px;
}

.field-control-button {
  min-width: 52px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(19, 81, 135, 0.12);
}

.field-control-button:focus-visible {
  outline: 3px solid rgba(8, 126, 232, 0.34);
  outline-offset: 2px;
}

.field-multiplier {
  position: absolute;
  left: 10px;
  bottom: 86px;
  z-index: 5;
  min-width: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(19, 81, 135, 0.12);
}

.field-multiplier span {
  display: block;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.field-multiplier strong {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1;
}

.field-announcement {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: 7;
  display: grid;
  min-width: 168px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  padding: 12px 18px 14px;
  background: rgba(8, 28, 54, 0.82);
  color: white;
  box-shadow: 0 18px 40px rgba(5, 25, 48, 0.28);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease;
}

.field-announcement.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.field-announcement.hidden {
  display: none;
}

.field-announcement span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.field-announcement strong {
  display: block;
  margin-top: 5px;
  color: #ffe08a;
  font-size: clamp(2.4rem, 10vw, 4.5rem);
  font-weight: 950;
  line-height: 0.92;
}

.field-announcement.alert strong {
  color: #ff8a7a;
  font-size: clamp(2rem, 8vw, 3.7rem);
}

.field-announcement.success strong {
  color: #81f0a6;
}

.field-stat {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  padding: 6px 9px;
  background: rgba(8, 28, 54, 0.78);
  color: white;
  box-shadow: 0 12px 28px rgba(5, 25, 48, 0.24);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(5px);
}

.field-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.field-stat strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: white;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-stat strong {
  color: #ffe08a;
  font-size: 1.6rem;
}

.field-stat.small strong,
.lives-stat strong,
.timer-stat strong {
  font-size: 1.05rem;
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border: 0;
  border-radius: 50%;
  background: var(--bubble-img) center / contain no-repeat;
  box-shadow: none;
  color: white;
  cursor: pointer;
  font-size: calc(var(--size) * 0.42);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.55);
  touch-action: manipulation;
  transition: transform 70ms ease-out, opacity 80ms ease-out;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bubble:hover {
  transform: scale(1.04);
}

.bubble.selected {
  outline: 5px solid rgba(0, 93, 192, 0.58);
  transform: scale(1.06);
}

.bubble.multiplier {
  background-image: var(--multiplier-img);
}

.bubble.bonus {
  background-image: var(--bonus-img);
}

.bubble.bonus::before {
  content: "+T";
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  width: calc(var(--size) * 0.42);
  height: calc(var(--size) * 0.32);
  min-width: 26px;
  min-height: 20px;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--gold);
  color: white;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: calc(var(--size) * 0.18);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.bubble.popped {
  opacity: 0;
  transform: scale(1.18);
  pointer-events: none;
}

[data-theme="bavarian"] {
  --accent: #1565d8;
  --accent-strong: #064aa5;
  --bubble: #ffe0a4;
  --gold: #f0a000;
  --play-bg: url("assets/luftblasen/images/backgrounds/bavarian-theme-background.png");
}

[data-theme="shamrock"] {
  --accent: #15945c;
  --accent-strong: #07643a;
  --bubble: #c9f7dc;
  --gold: #20b66b;
  --play-bg: url("assets/luftblasen/images/backgrounds/shamrock-theme-background.png");
  --bubble-img: url("assets/luftblasen/images/stpatrick/shamrock.png");
  --bonus-img: url("assets/luftblasen/images/stpatrick/shamrockbonus.png");
  --multiplier-img: url("assets/luftblasen/images/stpatrick/shamrockmultiplier.png");
}

[data-theme="classical"] {
  --accent: #8b4dd8;
  --accent-strong: #5b2ea0;
  --bubble: #eadbff;
  --gold: #d49a2a;
  --play-bg: url("assets/luftblasen/images/backgrounds/classical-music-background.png");
  --bubble-img: url("assets/luftblasen/images/classical/note.png");
  --bonus-img: url("assets/luftblasen/images/classical/notebonus.png");
  --multiplier-img: url("assets/luftblasen/images/classical/notemultiplier.png");
}

[data-theme="boardgame"] {
  --accent: #9a5a08;
  --accent-strong: #6d3d00;
  --bubble: #df8a18;
  --gold: #c57500;
  --play-bg: url("assets/luftblasen/images/backgrounds/board-game-theme-background.png");
}

[data-theme="boardgame"] .playfield {
  background-size: cover;
}

[data-theme="boardgame"] .bubble {
  border-radius: 11px;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 250, 166, 0.9) 0 7%, transparent 8%),
    linear-gradient(145deg, #ffc845 0%, #d27b08 34%, #9c5200 70%, #ffca48 100%);
  box-shadow:
    inset 6px 6px 14px rgba(255, 226, 86, 0.72),
    inset -8px -8px 14px rgba(91, 42, 0, 0.46),
    0 10px 18px rgba(83, 45, 8, 0.25);
  color: #1e1305;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: none;
}

[data-theme="boardgame"] .bubble::after {
  content: "1";
  position: absolute;
  right: 18%;
  bottom: 13%;
  font-size: calc(var(--size) * 0.14);
  font-weight: 900;
}

[data-theme="boardgame"] .bubble.bonus {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 200, 0.92) 0 7%, transparent 8%),
    linear-gradient(145deg, #ffe071 0%, #e79b12 36%, #a75e00 72%, #ffd665 100%);
}

[data-theme="boardgame"] .bubble.multiplier {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 220, 0.92) 0 7%, transparent 8%),
    linear-gradient(145deg, #ffd45f 0%, #bf6900 34%, #713500 74%, #ffbe35 100%);
  color: #fff8df;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.75);
}

@media (max-width: 560px) {
  .game-shell {
    width: min(100% - 14px, 1480px);
    padding: 7px 0;
  }

  .sum-card .sum-meter,
  .sum-card em {
    display: none;
  }

  .play-card {
    height: calc(100vh - 14px);
    height: calc(100dvh - 14px);
  }

  .field-hud {
    grid-template-columns: 1.15fr 1fr 0.9fr;
    gap: 5px;
  }

  .field-timer {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 138px;
  }

  .field-stat {
    padding: 5px 7px;
  }

  .field-stat span {
    font-size: 0.56rem;
  }

  .field-stat strong {
    font-size: 1.05rem;
  }

  .target-stat strong {
    font-size: 1.35rem;
  }

  .field-stat.small strong,
  .lives-stat strong,
  .timer-stat strong {
    font-size: 0.96rem;
  }

  .field-message {
    bottom: 10px;
    padding: 10px 12px;
  }

  .field-announcement {
    top: 46%;
    min-width: 150px;
    padding: 10px 15px 12px;
  }

  .end-panel {
    padding: 18px;
  }

  .end-panel h2 {
    font-size: 1.75rem;
  }

  .end-stats dd {
    font-size: 1.08rem;
  }

  .field-controls {
    right: 8px;
    bottom: 88px;
    gap: 5px;
  }

  .field-control-button {
    min-width: 46px;
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .field-multiplier {
    left: 8px;
    bottom: 88px;
    min-width: 76px;
    padding: 5px 7px;
  }

  .splash-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .splash-theme {
    min-height: 96px;
  }
}
