/* n4ked.net — production UI */
:root {
  --bg: #07070a;
  --bg-elevated: #101014;
  --surface: #16161c;
  --surface-2: #1e1e26;
  --border: #2a2a34;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f4f7;
  --text-muted: #9a9aab;
  --text-subtle: #6e6e7c;
  --primary: #f5a623;
  --primary-hover: #ffb83d;
  --primary-soft: rgba(245, 166, 35, 0.14);
  --primary-glow: rgba(245, 166, 35, 0.28);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.18);
  --success: #22c55e;
  --paypal: #0070ba;
  --paypal-hover: #005ea6;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --font: 'Outfit', system-ui, sans-serif;
  --ease: 0.2s ease;
  --dock-h: 72px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

.app {
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform 0.1s ease, opacity var(--ease);
  text-decoration: none;
  min-height: 44px;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: 1.05rem; padding: 0.85rem 1.25rem; }

.btn--primary {
  background: var(--primary);
  color: #0a0a0c;
}

.btn--primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover:not(:disabled) {
  background: #282832;
  border-color: #3a3a46;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
  font-weight: 700;
}

.btn--danger:hover:not(:disabled) {
  background: #f87171;
}

.btn--paypal {
  background: var(--paypal);
  color: #fff;
}

.btn--paypal:hover:not(:disabled) {
  background: var(--paypal-hover);
}

.btn--link {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 0.8rem;
  font-weight: 500;
  min-height: auto;
  padding: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn--link:hover {
  color: var(--text-muted);
}

.btn--icon {
  padding: 0.35rem 0.55rem;
  font-size: 1.35rem;
  line-height: 1;
  min-width: auto;
  min-height: auto;
}

.btn--small {
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  min-height: auto;
  margin-bottom: 0.75rem;
}

/* ========== Fields ========== */
.field {
  margin-bottom: 1rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label,
.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.field input,
.chat-form input,
.modal-content input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field input::placeholder,
.chat-form input::placeholder {
  color: var(--text-subtle);
}

.field input:focus,
.chat-form input:focus,
.modal-content input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hint {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.5rem;
}

/* ========== LOBBY ========== */
.lobby {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow: hidden;
}

.lobby-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 166, 35, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(245, 166, 35, 0.06), transparent 50%),
    var(--bg);
  pointer-events: none;
}

.lobby-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeUp 0.45s ease;
}

.lobby-inner:has(.seo-copy) {
  max-width: 560px;
}

.seo-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.seo-copy h2 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 1.1rem 0 0.4rem;
}

.seo-copy h2:first-child {
  margin-top: 0;
}

.seo-copy p {
  margin: 0;
}

.seo-copy strong {
  color: var(--text);
  font-weight: 600;
}

.lobby-footer {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding-bottom: 0.5rem;
}

.lobby-footer a {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.lobby-footer a:hover {
  color: var(--primary);
}

/* ========== STATIC SEO PAGES ========== */
.site-page {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 166, 35, 0.14), transparent 55%),
    var(--bg);
  padding: 1.5rem 1.25rem 3rem;
}

.site-page-header {
  max-width: 720px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-page-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}

.site-page-brand span {
  color: var(--primary);
  font-weight: 600;
}

