:root {
  --bg: #0b0b0c;
  --bg-soft: #121216;
  --card: #17171d;
  --card-strong: #1c1c24;
  --text: #f3f1ea;
  --muted: #b0aa9e;
  --line: #313039;
  --accent: #c0a46a;
  --accent-strong: #9d824f;
  --danger: #d66f6f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Neue Haas Grotesk Text Pro", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 650px at 10% -10%, #252017 0%, transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, #161722 0%, transparent 50%),
    linear-gradient(170deg, var(--bg) 0%, #0f1014 50%, #0b0b0c 100%);
}

body.age-lock {
  overflow: hidden;
}

a { color: inherit; text-decoration-thickness: 1px; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #2a2a32;
  background: rgba(10, 10, 12, 0.84);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.member-subnav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid #2a2a32;
  background: rgba(7, 7, 10, 0.82);
  font-size: 0.9rem;
  text-transform: lowercase;
}

.member-subnav a {
  text-decoration: none;
  color: #d9d4ca;
}

.brand {
  text-decoration: none;
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 0.07em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-die {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(145deg, #ff3344 0%, #d30014 64%, #9d0010 100%);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
}

.brand-die::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

nav { display: flex; gap: 14px; align-items: center; }

.container {
  width: min(980px, 94vw);
  margin: 28px auto 80px;
}

.inline-form { margin: 0; }

.link-btn {
  border: 0;
  background: none;
  text-decoration: underline;
  text-decoration-color: #77706a;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
  font: inherit;
}

.hero {
  margin: 24px 0;
  padding: 30px;
  border: 1px solid #2d2c36;
  background: linear-gradient(145deg, #17171d 0%, #121219 100%);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  letter-spacing: 0.04em;
}

.hero p { margin: 0 0 16px; color: var(--muted); }

.feed {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card) 0%, var(--card-strong) 100%);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.panel.small { max-width: 480px; margin: 40px auto; }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.95rem; color: var(--muted); }

input,
textarea,
button {
  font: inherit;
  border-radius: 8px;
}

input,
textarea {
  border: 1px solid #3b3944;
  padding: 10px;
  background: #0e0e13;
  color: var(--text);
}

button,
.pill {
  border: 1px solid #6f6658;
  padding: 10px 14px;
  background: #111117;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}

button.primary,
.pill {
  border-color: var(--accent);
  color: #14120d;
  background: linear-gradient(135deg, #d4bc82 0%, var(--accent) 100%);
  font-weight: 600;
}

button.primary:hover,
.pill:hover {
  background: linear-gradient(135deg, #e2cd95 0%, var(--accent-strong) 100%);
}

.media-shell {
  border: 1px solid #3a3845;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  display: block;
  position: relative;
}

.media-shell img,
.media-shell video,
.full {
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  display: block;
}

.media-watermark {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.56);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.03em;
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  font-family: "Snell Roundhand", "Apple Chancery", "URW Chancery L", cursive;
  pointer-events: none;
}

.post-date {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: #b8b2a7;
  letter-spacing: 0.02em;
}

.post-media {
  margin-top: 10px;
}

.post-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.post-meta-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.post-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(180deg, #e22634 0%, #b60514 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex: 0 0 34px;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
}

.post-account {
  margin: 0 0 2px;
  color: #e7e1d5;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.post-title {
  margin: 0 0 3px;
  font-size: 1.02rem;
  font-weight: 600;
}

.post-edit-btn {
  text-decoration: none;
  border: 1px solid #5a5564;
  color: #efe8dc;
  background: rgba(16, 16, 20, 0.82);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.78rem;
  line-height: 1;
}

.post-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.post-actions form {
  margin: 0;
}

.post-tip-btn {
  border: 1px solid #d01f2b;
  background: linear-gradient(180deg, #e22634 0%, #b60514 100%);
  color: #fff;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.78rem;
  line-height: 1;
}

.lock-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  color: #f5eddd;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
  background: rgba(9, 9, 12, 0.75);
  border: 1px solid #5b513f;
  padding: 10px 12px;
  border-radius: 8px;
}

.media-shell.locked img,
.media-shell.locked video {
  filter: blur(18px) brightness(0.72);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: filter;
}

.feed-grid .media-shell.locked-uniform {
  aspect-ratio: 4 / 5;
}

.feed-grid .media-shell.locked-uniform img,
.feed-grid .media-shell.locked-uniform video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lock-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: none;
}

.keyhole-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.58);
  background: rgba(10, 10, 14, 0.38);
  position: relative;
}

.keyhole-icon::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.keyhole-icon::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 15px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
}

h2 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
  font-weight: 500;
}

.muted { color: var(--muted); }
.error { color: var(--danger); margin-top: 0; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(850px 520px at 50% -10%, rgba(192, 164, 106, 0.15) 0%, transparent 55%),
    rgba(6, 6, 8, 0.94);
}

