/* ber: a glossy turn-of-the-millennium game-box page, in red. Maroon outlines, cream paper, honey yellow for speech. */
:root {
  --ink: #4a0010; --red: #ff2d2d; --red-d: #b80018; --red-l: #ff8a7a; --coral: #ffc2b8; --cream: #fff6ee; --paper: #ffffff;
  --honey: #ffd84a; --honey-d: #d99a00; --line: #ffb3a6; --text: #3a0a12;
  --ui: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Trebuchet MS", system-ui, sans-serif;
  --display: "Dela Gothic One", Impact, "Arial Black", sans-serif;
  --pad: max(16px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font: 500 15px/1.55 var(--ui); background: var(--ink); height: 100dvh; overflow: hidden; display: grid; grid-template-rows: 44px auto minmax(0, 1fr); cursor: url("art/cursor.png") 0 0, default; overflow-x: hidden; }
button, input { font: inherit; color: inherit; cursor: inherit; }
img, video { max-width: 100%; }
a { color: var(--red-d); }

/* ---------- glossy pieces ---------- */
.menubar, .titlebar, .btn, .btn98, .mini98 { position: relative; }
.menubar::before, .titlebar::before, .btn::before, .btn98::before, .mini98::before {
  content: ""; position: absolute; left: 3px; right: 3px; top: 2px; height: 46%; border-radius: inherit; pointer-events: none; background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.06)); }
