/* RTA Play — visual language inherited from the waitlist landing.
 *
 * The token block, base element styles and the header/button components are
 * taken from web/waitlist/static/styles.css so both surfaces read as one
 * product. Anything below the shared block is platform-specific layout. */

:root {
  --ink: #080806;
  --ink-soft: #10100c;
  --panel: #15150f;
  --panel-2: #1d1d14;
  --line: rgba(220, 190, 123, 0.2);
  --line-bright: rgba(220, 190, 123, 0.52);
  --paper: #f2eadb;
  --muted: #b9b19e;
  --muted-dark: #888171;
  --acid: #d9b568;
  --green: #77a96b;
  --amber: #e9c77f;
  --danger: #ff8677;
  --max: 1180px;
  --font-display: "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Bahnschrift", "Segoe UI", Arial, sans-serif;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 25% 28%, rgba(82, 126, 65, 0.09), transparent 34rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--acid);
  color: var(--ink);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

/* --- header, copied from the landing --- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 6, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.14em;
}

.brand-copy small {
  margin-top: 5px;
  color: #aab5a6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  color: rgba(241, 245, 233, 0.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav button:hover {
  color: var(--acid);
}

.site-nav button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.site-nav .who {
  color: var(--paper);
}

.language-switch {
  display: inline-flex;
  gap: 6px;
}

.language-switch button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.language-switch button[aria-pressed="true"] {
  border-color: var(--line-bright);
  background: rgba(217, 181, 104, 0.14);
  color: var(--acid);
}

/* --- buttons, copied from the landing --- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 14px 22px 14px 26px;
  border: 0;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(5, 7, 6, 0.18);
  clip-path: inherit;
  pointer-events: none;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.6;
  transform: none;
}

.button-primary {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 14px 44px rgba(186, 225, 86, 0.2);
}

.button-secondary {
  background: #252d25;
  color: var(--paper);
}

.button-ghost {
  border: 1px solid var(--line-bright);
  background: rgba(5, 7, 6, 0.48);
  color: var(--paper);
}

/* --- platform layout --- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 118px max(24px, calc((100vw - var(--max)) / 2)) 60px;
}

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--ink-soft));
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 26px;
}

.panel.narrow {
  max-width: 460px;
  margin-inline: auto;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 40px);
}

h2 {
  margin: 0;
  font-size: 22px;
}

.hint,
.meta,
.probe {
  color: var(--muted);
  font-size: 14px;
}

.probe {
  color: var(--muted-dark);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.tanks {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-top: 22px;
}

.tank {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.tank header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tank .desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.badge {
  padding: 5px 10px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge.free {
  color: var(--green);
}

.badge.busy {
  color: var(--amber);
}

.badge.off {
  color: var(--muted-dark);
}

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

.stage {
  position: relative;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-bright);
  background: #000;
}

.stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

form label {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

form input {
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
}

form input:focus {
  border-color: var(--line-bright);
}

table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-tanks {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.admin-tanks li {
  margin-bottom: 8px;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px max(24px, calc((100vw - var(--max)) / 2)) 48px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-size: 12px;
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: auto 1fr;
    row-gap: 8px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  main {
    padding-top: 150px;
  }
}