.age-gate.hidden {
  display: none;
}

.age-gate-card {
  width: min(560px, 94vw);
  border: 1px solid #4f4638;
  border-radius: 16px;
  padding: 26px;
  background: linear-gradient(170deg, #17171d 0%, #111117 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.age-tag {
  margin: 0 0 10px;
  color: #d7c08d;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.age-gate-card h1 {
  margin: 0 0 8px;
  line-height: 1.2;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}

.age-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ghost-btn {
  border: 1px solid #6f6658;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0f0f14;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}

.landing-home {
  background: #040405;
}

.landing-home .site-header {
  justify-content: center;
  border-bottom: 1px solid #1a1a20;
  background: transparent;
  position: static;
}

.landing-home .site-header nav {
  display: none;
}

.landing-home .brand {
  font-family: "Snell Roundhand", "Apple Chancery", "URW Chancery L", cursive;
  font-size: clamp(2.2rem, 6.6vw, 4.1rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.landing-home .container {
  width: min(560px, 92vw);
  margin: 8px auto 28px;
}

.landing-hero {
  text-align: center;
  padding: 24px 0 20px;
  border-bottom: 1px solid #1a1a20;
  position: relative;
  z-index: 2;
}

.landing-welcome {
  margin: 0;
  font-size: clamp(1.2rem, 3.2vw, 1.9rem);
  color: #e1202d;
  letter-spacing: 0.03em;
}

.landing-sub {
  margin: 12px 0 18px;
  font-size: clamp(1rem, 2.9vw, 1.45rem);
  color: #efefef;
  letter-spacing: 0.02em;
}

.landing-actions {
  display: grid;
  gap: 10px;
}

.landing-figure {
  position: absolute;
  top: 104px;
  right: max(-48px, calc((100vw - min(1080px, 92vw)) / 2 - 1in - 1cm));
  width: clamp(220px, 26vw, 390px);
  pointer-events: none;
  z-index: 1;
}

.landing-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.42));
}

.landing-activity-block {
  position: absolute;
  top: 156px;
  left: max(-26px, calc((100vw - min(1080px, 92vw)) / 2 - 0.25in));
  width: min(210px, 19vw);
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 14, 17, 0.78) 0%, rgba(9, 9, 12, 0.84) 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.landing-activity-title {
  margin: 0 0 12px;
  color: #d8c29a;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-activity-items {
  display: grid;
  gap: 10px;
}

.landing-activity-items p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-activity-items p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.landing-activity-items span {
  color: rgba(231, 225, 216, 0.72);
}

.landing-activity-items strong {
  color: #f3eee5;
  font-weight: 700;
  text-transform: lowercase;
}

.landing-actions a {
  text-decoration: none;
  text-align: center;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: clamp(1rem, 2.8vw, 1.45rem);
  font-weight: 700;
}

.landing-join {
  color: #fff;
  border: 1px solid #d01f2b;
  background: linear-gradient(180deg, #e22634 0%, #b60514 100%);
}

.landing-login {
  color: #f2f2f2;
  border: 2px solid #c9c9c9;
  background: #060607;
}

.landing-tagline {
  border-bottom: 1px solid #1a1a20;
  text-align: center;
  padding: 18px 0 16px;
}

.landing-tagline p {
  margin: 0;
  font-size: clamp(0.95rem, 2.7vw, 1.3rem);
  color: #e9e9e9;
  letter-spacing: 0.02em;
}

.landing-dice {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  padding: 24px 0 28px;
  border-bottom: 1px solid #1a1a20;
}

.die {
  width: clamp(72px, 14vw, 108px);
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff3344 0%, #d30014 64%, #9d0010 100%);
  position: relative;
  box-shadow: 0 24px 38px rgba(0, 0, 0, 0.46);
}

.die-left {
  transform: rotate(-11deg);
}

.die-right {
  transform: rotate(17deg) translateY(14px);
}

.pip {
  position: absolute;
  width: clamp(10px, 2.2vw, 18px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

.p1 { top: 14%; left: 14%; }
.p2 { top: 14%; left: 50%; transform: translateX(-50%); }
.p3 { top: 14%; right: 14%; }
.p4 { top: 50%; left: 14%; transform: translateY(-50%); }
.p5 { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.p6 { top: 50%; right: 14%; transform: translateY(-50%); }
.p7 { bottom: 14%; left: 14%; }
.p8 { bottom: 14%; left: 50%; transform: translateX(-50%); }
.p9 { bottom: 14%; right: 14%; }
}

.landing-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0 4px;
}

.landing-footer-links a {
  color: #d8d8d8;
  text-decoration: none;
  font-size: clamp(0.9rem, 2.1vw, 1.15rem);
}

.auth-home .container {
  width: min(460px, 92vw);
}

.auth-shell {
  padding: 18px 0 10px;
}

.auth-panel {
  border: 1px solid #2a2a32;
  border-radius: 14px;
  padding: 22px;
  background: linear-gradient(165deg, #121217 0%, #0c0c10 100%);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5);
}

.auth-kicker {
  margin: 0 0 8px;
  color: #e1202d;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.auth-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
}

.auth-form {
  gap: 10px;
}

.auth-form input {
  border: 1px solid #3b3944;
  background: #0a0a0d;
  color: #f1f1f1;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(10, 10, 13, 0.55);
}

.checkbox-line input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.checkbox-line span {
  color: #eee6da;
  line-height: 1.45;
}

.auth-submit {
  border: 1px solid #d01f2b;
  background: linear-gradient(180deg, #e22634 0%, #b60514 100%);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
}

.auth-note {
  margin: 14px 0 0;
  color: #c8c8c8;
  font-size: 0.94rem;
}

.auth-note a {
  color: #f4f4f4;
}

.feed-home {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(188, 24, 38, 0.18) 0%, transparent 58%),
    radial-gradient(900px 480px at 100% 0%, rgba(57, 9, 13, 0.35) 0%, transparent 60%),
    #070709;
}

.feed-home .container {
  width: min(980px, 94vw);
}

.feed-hero {
  border: 1px solid #2a2a32;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(160deg, #141418 0%, #0d0d11 100%);
  margin-bottom: 14px;
}

.feed-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}

.feed-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.feed-hero-top .pill {
  margin-top: 2px;
}

.feed-hero p {
  margin: 0 0 12px;
  color: #c7c2b8;
}

.feed-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

.feed-compose-page { margin-bottom: 14px; }

.unlock-form {
  margin-top: 7px;
}

.live-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(218, 192, 143, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.live-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.live-frame-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 18px;
}

.live-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-chat-head h2 {
  margin: 0;
  white-space: nowrap;
}

.live-room-presence-tab {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  min-width: 0;
}

.live-room-presence-toggle {
  border: 1px solid rgba(218, 192, 143, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.88) 0%, rgba(12, 12, 18, 0.96) 100%);
  color: #e9dcc6;
  padding: 8px 14px 9px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.live-room-presence-toggle:hover {
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.92) 0%, rgba(14, 14, 20, 0.98) 100%);
}

.live-room-presence-label {
  margin: 0;
  color: #d8c29a;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-room-presence-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.22) 0%, rgba(12, 12, 16, 0.12) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  z-index: 9;
}

.live-room-presence-strip {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.live-room-presence-pill {
  display: block;
  padding: 5px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: rgba(240, 234, 224, 0.82);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.live-room-presence-pill.is-creator {
  color: rgba(240, 234, 224, 0.9);
  font-weight: 600;
}

.live-left,
.live-right {
  min-width: 0;
}

.live-left {
  position: relative;
  overflow: visible;
}

.live-right {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.live-left .live-frame-wrap {
  aspect-ratio: 16 / 11;
  margin-bottom: -4px;
}

.live-inline-tip {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-broadcast-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-control-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.live-broadcast-copy {
  min-width: 0;
}

.live-broadcast-copy .muted {
  margin: 0;
}

.broadcast-inline-btn {
  flex: 0 0 auto;
  align-self: flex-end;
}

.fullscreen-inline-btn {
  flex: 0 0 auto;
  align-self: flex-end;
  border: 1px solid rgba(218, 192, 143, 0.24);
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.88) 0%, rgba(12, 12, 18, 0.96) 100%);
  color: #f0e8da;
}

.fullscreen-inline-btn:hover {
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.92) 0%, rgba(14, 14, 20, 0.98) 100%);
}

.live-inline-tip h2 {
  margin-bottom: 10px;
}

.live-grid.is-fullscreen-shell,
.live-grid:fullscreen,
.live-grid:-webkit-full-screen {
  position: relative;
  display: block;
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #000;
  overflow: hidden;
}

.live-grid.is-fullscreen-shell .live-left,
.live-grid:fullscreen .live-left,
.live-grid:-webkit-full-screen .live-left {
  position: static;
  height: 100%;
}

.live-grid.is-fullscreen-shell .live-left.panel,
.live-grid:fullscreen .live-left.panel,
.live-grid:-webkit-full-screen .live-left.panel {
  display: block;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.live-grid.is-fullscreen-shell .live-left > h2,
.live-grid:fullscreen .live-left > h2,
.live-grid:-webkit-full-screen .live-left > h2 {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 4;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  background: rgba(10, 10, 14, 0.18);
  backdrop-filter: blur(10px);
}

.live-grid.is-fullscreen-shell .live-frame-wrap,
.live-grid:fullscreen .live-frame-wrap,
.live-grid:-webkit-full-screen .live-frame-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
}

.live-grid.is-fullscreen-shell .live-broadcast-bar,
.live-grid:fullscreen .live-broadcast-bar,
.live-grid:-webkit-full-screen .live-broadcast-bar {
  position: absolute;
  left: 20px;
  right: 392px;
  bottom: 18px;
  z-index: 4;
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(10, 10, 14, 0.16);
  backdrop-filter: blur(10px);
}

.live-grid.is-fullscreen-shell .live-inline-tip,
.live-grid:fullscreen .live-inline-tip,
.live-grid:-webkit-full-screen .live-inline-tip {
  position: absolute;
  left: 20px;
  right: 392px;
  bottom: 84px;
  z-index: 4;
  margin: 0;
  padding: 12px 12px 16px;
  border-top: 0;
  border-radius: 16px;
  background: rgba(10, 10, 14, 0.12);
  backdrop-filter: blur(10px);
}

.live-grid.is-fullscreen-shell .live-right,
.live-grid:fullscreen .live-right,
.live-grid:-webkit-full-screen .live-right {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: 344px;
  min-height: 0;
  display: flex;
  z-index: 4;
}

.live-grid.is-fullscreen-shell .live-right.panel,
.live-grid:fullscreen .live-right.panel,
.live-grid:-webkit-full-screen .live-right.panel {
  padding: 18px;
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.18) 0%, rgba(18, 18, 22, 0.12) 100%);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.live-grid.is-fullscreen-shell .live-right .chat-log,
.live-grid:fullscreen .live-right .chat-log,
.live-grid:-webkit-full-screen .live-right .chat-log {
  margin-bottom: 10px;
  background: rgba(8, 8, 12, 0.14);
  border-color: rgba(255, 255, 255, 0.08);
}

