:root {
  --slot-night: #0d0b08;
  --slot-night-soft: #17120b;
  --slot-panel: #21180d;
  --slot-white: #fff8e7;
  --slot-muted: #b7a98d;
  --slot-line: rgba(245, 208, 110, .2);
  --slot-lime: #f5d06e;
  --slot-orange: #c8942e;
  --slot-mono: 'DM Mono', monospace;
  --slot-sans: 'Manrope', 'Noto Sans Thai', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.slot-body {
  min-width: 320px;
  margin: 0;
  background: linear-gradient(rgba(245, 208, 110, .035) 1px, transparent 1px) 0 0 / 100% 48px, var(--slot-night);
  color: var(--slot-white);
  font-family: var(--slot-sans);
  font-size: 14px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; font: inherit; }
h1, h2, h3, p { margin-top: 0; }

.slot-notice {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 18px;
  background: var(--slot-lime);
  color: var(--slot-night);
  font: 500 10px/1.2 var(--slot-mono);
  letter-spacing: .08em;
  text-align: center;
}
.slot-notice span,
.system-chip i,
.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slot-orange);
  box-shadow: 0 0 0 4px rgba(200, 148, 46, .14), 0 0 12px rgba(200, 148, 46, .6);
}
.slot-notice b {
  padding-left: 10px;
  border-left: 1px solid rgba(13, 11, 8, .35);
  font-weight: 700;
}

