/* Prototype chrome around the canvas map. Lanes, HUD, and buys are drawn on the canvas. */

:root {
  --ink: #121821;
  --panel: #1d2836;
  --line: #314257;
  --text: #e7eef6;
  --gold: #e8c36a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background:
    radial-gradient(1200px 500px at 50% -10%, #24344a 0%, transparent 55%),
    var(--ink);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.shell {
  width: 100%;
  height: 100%;
  padding:
    max(8px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#board {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: #17202c;
  border: 1px solid var(--line);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.banner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(12, 16, 22, 0.78);
  border: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

.banner p {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.banner .sub {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.action {
  appearance: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: #3a3120;
  font: inherit;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 20px;
  cursor: pointer;
  touch-action: manipulation;
}

.action:hover {
  background: #4a4232;
}

.gear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.gear:hover {
  border-color: var(--gold);
}

.menu {
  position: absolute;
  top: 58px;
  right: 8px;
  z-index: 6;
  width: min(280px, calc(100% - 16px));
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu .label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.menu .value {
  margin: 0 0 6px;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.menu .action {
  width: 100%;
}

.confirm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm p {
  margin: 0;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}
