/* ======================================================
   Füsun Köse · Canlı Antika Atölyesi
   Tema: koyu bordo + sıcak altın + krem dokunuş
   Tasarım dili: art-deco esintili, modern minimal
   ====================================================== */

:root {
  --c-bg: #15090b;
  --c-bg-2: #1f1011;
  --c-cream: #f3e7d2;
  --c-cream-soft: #ead9bf;
  --c-gold: #d6a85a;
  --c-gold-strong: #e9c98a;
  --c-gold-deep: #8a6228;
  --c-bordeaux: #5a1a23;
  --c-coral: #c97f6a;
  --c-success: #5fc28e;
  --c-danger: #e26a6a;

  --shadow-soft: 0 12px 40px -12px rgba(0,0,0,.55);
  --shadow-rail: 0 8px 24px -6px rgba(0,0,0,.6), 0 0 0 1px rgba(243,231,210,.08);
  --shadow-modal: 0 -20px 60px -10px rgba(0,0,0,.7);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --player-max-w: 540px;
  --rail-size: 56px;
  --chat-min-h: 220px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--c-bg);
  color: var(--c-cream);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; }
input, button, textarea { font-family: inherit; color: inherit; }

/* ------------------------------------------------------ */
/* Stage / ambient                                        */
/* ------------------------------------------------------ */

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ambient::before {
  content: '';
  position: absolute; inset: -10%;
  background:
    radial-gradient(60% 50% at 25% 18%, rgba(214,168,90,.18), transparent 70%),
    radial-gradient(70% 60% at 80% 90%, rgba(90,26,35,.55), transparent 70%),
    linear-gradient(180deg, #1c0c0f 0%, #0c0507 100%);
  filter: blur(.5px);
}
.ambient__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.78 0 0 0 0 0.6 0 0 0 .045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
}
.ambient__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 50%, transparent 50%, rgba(0,0,0,.55) 100%);
}

/* ------------------------------------------------------ */
/* Offline state                                          */
/* ------------------------------------------------------ */

.offline {
  position: relative;
  z-index: 2;
  width: min(560px, 92vw);
  text-align: center;
  padding: 32px 24px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
[data-state="live"] .offline { display: none; }

.offline__crest {
  width: 80px; height: 80px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,168,90,.12), transparent 70%);
  margin-bottom: 6px;
}
.offline__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 64px);
  margin: 0;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #f6e2b2 0%, #c79752 70%, #8a6228 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px rgba(214,168,90,.25);
}
.offline__sub {
  margin: -6px 0 8px;
  font-size: 13px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--c-cream-soft);
  opacity: .8;
}
.offline__dot {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(243,231,210,.12);
  border-radius: 999px;
  background: rgba(15,7,9,.5);
  backdrop-filter: blur(8px);
  font-size: 13px;
}
.offline__dot span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-coral);
  box-shadow: 0 0 0 3px rgba(201,127,106,.18);
  animation: dot-breathe 2s ease-in-out infinite;
}
@keyframes dot-breathe {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.25); opacity: 1; }
}
.offline__hint {
  margin: 4px 0 8px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(243,231,210,.7);
}
.offline__rooms {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 480px;
}
.room-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(243,231,210,.04), rgba(243,231,210,.01));
  border: 1px solid rgba(243,231,210,.08);
  text-align: left;
  font-size: 12px;
}
.room-card__index {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--c-gold-strong);
  width: 32px; flex: none;
}
.room-card__title { font-weight: 600; color: var(--c-cream); }
.room-card__meta { color: rgba(243,231,210,.55); font-size: 11px; }

/* ------------------------------------------------------ */
/* Player                                                 */
/* ------------------------------------------------------ */

.player {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: none;
}
[data-state="live"] .player { display: grid; place-items: center; }

.player__frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: var(--player-max-w);
  max-height: calc(100vh - 0px);
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 600px) {
  .player__frame {
    aspect-ratio: 9 / 16;
    height: min(96vh, 920px);
    width: auto;
    border-radius: 22px;
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(214,168,90,.18);
  }
}