.live-grid.is-fullscreen-shell .chat-send input,
.live-grid:fullscreen .chat-send input,
.live-grid:-webkit-full-screen .chat-send input {
  background: rgba(10, 10, 14, 0.18);
  border-color: rgba(255, 255, 255, 0.1);
}

.live-grid.is-fullscreen-shell .live-frame-wrap video,
.live-grid:fullscreen .live-frame-wrap video,
.live-grid:-webkit-full-screen .live-frame-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-grid.is-fullscreen-shell .live-inline-tip h2,
.live-grid:fullscreen .live-inline-tip h2,
.live-grid:-webkit-full-screen .live-inline-tip h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.live-grid.is-fullscreen-shell .tip-row,
.live-grid:fullscreen .tip-row,
.live-grid:-webkit-full-screen .tip-row {
  gap: 10px;
}

.live-grid.is-fullscreen-shell .tip-row button,
.live-grid:fullscreen .tip-row button,
.live-grid:-webkit-full-screen .tip-row button {
  background: rgba(15, 15, 20, 0.18);
  border-color: rgba(192, 164, 106, 0.55);
  backdrop-filter: blur(8px);
}

.live-right .chat-log {
  max-height: none;
  flex: 1;
  margin-bottom: 6px;
}

.live-room .container {
  width: min(1100px, 96vw);
}

