/* Solar Sloop — shared game page base (space-sail / navigator theme) */
:root {
  --bg-deep: #080510;
  --bg-mid: #15102a;
  --surface: rgba(22, 16, 42, 0.92);
  --border: rgba(201, 162, 39, 0.42);
  --text: #faf6ef;
  --muted: #b8a990;
  --accent: #e8b84a;
  --accent-2: #c9a227;
  --accent-teal: #2fb8a8;
  --warning: #f5e6b8;
  --radius: 14px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(232, 184, 74, 0.14), transparent 52%),
    radial-gradient(700px 380px at 92% 18%, rgba(47, 184, 168, 0.10), transparent 48%),
    radial-gradient(600px 400px at 50% 100%, rgba(88, 28, 135, 0.12), transparent 55%),
    linear-gradient(165deg, var(--bg-deep), var(--bg-mid) 52%, #040308);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-teal);
}

.game-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 5, 16, 0.97);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.back {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.back:hover {
  color: var(--accent-teal);
}

.game-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.12em;
  color: var(--text);
}

.game-notice {
  margin: 0;
  padding: 10px 20px;
  font-size: 0.8rem;
  background: rgba(201, 162, 39, 0.08);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.game-notice strong {
  color: var(--text);
}

.game-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 48px;
}

.panel {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(232, 184, 74, 0.1);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 40%;
  background: radial-gradient(circle at 100% 0%, rgba(47, 184, 168, 0.08), transparent 65%);
  pointer-events: none;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(12, 8, 28, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.28);
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.stat-line strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #e8b84a, #b8860b);
  color: #1a0f08;
  box-shadow: 0 10px 28px rgba(232, 184, 74, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(232, 184, 74, 0.48);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
