:root {
  --ink: #2a3a2a;
  --water: #6a9a7a;
  --bg: #eaecea;
  --gold: #c8a820;
  --coral: #b84a3a;
  --leaf: #3a6a3a;
  --tile: #f2f4f2;
  --soft: rgba(42,58,42,.68);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: linear-gradient(180deg, #eaecea, #f2f4f2);
  font-family: "Segoe UI", Roboto, system-ui, sans-serif; font-weight: 800;
}
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: 4px solid var(--gold); z-index: 5;
}
.mark {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--tile); border: 2px solid var(--gold); border-radius: 50%;
}
.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 rgba(255,255,255,.3);
  border-radius: 999px; font-size: 12px; text-align: center;
}
.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 rgba(255,255,255,.3);
  border-radius: 4px; color: var(--tile); background: transparent;
  font-size: 12px; font-weight: 900; 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 12px; margin-bottom: 14px;
  background: var(--coral); color: var(--tile);
  border: 2px solid var(--ink); font-weight: 950;
  text-transform: uppercase; font-size: 13px;
}
h1 {
  margin: 0 0 16px; font-family: Georgia, serif;
  font-size: clamp(44px, 6vw, 88px); line-height: .9;
}
h2, h3 { margin: 0 0 10px; font-family: Georgia, serif; }
p { margin: 0 0 14px; }
.game-copy p { color: var(--soft); font-size: 18px; line-height: 1.5; }
.sun-button {
  padding: 14px 28px; background: var(--gold);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-weight: 950; font-size: 17px; cursor: pointer;
}
.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);
}
.score-strip span { display: flex; gap: 8px; align-items: baseline; }
.score-strip b { font-size: 12px; text-transform: uppercase; opacity: .75; }
.score-strip strong { font-size: 24px; font-weight: 900; }
.lake-card {
  position: relative; display: inline-block;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 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,.55);
  color: #fff; font-size: 20px; font-weight: 900;
  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(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-weight: 950; font-size: 18px; cursor: pointer;
}
.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: 800; margin: 0; }
.postcard {
  max-width: 340px; margin-top: 28px; padding: 20px;
  background: var(--tile); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.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.5; }
.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(--ink);
}
.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.55; font-weight: 780; }
.page-card.wide { grid-column: 1 / -1; }
.footer {
  padding: 20px clamp(20px,3vw,48px); margin-left: 120px;
  color: var(--tile); background: var(--ink); font-weight: 850;
}
@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: 3px 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; }
}