.live-room {
  font-size: 1.08rem;
}

.live-room .panel {
  padding: 22px;
  border: 1px solid rgba(218, 192, 143, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.18) 0%, rgba(10, 10, 12, 0.1) 100%);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.live-room .panel h1 {
  font-size: 2rem;
}

.live-room .panel h2 {
  font-size: 1.3rem;
}

.live-fps {
  margin: 8px 0 0;
  color: #d6d4de;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-status-card {
  display: none;
}

.live-status-card.is-offline {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 24%, rgba(226, 38, 52, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(11, 10, 15, 0.9) 0%, rgba(7, 7, 10, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  pointer-events: none;
}

.live-status-dice {
  display: none;
}

.live-status-card.is-offline .live-status-dice {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e22634 0%, #b60514 100%);
  box-shadow: 0 10px 24px rgba(181, 5, 20, 0.32);
  transform: rotate(12deg);
}

.live-status-dice span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff4e8;
}

.live-status-dice span:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.live-status-dice span:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.live-status-dice span:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.live-status-dice span:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}

.live-status-dice span:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}

.live-status-text {
  margin: 0;
}

.live-status-card.is-offline .live-status-text {
  color: #efe5d4;
  max-width: 22ch;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.live-room .chat-send input,
.live-room .chat-send button,
.live-room .tip-row button {
  font-size: 1rem;
  padding: 11px 14px;
}

.live-room .live-inline-tip .tip-row {
  justify-content: flex-start;
}

.chat-log {
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px;
  background: rgba(9, 9, 11, 0.28);
  backdrop-filter: blur(8px);
  margin-bottom: 10px;
}

.chat-log p {
  margin: 0 0 10px;
  font-size: 1rem;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.24);
  color: #eee6da;
  line-height: 1.45;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-log p strong {
  color: #f5efe6;
}

.chat-log p.chat-system-message {
  color: #ff4453;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(63, 11, 18, 0.22);
  border-color: rgba(214, 31, 44, 0.18);
}

.chat-log p.chat-system-message strong {
  font-weight: 800;
}

.chat-send {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  margin-top: auto;
}

.chat-input-wrap {
  position: relative;
}

.chat-send input {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 48px 14px 14px;
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.28);
  backdrop-filter: blur(8px);
  color: var(--text);
  width: 100%;
}