.site-page-body {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.site-page-body h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.site-page-body .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.site-page-body h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.site-page-body p,
.site-page-body li {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.site-page-body ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.site-page-body a {
  color: var(--primary);
}

.site-page-cta {
  margin-top: 2rem;
  text-align: center;
}

.site-page-footer {
  max-width: 720px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.site-page-footer a {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.85rem;
}

.site-page-footer a:hover {
  color: var(--primary);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.lobby-brand {
  text-align: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1rem;
  box-shadow: 0 0 40px var(--primary-glow);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.06em;
}

.brand-name {
  font-size: clamp(2.4rem, 7vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.brand-domain {
  margin-top: 0.25rem;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.brand-tagline {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.room-setup {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.room-setup > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  user-select: none;
}

.room-setup > summary::-webkit-details-marker {
  display: none;
}

.lobby-card > .btn--primary {
  margin-bottom: 0.5rem;
}

.lobby-card > .hint {
  margin-bottom: 1.25rem;
}

.lobby-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.pay-setup {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
}

.pay-setup summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  user-select: none;
}

.pay-setup summary::-webkit-details-marker {
  display: none;
}

.pay-setup summary::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.pay-setup[open] summary::after {
  content: '▴';
}

.pay-setup-title {
  font-weight: 650;
  font-size: 0.95rem;
}

.pay-setup-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.pay-setup-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.room-row {
  display: flex;
  gap: 0.5rem;
}

.room-row input {
  flex: 1;
  min-width: 0;
}

.or-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0;
}

.or-line::before,
.or-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.or-line span {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: lowercase;
}

/* ========== CALL ========== */
.call {
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: row;
  background: #000;
}

.stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0.5rem;
  padding-bottom: calc(var(--dock-h) + 3.5rem);
}

.videos {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a0c;
}

.video-wrapper--remote {
  position: absolute;
  inset: 0;
  background: #0a0a0c;
}

.video-wrapper--remote video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-wrapper--local {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: min(160px, 28vw);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  z-index: 5;
  background: var(--surface);
}

.video-wrapper--local video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-chrome {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 4;
  max-width: calc(100% - 180px);
}

.video-label {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 650;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
}

.video-wrapper--local .video-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 0.65rem;
  padding: 2px 6px;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.waiting-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, #0e0e12 0%, #07070a 100%);
  z-index: 3;
  padding: 2rem;
  text-align: center;
}

.waiting-screen.is-connected {
  display: none;
}

.waiting-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 0 var(--primary-glow);
  animation: pulseRing 1.6s ease-out infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 var(--primary-glow); }
  70% { box-shadow: 0 0 0 18px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.call-status {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.waiting-hint {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.connection-timer {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 166, 35, 0.35);
}

.reaction-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 8;
  pointer-events: none;
}

.reaction-overlay .reaction-emoji {
  font-size: 5rem;
  line-height: 1;
  animation: reactionPop 0.4s ease;
}

@keyframes reactionPop {
  0% { transform: scale(0.4); opacity: 0; }
  55% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* Dock */
.dock {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: rgba(16, 16, 20, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  max-width: calc(100% - 1rem);
  flex-wrap: wrap;
  justify-content: center;
}

.dock-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-weight: 650;
  font-size: 0.85rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dock-btn[aria-pressed="true"] {
  background: var(--danger-soft);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.dock-btn--text {
  width: auto;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
}

.dock-btn--pay {
  width: auto;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(245, 166, 35, 0.4);
}

.dock-btn--pay:hover:not(:disabled) {
  background: rgba(245, 166, 35, 0.22);
}

.dock-btn--pay:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dock-btn--danger {
  background: var(--danger);
  color: #fff;
  width: auto;
  padding: 0 1.15rem;
  border-radius: var(--radius-pill);
}

.dock-btn--danger:hover {
  background: #f87171;
}

.reactions {
  display: flex;
  gap: 0.2rem;
}

.btn--reaction {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.2rem;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, background var(--ease);
  min-height: auto;
}

.btn--reaction:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.12);
}

.quick-messages {
  position: absolute;
  left: 50%;
  bottom: calc(var(--dock-h) + 0.35rem);
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 1rem);
}

.btn--quick {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: auto;
  background: rgba(16, 16, 20, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.btn--quick:hover {
  color: var(--text);
  background: rgba(30, 30, 38, 0.9);
}

/* Chat */
.chat-drawer {
  width: min(360px, 38vw);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-left: 1px solid var(--border-soft);
}

.chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.chat-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-messages {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg--me {
  align-self: flex-end;
  background: var(--primary);
  color: #0a0a0c;
  border-bottom-right-radius: 4px;
}

.chat-msg--peer {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-form {
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.chat-form .btn {
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .call {
    flex-direction: column;
  }

  .chat-drawer {
    width: 100%;
    height: 38vh;
    border-left: none;
    border-top: 1px solid var(--border-soft);
  }

  .chat-drawer.hidden {
    display: none !important;
  }

  .stage {
    padding-bottom: calc(var(--dock-h) + 2.5rem);
  }

  .reactions {
    display: none;
  }

  .video-wrapper--local {
    width: 110px;
  }
}

/* ========== Modals / overlays ========== */
.modal,
.overlay,
.games-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-backdrop,
.games-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.overlay {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal-content,
.panel,
.games-modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s ease;
}

.modal-content h3,
.panel h3,
.games-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.modal-desc,
.panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.modal-actions .btn {
  flex: 1;
}

.modal-actions--stack {
  flex-direction: column;
}

.modal-actions--stack .btn,
.modal-actions--stack a.btn {
  width: 100%;
}

/* Method picker */
.method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.method-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
  position: relative;
}

.method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-option-main {
  font-weight: 700;
  font-size: 0.95rem;
}

.method-option-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.method-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.method-option:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}

.panel-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.panel {
  text-align: center;
}

.panel--pay {
  text-align: center;
}

.payment-amount {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 0.5rem !important;
}

.qr-wrap {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 0.75rem 0 1rem;
}

.qr-wrap canvas,
.qr-wrap table {
  display: block;
  margin: 0 auto;
}

.qr-wrap.qr-fallback {
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.75rem;
  font-size: 0.7rem;
  word-break: break-all;
  max-width: 280px;
}

/* Games */
.games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn--game {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.btn--game:hover {
  background: #282832;
}

.game-rps-choices {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0;
}

.game-rps-choices button {
  min-width: 64px;
  min-height: 64px;
  font-size: 2rem;
  padding: 0.5rem;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, border-color var(--ease);
}

.game-rps-choices button:hover:not(:disabled) {
  border-color: var(--primary);
  transform: scale(1.05);
}

.game-rps-result {
  text-align: center;
  font-weight: 650;
  margin: 1rem 0;
  min-height: 2em;
}

.game-rps-result .win { color: var(--success); }
.game-rps-result .lose { color: var(--danger); }
.game-rps-result .draw { color: var(--text-muted); }

.game-ttt-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.game-ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 200px;
  margin: 0 auto 1rem;
}

.game-ttt-cell {
  aspect-ratio: 1;
  font-size: 2rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.game-ttt-cell:hover:not(:disabled) {
  background: #282832;
}

.game-ttt-cell.x { color: var(--primary); }
.game-ttt-cell.o { color: var(--text-muted); }

.game-ttt-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.8rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 550;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  max-width: calc(100% - 2rem);
}

.toast.error {
  border-color: var(--danger);
  color: #fca5a5;
}

.toast.show {
  animation: fadeUp 0.25s ease;
}
