/* Общее для главной и меню: вызов официанта, игры SAAD */
.sx-fab { position: fixed; right: 14px; bottom: 96px; z-index: 40; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.sx-fab button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 14px var(--font-body); box-shadow: 0 10px 26px -10px rgba(0,0,0,0.5); }
.sx-fab button.ghost { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line-strong); }
.sx-fab svg, .sx-row svg { width: 18px; height: 18px; flex: none; }

.sx-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 15px var(--font-body); text-decoration: none; cursor: pointer; }
.sx-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }

.sx-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(10,8,6,0.55); }
.sx-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88vh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 60px -20px rgba(0,0,0,0.6); }
.sx-grab { width: 42px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 4px auto 10px; }
.sx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sx-head h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.sx-x { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 22px; line-height: 1; }
.sx-tabs { display: flex; gap: 8px; margin: 10px 0 16px; }
.sx-tab { flex: 1; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); font: 600 14px var(--font-body); }
.sx-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sx-lbl { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 14px; }
.sx-in { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 16px var(--font-body); }
textarea.sx-in { resize: vertical; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 14px var(--font-body); }
.sx-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sx-msg { min-height: 1.4em; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.sx-msg.bad { color: var(--bad); }
.sx-go { width: 100%; min-height: 52px; margin-top: 8px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 16px var(--font-body); }
.sx-go:disabled { opacity: 0.5; }

/* Колесо */
.sx-wheel-wrap { perspective: 900px; display: flex; flex-direction: column; align-items: center; padding: 6px 0 10px; }
.sx-wheel { position: relative; width: min(74vw, 290px); aspect-ratio: 1; transform: rotateX(14deg); transform-style: preserve-3d; filter: drop-shadow(0 26px 30px rgba(0,0,0,0.45)); }
.sx-disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 6px solid var(--accent); transition: transform 4.2s cubic-bezier(0.17, 0.67, 0.12, 1); }
.sx-seg { position: absolute; left: 50%; top: 50%; width: 50%; height: 2px; transform-origin: 0 0; }
.sx-seg span { position: absolute; left: 12%; top: -12px; width: 62%; text-align: right; font-size: 13px; font-weight: 600; line-height: 1.15; color: #1A1209; white-space: normal; }
.sx-pin { position: absolute; left: 50%; top: -6px; width: 0; height: 0; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 22px solid var(--accent); z-index: 2; }
.sx-hub { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--accent); z-index: 2; }
.sx-result { margin: 16px 0 0; text-align: center; font-size: 17px; min-height: 3.2em; }
.sx-code { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; letter-spacing: 0.2em; font-size: 20px; }

/* Найди пару */
.sx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; perspective: 800px; }
.sx-card { position: relative; aspect-ratio: 0.85; border: 0; padding: 0; background: transparent; transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sx-card.open, .sx-card.done { transform: rotateY(180deg); }
.sx-face { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: 30px; }
.sx-front { background: linear-gradient(135deg, var(--accent), #8A6420); color: var(--accent-ink); font-family: var(--font-display); font-size: 26px; }
.sx-back { background: var(--bg); border: 1.5px solid var(--line-strong); transform: rotateY(180deg); }
.sx-card.done .sx-back { background: var(--hot-bg, var(--bg)); }
.sx-game-msg { margin: 14px 0 0; text-align: center; color: var(--muted); min-height: 1.4em; }

@media (prefers-reduced-motion: reduce) {
  .sx-disc, .sx-card { transition: none !important; }
  .sx-wheel { transform: none; }
}