.chat-emoji-toggle {
  position: absolute;
  top: calc(50% - 3px);
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #ffffff;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  font-size: 1rem;
}

.chat-emoji-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-emoji-tray {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  width: min(260px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(18, 10, 12, 0.82);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.chat-emoji-tray[hidden] {
  display: none !important;
}

.chat-emoji-chip {
  border: 1px solid rgba(218, 192, 143, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7f8;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.94rem;
}

.chat-emoji-chip:hover,
.chat-emoji-toggle:hover {
  background: transparent;
  color: #ffffff;
}

.live-room .chat-send button.primary,
.live-room .live-inline-tip .tip-row button,
.live-room .broadcast-inline-btn {
  border: 1px solid rgba(218, 192, 143, 0.32);
  background: linear-gradient(180deg, rgba(28, 21, 18, 0.88) 0%, rgba(19, 15, 14, 0.94) 100%);
  color: #f0e8da;
  border-radius: 14px;
}

.tip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tip-row-center {
  justify-content: center;
  gap: 22px;
  margin-top: 40px;
  margin-bottom: 68px;
}

.tip-row-center button {
  padding: 16px 20px;
  font-size: 1.14rem;
}

.tribute-total-line {
  margin: -22px 0 28px;
  text-align: center;
  color: #c8bcaa;
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tribute-total-line strong {
  color: #f1e6d3;
  font-size: 1.04rem;
}

.tips-received-panel {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tips-received-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.tips-received-head h2 {
  margin: 0;
}

.tips-received-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tips-received-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.tips-received-card {
  border: 1px solid #373543;
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.tips-received-label {
  margin: 0 0 6px;
  color: #b8b2a7;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tips-received-value {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 700;
}

.tips-received-list {
  display: grid;
  gap: 10px;
}

.tips-received-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #373543;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.tips-received-row div {
  display: grid;
  gap: 4px;
}

.tips-received-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.tips-received-empty {
  margin: 0;
  color: var(--muted);
}

.account-profile-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 22px;
}

.account-avatar-shell {
  flex: 0 0 auto;
}

.account-avatar-image,
.account-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(218, 192, 143, 0.26);
  background: linear-gradient(180deg, rgba(34, 26, 22, 0.9) 0%, rgba(16, 16, 20, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.account-avatar-image {
  object-fit: cover;
  display: block;
}

.account-avatar-fallback {
  display: grid;
  place-items: center;
  color: #f3ebde;
  font-size: 2rem;
  font-weight: 700;
}

.account-avatar-form {
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.delete-post-form {
  margin-top: 18px;
}

.danger-btn {
  border: 1px solid #a33038;
  background: linear-gradient(180deg, #60181f 0%, #381014 100%);
  color: #fff2f2;
}

.lounge-page .container {
  width: min(1240px, 96vw);
}

.lounge-page {
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(78, 30, 18, 0.24) 0%, transparent 58%),
    radial-gradient(760px 420px at 88% 12%, rgba(46, 22, 18, 0.2) 0%, transparent 54%),
    linear-gradient(180deg, #09080b 0%, #0b090b 38%, #080709 100%);
}

.lounge-stage {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
}

.lounge-kicker {
  margin: 0 0 10px;
  color: #ccb27e;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lounge-fireplace {
  --lounge-bottom-line-offset: 0px;
  position: relative;
  width: 100%;
  height: 760px;
  border-radius: 34px;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(520px 220px at 50% 88%, rgba(255, 123, 43, 0.24) 0%, transparent 60%),
    radial-gradient(460px 320px at 50% 44%, rgba(255, 180, 84, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #161116 0%, #0b0a0d 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.54), 0 30px 80px rgba(0, 0, 0, 0.42);
}

.lounge-fireplace::before {
  content: "";
  position: absolute;
  inset: 0 0 calc(var(--lounge-bottom-line-offset) + 34px) 0;
  border: 1px solid rgba(198, 170, 110, 0.12);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  pointer-events: none;
  z-index: 6;
}

.lounge-fireplace::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--lounge-bottom-line-offset);
  height: 34px;
  border-left: 1px solid rgba(198, 170, 110, 0.12);
  border-right: 1px solid rgba(198, 170, 110, 0.12);
  border-bottom: 1px solid rgba(198, 170, 110, 0.12);
  border-radius: 0 0 34px 34px;
  box-sizing: border-box;
  background: transparent;
  pointer-events: none;
  z-index: 6;
}

.lounge-fireplace-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.lounge-room-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.fireplace-flicker-shell {
  position: absolute;
  right: calc(15.45% - 1in + 3mm);
  top: calc(47.85% - 5mm);
  width: 6%;
  height: 7.4%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 6px;
  mix-blend-mode: screen;
}

.fireplace-flicker,
.fireplace-flicker-core {
  position: absolute;
  inset: 0;
}

.fireplace-flicker-a {
  background:
    radial-gradient(55% 78% at 48% 64%, rgba(255, 190, 110, 0.36) 0%, rgba(255, 122, 54, 0.22) 42%, transparent 78%),
    radial-gradient(34% 52% at 38% 54%, rgba(255, 232, 175, 0.18) 0%, transparent 80%);
  filter: blur(6px);
  animation: fireplaceFlickerA 2.8s ease-in-out infinite;
}

.fireplace-flicker-b {
  background:
    radial-gradient(44% 66% at 58% 56%, rgba(255, 210, 148, 0.18) 0%, rgba(255, 151, 72, 0.12) 48%, transparent 82%);
  filter: blur(10px);
  animation: fireplaceFlickerB 1.9s ease-in-out infinite;
}

.fireplace-flicker-core {
  background:
    radial-gradient(26% 34% at 50% 66%, rgba(255, 238, 196, 0.3) 0%, rgba(255, 195, 121, 0.16) 44%, transparent 84%);
  filter: blur(3px);
  animation: fireplaceCorePulse 1.4s ease-in-out infinite;
}

.lounge-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, 0.12) 0%, rgba(6, 6, 8, 0.3) 55%, rgba(6, 6, 8, 0.46) 100%);
}

.lounge-room-shell {
  position: absolute;
  inset: 30px 30px 84px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(218, 192, 143, 0.12);
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.18) 0%, rgba(10, 10, 12, 0.1) 100%);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 4;
  overflow: auto;
}

.lounge-room-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: start;
  gap: 18px;
}

.lounge-room-head h1 {
  margin: 0;
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.lounge-presence-panel {
  position: absolute;
  top: 26px;
  right: 24px;
  width: 188px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.16) 0%, rgba(12, 12, 16, 0.08) 100%);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  z-index: 5;
}

.lounge-presence-title {
  margin: 0 0 10px;
  color: rgba(214, 206, 191, 0.66);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lounge-presence-list {
  display: grid;
  gap: 8px;
}

.lounge-presence-user {
  color: rgba(240, 234, 224, 0.78);
  font-size: 0.88rem;
  line-height: 1.35;
}

.lounge-presence-user.is-creator {
  color: rgba(240, 234, 224, 0.78);
  font-weight: 400;
}

.lounge-chat-log {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: auto;
  min-height: 0;
  padding-right: 214px;
  margin-bottom: 0;
}

.lounge-chat-log p {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  max-width: min(560px, 92%);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.28);
  color: #eee6da;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.lounge-chat-log strong {
  color: #f5efe6;
}

.lounge-chat-log p.lounge-chat-system {
  color: #ff4d5d;
  font-weight: 700;
}

.lounge-chat-log p.lounge-chat-system strong {
  color: #ff4d5d;
  font-weight: 800;
}

.lounge-chat-log p span {
  min-width: 0;
}

.lounge-chat-delete {
  border: 1px solid rgba(218, 192, 143, 0.28);
  background: rgba(17, 14, 13, 0.45);
  color: #d8c29a;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}

.lounge-chat-delete:disabled {
  opacity: 0.55;
  cursor: wait;
}

.lounge-chat-send {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  justify-content: stretch;
  padding-right: 214px;
}

.lounge-chat-send input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 11, 0.28);
  backdrop-filter: blur(8px);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
}

