/* Pingo refined layer: same palette, less effect, more product.
   Calmer surfaces, clearer hierarchy, real-chat details. */
:root {
  --shadow-1: 0 1px 2px #00000040, 0 4px 16px #00000030;
  --shadow-2: 0 2px 6px #00000050, 0 12px 32px #00000040;
  --font-ui: 'Segoe UI Variable', 'Segoe UI', system-ui, Arial, sans-serif;
}
body { font-family: var(--font-ui); }

/* Flatter primary actions: solid accent, no gradient wash. */
.btn.primary, .btn.like, .btn.match-button {
  background: var(--accent); border-color: transparent; box-shadow: none;
}
.btn.primary:hover, .btn.like:hover, .btn.match-button:hover { background: #d5b8ff; box-shadow: var(--shadow-1); }
.room-card:hover, .gift-option.selected, .seat.speaking .avatar { animation: none; }
.room-card:hover { border-color: #c5a0ff45; }
.gift-option.selected { border-color: var(--accent); background: #c4a0ff14; }

/* Quieter headings: smaller, tighter, human. */
.screen-heading h1, .page-heading h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.section-title h2 { font-size: 15px; }

/* ---- Chat: grouping, days, quotes, reactions, typing ---- */
.chat-log { gap: 2px; }
.day-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: 11px; }
.day-divider::before, .day-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.message { position: relative; margin-top: 10px; transition: background .15s ease; }
.message.grouped { margin-top: 2px; }
.message.grouped .reply-quote { display: none; }
.message-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.message-meta time { font-size: 10px; }
.message.mine .message-meta { justify-content: flex-end; }
.read-state { font-size: 10px; }
.message-tools { display: inline-flex; gap: 2px; opacity: 0; transition: opacity .15s ease; }
.message:hover .message-tools, .message:focus-within .message-tools { opacity: 1; }
@media (hover: none) { .message-tools { opacity: .7; } }
.message-tools button { background: none; border: 0; color: var(--muted); padding: 4px; min-height: 0; }
.message-tools button:active { transform: none; color: var(--ink); }
.message-tools svg { width: 14px; height: 14px; }
.message.flash { outline: 2px solid var(--lime); outline-offset: 2px; }
.reply-quote { display: block; width: 100%; text-align: left; background: #ffffff08; border: 0; border-left: 2px solid var(--accent); border-radius: 6px; padding: 6px 10px; margin-bottom: 6px; cursor: pointer; }
.reply-quote strong { display: block; font-size: 11px; color: var(--accent); }
.reply-quote span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; margin-bottom: 8px; }
.reply-bar > div { flex: 1; min-width: 0; }
.reply-bar strong { display: block; font-size: 11px; color: var(--accent); }
.reply-bar span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reaction-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction-chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; min-height: 0; }
.reaction-chip span { font-size: 10px; color: var(--muted); }
.react-tray { display: flex; justify-content: center; }
.react-tray > .react-tray { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; margin-bottom: 8px; box-shadow: var(--shadow-2); }
.react-tray button { font-size: 20px; background: none; padding: 4px 6px; border-radius: 50%; }
.react-tray button:hover { background: #ffffff10; }
.typing-bubble { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.typing-bubble span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing-dot 1.1s infinite; }
.typing-bubble span:nth-child(2) { animation-delay: .18s; }
.typing-bubble span:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.online-label { color: var(--green); font-size: 11px; }

/* Calm feedback: quick, subtle, no confetti-cannon. */
.toast { box-shadow: var(--shadow-2); }
.room-popup { box-shadow: var(--shadow-2); }
.match-card { box-shadow: var(--shadow-1); }
.shine { animation: none; color: var(--lime); }
.slot-machine span { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .typing-bubble span { animation: none; opacity: .7; }
}

/* ---- Games: wheel, memory, roulette, outcomes ---- */
.wheel-wrap { position: relative; width: 230px; height: 230px; margin: 8px auto 18px; }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 22px; color: var(--lime); z-index: 2; }
.wheel { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--line); background: var(--surface-2); }
.wheel span { position: absolute; top: 50%; left: 50%; width: 44px; height: 24px; margin: -12px 0 0 -22px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); transform: rotate(calc(var(--i) * 45deg)) translateY(-88px); }
.memory-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 14px; }
.memory-card { aspect-ratio: 3/4; font-size: 26px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.memory-card.open { background: var(--surface-3); color: var(--ink); font-size: 30px; }
.roulette-bets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 6px 0 16px; }
.roulette-red { background: #7a2436; color: #ffd9de; }
.roulette-black { background: #23232e; color: #e4e4ea; }
.roulette-green { background: #1e5c40; color: #c9f2da; }
.roulette-wheel { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-size: 40px; font-weight: 800; }
.roulette-wheel span[data-color=red] { color: #ff8fa0; }
.roulette-wheel span[data-color=black] { color: #e4e4ea; }
.roulette-wheel span[data-color=green] { color: #7ee1bd; }
.game-outcome { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; background: var(--surface-2); }
.game-outcome strong { display: block; font-size: 15px; }
.game-outcome.won strong { color: var(--lime); }
.game-outcome.lost strong { color: var(--muted); }
.game-outcome small { color: var(--muted); font-size: 11px; }
.agency-label { position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; background: #17131fE6; color: var(--lime); padding: 5px 8px; font-size: 10px; font-weight: 700; border-radius: 4px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agency-label svg { width: 12px; height: 12px; }
