/* 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: red, with big hazy blossoms, glassy bubbles and sparkles */
.scene { background: #e02a34 url("art/bg.svg") center / cover !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; } }

/* ---------- home: the wall, one big framed board. The livestream sits beside it, under the menu ---------- */
.left { pointer-events: none; } .left > * { pointer-events: auto; }
.wall { grid-column: 2; grid-row: 1; margin-right: 312px; border-width: 3px; border-radius: 24px; box-shadow: 0 0 0 4px #fff, 9px 12px 0 4px rgba(74,0,16,.3); }
body:not([data-view="home"]) .wall { display: none; }
.wall-head { position: relative; flex: none; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 18px; background: linear-gradient(#ff7a6a, var(--red) 55%, var(--red-d)); border-bottom: 3px solid var(--ink); border-radius: 21px 21px 0 0; }
.wall-head::before { content: ""; position: absolute; left: 4px; right: 4px; top: 2px; height: 46%; border-radius: 18px 18px 6px 6px; pointer-events: none; background: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.05)); }
.wall-head > * { position: relative; }
.wall-title { margin: 0; white-space: nowrap; font: 400 24px/1 var(--display); color: var(--honey); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; transform: skewX(-8deg); letter-spacing: .02em; }
.wall-total { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 1px 0 var(--ink); white-space: nowrap; }
#wallAdd { flex: none; padding: 5px 18px; font-size: 14px; box-shadow: 0 0 0 2px #fff, 0 4px 0 rgba(74,0,16,.35); }
.wall-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--red-l) transparent;
  background: radial-gradient(circle, rgba(209,0,28,.13) 1.4px, transparent 1.8px) 0 0 / 22px 22px, linear-gradient(#fff9f3, #ffeae2); }
.wall-board { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 22px; padding: 26px 20px 38px; }
.wall .statusbar:has(#wallMsg:empty) { display: none; }
.wall .statusbar { border-radius: 0 0 21px 21px; }
.wcard { --r: 0deg; --dy: 0px; position: relative; flex: none; rotate: var(--r); translate: 0 var(--dy); color: var(--ink); font-size: 12px; line-height: 1.3; outline-offset: 4px; transition: rotate .15s, scale .15s, opacity .3s; }
.wcard:hover, .wcard:focus-within { rotate: 0deg; scale: 1.05; z-index: 5; }
.wcard.pop { opacity: 0; scale: .85; }
.wcard.note { width: 172px; height: 172px; } .wcard.note.newest { width: 200px; height: 200px; }
.wcard.photo { width: 188px; } .wcard.photo.newest { width: 224px; }
.wcard.voice { width: 214px; height: 136px; } .wcard.voice.newest { width: 236px; height: 146px; }
.wcard.photo .wphoto { flex: none; aspect-ratio: var(--ar, 4 / 3); }
.wcard footer { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; font-size: 12px; }
.wcard footer b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.wcard footer time { flex: none; font-size: 11px; font-weight: 700; opacity: .7; }
.wcard button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.wnew { position: absolute; right: -14px; top: -14px; z-index: 2; padding: 3px 9px 2px; border: 2px solid var(--ink); border-radius: 999px; background: linear-gradient(#fff3b0, var(--honey) 55%, #f2b400); color: var(--ink); font: 400 12px/1 var(--display); rotate: 10deg; box-shadow: 0 0 0 2px #fff, 2px 3px 0 rgba(74,0,16,.3); }
.wmod { position: absolute; left: 50%; bottom: -21px; z-index: 2; translate: -50% 0; display: flex; gap: 4px; }
.wcard .wmod .mini98 { width: auto; padding: 1px 10px; background: linear-gradient(#fff3b0, var(--honey) 55%, #f2b400); border: 2px solid var(--ink); border-radius: 999px; text-align: center; }

/* desktop: the news box lives in the side column, under the menu, sized to the room left there */
@media (min-width: 821px) {
  .stage { grid-template-rows: auto minmax(0, 1fr); } .left { grid-column: 1; grid-row: 1; } .wall { grid-row: 1 / -1; }
  .view.home { grid-column: 1; grid-row: 2; align-self: start; justify-self: start; margin: 4px 0 0; width: min(100%, 432px, max(190px, (100dvh - 448px) * 1.23)); }
}

/* post-it notes, with a strip of tape */
.wcard.note { display: flex; flex-direction: column; gap: 6px; padding: 20px 14px 10px; background: linear-gradient(165deg, rgba(255,255,255,.6), rgba(255,255,255,0) 38%), var(--nc); border: 2px solid var(--ink); border-radius: 3px 3px 18px 3px; box-shadow: 0 0 0 2px #fff, 5px 7px 0 rgba(74,0,16,.3); }
.wcard.note::before, .wcard.photo::before, .wcard.photo::after { content: ""; position: absolute; z-index: 1; width: 74px; height: 22px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 1px 2px rgba(74,0,16,.18); }
.wcard.note::before { left: 50%; top: -12px; translate: -50% 0; rotate: -3deg; }
.wtext { flex: 1; min-height: 0; margin: 0; display: grid; align-content: center; overflow: hidden; overflow-wrap: anywhere; font: 600 var(--fs, 16px)/1.22 "Fredoka", var(--ui); }
.wcard.note footer b { color: var(--red-d); }
:root { --nc: #ffe36a; } .c-honey { --nc: #ffe36a; } .c-cream { --nc: #fff8ef; } .c-coral { --nc: #ffb6a6; } .c-red { --nc: #ff4b3e; } .c-maroon { --nc: #6e0b22; }
.wcard.note.c-red { color: #fff; } .wcard.note.c-red footer b { color: #fff; }
.wcard.note.c-maroon { color: var(--honey); } .wcard.note.c-maroon footer b { color: #fff; } .wcard.note.c-maroon footer time { color: var(--coral); opacity: 1; }
.wcard.note.c-red, .wcard.note.c-maroon { background: linear-gradient(165deg, rgba(255,255,255,.28), rgba(255,255,255,0) 38%), var(--nc); }

/* taped photos */
.wcard.photo { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 7px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 5px 7px 0 rgba(74,0,16,.3); }
.wcard.photo::before { left: -22px; top: 6px; width: 64px; rotate: -38deg; }
.wcard.photo::after { right: -22px; top: 6px; width: 64px; rotate: 38deg; }
.wphoto { overflow: hidden; border-radius: 3px; background: #ffe4de; outline: 1px solid rgba(74,0,16,.2); cursor: zoom-in; }
.wphoto img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.wphoto.broken { background: #ffe4de url("art/ber-small.png") center / 40% no-repeat; } .wphoto.broken img { visibility: hidden; }
.wcap { flex: none; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1.3 "Fredoka", var(--ui); }
.wcard.photo footer b { color: var(--red-d); }

/* voice notes are little cassettes */
.wcard.voice { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px 7px; color: #fff; background: linear-gradient(#ff7a6a, var(--red) 52%, var(--red-d)); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 0 0 0 2px #fff, 5px 7px 0 rgba(74,0,16,.3); }
.wcard.voice::before { content: ""; position: absolute; left: 4px; right: 4px; top: 2px; height: 40%; border-radius: 13px 13px 40% 40% / 13px 13px 12px 12px; pointer-events: none; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0)); }
.wplay { position: relative; flex: 1; display: flex !important; flex-direction: column; gap: 6px; color: inherit; }
.wlabel { display: flex; align-items: center; gap: 8px; padding: 3px 10px; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; }
.wlabel-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1.3 "Fredoka", var(--ui); }
.wdur { flex: none; font-size: 11px; font-weight: 800; color: var(--red-d); }
.wdeck { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: var(--ink); border: 2px solid #fff; border-radius: 999px; }
.reel { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); box-shadow: 0 0 0 2px #fff;
  background: radial-gradient(circle, var(--ink) 0 4px, #fff 4.5px 7px, transparent 7.5px), repeating-conic-gradient(#fff 0 22deg, #ffc2b8 22deg 60deg); }
.wbtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(#fff3b0, var(--honey) 55%, #f2b400); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ink); }
.wbtn::before { content: ""; margin-left: 3px; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.voice.playing .wbtn::before { margin: 0; width: 11px; height: 13px; border: 0; background: linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 7px, var(--ink) 7px); }
.voice.playing .reel { animation: reel 1.4s linear infinite; }
@keyframes reel { to { rotate: 360deg; } }
.wprog { position: absolute; left: 18%; right: 18%; bottom: 3px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.wprog::after { content: ""; position: absolute; inset: 0; transform-origin: left; scale: var(--p, 0) 1; background: var(--honey); }
.voice:not(.playing) .wprog { visibility: hidden; }

.wall.dropping .wall-scroll { outline: 4px dashed var(--red); outline-offset: -10px; background-color: #fff6cc; }

/* the add dialog */
.wall-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(74,0,16,.45); backdrop-filter: blur(3px); }
.wall-modal[hidden], .wall-view[hidden] { display: none; }
.wall-dialog { width: min(100%, 430px); max-height: calc(100dvh - 32px); }
.wall-dialog .titlebar { cursor: default; } .wall-dialog .titlebar .name::before { content: none; }
.wall-dlg-body { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 14px 16px 16px; background: linear-gradient(#fff, #fff6f2); }
.wall-dlg-body .name-gate { border-radius: 0 0 17px 17px; }
#wallForm { display: flex; flex-direction: column; gap: 12px; }
.wall-tabs { display: flex; gap: 8px; }
.wall-tabs button { position: relative; overflow: hidden; flex: 1; padding: 5px 10px; border: 2px solid var(--ink); border-radius: 999px; background: linear-gradient(#fff, #ffe4de 55%, var(--coral)); color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 rgba(74,0,16,.3); }
.wall-tabs button::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)); }
.wall-tabs [aria-selected="true"] { background: linear-gradient(#fff3b0, var(--honey) 55%, #f2b400); }
.wall-pane { display: flex; flex-direction: column; gap: 10px; } .wall-pane[hidden] { display: none; }
#wallText { width: 100%; height: 150px; resize: none; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 4px 4px 18px 4px; outline: 0; color: var(--ink); font: 600 18px/1.3 "Fredoka", var(--ui); background: linear-gradient(165deg, rgba(255,255,255,.6), rgba(255,255,255,0) 38%), var(--nc); box-shadow: 4px 5px 0 rgba(74,0,16,.25); }
#wallText:focus { box-shadow: 0 0 0 3px var(--honey), 4px 5px 0 rgba(74,0,16,.25); }
#wallText.c-red { color: #fff; } #wallText.c-maroon { color: var(--honey); }
#wallText.c-red::placeholder { color: rgba(255,255,255,.75); } #wallText.c-maroon::placeholder { color: rgba(255,216,74,.6); }
.wall-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wall-colors { display: flex; gap: 8px; }
.wswatch { width: 28px; height: 28px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--nc); box-shadow: 0 0 0 2px #fff; }
.wswatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--ink); }
.wall-count { font-size: 12px; font-weight: 700; color: #a8707a; }
.wall-drop { position: relative; display: grid; place-items: center; min-height: 170px; padding: 12px; border: 2px dashed #c25a68; border-radius: 16px; background: #fff1ec; text-align: center; color: var(--ink); cursor: pointer; }
.wall-drop:hover, .wall-drop:focus-visible { background: #fff6cc; }
.wall-drop-t { display: grid; gap: 2px; font-size: 13px; } .wall-drop-t b { font-size: 16px; color: var(--red-d); }
.wall-drop.has .wall-drop-t { display: none; }
#wallImgPrev { display: block; max-height: 220px; width: auto; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 4px 5px 0 rgba(74,0,16,.25); }
.wall-rec { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff1ec; border: 2px solid var(--line); }
#wallRec { padding: 6px 18px; font-size: 15px; }
#wallRec.on { animation: blink 1s steps(2) infinite; }
#wallRecTime { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
#wallAudioPrev { width: 100%; height: 40px; }
.wall-pick { font-size: 13px; color: #8a4a55; cursor: pointer; } .wall-pick u { color: var(--red-d); font-weight: 800; }
.wall-cap { width: 100%; padding: 5px 14px; font: inherit; font-size: 15px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; outline: 0; }
.wall-cap:focus { box-shadow: 0 0 0 3px var(--honey); } .wall-cap[hidden] { display: none; }
.wall-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.wall-status { flex: 1; min-width: 0; font-size: 12px; font-weight: 800; color: var(--red-d); }
#wallPost { padding: 7px 22px; }
#wallPost:disabled { filter: grayscale(.6); }

/* a picture, opened */
.wall-view { position: fixed; inset: 0; z-index: 90; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(74,0,16,.75); cursor: zoom-out; outline: 0; }
.wall-view img { max-width: min(92vw, 900px); max-height: calc(100dvh - 120px); border: 3px solid #fff; border-radius: 8px; box-shadow: 0 0 0 3px var(--ink), 8px 10px 0 rgba(0,0,0,.35); background: #fff; }
.wall-view figcaption { max-width: min(92vw, 700px); padding: 4px 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px/1.4 "Fredoka", var(--ui); overflow-wrap: anywhere; }
.wall-view figcaption b { color: var(--red-d); margin-right: 4px; }

@media (max-width: 820px) {
  .wall { grid-column: 1; grid-row: 2 / -1; margin-right: 0; border-radius: 20px; box-shadow: 0 0 0 3px #fff, 5px 7px 0 2px rgba(74,0,16,.3); }
  .wall-head { padding: 7px 8px 7px 14px; border-radius: 17px 17px 0 0; } .wall-title { font-size: 19px; -webkit-text-stroke-width: 5px; }
  #wallAdd { padding: 4px 12px; font-size: 13px; }
  .wall-scroll > #home { width: calc(100% - 24px); max-height: none; margin: 14px auto 0; box-shadow: 0 0 0 3px #fff, 5px 7px 0 2px rgba(74,0,16,.3); }
  .wall-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; align-items: start; padding: 24px 14px 34px; }
  .wcard, .wcard.newest { width: auto !important; translate: none; }
  .wcard.note, .wcard.note.newest { height: auto; aspect-ratio: 1; padding: 18px 11px 8px; }
  .wtext { font-size: calc(var(--fs) * .86); }
  .wcard.voice, .wcard.voice.newest { grid-column: span 2; height: 130px; }
  .wnew { right: -8px; }
}
.headline { height: auto; min-height: 9.2cqw; padding-block: 3px; } .headline #newsLine { line-height: 1.18; }   /* a long headline in the narrower box takes two lines */
@media (min-width: 821px) and (max-width: 1180px) { .wall { margin-right: 280px; } .wall-title { font-size: 20px; -webkit-text-stroke-width: 5px; } .wall-head { gap: 8px; padding-left: 14px; } #wallAdd { padding: 4px 14px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .voice.playing .reel, #wallRec.on { animation: none; } .wcard { transition: none; } }
.wall.admin .wall-board { row-gap: 46px; }   /* room for the del / ban buttons under each post */