.lounge-chat-send button {
  border: 1px solid rgba(218, 192, 143, 0.48);
  background: linear-gradient(180deg, rgba(28, 21, 18, 0.88) 0%, rgba(19, 15, 14, 0.94) 100%);
  color: #f0e8da;
  padding: 13px 18px;
  border-radius: 14px;
}


.lounge-fireplace > .resize-grip {
  right: 14px;
  bottom: calc(var(--lounge-bottom-line-offset) + 6px);
}

@keyframes fireplaceFlickerA {
  0%, 100% { opacity: 0.34; transform: translate3d(0, 0, 0) scale(0.98, 0.98); }
  22% { opacity: 0.48; transform: translate3d(1px, -1px, 0) scale(1.04, 1.08); }
  46% { opacity: 0.39; transform: translate3d(-1px, 1px, 0) scale(0.99, 1.02); }
  74% { opacity: 0.56; transform: translate3d(1px, -2px, 0) scale(1.03, 1.1); }
}

@keyframes fireplaceFlickerB {
  0%, 100% { opacity: 0.2; transform: translate3d(0, 0, 0) scale(1); }
  28% { opacity: 0.34; transform: translate3d(-1px, 1px, 0) scale(1.02, 1.06); }
  61% { opacity: 0.16; transform: translate3d(1px, -1px, 0) scale(0.98, 1); }
  84% { opacity: 0.28; transform: translate3d(0, 1px, 0) scale(1.01, 1.04); }
}

