:root {
  --ink: #0a1e0a;
  --water: #2a7a4a;
  --bg: #e8f0e8;
  --gold: #c0a020;
  --coral: #a04030;
  --leaf: #1a5a1a;
  --tile: #f0f8f0;
  --soft: rgba(10,30,10,.72);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: radial-gradient(ellipse 140% 70% at 50% -5%, #c0a02022 0%, transparent 55%),
  radial-gradient(ellipse 90% 50% at 15% 110%, #2a7a4a15 0%, transparent 45%),
  #e8f0e8;
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 500;
}
button, a { font: inherit; }
.rail {
  position: fixed; inset: 0 auto 0 0; width: 120px;
  padding: 24px 14px; display: flex; flex-direction: column;
  gap: 20px; align-items: center;
  background: var(--ink); color: var(--tile);
  border-right: 2px solid var(--gold); z-index: 5;
}
.mark {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--ink); border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px #c0a02040;
}
.mark img { width: 42px; height: 42px; }
.rail nav { display: grid; gap: 8px; width: 100%; }
.rail a { color: inherit; text-decoration: none; }
.rail nav a {
  min-height: 36px; display: grid; place-items: center;
  padding: 6px 4px; border: 1px solid #c0a02050;
  border-radius: 999px; font-size: 12px; text-align: center;
  letter-spacing: 0.3px;
}
.rail nav a.active, .rail nav a:hover {
  color: var(--ink); background: var(--gold); border-color: var(--gold);
}
.lang {
  margin-top: auto; display: grid; gap: 5px; width: 100%;
}
.lang button {
  min-height: 32px; width: 100%; border: 1px solid #c0a02050;
  border-radius: 4px; color: var(--tile); background: transparent;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.lang button.active { color: var(--ink); background: var(--gold); border-color: var(--gold); }
main { margin-left: 120px; padding: 24px clamp(16px,3vw,48px); }
.game-copy { max-width: 680px; margin-bottom: 28px; }
.kicker {
  display: inline-block; padding: 6px 14px; margin-bottom: 14px;
  background: var(--coral); color: var(--ink);
  border: 2px solid var(--gold); font-weight: 700;
  text-transform: uppercase; font-size: 13px; letter-spacing: 1px;
}
h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: clamp(44px, 6vw, 88px); line-height: .9;
}
h2, h3 { margin: 0 0 10px; font-family: Georgia, "Palatino Linotype", serif; }
p { margin: 0 0 14px; }
.game-copy p { color: var(--soft); font-size: 18px; line-height: 1.6; }
.sun-button {
  padding: 14px 30px; background: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px #c0a02050, 4px 4px 0 #0a1e0a;
  font-weight: 700; font-size: 17px; cursor: pointer;
  font-family: Georgia, serif;
}
.sun-button:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.score-strip {
  display: flex; gap: 20px; margin-bottom: 14px;
  padding: 10px 14px; background: var(--ink);
  color: var(--tile); border: 2px solid var(--gold);
}
.score-strip span { display: flex; gap: 8px; align-items: baseline; }
.score-strip b { font-size: 11px; text-transform: uppercase; opacity: .75; letter-spacing: 1px; }
.score-strip strong { font-size: 24px; font-weight: 900; color: var(--gold); }
.lake-card {
  position: relative; display: inline-block;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px #c0a02050, 6px 6px 0 var(--ink);
}
canvas { display: block; max-width: 100%; }
.lake-message {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.65);
  color: var(--gold); font-size: 22px; font-weight: 700;
  font-family: Georgia, serif; letter-spacing: 1px;
  padding: 20px; text-align: center;
}
.lake-message.hidden { display: none; }
.tap-pad {
  margin-top: 14px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cast-btn {
  padding: 12px 28px; background: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px #c0a02050, 4px 4px 0 #0a1e0a;
  font-weight: 700; font-size: 18px; cursor: pointer;
  font-family: Georgia, serif;
}
.cast-btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.tap-pad p { color: var(--soft); font-size: 15px; font-weight: 500; margin: 0; }
.postcard {
  max-width: 340px; margin-top: 28px; padding: 20px;
  background: var(--tile); border: 2px solid var(--gold);
  box-shadow: 4px 4px 0 #c0a02050;
}
.postcard img { width: 100%; margin-bottom: 12px; }
.postcard h2 { font-family: Georgia,serif; font-size: 22px; }
.postcard p { color: var(--soft); font-size: 15px; line-height: 1.6; }
.overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.65);
  color: var(--gold); font-size: 22px; font-weight: 700;
  font-family: Georgia, serif; padding: 20px; text-align: center;
}
.overlay.hidden { display: none; }
.page { padding: clamp(24px,5vw,64px); max-width: 900px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-family: Georgia,serif; font-size: clamp(36px,5vw,68px); line-height: .95; }
.page-head p { color: var(--soft); font-size: 18px; margin-top: 14px; }
.page-grid, .contact-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px;
}
.page-card, .contact-card {
  padding: 22px; background: var(--tile); border: 2px solid var(--gold);
}
.page-card h2, .contact-card h2 { font-family: Georgia,serif; font-size: 24px; margin-bottom: 8px; }
.page-card p, .contact-card p { color: var(--soft); line-height: 1.6; font-weight: 500; }
.page-card.wide { grid-column: 1 / -1; }
.footer {
  padding: 20px clamp(20px,3vw,48px); margin-left: 120px;
  color: var(--gold); background: var(--ink);
  border-top: 2px solid var(--gold);
  font-weight: 700; font-family: Georgia, serif;
}
@media (max-width: 860px) {
  .rail { width: 80px; }
  main, .footer { margin-left: 80px; }
  .mark { width: 52px; height: 52px; }
  .mark img { width: 34px; height: 34px; }
  .rail nav a { font-size: 11px; }
}
@media (max-width: 560px) {
  .rail { position: static; width: 100%; flex-direction: row; border-right: 0; border-bottom: 2px solid var(--gold); padding: 10px 16px; }
  main, .footer { margin-left: 0; }
  .lang { margin-top: 0; flex-direction: row; width: auto; }
  .rail nav { flex-direction: row; gap: 6px; }
  .page-grid, .contact-grid { grid-template-columns: 1fr; }
}
