/* =========================================================
   «ФОРТУНА» — зал игровых автоматов. Сайт-заглушка.
   ========================================================= */

:root {
  --bg: #0a0b10;
  --bg-2: #10131d;
  --panel: #171b27;
  --panel-2: #1e2333;
  --line: #2c3145;
  --text: #efe6d2;
  --muted: #9aa0b5;
  --pink: #ff3d9a;
  --cyan: #40e0d0;
  --amber: #ffc233;
  --green: #7dff9b;
  --red: #ff5f5f;
  --mono: "Pixelify Sans", "Courier New", ui-monospace, monospace;
  --shadow-hard: 4px 6px 0 rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.02em;
  background:
    radial-gradient(1100px 560px at 12% -12%, rgba(255, 61, 154, 0.14), transparent 62%),
    radial-gradient(900px 520px at 92% 0%, rgba(64, 224, 208, 0.12), transparent 60%),
    linear-gradient(#0a0b10, #0d0f17 55%, #08090d);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* мягкие «телевизионные» полосы */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.16) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.35;
}

::selection { background: var(--pink); color: #fff; }

a { color: var(--cyan); }

.wrap { width: min(1120px, 100% - 36px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------------- шапка ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 11, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 76px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.1em;
  line-height: 1.05;
}

.brand-lamp {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink), 0 0 28px rgba(255, 61, 154, 0.65);
  animation: pulse 2.4s ease-in-out infinite;
  flex: none;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav { display: flex; gap: 5px; margin-left: auto; flex-wrap: wrap; }

.nav-link {
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #14100a;
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 3px 3px 0 rgba(255, 194, 51, 0.25);
}

.wallet {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #101420;
  font-size: 15px;
}

.wallet-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wallet-sum { color: var(--amber); min-width: 62px; }
.wallet-sum b { font-weight: 700; }

.mini-btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #14100a;
  background: var(--amber);
  cursor: pointer;
  box-shadow: 0 2px 0 #a87400;
  transition: transform 0.12s, box-shadow 0.12s;
}

.mini-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 #a87400; }
.mini-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #a87400; }

/* ---------------- кнопки ---------------- */

.btn {
  --btn-bg: var(--amber);
  --btn-shadow: #a87400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #14100a;
  background: var(--btn-bg);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--btn-shadow), 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-shadow), 0 16px 28px rgba(0, 0, 0, 0.4);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--btn-shadow), 0 6px 12px rgba(0, 0, 0, 0.35);
}

.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) brightness(0.7);
  transform: none;
  box-shadow: 0 4px 0 var(--btn-shadow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: none;
  background: rgba(64, 224, 208, 0.06);
}

.btn--cyan {
  --btn-bg: var(--cyan);
  --btn-shadow: #177f75;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: #8a5a00;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover { color: #c0392b; }

/* ---------------- герой ---------------- */

.hero { padding: 54px 0 26px; display: grid; gap: 20px; justify-items: start; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px dashed rgba(255, 194, 51, 0.5);
  border-radius: 999px;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blink 1.4s steps(1) infinite;
}

.hero h1, .page-head h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 700;
}

.neon {
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 20px var(--pink),
    0 0 48px rgba(255, 61, 154, 0.65),
    4px 4px 0 rgba(255, 61, 154, 0.22);
  animation: flicker 7s linear infinite;
}

.lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------------- бегущая строка ---------------- */

.ticker {
  margin: 14px 0 40px;
  padding: 10px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 194, 51, 0.05);
}

.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
  white-space: nowrap;
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}

.ticker-track span::before { content: "★"; margin-right: 44px; color: var(--pink); }

/* ---------------- карточки автоматов ---------------- */

.machines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 58px;
}

.machine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(180deg, #191d2b, #11141e);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.machine-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0 1px,
    transparent 1px 4px
  );
}

.machine-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 194, 51, 0.7);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 194, 51, 0.35);
}

.mc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.mc-lamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mc-lamp::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 1.8s steps(1) infinite;
}

.mc-screen {
  position: relative;
  display: grid;
  place-items: center;
  height: 152px;
  overflow: hidden;
  border: 3px solid #12301f;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, #0d2417, #060f0a 75%);
  box-shadow: inset 0 0 46px rgba(0, 255, 140, 0.12);
}

.mc-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.mc-reels { display: flex; gap: 9px; }