.slot-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 52px;
  padding: 0 clamp(20px, 6vw, 96px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--slot-line);
  background: rgba(13, 11, 8, .94);
  color: var(--slot-white);
  backdrop-filter: blur(16px);
}
.slot-brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.slot-brand strong { font-size: 19px; font-weight: 900; letter-spacing: .02em; }
.slot-brand strong i { color: var(--slot-lime); font-size: 25px; font-style: normal; }
.slot-brand span {
  margin-top: 6px;
  color: var(--slot-muted);
  font: 8px var(--slot-mono);
  letter-spacing: .15em;
}
.slot-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  color: var(--slot-muted);
  font: 11px var(--slot-mono);
  letter-spacing: .04em;
  white-space: nowrap;
}
.slot-header nav a {
  min-height: 78px;
  display: grid;
  place-items: center;
  position: relative;
  transition: color .2s ease;
}
.slot-header nav a:hover,
.slot-header nav a.active { color: var(--slot-white); }
.slot-header nav a.active::after {
  height: 2px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--slot-lime);
  content: '';
}
.slot-header-actions { display: flex; align-items: center; gap: 20px; }
.system-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--slot-lime);
  font: 500 10px var(--slot-mono);
  white-space: nowrap;
}
.system-chip i { display: inline-block; width: 5px; height: 5px; box-shadow: none; }
.outline-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--slot-lime);
  border-radius: 0;
  font: 700 10px/1 var(--slot-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.outline-button { color: var(--slot-lime); background: transparent; }
.outline-button:hover,
.outline-button:focus-visible { background: var(--slot-lime); color: var(--slot-night); outline: none; }
.primary-button { border-color: var(--slot-orange); background: var(--slot-orange); color: var(--slot-night); }
.primary-button:hover,
.primary-button:focus-visible { border-color: var(--slot-lime); background: var(--slot-lime); outline: none; transform: translateY(-2px); }
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--slot-muted);
  font: 10px var(--slot-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.quiet-link:hover { color: var(--slot-lime); }
.slot-menu { display: none; width: 38px; height: 38px; padding: 8px; color: var(--slot-white); }
.slot-menu span { display: block; height: 1px; margin: 6px 0; background: currentColor; }

.lobby-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 96px) 72px;
}
.lobby-hero {
  min-height: min(650px, calc(100vh - 110px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
  padding: 72px 0 62px;
}
.lobby-intro { max-width: 650px; }
.mono-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--slot-lime);
  font: 500 10px/1.4 var(--slot-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mono-label i { width: 20px; height: 1px; display: inline-block; background: var(--slot-orange); }
.lobby-intro h1 {
  max-width: 640px;
  margin: 22px 0 20px;
  color: var(--slot-white);
  font: 800 88px/.93 var(--slot-sans);
  letter-spacing: -.055em;
}
.lobby-intro h1 em { color: var(--slot-lime); font-style: normal; }
.lobby-intro p { max-width: 500px; margin-bottom: 28px; color: var(--slot-muted); font-size: 15px; line-height: 1.8; }
.lobby-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }

.machine-stage {
  min-height: 410px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 19px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--slot-line);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(245, 208, 110, .08) 48% 48.5%, transparent 48.5%),
    var(--slot-panel);
  box-shadow: 14px 14px 0 rgba(245, 208, 110, .08);
}
.machine-stage::before,
.machine-stage::after { position: absolute; content: ''; pointer-events: none; }
.machine-stage::before { inset: 11px; border: 1px solid rgba(244, 245, 233, .08); }
.machine-stage::after {
  width: 50%;
  height: 1px;
  top: 35%;
  right: -5%;
  background: var(--slot-orange);
  box-shadow: 0 70px 0 rgba(200, 148, 46, .35), 0 140px 0 rgba(200, 148, 46, .18);
  opacity: .8;
}
.machine-topline,
.machine-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--slot-muted);
  font: 9px var(--slot-mono);
  letter-spacing: .08em;
}
.machine-topline { padding: 0 5px 14px; border-bottom: 1px solid var(--slot-line); }
.machine-display { align-self: center; display: grid; gap: 9px; padding: 25px 20px 12px; position: relative; text-align: center; }
.machine-display::before { position: absolute; inset: 9px 0 0; border: 1px solid rgba(245, 208, 110, .28); content: ''; }
.machine-display span { color: var(--slot-orange); font: 500 10px var(--slot-mono); letter-spacing: .2em; }
.machine-display strong { color: var(--slot-lime); font: 700 48px/1 var(--slot-mono); letter-spacing: .12em; }
.machine-display small { color: var(--slot-muted); font: 9px var(--slot-mono); letter-spacing: .12em; }
.machine-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 8% 24px; }
.machine-reels span { min-height: 76px; display: grid; place-items: center; border: 1px solid var(--slot-line); background: rgba(13, 11, 8, .78); color: var(--slot-muted); font: 700 34px var(--slot-mono); }
.machine-base { padding: 14px 5px 0; border-top: 1px solid var(--slot-line); }
.machine-base b { color: var(--slot-orange); font-weight: 500; }
.machine-base i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: var(--slot-lime); box-shadow: 0 0 12px var(--slot-lime); }

.lobby-rule { min-height: 48px; display: grid; grid-template-columns: 42px auto minmax(30px, 1fr) auto; align-items: center; gap: 16px; border-top: 1px solid var(--slot-line); border-bottom: 1px solid var(--slot-line); color: var(--slot-muted); font: 10px var(--slot-mono); letter-spacing: .08em; }
.lobby-rule > span { color: var(--slot-orange); }
.lobby-rule strong { color: var(--slot-white); font-weight: 500; }
.lobby-rule i { height: 1px; background: var(--slot-line); }
.lobby-rule small { font: inherit; text-align: right; }
.empty-panel { min-height: 260px; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 50px 0; border-bottom: 1px solid var(--slot-line); }
.empty-index { align-self: start; color: var(--slot-orange); font: 11px var(--slot-mono); }
.empty-copy h2 { margin: 14px 0 10px; color: var(--slot-white); font-size: 34px; line-height: 1.1; }
.empty-copy p { max-width: 590px; margin-bottom: 0; color: var(--slot-muted); }
.empty-status { min-width: 180px; display: grid; grid-template-columns: 14px auto; align-items: center; gap: 7px 10px; padding: 18px; border: 1px solid var(--slot-line); background: var(--slot-panel); }
.empty-status .status-light { width: 6px; height: 6px; grid-row: span 2; }
.empty-status strong { color: var(--slot-lime); font: 500 11px var(--slot-mono); letter-spacing: .1em; }
.empty-status small { color: var(--slot-muted); font: 8px var(--slot-mono); }
.lobby-note { display: flex; align-items: center; gap: 18px; padding: 26px 0 0; }
.note-mark { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--slot-orange); color: var(--slot-orange); font: 700 14px var(--slot-mono); }
.lobby-note p { margin: 5px 0 0; color: var(--slot-muted); }
.lobby-note > a { margin-left: auto; color: var(--slot-lime); font-size: 20px; }