.player__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* Subtle vignette inside the video frame */
.player__frame::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 18%, transparent 70%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}

/* ------------------------------------------------------ */
/* Top overlay                                            */
/* ------------------------------------------------------ */

.overlay-top {
  position: absolute;
  top: calc(12px + var(--safe-top));
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.overlay-top > * { pointer-events: auto; }

.profile-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  background: rgba(20,10,11,.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 999px;
  border: 1px solid rgba(243,231,210,.12);
}
.profile-chip__ring {
  width: 36px; height: 36px;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, #e9c98a, #b1873d 30%, #5a1a23 60%, #e9c98a 100%);
}
.profile-chip__avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #2a161a;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-gold-strong);
  letter-spacing: .02em;
}
.profile-chip__meta { line-height: 1.2; min-width: 0; }
.profile-chip__name {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; font-size: 13px; color: var(--c-cream);
  white-space: nowrap;
}
.profile-chip__verified { flex: none; }
.profile-chip__status {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: rgba(243,231,210,.7);
}
.live-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ef4646 0%, #c12727 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.live-pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
  animation: dot-breathe 1.6s ease-in-out infinite;
}
.viewer-count {
  display: inline-flex; align-items: center; gap: 4px;
  color: rgba(243,231,210,.8);
}

.close-button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(243,231,210,.12);
  background: rgba(20,10,11,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--c-cream);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.close-button:active { transform: scale(.93); }

/* ------------------------------------------------------ */
/* Product banner                                         */
/* ------------------------------------------------------ */

.product-banner {
  position: absolute;
  top: calc(60px + var(--safe-top));
  left: 12px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(90,26,35,.92), rgba(35,15,18,.92));
  border: 1px solid rgba(233,201,138,.32);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-cream);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.6);
  max-width: 70%;
}
.product-banner__pin {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--c-gold-strong);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-right: 8px;
  border-right: 1px solid rgba(233,201,138,.4);
}

/* ------------------------------------------------------ */
/* Side rail (ALDIM, chat toggle, share)                  */
/* ------------------------------------------------------ */

.rail {
  position: absolute;
  right: 10px;
  bottom: 0;
  z-index: 5;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding-bottom: calc(160px + var(--safe-bottom));
  transition: padding-bottom .25s ease;
  /* Konteyner padding bölgesi sohbet input/gönder butonunun üzerine düşüyor.
     pointer-events:none ile boş alanlardaki tıklamalar altındaki sohbet
     öğelerine geçer; sadece gerçek butonlar etkileşimi yakalar. */
  pointer-events: none;
}
.rail__btn { pointer-events: auto; }
.stage[data-chat="hidden"] .rail { padding-bottom: calc(28px + var(--safe-bottom)); }

.rail__btn {
  position: relative;
  width: var(--rail-size);
  height: var(--rail-size);
  border-radius: 50%;
  border: 1px solid rgba(243,231,210,.18);
  background: rgba(15,7,9,.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--c-cream);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-rail);
  transition: transform .12s ease, background .2s ease;
}
.rail__btn:active { transform: scale(.92); }
.rail__btn-label {
  position: absolute;
  bottom: -16px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(243,231,210,.75);
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  white-space: nowrap;
}

.rail__btn--primary {
  width: 64px; height: 64px;
  background: linear-gradient(160deg, #d6a85a, #8a4f1f);
  border: 1px solid rgba(255,228,180,.55);
  color: #2a1208;
  box-shadow: 0 14px 30px -10px rgba(232,184,118,.55), inset 0 1px 0 rgba(255,255,255,.5);
  position: relative;
  overflow: visible;
}
.rail__btn--primary .rail__btn-label {
  bottom: -20px;
  color: var(--c-gold-strong);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 12px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.rail__btn--primary::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(233,201,138,.4);
  animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* "I bought it" fire animation on click */
.rail__btn--primary.is-firing {
  animation: aldim-pop .55s cubic-bezier(.2,.8,.2,1.2);
}
@keyframes aldim-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); filter: brightness(1.25); }
  100% { transform: scale(1); }
}

