:root {
  --ink: #0c0a09;
  --panel: #17130f;
  --panel-2: #241c16;
  --line: #3d342b;
  --fg: #f6efe4;
  --muted: #b5a894;
  --gold: #e3b15a;
  --gold-deep: #8d6224;
  --rose: #c45c4a;
  --sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --display: "Fraunces", ui-serif, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { cursor: pointer; }
a { color: var(--gold); }
img { max-width: 100%; display: block; }
.shell { max-width: 1040px; margin: 0 auto; padding: 18px 16px 110px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 22px; }
.brand span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; }
.gold, .pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; border: 1px solid rgba(227,177,90,.45);
  background: rgba(227,177,90,.12); color: var(--gold);
  padding: 8px 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.eyebrow { letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-size: 12px; font-weight: 700; margin: 0 0 6px; }
h1 { font-family: var(--display); font-weight: 560; font-size: 40px; margin: 0; line-height: 1; }
h2 { font-family: var(--display); font-weight: 560; margin: 0; }
.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0; padding-bottom: 4px; }
.filters a, .filters button {
  border: 0; text-decoration: none; min-height: 44px; flex: 0 0 auto;
  border-radius: 999px; padding: 0 16px; background: var(--panel); color: var(--muted); font-weight: 650;
}
.filters a.on, .filters button.on { background: var(--fg); color: var(--ink); }
.grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid.rooms { grid-template-columns: 1fr 1fr; } }
.card { display: block; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); color: inherit; text-decoration: none; }
.cover { position: relative; height: 148px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), rgba(12,10,9,.15) 55%, transparent); }
.tag { position: absolute; top: 12px; left: 12px; background: rgba(12,10,9,.72); color: var(--gold); border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.heat { position: absolute; top: 12px; right: 12px; background: rgba(12,10,9,.72); border-radius: 999px; padding: 4px 8px; font-size: 12px; }
.cover h2 { position: absolute; left: 16px; bottom: 12px; font-size: 28px; }
.card .meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; }
.card .meta p { margin: 0; color: var(--muted); font-size: 14px; }
.faces { display: flex; }
.faces img, .faces b { width: 28px; height: 28px; border-radius: 50%; margin-left: -6px; border: 2px solid var(--panel); object-fit: cover; }
.faces b { display: grid; place-items: center; background: var(--gold-deep); font-size: 12px; }
.btn, button.btn {
  border: 0; background: var(--gold); color: var(--ink); font-weight: 750;
  border-radius: 999px; min-height: 44px; padding: 0 16px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.dock {
  position: fixed; z-index: 20; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: min(560px, calc(100% - 20px));
  display: flex; gap: 4px; padding: 6px;
  background: rgba(23,19,15,.94); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px);
}
.dock a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 700; padding: 10px 4px; border-radius: 999px; }
.dock a.on { background: var(--fg); color: var(--ink); }
.flash { background: rgba(196,92,74,.16); border: 1px solid rgba(196,92,74,.45); color: #ffd2c8; border-radius: 14px; padding: 10px 12px; }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 650; }
input, select, textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 12px; min-height: 44px;
}
textarea { min-height: 90px; }
.auth { max-width: 460px; margin: 40px auto; padding: 0 16px 40px; }
.lead { color: var(--muted); line-height: 1.5; }
.steps { color: var(--muted); padding-left: 18px; }
.steps li { margin: 8px 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stat { background: var(--panel); border-radius: 18px; padding: 12px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.muted { color: var(--muted); }
.packs { display: grid; gap: 10px; }
@media (min-width: 720px) { .packs { grid-template-columns: 1fr 1fr 1fr; } }

.stage { position: relative; min-height: 100dvh; overflow: hidden; }
.stage .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.stage .veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,10,9,.4), rgba(12,10,9,.55), #0c0a09); }
.stage .inner { position: relative; z-index: 1; padding: 16px 16px 120px; max-width: 760px; margin: 0 auto; }
.stage-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(12,10,9,.7); color: var(--fg); text-decoration: none; font-size: 22px; }
.seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
@media (min-width: 640px) { .seats { grid-template-columns: repeat(5, 1fr); } }
.seat { background: transparent; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--fg); }
.ring {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--panel-2); position: relative;
}
.seat.taken .ring { box-shadow: 0 0 0 2px rgba(227,177,90,.7); }
.seat.empty .ring { border: 1px dashed var(--line); }
.seat.pick .ring { box-shadow: 0 0 0 2px var(--rose); }
.seat.speak .ring { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(227,177,90,.55); }
.ring img { width: 100%; height: 100%; object-fit: cover; }
.ring i { position: absolute; bottom: 0; background: var(--ink); color: var(--gold); font-style: normal; font-size: 10px; border-radius: 999px; padding: 1px 5px; }
.seat small { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.log { margin-top: 18px; height: 168px; overflow: auto; background: rgba(12,10,9,.55); border-radius: 18px; padding: 12px; font-size: 14px; }
.log p { margin: 0 0 6px; }
.log .who { color: var(--gold); font-weight: 700; }
.log .gift { color: var(--gold); }
.room-dock { bottom: 14px; border-radius: 22px; padding: 8px; align-items: center; }
.room-dock input { flex: 1; min-height: 44px; border-radius: 14px; }
.room-dock button { min-width: 64px; }
.sheet {
  position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(640px, 100%); background: var(--panel); border-radius: 24px 24px 0 0;
  border: 1px solid var(--line); padding: 16px 16px 24px; max-height: 70dvh; overflow: auto;
}
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gift-grid button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.gift-grid img { width: 100%; height: 72px; object-fit: cover; border-radius: 10px; }
.fx { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; pointer-events: none; background: rgba(12,10,9,.28); }
.fx figure { margin: 0; text-align: center; animation: rise 1.7s ease; }
.fx img { width: 180px; height: 180px; object-fit: cover; border-radius: 28px; margin: 0 auto 8px; }
@keyframes rise { from { transform: translateY(48px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.letter { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.letter img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.bubble { background: var(--panel-2); border-radius: 16px; padding: 8px 12px; margin: 6px 0; max-width: 80%; }
.bubble.mine { margin-left: auto; background: rgba(227,177,90,.18); }
.game { display: grid; gap: 8px; }
@media (min-width: 800px) { .game { grid-template-columns: 1fr 1fr; } }
