:root {
  color-scheme: dark;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #ece9dd;
  background: #171d18;
  --ink: #ece9dd;
  --gold: #dcc38a;
  --muted: #b4bdaf;
  --edge: #4c513d;
  --game-width: 800px;
  --game-height: 600px;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: calc(var(--game-width) + 32px);
  display: flex;
  flex-direction: column;
  background: #171d18 url("/live/images/backgrounds/subtle-forest-dcd2d0f1e276.png") center top / cover no-repeat fixed;
}
select { font: inherit; }
select, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--gold); }
a:hover { color: #fff0c8; }
:focus-visible { outline: 2px solid #f2d48d; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 5;
  padding: 10px 16px;
  background: #171d18;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 6px 24px;
  min-height: 54px;
  background: rgba(18, 25, 20, .96);
  border-bottom: 1px solid #535238;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 122px; height: 40px; object-fit: contain; }
.environment-badge { padding: 4px 7px; border: 1px solid #82734c; border-radius: 3px; color: var(--gold); font-size: 11px; white-space: nowrap; }
.community-links { display: flex; align-items: center; gap: 12px; }
.community-separator { color: #6f795f; }
.community-links img { display: block; object-fit: contain; flex: none; }
.community-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  font-size: 14px;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.game-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.game-controls label { color: var(--muted); white-space: nowrap; }
select {
  min-height: 36px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  color: var(--ink);
  background: #222b23;
  padding: 6px 10px;
}
select { min-width: 140px; }
#play-area { flex: 1 0 auto; padding: 8px 16px; }
.game-container {
  position: relative;
  width: var(--game-width);
  height: var(--game-height);
  margin: 0 auto;
  background: #080c09;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .32);
}
#game-frame { display: block; width: 100%; height: 100%; border: 0; }
.loading-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gold);
  background: #131a14;
  padding: 24px;
  text-align: center;
}
.loading-fallback { font-size: 13px; }
.legacy-client { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 16px; }
.legacy-client a { text-underline-offset: 2px; }
.noscript-message { text-align: center; color: var(--gold); margin: 12px 0 0; }
#site-footer { flex: none; padding: 0 16px 8px; text-align: center; color: var(--muted); font-size: 12px; line-height: 18px; }
@media (max-width: 940px) {
  .site-header { gap: 8px 20px; padding: 8px 16px; }
  .community-links { margin-left: auto; }
  .game-controls { flex-basis: 100%; margin-left: 0; justify-content: center; }
}
@media (max-width: 440px) {
  .site-header { padding: 8px 12px; gap: 5px 12px; }
  .community-links { gap: 12px; }
  .community-links a { font-size: 13px; }
  .game-controls { gap: 8px; }
  .game-controls label { font-size: 12px; }
  select { min-width: 128px; }
  #play-area { padding: 12px; }
}
@media (pointer: coarse) {
  select, .community-links a { min-height: 44px; }
}
