:root {
  --bg: #07110f;
  --bg2: #0e211c;
  --panel: rgba(255,255,255,0.075);
  --panel2: rgba(255,255,255,0.11);
  --gold: #f7d98b;
  --gold2: #c5963a;
  --text: #f6f2e8;
  --muted: #c7d8ce;
  --green: #b7ffd5;
  --red: #ffb3a7;
  --line: rgba(247,217,139,0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(247,217,139,0.12), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(93,255,185,0.10), transparent 30%),
    linear-gradient(180deg, #07110f 0%, #0b1815 45%, #06100e 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .4px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #07110f;
  box-shadow: 0 12px 35px rgba(0,0,0,.28);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav a:hover {
  color: var(--gold);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 26px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: stretch;
}

.hero-card, .info-card, .content-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.065);
  border-radius: 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 34px;
}

.hero-card h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  color: var(--gold);
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 15px;
  color: #081210;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-decoration: none;
  display: inline-block;
  transition: transform .15s ease;
}

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

.btn.secondary {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
}

.info-card {
  padding: 28px;
}

.info-card h2 {
  color: var(--gold);
  margin: 0 0 14px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.info-item {
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 15px;
  color: var(--muted);
  line-height: 1.45;
}

#diceQuestGame {
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto 46px;
  padding: 28px;
  border-radius: 30px;
  background: radial-gradient(circle at top, #173f35 0%, #0b1815 55%, #06100e 100%);
  color: var(--text);
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
  border: 1px solid var(--line);
}

#diceQuestGame h2 {
  margin: 0 0 12px;
  font-size: 34px;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.5px;
}

#diceQuestGame .subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 16px;
}

#diceQuestGame .panel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(247,217,139,0.25);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
}

#diceQuestGame .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

#diceQuestGame .stat {
  background: rgba(0,0,0,0.25);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  color: #dce8df;
}

#diceQuestGame .stat strong {
  display: block;
  color: var(--gold);
  font-size: 22px;
  margin-top: 5px;
}

#diceQuestGame .message {
  min-height: 86px;
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
  color: #fff9e8;
}

#diceQuestGame .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

#diceQuestGame button,
#diceQuestGame .claimButton {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 15px;
  color: #081210;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform .15s ease, opacity .15s ease;
  text-decoration: none;
  display: inline-block;
}

#diceQuestGame button:hover,
#diceQuestGame .claimButton:hover {
  transform: translateY(-2px);
}

#diceQuestGame button.secondary {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
}

#diceQuestGame .diceArea,
#diceQuestGame .choiceArea,
#diceQuestGame .chestArea {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

#diceQuestGame .diceBox {
  width: 140px;
  background: rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
}

#diceQuestGame .diceBox .dice {
  font-size: 34px;
  margin-top: 8px;
}

#diceQuestGame .chest,
#diceQuestGame .rpsChoice {
  width: 135px;
  min-height: 118px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(247,217,139,0.18), rgba(255,255,255,0.06));
  border: 1px solid rgba(247,217,139,0.3);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: .18s ease;
  padding: 12px;
}

#diceQuestGame .chest:hover,
#diceQuestGame .rpsChoice:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(247,217,139,0.3), rgba(255,255,255,0.1));
}

#diceQuestGame .chest.opened {
  background: rgba(255,255,255,0.15);
  cursor: default;
  color: var(--gold);
}

#diceQuestGame .gameOver {
  color: var(--red);
  font-weight: 800;
}

#diceQuestGame .success {
  color: var(--green);
  font-weight: 800;
}

#diceQuestGame .smallNote {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.content-wrap {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto 60px;
}

.content-card {
  padding: 34px;
  line-height: 1.7;
  color: var(--muted);
}

.content-card h1,
.content-card h2 {
  color: var(--gold);
}

.content-card h1 {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.content-card a {
  color: var(--gold);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 26px 0 34px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  #diceQuestGame {
    padding: 18px;
  }

  #diceQuestGame h2 {
    font-size: 26px;
  }

  #diceQuestGame .stats {
    grid-template-columns: 1fr 1fr;
  }

  #diceQuestGame .chest,
  #diceQuestGame .rpsChoice,
  #diceQuestGame .diceBox {
    width: 100%;
  }
}