@keyframes fireplaceCorePulse {
  0%, 100% { opacity: 0.18; transform: scale(0.98); }
  35% { opacity: 0.3; transform: scale(1.04); }
  68% { opacity: 0.22; transform: scale(1); }
}

.messages-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}

.messages-layout.is-single-thread {
  grid-template-columns: minmax(0, 1fr);
}

.messages-list {
  align-self: start;
  padding: 18px;
}

.messages-list-head {
  margin-bottom: 14px;
}

.messages-kicker {
  margin: 0 0 8px;
  color: #d8c29a;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.messages-list h2,
.messages-thread h1 {
  margin: 0;
}

.msg-user {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.88) 0%, rgba(13, 13, 18, 0.96) 100%);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.msg-user:hover {
  border-color: rgba(216, 194, 154, 0.35);
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.92) 0%, rgba(14, 14, 20, 0.98) 100%);
  transform: translateY(-1px);
}

.msg-user-name {
  display: block;
  color: #f1eadf;
  font-weight: 600;
}

.msg-user.active {
  border-color: rgba(208, 31, 43, 0.72);
  box-shadow: 0 0 0 1px rgba(208, 31, 43, 0.18) inset;
}

.messages-thread {
  display: flex;
  flex-direction: column;
  min-height: 680px;
  padding: 22px;
}

.messages-thread.is-single-thread {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 620px;
  padding: 24px 28px;
}

.messages-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.messages-thread-note {
  margin: 0;
  text-align: right;
}

.messages-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
  max-height: 560px;
  overflow: auto;
  padding: 18px 4px 12px 0;
}

.messages-thread.is-single-thread .messages-log {
  min-height: 420px;
  max-height: 620px;
  padding-right: 6px;
}

.message-bubble {
  width: min(78%, 640px);
  padding: 14px 16px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 17, 23, 0.92) 0%, rgba(11, 11, 16, 0.98) 100%);
}

.messages-thread.is-single-thread .message-bubble {
  width: min(72%, 760px);
}

.message-bubble.is-own {
  align-self: flex-end;
  border-color: rgba(198, 170, 110, 0.3);
  background: linear-gradient(180deg, rgba(37, 30, 23, 0.9) 0%, rgba(19, 16, 13, 0.98) 100%);
}

.message-bubble.is-other {
  align-self: flex-start;
}

.message-bubble-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.message-bubble-meta strong {
  color: #f3ede2;
  font-size: 0.94rem;
}