.btn, .btn98, .mini98 { display: inline-block; overflow: hidden; background: linear-gradient(#fff3b0, var(--honey) 55%, #f2b400); color: var(--ink); font-weight: 800; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 rgba(74,0,16,.35); padding: 3px 14px; font-size: 13px; text-decoration: none; }
.btn.big { padding: 9px 22px; font-size: 16px; box-shadow: 0 0 0 2px #fff, 0 6px 0 rgba(74,0,16,.35); }
.btn.alt { background: linear-gradient(#fff, #ffe4de 55%, var(--coral)); }
.mini98 { padding: 1px 12px; font-size: 12px; }
.btn:hover { filter: brightness(1.06); }
.btn:active, .btn98:active, .mini98:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(74,0,16,.35); }
.btn98:disabled { color: #a88; background: linear-gradient(#fff, #f3e4e0); }
.btn98[hidden] { display: none; }
.btn98.hot { background: linear-gradient(#ffb0a6, #ff5a4a 55%, #e02a1c); color: #fff; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }

/* ---------- top bar ---------- */
.menubar { z-index: 30; height: 44px; display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); white-space: nowrap; color: #fff; font-weight: 700;
  background: linear-gradient(#ff7a6a, var(--red) 55%, var(--red-d)); border-bottom: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(255,255,255,.6); }
.logo { font: 400 21px/1 var(--display); color: var(--honey); text-decoration: none; text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); transform: skewX(-8deg); z-index: 1; }
.menubar nav { display: flex; gap: 2px; overflow: hidden; z-index: 1; }
.menubar nav a { padding: 4px 11px; border-radius: 999px; color: #fff; text-decoration: none; text-shadow: 0 1px 0 var(--ink); }
.menubar nav a:hover { background: rgba(255,255,255,.28); }
.menubar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; z-index: 1; text-shadow: 0 1px 0 var(--ink); }
.menubar .down { padding: 1px 10px; border-radius: 999px; background: #fff; color: var(--red-d); border: 2px solid var(--ink); font-size: 12px; text-shadow: none; }

/* ---------- hero: the box art ---------- */
.scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(#d1001c 0%, #ff3b30 24%, #ff8a7a 54%, #ffd9cf 78%, #fff3ec 100%); }
.rainbow { position: absolute; left: 62%; bottom: 10%; width: 124vw; height: 62vw; transform: translateX(-50%); opacity: .9; filter: blur(1.5px);
  background: radial-gradient(circle 62vw at 50% 100%, transparent 0 73.5%, #fff 74% 77%, #ffe08a 77.3% 80.3%, #ffb24a 80.6% 83.6%, #ff7ab0 83.9% 86.9%, #ff5a4a 87.2% 90.2%, #c9002c 90.5% 93.5%, transparent 94%); }
.cloud { position: absolute; width: 340px; height: 110px; border-radius: 999px; background: #fff; opacity: .92; box-shadow: 70px -42px 0 -8px #fff, 150px -24px 0 -14px #fff, 220px 8px 0 -22px #fff, -40px 14px 0 -24px #fff; animation: drift 70s linear infinite; }
.c1 { top: 10%; left: 34%; transform: scale(.8); } .c2 { top: 34%; left: 78%; transform: scale(.6); animation-duration: 95s; opacity: .85; } .c3 { top: 6%; left: 84%; transform: scale(.45); animation-duration: 120s; opacity: .8; }
@keyframes drift { from { translate: -6vw 0; } to { translate: 10vw 0; } }
#skyline { position: absolute; left: 0; right: 0; bottom: 11%; width: 100%; height: 34%; opacity: .95; }
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 13%; background: linear-gradient(#ff5a4a, #c9002c); border-top: 4px solid #fff; }
.sea::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.25) 0 2px, transparent 2px 16px), repeating-linear-gradient(100deg, rgba(255,255,255,.2) 0 2px, transparent 2px 64px); }
.crash { position: absolute; left: 36%; top: 6%; width: 56%; height: 74%; filter: drop-shadow(8px 10px 0 rgba(74,0,16,.3)); }
.hero img { display: block; height: 100%; width: auto; max-width: none; } .hero .talk { position: absolute; inset: 0; opacity: 0; } 
.hero { position: absolute; left: 70%; bottom: 5%; height: min(64%, 480px); width: auto; translate: -50% 0; filter: drop-shadow(0 0 0 #fff) drop-shadow(8px 10px 0 rgba(74,0,16,.3)); animation: bob 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012, 1.028); } }
.spark { position: absolute; width: 26px; height: 26px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 2.6s ease-in-out infinite; }
.s1 { left: 6%; top: 14%; } .s2 { left: 44%; top: 9%; scale: .7; animation-delay: .5s; } .s3 { left: 58%; top: 30%; animation-delay: 1s; } .s4 { left: 92%; top: 22%; scale: .6; animation-delay: 1.4s; } .s5 { left: 30%; top: 62%; scale: .5; animation-delay: .9s; } .s6 { left: 86%; top: 60%; scale: .8; animation-delay: 1.9s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(18deg); } }

.wordmark { margin: 0; }
.wordmark svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(6px 7px 0 rgba(74,0,16,.3)); }
.wordmark .st, .star path { fill: var(--honey); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; paint-order: stroke; }
.tag { margin: -4px 0 6px 8%; font: italic 800 clamp(17px, 2.4vw, 30px)/1 var(--ui); letter-spacing: .02em; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.kana { display: inline-block; margin: 0 0 0 8%; padding: 1px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); color: var(--red-d); font-weight: 800; font-size: 13px; }
.pitch { margin: 16px 0 16px 8%; max-width: 30ch; padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: linear-gradient(#fffbe0, var(--honey)); border: 2px solid var(--ink); font-weight: 700; box-shadow: 0 0 0 2px #fff; }
.cta { margin: 0 0 0 8%; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--ink); color: #fff; border-bottom: 2px solid var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap; }
.ticker div { display: inline-block; padding: 6px 0; animation: tick 60s linear infinite; }
.ticker b { margin-left: 28px; color: var(--honey); } .ticker i { font-style: normal; color: var(--red-l); margin: 0 10px 0 6px; } .ticker span { opacity: .8; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- chat and voice (the rows inside are built by the shared scripts) ---------- */
.panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--paper); color: var(--text); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 0 0 2px #fff, 7px 9px 0 rgba(74,0,16,.3); }
.titlebar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 14px; color: #fff; font-weight: 800; background: linear-gradient(#ff7a6a, var(--red) 55%, var(--red-d)); border-bottom: 2px solid var(--ink); border-radius: 17px 17px 0 0; text-shadow: 0 1px 0 var(--ink); }
.titlebar > * { position: relative; }
.statusbar { flex: none; padding: 3px 14px; font-size: 12px; font-weight: 700; color: #8a4a55; border-top: 2px solid var(--line); background: #fff1ec; }
.statusbar:has(#chatStatus:empty) { display: none; }   /* the bar only appears when there is something to say, like an error */
.forum, .lobby-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.forum-scroll, .roster { flex: 1; min-height: 0; overflow-y: auto; background: linear-gradient(#fff, #fff6f2); padding: 8px; }
.post { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px; margin-bottom: 6px; align-items: start; }
.post-who { padding: 4px 2px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; overflow-wrap: anywhere; font-size: 12px; }
.post-who b { color: var(--red-d); font-weight: 800; }
.post-time { font-size: 11px; color: #a8707a; }
.post-text { padding: 5px 10px; overflow-wrap: anywhere; border-radius: 4px 14px 14px 14px; background: linear-gradient(#fffbe0, var(--honey)); border: 2px solid var(--honey-d); }
.post-empty, .lobby-note { padding: 12px; color: #a8707a; font-style: italic; }
.reply { flex: none; display: flex; gap: 6px; padding: 8px; border-top: 2px solid var(--line); background: #fff1ec; }
.reply input, .name-input { flex: 1; min-width: 0; width: 100%; padding: 4px 12px; font-size: 16px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; outline: 0; }
.reply input:focus, .name-input:focus { box-shadow: 0 0 0 3px var(--honey); }
#chatMe { max-width: 60%; overflow: hidden; text-overflow: ellipsis; text-decoration: underline; font-size: 12px; }
.player { display: flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 30px; margin-bottom: 4px; border-radius: 999px; background: #fff; border: 2px solid var(--line); }
.player.talking { background: linear-gradient(#fffbe0, var(--honey)); border-color: var(--honey-d); }
.player.me .tag { color: var(--red-d); font-weight: 800; }
.player .icon { flex: none; width: 18px; text-align: center; }
.player .lvl { flex: none; width: 20px; text-align: right; color: #a8707a; }
.player .tag { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .acts { flex: none; display: flex; gap: 3px; }
.lobby-bar { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-top: 2px solid var(--line); background: #fff1ec; }
.name-gate { position: absolute; inset: 0; z-index: 5; display: flex; padding: 8px; background: rgba(209,0,28,.4); backdrop-filter: blur(3px); overflow: auto; }
.name-gate[hidden] { display: none; }
.name-box { width: 100%; max-width: 270px; margin: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 0 0 2px #fff, 4px 5px 0 rgba(74,0,16,.3); }
.name-head { color: var(--red-d); font-weight: 800; }
.name-btns { display: flex; justify-content: flex-end; gap: 6px; }
.name-line { font-size: 12px; overflow-wrap: anywhere; }
.name-line.bad { color: var(--red-d); font-weight: 800; }

/* ---------- the one screen ---------- */
.stage { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; padding: 22px max(var(--pad), 2vw) 26px max(56px, 4vw); }
.stage > :not(.scene) { position: relative; z-index: 2; min-height: 0; }
.left { display: flex; flex-direction: column; align-items: flex-start; }
.wordmark { width: min(100%, 44vh); } .wordmark svg { width: 100%; }
.soon { padding: 2px 11px; border-radius: 999px; background: rgba(74,0,16,.35); font-size: 12px; z-index: 1; }
.menubar nav { gap: 8px; }
.facts.card { margin: 0 0 0 8%; padding: 10px 16px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 0 0 2px #fff, 5px 6px 0 rgba(74,0,16,.3); }
.facts dt { color: var(--red-d); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; padding-top: 3px; }
.facts dd { margin: 0; }
.pitch { max-width: 34ch; }
.right-col { position: absolute !important; inset: 0; pointer-events: none; }
.right-col .panel { position: absolute; right: max(var(--pad), 2vw); width: 292px; pointer-events: auto; font-size: 13px; }
#shoutbox { top: 20px; height: min(340px, 60%); }
#lobby { bottom: 22px; height: min(236px, 40%); }
.titlebar { cursor: grab; user-select: none; touch-action: none; }
.panel.dragging { box-shadow: 0 0 0 2px #fff, 12px 16px 0 rgba(74,0,16,.3); } .panel.dragging .titlebar { cursor: grabbing; }
.titlebar .name::before { content: "⠿ "; opacity: .7; }
.name-box { padding: 9px 12px; gap: 5px; } .name-gate { padding: 4px; }
.post { grid-template-columns: 70px minmax(0, 1fr); }

.live { position: absolute; left: 14px; top: -13px; display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; background: var(--red); color: #fff; border: 2px solid #fff; font-weight: 800; font-size: 12px; letter-spacing: .06em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.news-name { position: absolute; left: 82px; top: -13px; padding: 1px 12px; border-radius: 999px; background: var(--honey); color: var(--ink); border: 2px solid var(--ink); font: 400 12px/1.6 var(--display); transform: skewX(-8deg); }
.snd { position: absolute; right: 12px; top: -15px; width: 30px; height: 26px; padding: 0; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font-size: 13px; line-height: 1; }



/* scene tuned for the three columns */
.rainbow { left: 50%; }
.crash { left: 31%; top: 5%; width: 40%; height: 66%; }
.hero { left: 51%; bottom: 13%; height: min(60%, 500px); transform-origin: 50% 100%; }
.c1 { left: 40%; }

/* ---------- side menu ---------- */
.side-text { position: absolute !important; left: 4px; top: 0; bottom: 0; writing-mode: vertical-rl; rotate: 180deg; text-align: center; font: 400 38px/1 var(--display); letter-spacing: .04em; color: rgba(255,255,255,.2); pointer-events: none; white-space: nowrap; overflow: hidden; }
.left .tag { margin-left: 4%; font-size: clamp(15px, 1.5vw, 21px); -webkit-text-stroke-width: 5px; }
.menu { display: grid; gap: 7px; width: 100%; margin-top: 18px; }
.menu button { position: relative; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; padding: 4px 14px 4px 4px; border: 0; background: none; text-align: left; font: 800 18px/1.2 var(--ui); color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; transition: translate .12s; }
.menu .ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); border: 2px solid #fff; color: #fff; box-shadow: 2px 3px 0 rgba(74,0,16,.3); }
.menu svg { width: 18px; height: 18px; fill: currentColor; }
.menu button:hover { translate: 4px 0; }
.menu [aria-current="true"] { width: calc(100% + 14px); padding-right: 34px; color: var(--ink); -webkit-text-stroke: 0; filter: drop-shadow(0 0 0 #fff) drop-shadow(4px 5px 0 rgba(74,0,16,.3)); }
.menu [aria-current="true"]::before { content: ""; position: absolute; inset: -3px 0 -3px -4px; z-index: -1; background: linear-gradient(#fffbe0, var(--honey) 55%, #f2b400); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%); border-radius: 12px 0 0 12px; }
.menu [aria-current="true"] .ico { background: var(--red); }
.menu .state { margin-left: 2px; padding: 0 8px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); color: var(--red-d); font: 800 11px/1.5 var(--ui); -webkit-text-stroke: 0; }
.menu .go { font-style: normal; font-size: 11px; color: var(--honey); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.menu .state::before { content: "off"; } .menu [aria-pressed="true"] .state { background: var(--honey); color: var(--ink); } .menu [aria-pressed="true"] .state::before { content: "on"; }

/* ---------- the middle panel: pfp maker and about ---------- */
.view { grid-column: 2; margin-right: 312px; display: flex; flex-direction: column; min-width: 0; padding: 16px 20px 18px; background: rgba(255,255,255,.93); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 0 0 2px #fff, 7px 9px 0 rgba(74,0,16,.3); }
.view[hidden] { display: none; }
.view-title { margin: 0 0 12px; font: 400 clamp(22px, 2.6vw, 32px)/1 var(--display); color: var(--red); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; transform: skewX(-8deg); transform-origin: left; }

.pfp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 20px; }
.pfp-preview { min-height: 0; min-width: 0; display: grid; place-items: center; container-type: size; }
#pfpCanvas { display: block; width: min(100cqw, 100cqh); height: auto; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 0 0 2px #fff, 5px 6px 0 rgba(74,0,16,.3); background: var(--coral); transition: opacity .15s; }
.pfp-preview.busy #pfpCanvas { opacity: .75; }
.pfp-side { min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.pfp-rows { display: grid; gap: 7px; }
.pfp-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 2px 5px; align-items: center; }
.pfp-row label { grid-column: 1 / -1; font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-d); line-height: 1; }
.pfp-row select { width: 100%; min-width: 0; height: 30px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 700 14px var(--ui); color: var(--ink); text-align: center; text-align-last: center; }
.step { height: 30px; padding: 0; border: 2px solid var(--ink); border-radius: 999px; background: linear-gradient(#fff, #ffe4de 55%, var(--coral)); color: var(--red-d); font-size: 11px; }
.step:active { transform: translateY(1px); }
.pfp-note { margin: 0; min-height: 1.3em; font-size: 12px; font-style: italic; color: #a8707a; }
.pfp-btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; } .pfp-btns .btn { padding: 6px 16px; font-size: 14px; }
.portrait { width: clamp(110px, 14vw, 170px); aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 0 0 2px #fff, 4px 5px 0 rgba(74,0,16,.3); overflow: hidden; background: radial-gradient(circle at 50% 30%, #fff, #ffc2b8 70%, #ff8a7a); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.about-body .facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; align-content: center; margin: 0; }
.view#about { align-self: start; }
.about-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-content: start; }
.about-body .pitch { grid-column: 1 / -1; margin: 0; max-width: none; }
.x { position: relative; width: 22px; height: 22px; margin-left: 6px; padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--red-d); font: 800 14px/1 var(--ui); }
.titlebar .name { margin-right: auto; }
.right-col .panel:not(.open) { display: none; }

.view.home[hidden] { display: none; }
.view.home.dragging { cursor: grabbing; box-shadow: 0 0 0 4px #fff, 14px 18px 0 4px rgba(74,0,16,.3); }
@media (max-width: 820px) { .view.home { cursor: default; touch-action: auto; translate: none !important; } }

/* the page background: plain red with a soft glow and a scatter of faint stars */
.scene { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220'%3E%3Cg fill='%23fff'%3E%3Cpath opacity='.26' d='M40 30l4 9 10 1-7.500 7 2 10-8.500-5-8.500 5 2-10-7.500-7 10-1z'/%3E%3Cpath opacity='.15' d='M190 120l3 6.500 7 .800-5.300 4.800 1.500 7-6.200-3.600-6.200 3.600 1.500-7-5.300-4.800 7-.800z'/%3E%3Cpath opacity='.2' d='M110 170l2 4.500 5 .500-3.700 3.400 1 4.900-4.300-2.500-4.300 2.500 1-4.900-3.700-3.400 5-.500z'/%3E%3Cpath opacity='.13' d='M225 28l2 4.500 5 .500-3.700 3.400 1 4.900-4.300-2.500-4.300 2.500 1-4.900-3.700-3.400 5-.500z'/%3E%3Ccircle opacity='.15' cx='140' cy='70' r='2.500'/%3E%3Ccircle opacity='.13' cx='30' cy='150' r='2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 430px 364px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220'%3E%3Cg fill='%23fff'%3E%3Cpath opacity='.26' d='M40 30l4 9 10 1-7.500 7 2 10-8.500-5-8.500 5 2-10-7.500-7 10-1z'/%3E%3Cpath opacity='.15' d='M190 120l3 6.500 7 .800-5.300 4.800 1.500 7-6.200-3.600-6.200 3.600 1.500-7-5.300-4.800 7-.800z'/%3E%3Cpath opacity='.2' d='M110 170l2 4.500 5 .500-3.700 3.400 1 4.900-4.300-2.500-4.300 2.500 1-4.900-3.700-3.400 5-.500z'/%3E%3Cpath opacity='.13' d='M225 28l2 4.500 5 .500-3.700 3.400 1 4.900-4.300-2.500-4.300 2.500 1-4.900-3.700-3.400 5-.500z'/%3E%3Ccircle opacity='.15' cx='140' cy='70' r='2.500'/%3E%3Ccircle opacity='.13' cx='30' cy='150' r='2'/%3E%3C/g%3E%3C/svg%3E") 150px 90px / 290px 245px, radial-gradient(ellipse at 50% 45%, #ff6a5c, #f0323a 55%, #d81e2c) !important; }
.scene > * { display: none !important; }

/* ---------- home: ber news, framed like a TV news broadcast ---------- */
.view.home { --chat: 312px; position: relative; align-self: center; justify-self: center; width: min(100% - var(--chat), 432px); cursor: grab; touch-action: none; user-select: none; min-width: 0; aspect-ratio: 1000 / 813; max-height: 100%; padding: 0; overflow: hidden; display: flex; flex-direction: column; border-width: 3px; border-radius: 18px; box-shadow: 0 0 0 4px #fff, 9px 12px 0 4px rgba(74,0,16,.3); container-type: inline-size; background: #0a1c4e; }
.shot { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.news-bg, .avatar, .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar img + img { opacity: 0; }
.avatar[data-m="1"] .f1, .avatar[data-m="2"] .f2, .avatar[data-m="3"] .f3 { opacity: 1; }
.home .live { position: absolute; left: 0; top: 0; padding: .9cqw 2.2cqw; border: 0; border-radius: 0; background: #c8102e; color: #fff; font: 800 3.4cqw/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .02em; }
.home .snd { position: absolute; right: 2cqw; top: 2cqw; width: 30px; height: 26px; font-size: 13px; }
.says { position: absolute; left: 3%; width: 46%; bottom: 15%; margin: 0; text-align: left; pointer-events: none; }
#berSays { padding: .5cqw 1.6cqw; background: rgba(0,0,0,.78); color: #fff; font: 600 clamp(13px, 3.1cqw, 22px)/1.5 "Fredoka", var(--ui); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
#berSays:empty { display: none; }
.headline { flex: none; margin: 0; height: 9.2cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 0 2.4cqw; background: linear-gradient(#fff, #e4e4e8); }
#newsLine { font: 400 clamp(13px, 4cqw, 30px)/1.08 "Anton", Impact, "Arial Narrow", sans-serif; color: #101014; opacity: 0; transition: opacity .3s; }
.headline b { font: 400 clamp(13px, 4cqw, 30px)/1.08 "Anton", Impact, "Arial Narrow", sans-serif; }
#newsLine.in { opacity: 1; }
.headline b { flex: none; color: #101014; }
.crawl { flex: none; margin: 0; display: flex; height: 5.4cqw; background: #ffd400; color: #111; font: 800 2.9cqw/5.4cqw "Arial Narrow", Arial, sans-serif; white-space: nowrap; }
.crawl time { flex: none; padding: 0 1.8cqw; background: #101014; color: #fff; font-size: 2.3cqw; }
.crawl span { flex: 1; overflow: hidden; } .crawl i { display: inline-block; font-style: normal; animation: tick 40s linear infinite; }

/* ---------- voice: the 3D campfire fills the stage behind the menu ---------- */
.camp { position: absolute !important; inset: 0; z-index: 1 !important; background: #04050b; }
.camp[hidden] { display: none; }
#campCanvas { display: block; width: 100%; height: 100%; }
.camp-grain { position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); box-shadow: inset 0 0 180px 40px #000; }
.camp-names { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.camp-name { position: absolute; left: 0; top: 0; padding: 1px 10px; border-radius: 999px; background: rgba(4,5,11,.7); border: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.camp-name.show { opacity: 1; } .camp-name.me { border-color: var(--honey); color: var(--honey); }
.camp-hud { position: absolute; left: calc(300px + max(56px, 4vw) + 40px); bottom: 26px; margin: 0; display: grid; font: 700 15px/1.35 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px #000; pointer-events: none; }
.vc { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; pointer-events: none; }
.vc[hidden] { display: none; }
.vc .lobby-bar { pointer-events: auto; flex: none; align-items: center; justify-content: center; gap: 8px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 0 0 2px #fff, 5px 6px 0 rgba(0,0,0,.35); max-width: 100%; }
.vc-count { padding: 1px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; }
.vc-status { font-weight: 700; font-size: 13px; color: var(--text); }
.vc .lobby-body { flex: 1; width: min(100%, 330px); pointer-events: none; }
.vc .name-gate { position: static; padding: 0; background: none; backdrop-filter: none; pointer-events: auto; }
.vc .name-box { max-width: none; box-shadow: 0 0 0 2px #fff, 6px 8px 0 rgba(0,0,0,.4); }
body[data-view="voice"] .scene, body[data-view="voice"] .side-text { display: none; }
body[data-view="voice"] .ticker { background: #04050b; border-color: #04050b; }
.menu .go { display: none; }

@media (max-height: 800px) { .menu { gap: 4px; margin-top: 10px; } .tips p { min-height: 2.9em; } .pfp-rows { gap: 4px; } }
@media (max-height: 640px) { .kana { display: none; } .stage { padding-block: 12px 16px; } .news { min-height: 56px; } .tips { display: none; } }
@media (max-width: 1180px) { .view.home { --chat: 280px; } .hero, .news { left: 54%; } .hero { height: min(46%, 400px); } .news { width: min(400px, 34vw); } .right-col .panel { width: 262px; } .view { margin-right: 280px; } .stage { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); } .pfp-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; } .pfp-rows { grid-template-columns: 1fr 1fr; gap: 4px 10px; } }
@media (max-width: 820px) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; padding: 10px var(--pad) 12px; }
  .view.home { --chat: 0px; } .side-text { display: none; } .camp-hud { left: var(--pad); bottom: 12px; font-size: 13px; } .vc { grid-column: 1; grid-row: 2 / -1; } .vc .lobby-bar { flex-wrap: wrap; border-radius: 18px; }
  .left { width: 100%; } .wordmark { width: 52%; } .left .tag { margin: -2px 0 0 2%; font-size: 14px; }
  .menu { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
  .menu button, .menu [aria-current="true"] { flex: none; width: auto; padding: 3px 9px 3px 3px; gap: 5px; font-size: 13px; color: #fff; -webkit-text-stroke: 0; filter: none; border-radius: 999px; background: rgba(74,0,16,.75); border: 2px solid #fff; }
  .menu [aria-current="true"] { background: var(--honey); color: var(--ink); border-color: var(--ink); } .menu [aria-current="true"]::before { content: none; }
  .menu .ico { width: 22px; height: 22px; border-radius: 50%; border: 0; box-shadow: none; } .menu svg { width: 13px; height: 13px; } .menu button:hover { translate: none; }
  .hero { left: 79%; top: 1dvh; bottom: auto; height: 21dvh; } body:not([data-view="home"]) .hero { display: block; } .crash { left: 40%; top: 0; bottom: auto; width: 62%; height: 22dvh; }

  .right-col { position: absolute !important; inset: auto var(--pad) 12px var(--pad); height: 56%; z-index: 6 !important; pointer-events: none; }
  .right-col .panel { position: static; width: auto; height: 100% !important; pointer-events: auto; box-shadow: 0 0 0 2px #fff, 4px 5px 0 rgba(74,0,16,.3); }
  .titlebar { cursor: default; } .titlebar .name::before { content: none; }
  .view { grid-column: 1; grid-row: 2 / -1; margin-right: 0; padding: 12px; } .view-title { font-size: 20px; margin-bottom: 8px; -webkit-text-stroke-width: 5px; }
  .pfp-rows { grid-template-columns: 1fr 1fr; gap: 4px 8px; } .pfp-btns .btn { padding: 4px 12px; font-size: 13px; }
  .soon:nth-child(2), #clock { display: none; } .menubar { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .cloud, .spark, .hero, .avatar, .home-banner div, .ticker div, .live i, .crawl i { animation: none; } #newsLine, .menu button { transition: none; } }
