:root {
  --black: #07080d;
  --panel: rgba(13, 16, 27, 0.78);
  --panel-solid: #10131d;
  --ink: #f8f2e5;
  --muted: #aab2c2;
  --gold: #d5a33d;
  --gold-bright: #ffe2a1;
  --cyan: #48d8ff;
  --coral: #ff6370;
  --violet: #8d78ff;
  --line: rgba(213, 163, 61, 0.24);
  --deep-shadow: 0 32px 110px rgba(0,0,0,.42);
  --page: min(1180px, calc(100% - 2rem));
  --section-gap: clamp(3.5rem, 7vw, 6rem);
  --grid-gap: clamp(1rem, 2vw, 1.4rem);
  --panel-pad: clamp(1.05rem, 2.2vw, 1.45rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 8%, rgba(72,216,255,.22), transparent 28%),
    radial-gradient(circle at 86% 15%, rgba(213,163,61,.18), transparent 27%),
    radial-gradient(circle at 48% 48%, rgba(141,120,255,.08), transparent 36%),
    linear-gradient(180deg, #05060a, #0a0d16 42%, #08090f);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background:
    radial-gradient(circle at 18% 18%, rgba(72,216,255,.22), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(213,163,61,.16), transparent 26%),
    radial-gradient(circle at 72% 88%, rgba(141,120,255,.16), transparent 28%),
    linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,.045) 50%, transparent 58%);
  animation: ambientShift 22s ease-in-out infinite;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 30%),
    linear-gradient(135deg, var(--coral), var(--violet));
  color: white;
  padding: .9rem 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(255,99,112,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.button.quiet {
  border: 1px solid rgba(213,163,61,.34);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.button:hover, button:hover {
  filter: brightness(1.08);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  background: rgba(7,8,13,.96);
  transition: opacity .35s ease, visibility .35s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader p { margin: 0; color: var(--muted); font-weight: 850; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,13,.78);
  padding: .85rem clamp(1rem, 5vw, 4rem);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 950; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; color: var(--muted); font-weight: 850; }

.turntable-logo {
  position: relative;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #151821 0 18%, #08090f 19% 54%, #17130b 55% 58%, #05060a 59%);
  box-shadow: inset 0 0 0 1px rgba(255,226,161,.22), 0 0 30px rgba(213,163,61,.24);
  animation: coinBreath 8s ease-in-out infinite;
}
.turntable-logo.large { width: 7.2rem; height: 7.2rem; justify-self: center; }
.turntable-logo span {
  position: relative;
  z-index: 2;
  color: var(--gold-bright);
  font-size: .72rem;
  font-weight: 1000;
  text-shadow: 0 0 12px rgba(255,226,161,.42);
}
.turntable-logo.large span { font-size: 1.35rem; }
.turntable-logo i {
  position: absolute;
  inset: -18%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.46) 50%, transparent 59%);
  animation: sheen 11s ease-in-out infinite;
}
@keyframes coinBreath {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); box-shadow: inset 0 0 0 1px rgba(255,226,161,.32), 0 0 42px rgba(213,163,61,.3); }
}
@keyframes sheen {
  0%, 54% { transform: translateX(-105%) rotate(12deg); opacity: 0; }
  62% { opacity: .52; }
  76%, 100% { transform: translateX(105%) rotate(12deg); opacity: 0; }
}
@keyframes ambientShift {
  0%, 100% { filter: hue-rotate(0deg); opacity: .1; }
  50% { filter: hue-rotate(18deg); opacity: .16; }
}

.wave {
  display: flex;
  align-items: center;
  gap: .25rem;
  min-width: 150px;
  height: 2.3rem;
}
.wave b {
  display: block;
  width: .42rem;
  height: .45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--gold-bright));
  animation: wave 1.4s ease-in-out infinite;
}
.wave b:nth-child(2) { animation-delay: .08s; }
.wave b:nth-child(3) { animation-delay: .16s; }
.wave b:nth-child(4) { animation-delay: .24s; }
.wave b:nth-child(5) { animation-delay: .32s; }
.wave b:nth-child(6) { animation-delay: .4s; }
.wave b:nth-child(7) { animation-delay: .48s; }
.wave b:nth-child(8) { animation-delay: .56s; }
@keyframes wave {
  0%, 100% { height: .45rem; opacity: .5; }
  50% { height: 2rem; opacity: 1; }
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transform: scale(1.015);
  filter: saturate(1.08) contrast(1.06);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 54%, rgba(213,163,61,.12), transparent 24%),
    linear-gradient(90deg, rgba(5,6,10,.98), rgba(7,8,13,.62) 52%, rgba(7,8,13,.22)),
    linear-gradient(0deg, rgba(7,8,13,.92), transparent 58%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding: clamp(2rem, 7vw, 6rem);
}
.tag, .form-kicker {
  margin: 0 0 .6rem;
  color: var(--gold-bright);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1rem;
  max-width: 900px;
  font-size: clamp(2.6rem, 6.7vw, 6.6rem);
  line-height: .93;
  letter-spacing: 0;
  text-shadow: 0 18px 58px rgba(0,0,0,.38);
}
h2 { margin-bottom: .75rem; font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1; }
p { color: var(--muted); line-height: 1.55; }
.hero-copy p:not(.tag) { max-width: 700px; color: rgba(248,242,229,.85); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta { position: relative; }
.cta::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + .55rem);
  z-index: 4;
  width: min(280px, 78vw);
  border: 1px solid rgba(213,163,61,.24);
  border-radius: 8px;
  background: rgba(8,10,16,.94);
  color: var(--muted);
  padding: .62rem .7rem;
  font-size: .82rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-.25rem);
  transition: opacity .18s ease, transform .18s ease;
}
.cta:hover::after, .cta:focus-visible::after { opacity: 1; transform: translateY(0); }
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.45rem;
}
.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(213,163,61,.24);
  border-radius: 999px;
  background: rgba(9,12,20,.56);
  color: var(--muted);
  padding: .55rem .7rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.hero-metrics strong { color: var(--gold-bright); }