.message-bubble-meta span {
  color: rgba(235, 229, 220, 0.56);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.message-bubble p {
  margin: 0;
  color: #ece4d8;
  line-height: 1.5;
  white-space: pre-wrap;
}

.messages-empty-state {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 240px;
  border: 1px dashed rgba(216, 194, 154, 0.16);
  border-radius: 18px;
  background: rgba(10, 10, 14, 0.32);
  text-align: center;
}

.messages-empty-state p,
.messages-empty-state span {
  margin: 0;
}

.messages-empty-state p {
  color: #efe5d4;
  font-size: 1rem;
}

.messages-empty-state span {
  color: rgba(235, 229, 220, 0.58);
  font-size: 0.9rem;
}

.messages-compose {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.messages-thread.is-single-thread .messages-compose {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.messages-compose-field {
  display: grid;
  gap: 8px;
}

.messages-compose-field span {
  color: rgba(235, 229, 220, 0.8);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.messages-compose-field textarea {
  min-height: 110px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 14, 0.94);
  color: #f4ecdf;
  padding: 14px 15px;
  line-height: 1.5;
}

.messages-thread.is-single-thread .messages-compose-field textarea {
  min-height: 96px;
}

.messages-compose-actions {
  display: flex;
  justify-content: flex-end;
}

.analytics-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.analytics-card {
  border: 1px solid #373543;
  border-radius: 10px;
  padding: 10px;
  background: #101015;
}

.analytics-label {
  margin: 0 0 4px;
  color: #b8b2a7;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.analytics-value {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 700;
}

.site-legal-footer {
  width: min(1080px, 92vw);
  margin: 28px auto 34px;
  padding: 18px 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(235, 229, 220, 0.7);
  text-align: center;
}

.site-legal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
}

.site-legal-footer-links a {
  color: #f2ede4;
  text-decoration: none;
}

.site-legal-footer-links a:hover {
  color: #d8c29a;
}

.site-legal-footer-copy {
  margin: 12px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(216, 194, 154, 0.52);
}

.legal-page {
  width: min(980px, 92vw);
  margin: 26px auto 0;
}

.legal-card {
  padding: 28px 30px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 19, 23, 0.92) 0%, rgba(13, 12, 17, 0.96) 100%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.legal-kicker {
  margin: 0 0 10px;
  color: rgba(216, 194, 154, 0.9);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.legal-card h1 {
  margin: 0 0 10px;
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.legal-intro {
  margin: 0 0 24px;
  color: rgba(238, 232, 223, 0.78);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 760px;
}

.legal-section + .legal-section {
  margin-top: 26px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8c29a;
}

.legal-section p,
.legal-section li {
  color: rgba(238, 232, 223, 0.86);
  line-height: 1.7;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-section a {
  color: #f2ede4;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  max-width: 720px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(238, 232, 223, 0.9);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.3);
  color: #f3ede5;
  padding: 13px 14px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  justify-self: start;
  border: 1px solid rgba(218, 192, 143, 0.4);
  background: linear-gradient(180deg, rgba(28, 21, 18, 0.88) 0%, rgba(19, 15, 14, 0.94) 100%);
  color: #f0e8da;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.support-request-list {
  display: grid;
  gap: 12px;
}

.support-request-card {
  border: 1px solid #373543;
  border-radius: 14px;
  padding: 14px 16px;
  background: #101015;
}

.support-request-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.support-request-type {
  margin: 0;
  color: #d8c29a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.moderation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.moderation-card {
  border: 1px solid #373543;
  border-radius: 16px;
  background: #101015;
  padding: 16px;
}

.moderation-card h3,
.moderation-list h3 {
  margin-top: 0;
}

.moderation-form {
  display: grid;
  gap: 12px;
}

.moderation-form label {
  display: grid;
  gap: 6px;
}

.moderation-form span {
  color: #d8c29a;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.moderation-form input,
.moderation-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(9, 9, 11, 0.3);
  color: #f3ede5;
  padding: 12px 13px;
  font: inherit;
}

.moderation-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.moderation-inline-form input {
  min-width: 0;
}

.moderation-token-list,
.moderation-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.moderation-token,
.moderation-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #373543;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
}

.moderation-token button,
.moderation-entry button {
  border: 1px solid rgba(218, 192, 143, 0.35);
  background: transparent;
  color: #f0e8da;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .site-header { padding: 12px 14px; }
  nav { gap: 10px; }
  .container { width: 94vw; margin-top: 14px; }
  .landing-home .container { width: 92vw; }
  .landing-figure {
    position: static;
    width: min(72vw, 320px);
    margin: 18px auto 0;
  }
  .landing-activity-block {
    position: static;
    width: auto;
    margin: 18px 0 0;
  }
  .landing-dice { gap: 12px; }
  .auth-panel { padding: 18px; }
  .messages-layout { grid-template-columns: 1fr; }
  .messages-thread {
    min-height: 0;
  }
  .messages-thread-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .messages-thread-note {
    text-align: left;
  }
  .message-bubble {
    width: 100%;
  }
  .chat-send { grid-template-columns: 1fr; }
  .analytics-row { grid-template-columns: 1fr 1fr; }
  .moderation-grid { grid-template-columns: 1fr; }
  .moderation-inline-form { grid-template-columns: 1fr; }
  .tips-received-grid { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
  .live-chat-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .live-room-presence-tab {
    align-items: flex-start;
    flex-direction: column;
  }
  .live-room-presence-menu {
    left: 0;
    right: auto;
  }
  .lounge-stage { min-height: auto; }
  .lounge-fireplace { height: 560px; }
  .lounge-room-shell {
    inset: 16px 16px 72px;
    padding: 18px;
  }
  .lounge-room-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .lounge-presence-panel {
    position: static;
    width: auto;
    margin-bottom: 10px;
  }
  .lounge-chat-log {
    padding-right: 0;
  }
  .lounge-chat-send {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .site-legal-footer {
    width: 94vw;
    margin-top: 22px;
    padding: 16px 0 0;
  }
  .legal-page {
    width: 94vw;
  }
  .legal-card {
    padding: 22px 18px 26px;
    border-radius: 18px;
  }
  .live-broadcast-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .live-control-actions {
    width: 100%;
    justify-content: space-between;
  }
  .broadcast-inline-btn {
    align-self: flex-end;
  }
  .live-right { min-height: 520px; }
}