.slot-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 28px clamp(20px, 6vw, 96px) 34px; border-top: 1px solid var(--slot-line); color: var(--slot-muted); }
.slot-footer .slot-brand strong { color: var(--slot-white); font-size: 15px; }
.slot-footer p { margin: 0; font: 9px var(--slot-mono); letter-spacing: .08em; }
.slot-footer > div { display: flex; align-items: center; gap: 20px; font: 9px var(--slot-mono); }
.slot-footer > div a { color: var(--slot-lime); }
.slot-footer > div span { color: var(--slot-muted); }

@media (max-width: 900px) {
  .slot-header { gap: 24px; }
  .slot-header nav { gap: 16px; }
  .slot-header-actions { gap: 12px; }
  .system-chip { display: none; }
  .lobby-hero { grid-template-columns: 1fr; min-height: 0; gap: 52px; padding-top: 70px; }
  .lobby-intro h1 { font-size: 68px; }
  .machine-stage { max-width: 600px; width: 100%; }
  .admin-sidebar { width: 210px; }
  .admin-main { margin-left: 210px; }
}
@media (max-width: 680px) {
  .slot-notice { justify-content: flex-start; overflow: hidden; white-space: nowrap; text-align: left; }
  .slot-header { min-height: 68px; flex-wrap: wrap; gap: 0; padding: 0 20px; }
  .slot-header nav { display: none; width: 100%; order: 4; gap: 0; padding: 8px 0 14px; }
  .slot-header.menu-open nav { display: flex; }
  .slot-header nav a { min-height: 36px; margin-right: 20px; }
  .slot-header-actions { margin-left: auto; }
  .slot-header-actions .outline-button { min-height: 36px; padding: 8px 10px; font-size: 9px; }
  .slot-menu { display: block; margin-left: 3px; }
  .lobby-main { padding-right: 20px; padding-left: 20px; }
  .lobby-hero { gap: 36px; padding: 54px 0 48px; }
  .lobby-intro h1 { margin-top: 18px; font-size: 52px; }
  .lobby-intro p { font-size: 14px; }
  .lobby-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .machine-stage { min-height: 340px; padding: 14px; box-shadow: 8px 8px 0 rgba(245, 208, 110, .08); }
  .machine-display strong { font-size: 34px; }
  .machine-reels span { min-height: 62px; font-size: 27px; }
  .lobby-rule { grid-template-columns: 30px 1fr auto; gap: 10px; font-size: 9px; }
  .lobby-rule i { display: none; }
  .lobby-rule small { grid-column: 2 / -1; padding-bottom: 10px; text-align: left; font-size: 8px; }
  .empty-panel { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 36px 0; }
  .empty-status { grid-column: 2; min-width: 0; width: 100%; }
  .lobby-note { align-items: flex-start; }
  .lobby-note p { font-size: 13px; }
  .slot-footer { grid-template-columns: 1fr; gap: 16px; padding-right: 20px; padding-left: 20px; }
  .slot-footer > div { align-items: flex-start; flex-direction: column; gap: 7px; }
  .admin-sidebar { width: 100%; }
  .admin-main { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}