.services, .market, .booking, .guide, .admin {
  width: var(--page);
  margin: var(--section-gap) auto 0;
}
.services {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.section-head {
  grid-column: 1 / -1;
  display: grid;
  gap: .35rem;
  max-width: 720px;
  margin-bottom: .15rem;
}
.section-head h2 { margin-bottom: 0; }
.services article, .panel {
  border: 1px solid rgba(213,163,61,.22);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
    var(--panel);
  box-shadow: var(--deep-shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  padding: var(--panel-pad);
}
.services article {
  min-height: 188px;
  display: grid;
  align-content: start;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.services article:hover, .services article:focus-within, .services article:focus {
  transform: translateY(-3px);
  border-color: rgba(255,226,161,.42);
  background: rgba(16,19,29,.9);
  outline: none;
}
.services strong { display: block; margin: .8rem 0 .35rem; font-size: 1.05rem; }
.services small {
  display: block;
  color: var(--gold-bright);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.service-detail {
  max-height: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(.45rem);
  transition: max-height .22s ease, opacity .18s ease, transform .18s ease;
  font-size: .94rem;
}
.services article:hover .service-detail,
.services article:focus .service-detail,
.services article:focus-within .service-detail {
  max-height: 96px;
  opacity: 1;
  transform: translateY(0);
}

.motion-icon {
  position: relative;
  display: block;
  width: 3.45rem;
  height: 3.45rem;
  overflow: hidden;
  border: 1px solid rgba(213,163,61,.5);
  border-radius: 16px;
  background: radial-gradient(circle at 32% 22%, rgba(255,226,161,.34), transparent 18%), linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03)), #0a0c13;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 -12px 24px rgba(0,0,0,.34), 0 16px 44px rgba(0,0,0,.32);
}
.motion-icon::before, .motion-icon::after, .motion-icon i { content: ""; position: absolute; }
.motion-icon::after {
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.26) 49%, transparent 64%);
  opacity: 0;
}
.services article:hover .motion-icon::after { animation: iconSheen 3.6s ease-in-out; }
.motion-icon.mic::before {
  left: 1.31rem;
  top: .55rem;
  width: .76rem;
  height: 1.38rem;
  border-radius: .55rem;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.motion-icon.mic i {
  left: 1.05rem;
  top: 2.02rem;
  width: 1.28rem;
  height: .65rem;
  border: .16rem solid var(--cyan);
  border-top: 0;
  border-radius: 0 0 1rem 1rem;
}
.motion-icon.fader::before {
  left: .65rem;
  top: .72rem;
  width: 2.1rem;
  height: .12rem;
  background: rgba(72,216,255,.8);
  box-shadow: 0 .76rem rgba(213,163,61,.92), 0 1.52rem rgba(141,120,255,.9);
}
.motion-icon.fader i {
  left: .72rem;
  top: .53rem;
  width: .36rem;
  height: .7rem;
  border-radius: .4rem;
  background: var(--gold-bright);
  box-shadow: .86rem .76rem var(--cyan), 1.55rem 1.52rem var(--coral);
  transition: transform .18s ease;
}
.services article:hover .motion-icon.fader i { transform: translateX(.35rem); }
.motion-icon.disc::before {
  inset: .62rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright) 0 11%, #0a0c13 12% 32%, rgba(213,163,61,.42) 33% 35%, transparent 36%);
}
.motion-icon.disc i {
  right: .5rem;
  top: .55rem;
  width: .18rem;
  height: 1.9rem;
  border-radius: 999px;
  background: linear-gradient(var(--cyan), var(--gold-bright));
  transform: rotate(27deg);
  transform-origin: top;
  transition: transform .18s ease;
}
.services article:hover .motion-icon.disc i { transform: rotate(42deg); }
.motion-icon.bolt::before {
  left: 1.05rem;
  top: .45rem;
  width: .85rem;
  height: 2.1rem;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  clip-path: polygon(45% 0, 100% 0, 62% 43%, 100% 43%, 22% 100%, 40% 56%, 0 56%);
}
.motion-icon.bolt i {
  inset: .44rem;
  border: 1px solid rgba(213,163,61,.3);
  border-radius: 50%;
  opacity: .65;
  transition: transform .18s ease, opacity .18s ease;
}
.services article:hover .motion-icon.bolt i { transform: scale(1.16); opacity: 1; }
@keyframes iconSheen {
  0% { transform: translateX(-120%); opacity: 0; }
  44% { opacity: .6; }
  100% { transform: translateX(120%); opacity: 0; }
}