/* ------------------------------------------------------ */
/* Chat                                                   */
/* ------------------------------------------------------ */

.chat {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto auto;
  padding: 0 12px calc(8px + var(--safe-bottom));
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease;
}
/* Maks 5 satır görünür (yaklaşık 30-35px / satır + 8px gap). */
.chat__feed {
  max-height: 210px;
}
.stage[data-chat="hidden"] .chat {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
}
.chat__fade {
  position: absolute;
  inset: -60px 0 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(8,4,5,.55) 50%, rgba(8,4,5,.85) 100%);
}

.chat__feed {
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(243,231,210,.2) transparent;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}
.chat__feed::-webkit-scrollbar { width: 4px; }
.chat__feed::-webkit-scrollbar-thumb { background: rgba(243,231,210,.18); border-radius: 4px; }

.chat-msg {
  font-size: 14px;
  line-height: 1.35;
  color: var(--c-cream);
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(20,10,11,.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 90%;
  word-break: break-word;
  animation: msg-in .28s ease-out;
  transition: opacity .6s ease, transform .6s ease, max-height .6s ease, margin .6s ease, padding .6s ease;
  overflow: hidden;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg--fading {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0 !important;
  margin-top: -8px !important;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.chat-msg__name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-gold-strong);
  margin-bottom: 1px;
}
.chat-msg--self .chat-msg__name { color: var(--c-coral); }

.chat-msg--purchase {
  max-width: 100%;
  background: linear-gradient(135deg, rgba(233,201,138,.95), rgba(214,168,90,.88));
  color: #2a1208;
  font-weight: 600;
  border: 1px solid rgba(90,26,35,.4);
  text-align: center;
  padding: 10px 14px;
  box-shadow: 0 10px 22px -8px rgba(214,168,90,.6);
  animation: msg-pop .5s cubic-bezier(.2,.8,.2,1.2);
}
@keyframes msg-pop {
  0% { transform: scale(.85); opacity: 0; }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}
.chat-msg--purchase.is-first {
  background: linear-gradient(135deg, #e9c98a, #c97f6a 60%, #5a1a23);
  color: #fff8e6;
  font-size: 15px;
}
.chat-msg--system {
  background: rgba(243,231,210,.08);
  color: rgba(243,231,210,.85);
  text-align: center;
  max-width: 100%;
  font-style: italic;
  font-size: 13px;
}

.chat__bar {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
  z-index: 2;
}
.chat__bar input[type="text"] {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(243,231,210,.18);
  border-radius: 24px;
  background: rgba(20,10,11,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--c-cream);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease;
}
.chat__bar input[type="text"]::placeholder { color: rgba(243,231,210,.5); }
.chat__bar input[type="text"]:focus { border-color: var(--c-gold); }
.chat__send {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(233,201,138,.5);
  background: linear-gradient(160deg, #d6a85a, #8a4f1f);
  color: #2a1208;
  display: grid; place-items: center;
  cursor: pointer;
}
.chat__send:active { transform: scale(.94); }

/* ------------------------------------------------------ */
/* Connecting overlay                                     */
/* ------------------------------------------------------ */

.connecting {
  position: absolute; inset: 0;
  z-index: 6;
  display: grid; place-items: center;
  background: rgba(8,4,5,.75);
  color: var(--c-cream);
  backdrop-filter: blur(4px);
  text-align: center;
  gap: 12px;
}
.connecting__pulse {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(233,201,138,.25);
  border-top-color: var(--c-gold-strong);
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------ */
/* Auth modal                                             */
/* ------------------------------------------------------ */

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid;
  align-items: end;
  justify-items: center;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #1f1011 0%, #150a0c 100%);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 16px 22px calc(28px + var(--safe-bottom));
  border-top: 1px solid rgba(233,201,138,.2);
  box-shadow: var(--shadow-modal);
  animation: sheet-up .35s cubic-bezier(.2,.9,.2,1);
}
@media (min-width: 600px) {
  .modal { align-items: center; }
  .modal__sheet { border-radius: 22px; max-width: 440px; }
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal__handle {
  width: 38px; height: 4px;
  margin: 0 auto 14px;
  border-radius: 4px;
  background: rgba(243,231,210,.18);
}
.modal__close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: rgba(243,231,210,.08);
  color: var(--c-cream);
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.modal__header { margin-bottom: 16px; text-align: center; }
.modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  margin: 4px 0 6px;
  color: var(--c-gold-strong);
}
.modal__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(243,231,210,.75);
}

.field { display: grid; gap: 8px; margin: 14px 0 12px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--c-cream); }
.field__hint { font-size: 12px; color: rgba(243,231,210,.55); }

.phone-input {
  display: flex; align-items: center;
  background: rgba(243,231,210,.06);
  border: 1px solid rgba(243,231,210,.15);
  border-radius: 14px;
  padding: 4px 10px 4px 14px;
  gap: 8px;
  transition: border-color .15s ease;
}
.phone-input:focus-within { border-color: var(--c-gold); }
.phone-input__flag { font-size: 20px; line-height: 1; }
.phone-input__cc { font-weight: 600; color: var(--c-cream); padding-right: 4px; border-right: 1px solid rgba(243,231,210,.15); }
.phone-input input {
  flex: 1;
  height: 46px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--c-cream);
}

