:root {
  --bg: #0b0f14;
  --panel: #131d2b;
  --panel-2: #132133;
  --panel-3: #0f1c2d;
  --line: #29415e;
  --line-strong: #365173;
  --text: #e7eef8;
  --muted: #9cb0c6;
  --accent: #55c5ff;
  --accent-2: #93f7cd;
  --danger: #ff6d7a;
  --highlight: #ffe895;
  --highlight-soft: rgba(255, 232, 149, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 520px at 10% -10%, #14355f 0%, transparent 52%),
    radial-gradient(760px 460px at 100% 0%, #1a4b3d 0%, transparent 48%),
    var(--bg);
}

a,
button,
canvas {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: min(1060px, calc(100% - 16px));
  margin: 10px auto 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 600ms ease-out forwards;
}

.breadcrumb a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

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

.top {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 42%), var(--panel);
  opacity: 0;
  animation: rise 600ms ease-out 80ms forwards;
}

.top h1 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(24px, 4vw, 38px);
}

.top p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.game-page {
  margin-top: 10px;
  opacity: 0;
  animation: rise 600ms ease-out 160ms forwards;
}

.game-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

#gameMount {
  width: 100%;
}

.game-notes {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.game-notes strong {
  color: var(--text);
  font-weight: 600;
}

.footer-nav {
  margin-top: 12px;
  padding: 0 2px;
  opacity: 0;
  animation: rise 600ms ease-out 240ms forwards;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.link-btn:hover {
  transform: translateY(-1px);
}

.link-back {
  background: #142233;
  border-color: #2c4260;
}

.link-back:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 201, 255, 0.16);
}

/* polish for the JS-rendered artillery shell */
#gameMount #artilleryDailyRoot {
  width: 100%;
  margin: 0;
}

#gameMount #artilleryDailyRoot .art-shell {
  border-radius: 12px;
}

#gameMount #artilleryDailyRoot .art-message {
  font-size: 14px;
  line-height: 1.4;
}

#gameMount #artilleryDailyRoot canvas {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(1060px, calc(100% - 12px));
  }

  .link-btn {
    width: 100%;
    justify-content: center;
  }

  .top p,
  .game-notes {
    font-size: 14px;
  }
}