.market, .booking, .guide, .admin {
  display: grid;
  gap: var(--grid-gap);
  align-items: start;
}
.market { grid-template-columns: .78fr 1.22fr; }
.booking { grid-template-columns: .85fr 1.15fr; }
.guide { grid-template-columns: .75fr 1.25fr; min-height: calc(100vh - 7rem); scroll-margin-top: 5.8rem; }
.booking, .market, .services, .admin { scroll-margin-top: 5.8rem; }
.market-copy, .intro, .guide > .panel:first-child {
  display: grid;
  align-content: center;
}
.lens-note {
  border: 1px solid rgba(213,163,61,.18);
  border-radius: 8px;
  background: rgba(0,0,0,.14);
  padding: .65rem;
}
.lens-note summary { cursor: pointer; color: var(--gold-bright); font-weight: 850; }
.lens-note p { margin: .55rem 0 0; font-size: .9rem; }
.market-controls, .guide-grid, .two, .three {
  display: grid;
  gap: var(--grid-gap);
}
.market-controls, .guide-grid, .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-window, .ai-preview {
  border: 1px solid rgba(72,216,255,.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(72,216,255,.08), rgba(213,163,61,.08)), rgba(0,0,0,.16);
  padding: 1rem;
}
.fair-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.fair-head strong { color: var(--gold-bright); font-size: 1.7rem; }
.fair-bar {
  height: .8rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}
.fair-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold-bright));
}
.layer-list, .quote-cards, .rule-list {
  display: grid;
  gap: var(--grid-gap);
}
.layer-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rule-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.layer-list article, .quote-card, .rule-list p, .row {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  padding: .85rem;
}
.layer-list span, .quote-card small, .market-sources, .source-note, .row small {
  color: var(--muted);
  line-height: 1.42;
}
.layer-list strong, .quote-card strong { color: var(--gold-bright); }

form { display: grid; gap: 1rem; }
.form-section {
  display: grid;
  gap: 1rem;
  border-bottom: 1px solid rgba(213,163,61,.18);
  padding-bottom: 1rem;
}
label { display: grid; gap: .35rem; color: var(--muted); font-weight: 850; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(72,216,255,.24);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: var(--ink);
  padding: .86rem .9rem;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(255,226,161,.48);
  box-shadow: 0 0 0 3px rgba(213,163,61,.12);
  outline: none;
}
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; }
.check input { width: auto; }
.quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(213,163,61,.16), rgba(72,216,255,.09));
  padding: .9rem;
}
.quote span { color: var(--muted); font-weight: 850; }
.quote strong { color: var(--gold-bright); font-size: 1.9rem; }
.notice { min-height: 1.3rem; margin: 0; color: var(--gold-bright); font-weight: 850; }
.mini-player { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }

.mini-game {
  width: fit-content;
  margin-top: 1rem;
  border: 1px solid rgba(213,163,61,.2);
  border-radius: 14px;
  background: rgba(0,0,0,.14);
  padding: .75rem;
}
.beat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1.55rem);
  gap: .42rem;
}
.beat-grid button {
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(72,216,255,.2);
  border-radius: .35rem;
  background: rgba(255,255,255,.06);
  box-shadow: none;
  padding: 0;
}
.beat-grid button.active {
  background: radial-gradient(circle at 35% 25%, var(--gold-bright), var(--gold) 42%, rgba(72,216,255,.18));
  box-shadow: 0 0 18px rgba(213,163,61,.24);
}

.admin { grid-template-columns: .9fr 1.1fr; margin-bottom: var(--section-gap); }
.pricing-panel { grid-column: 1 / -1; }
.slot-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
.slot-list, .booking-list { display: grid; gap: .7rem; }
.row { display: grid; gap: .3rem; }
.row p { margin: 0; }
.row details {
  border: 1px solid rgba(213,163,61,.16);
  border-radius: 8px;
  background: rgba(0,0,0,.14);
  padding: .6rem;
}
.row summary { cursor: pointer; color: var(--gold-bright); font-weight: 850; }
.row pre {
  overflow-x: auto;
  white-space: pre-wrap;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .82rem;
  line-height: 1.45;
}
.row-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.row button { justify-self: start; box-shadow: none; padding: .5rem .7rem; }
.row-actions a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(72,216,255,.22);
  border-radius: 8px;
  color: var(--ink);
  padding: .5rem .7rem;
  font-size: .9rem;
  font-weight: 850;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (max-width: 860px) {
  .nav { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  :root { --section-gap: 3.25rem; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market, .booking, .guide, .admin, .market-controls, .guide-grid, .two, .three, .layer-list, .quote-cards, .rule-list, .slot-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --page: min(100% - 1rem, 1180px); --section-gap: 2.5rem; }
  .services { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; }
  .hero-copy { padding: 2rem 1rem; }
  .hero-actions, .hero-metrics { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}