.primary {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(180deg, #e9c98a, #b1873d);
  color: #261108;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(214,168,90,.5), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .12s ease, opacity .15s ease;
}
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .55; cursor: not-allowed; }

.link {
  background: transparent;
  border: none;
  color: var(--c-gold-strong);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.step__intro { font-size: 14px; color: rgba(243,231,210,.85); margin-bottom: 14px; }
.step__error {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(226,106,106,.12);
  color: #f5b8b8;
  font-size: 13px;
  border: 1px solid rgba(226,106,106,.3);
}

.code-input { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.code-input input {
  width: 44px; height: 54px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  border: 1px solid rgba(243,231,210,.15);
  border-radius: 12px;
  background: rgba(243,231,210,.05);
  color: var(--c-cream);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.code-input input:focus { border-color: var(--c-gold); background: rgba(214,168,90,.1); }
.resend-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  color: rgba(243,231,210,.7);
  margin: 8px 0 18px;
}
.nickname-block { margin: 8px 0 16px; }
.nickname-block input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: rgba(243,231,210,.05);
  border: 1px solid rgba(243,231,210,.15);
  border-radius: 12px;
  color: var(--c-cream);
  font-size: 15px;
  outline: none;
}
.nickname-block input:focus { border-color: var(--c-gold); }

.done {
  text-align: center;
  padding: 18px 0 8px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.done h3 { margin: 8px 0 4px; font-family: var(--font-display); font-size: 24px; color: var(--c-gold-strong); }
.done p { font-size: 14px; color: rgba(243,231,210,.8); margin: 0 0 10px; }

/* ------------------------------------------------------ */
/* Toast                                                  */
/* ------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%; bottom: calc(20px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(20,10,11,.92);
  border: 1px solid rgba(233,201,138,.25);
  color: var(--c-cream);
  font-size: 14px;
  box-shadow: var(--shadow-modal);
  animation: toast-in .25s ease;
}
.toast.error { border-color: rgba(226,106,106,.5); color: #ffd6d6; }
.toast.success { border-color: rgba(95,194,142,.5); color: #d3f3df; }
@keyframes toast-in {
  from { transform: translate(-50%, 12px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ------------------------------------------------------ */
/* Small responsive tweaks                                */
/* ------------------------------------------------------ */

@media (max-width: 380px) {
  :root { --rail-size: 50px; }
  .rail__btn--primary { width: 58px; height: 58px; }
  .chat-msg { font-size: 13px; }
  .modal__title { font-size: 24px; }
}

@media (min-width: 900px) {
  .player__frame { box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(214,168,90,.18); }
}