.mc-reel {
  display: grid;
  place-items: center;
  width: 62px;
  height: 82px;
  border: 2px solid #8d7f63;
  border-radius: 10px;
  background: linear-gradient(#faf1da, #cdbf9d);
  color: #221a0a;
  font-size: 34px;
  box-shadow: inset 0 -9px 12px rgba(0, 0, 0, 0.18), inset 0 9px 12px rgba(255, 255, 255, 0.5);
}

.machine-card:hover .mc-reel:nth-child(1) { animation: jiggle 0.55s ease-in-out infinite; }
.machine-card:hover .mc-reel:nth-child(2) { animation: jiggle 0.55s 0.08s ease-in-out infinite; }
.machine-card:hover .mc-reel:nth-child(3) { animation: jiggle 0.55s 0.16s ease-in-out infinite; }

.mc-symbol { font-size: 58px; filter: drop-shadow(0 0 18px rgba(64, 224, 208, 0.4)); }

.mc-name { margin: 0; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.mc-desc { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; flex: 1; }

.mc-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.machine-card:hover .mc-go { color: #fff; }
.mc-go::after { content: "→"; transition: transform 0.15s; }
.machine-card:hover .mc-go::after { transform: translateX(5px); }

/* ---------------- заголовки секций ---------------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-head .dash { flex: 1; height: 1px; background: var(--line); }

/* ---------------- записки ---------------- */

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.note {
  position: relative;
  padding: 18px 18px 20px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  color: #241c0c;
  background: #f4e9d0;
  box-shadow: var(--shadow-hard);
  transform: rotate(-1.2deg);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.note:nth-child(2n) { transform: rotate(1.4deg); background: #e9f4d0; }
.note:nth-child(3n) { background: #ffe9ef; }

.note::before {
  content: "📌";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
}

.note:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.4); }

.note b {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------- кот ---------------- */

.cat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(400px 200px at 10% 120%, rgba(255, 194, 51, 0.12), transparent 70%),
    linear-gradient(180deg, #191d2b, #10131c);
}

.cat-face {
  font-size: 54px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.cat-face:hover { transform: scale(1.08) rotate(-4deg); }
.cat-face.pet { animation: pet 0.45s ease-in-out; }

.cat-text { flex: 1; min-width: 220px; }
.cat-text h3 { margin: 0 0 4px; font-size: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.cat-text p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ---------------- подвал ---------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 28px;
  justify-content: space-between;
  padding: 26px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p { margin: 0; max-width: 62ch; line-height: 1.5; }
.footer-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.footer a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* ---------------- внутренние страницы ---------------- */

.page-head { padding: 38px 0 10px; display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(32px, 5.4vw, 54px); overflow-wrap: break-word; }

.back {
  justify-self: start;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.back:hover { color: var(--cyan); }

/* ---------------- автомат ---------------- */

.slots-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  padding: 26px 0 64px;
}

.machine-wrap { position: relative; padding-right: 66px; }

.cabinet {
  position: relative;
  padding: 20px;
  border: 6px solid #493323;
  border-radius: 26px;
  background: linear-gradient(180deg, #3a2a1e, #1d1610 58%, #15100c);
  box-shadow:
    inset 0 0 0 2px rgba(255, 194, 51, 0.16),
    inset 0 0 60px rgba(0, 0, 0, 0.6),
    0 26px 60px rgba(0, 0, 0, 0.55);
}

.cabinet::before,
.cabinet::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7d5c33;
  box-shadow: inset 0 0 3px #000;
}

.cabinet::before { top: 10px; left: 10px; }
.cabinet::after { top: 10px; right: 10px; }

.marquee {
  padding: 10px 8px;
  border: 2px solid #63451c;
  border-radius: 10px;
  text-align: center;
  color: var(--amber);
  font-size: clamp(15px, 2.6vw, 21px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: #0b0a07;
  text-shadow: 0 0 12px rgba(255, 194, 51, 0.75);
  box-shadow: inset 0 0 26px rgba(255, 194, 51, 0.2);
  overflow: hidden;
  white-space: nowrap;
}

.reels-frame {
  margin: 14px 0;
  padding: 14px;
  border: 4px solid #0e1a13;
  border-radius: 16px;
  background: #05070a;
  box-shadow: inset 0 0 50px rgba(0, 255, 140, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reels { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.reels::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  right: -6px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  box-shadow: 0 0 12px var(--pink);
  opacity: 0.7;
}

.reel {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(86px, 15vw, 118px);
  overflow: hidden;
  border: 2px solid #8f8164;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8e6, #cdbf9d);
  box-shadow: inset 0 -12px 16px rgba(0, 0, 0, 0.22), inset 0 12px 16px rgba(255, 255, 255, 0.55);
}

.reel-symbol {
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1;
  transition: filter 0.1s, opacity 0.1s;
}

.reel.spinning .reel-symbol { filter: blur(1.2px); opacity: 0.85; }

.reels-frame.win { border-color: #8a6a20; animation: winpulse 0.45s 4; }
.reels-frame.jackpot { border-color: var(--pink); animation: winpulse 0.32s 10; }

.machine-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 10px 14px;
  border: 2px solid #3a2b1c;
  border-radius: 10px;
  background: #0b0a08;
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.machine-info span { color: var(--muted); }
.machine-info b { color: var(--text); font-size: 17px; margin-left: 4px; }

.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.controls .btn { flex: 1; }

.machine-msg {
  min-height: 24px;
  margin: 14px 2px 2px;
  color: var(--green);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-align: center;
}

.machine-msg.bad { color: var(--muted); }

.cabinet-foot {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #7c6a52;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* рычаг */
.lever {
  position: absolute;
  top: 50%;
  right: -4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 62px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
  user-select: none;
}

.lever-arm {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: bottom center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.4, 1);
}

.lever-knob {
  width: 48px;
  height: 48px;
  z-index: 1;
  border: 2px solid #5c0909;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ff9a9a, #d21f1f 62%, #7a0d0d);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55), inset -4px -6px 10px rgba(0, 0, 0, 0.32);
  transition: box-shadow 0.2s;
}

.lever-rod {
  width: 9px;
  height: 170px;
  margin-top: -6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #6d6d6d, #eaeaea 42%, #8a8a8a);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

.lever-base {
  width: 42px;
  height: 13px;
  margin-top: -3px;
  border-radius: 7px;
  background: linear-gradient(#3a3a3a, #1c1c1c);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.lever:hover .lever-knob { box-shadow: 0 0 24px rgba(255, 61, 154, 0.55), 0 6px 14px rgba(0, 0, 0, 0.55); }
.lever.pulled .lever-arm { transform: rotate(26deg) scaleY(0.86); }

/* боковые карточки */
.side { display: grid; gap: 16px; }

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #171b27, #10131c);
}

.card h3 {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

.pay-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
  font-size: 15px;
}

.pay-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-row b { color: var(--amber); }

.record {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--amber);
}

.record span {
  font-size: 40px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 194, 51, 0.45);
}

.record small { color: var(--muted); font-size: 13px; }

.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.steps li { margin-bottom: 6px; }
.steps li::marker { color: var(--amber); }

/* ---------------- оракул ---------------- */

.oracle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  padding: 26px 0 64px;
}

.oracle-cabinet {
  position: relative;
  padding: 26px 22px 22px;
  overflow: hidden;
  text-align: center;
  border: 5px solid #4a335c;
  border-radius: 26px;
  background:
    radial-gradient(480px 300px at 50% 0%, rgba(64, 224, 208, 0.14), transparent 70%),
    linear-gradient(180deg, #2b1f39, #160f22);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 26px 60px rgba(0, 0, 0, 0.55);
}

.oracle-cabinet h2 {
  margin: 6px 0 4px;
  font-size: clamp(22px, 3.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crystal {
  font-size: clamp(56px, 10vw, 82px);
  line-height: 1;
  filter: drop-shadow(0 0 26px rgba(64, 224, 208, 0.55));
  animation: float 3.4s ease-in-out infinite;
}

.oracle-price { margin: 10px 0 18px; color: var(--muted); font-size: 15px; }

.ticket-slot {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin-bottom: 18px;
  padding: 14px;
  border: 3px solid #3c2a4f;
  border-radius: 14px;
  background: rgba(6, 4, 10, 0.6);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.oracle-empty {
  max-width: 46ch;
  margin: 0;
  color: #8d84a3;
  font-size: 15px;
  line-height: 1.5;
}

.ticket {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: 16px 18px 12px;
  text-align: left;
  color: #221a0a;
  background: #f6eed6;
  border-radius: 6px;
  box-shadow: 0 8px 0 -3px #d9cdaa, 0 18px 30px rgba(0, 0, 0, 0.45);
  animation: ticketOut 0.45s cubic-bezier(0.2, 1.4, 0.5, 1);
}

.ticket::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 34px;
  border-top: 1px dashed rgba(34, 26, 10, 0.28);
}

.ticket.tearing {
  transform: translateY(26px) rotate(7deg) scale(0.94);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(34, 26, 10, 0.25);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d5a35;
}

.ticket-text {
  min-height: 62px;
  margin: 12px 0 18px;
  font-size: 17px;
  line-height: 1.5;
}

.ticket-text.typing::after {
  content: "▌";
  margin-left: 2px;
  animation: blink 0.7s steps(1) infinite;
}

.ticket-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(34, 26, 10, 0.28);
  font-size: 12px;
  color: #6d5a35;
}

.oracle-stats { margin-top: 16px; color: #8d84a3; font-size: 13px; letter-spacing: 0.08em; }
.oracle-stats b { color: var(--cyan); }

/* ---------------- буфет ---------------- */

.buffet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
  padding: 26px 0 64px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #191d2b, #10131c);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.menu-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 194, 51, 0.65);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.menu-item:active { transform: translateY(0) scale(0.99); }

.mi-emoji { font-size: 36px; line-height: 1; }
.mi-name { font-size: 17px; line-height: 1.25; }
.mi-desc { color: var(--muted); font-size: 14px; line-height: 1.35; flex: 1; }
.mi-price { color: var(--amber); font-size: 16px; margin-top: 4px; }

.tray-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }

.tray-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

.tray-line .tl-name { flex: 1; line-height: 1.25; }
.tray-line .tl-qty { color: var(--cyan); }
.tray-line .tl-price { color: var(--amber); min-width: 42px; text-align: right; }

.tl-remove {
  border: 0;
  background: none;
  padding: 0 2px;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.tl-remove:hover { color: var(--red); }

.tray-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 15px;
  color: var(--muted);
}

.tray-total b { color: var(--amber); font-size: 19px; }

.tray-empty { margin-bottom: 12px; }

/* ---------------- тосты, монеты ---------------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 320;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 10px;
  background: #f4e9d0;
  color: #1a1408;
  font-size: 15px;
  line-height: 1.3;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s, opacity 0.25s;
}

#toast.on { transform: translate(-50%, 0); opacity: 1; }

.float-coin {
  position: fixed;
  z-index: 310;
  pointer-events: none;
  color: var(--amber);
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(255, 194, 51, 0.6);
  animation: floatUp 0.9s ease-out forwards;
}

.coin-drop {
  position: fixed;
  top: -48px;
  z-index: 305;
  pointer-events: none;
  font-size: 22px;
  animation: drop 2.4s linear forwards;
}

/* ---------------- анимации ---------------- */

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 20px var(--pink), 0 0 48px rgba(255, 61, 154, 0.65), 4px 4px 0 rgba(255, 61, 154, 0.22);
  }
  20%, 24%, 55% {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 61, 154, 0.35);
  }
}

@keyframes jiggle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}

@keyframes pet {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.2) rotate(-8deg); }
  60% { transform: scale(1.1) rotate(6deg); }
}

@keyframes winpulse {
  0%, 100% { box-shadow: inset 0 0 50px rgba(0, 255, 140, 0.1); }
  50% { box-shadow: inset 0 0 90px rgba(255, 194, 51, 0.55), 0 0 30px rgba(255, 194, 51, 0.45); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ticketOut {
  from { transform: translateY(-16px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes floatUp {
  to { transform: translateY(-48px); opacity: 0; }
}

@keyframes drop {
  to { transform: translateY(108vh) rotate(540deg); opacity: 0.85; }
}

/* ---------------- адаптив ---------------- */

@media (max-width: 940px) {
  .slots-layout, .oracle-layout, .buffet-layout { grid-template-columns: 1fr; }
  .wallet-label { display: none; }
  .side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 700px) {
  .topbar-in { gap: 10px; }
  .brand { font-size: 18px; }
  .brand-sub { font-size: 9px; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .wallet { margin-left: auto; }
  .hero { padding-top: 36px; }
  .machine-wrap { padding-right: 0; }
  .lever { display: none; }
  .cabinet { padding: 14px; border-width: 4px; }
  .reels { gap: 7px; }
  .controls .btn { flex: 1 1 100%; }
  .cat-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
