@font-face {
  font-family: 'Creepster';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/creepster-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/oswald.woff2') format('woff2');
}
@font-face {
  font-family: 'Permanent Marker';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/permanent-marker-400.woff2') format('woff2');
}
:root {
  --bg: #120d16;
  --card: #1f1726;
  --line: #3a2d45;
  --text: #f4ecf7;
  --muted: #a99bb3;
  --pumpkin: #ff7a1a;
  --slime: #7ee05a;
  --blood: #e0435a;
  --display: 'Creepster', 'Impact', 'Arial Black', sans-serif;
  --info: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --brush: 'Permanent Marker', 'Comic Sans MS', 'Marker Felt', cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 16px 16px 140px;
  max-width: 900px;
  margin: 0 auto;
}
h1 { font-size: 1.7rem; margin: 8px 0 4px; letter-spacing: -0.01em; }
h1 span { color: var(--pumpkin); }
h2 { font-size: 1.15rem; margin: 28px 0 10px; }
p.sub { color: var(--muted); margin: 0 0 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #000; cursor: zoom-in; }
.card .name { padding: 8px 10px 4px; font-weight: 650; overflow-wrap: anywhere; }
.card .picks { display: flex; gap: 6px; padding: 6px 8px 10px; }
.card.best { border-color: var(--slime); }
.card.worst { border-color: var(--blood); }
.card.best.worst { border-color: var(--pumpkin); }

button, .btn {
  font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid var(--line);
  background: #2a2033; color: var(--text); padding: 10px 12px; cursor: pointer; min-height: 44px;
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.picks button { flex: 1; padding: 8px 4px; font-size: 0.85rem; }
.picks button.on.b { background: var(--slime); color: #0d1a08; border-color: var(--slime); }
.picks button.on.w { background: var(--blood); color: #fff; border-color: var(--blood); }
button.primary { background: var(--pumpkin); border-color: var(--pumpkin); color: #1a0d00; width: 100%; font-size: 1.05rem; }
button.danger { background: transparent; border-color: var(--blood); color: var(--blood); }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(18, 13, 22, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.bar .inner { max-width: 900px; margin: 0 auto; }
.bar .summary { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.bar .summary b { color: var(--text); }

.notice { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; }
.notice.ok { border-color: var(--slime); }
.notice.err { border-color: var(--blood); }

input[type=text], input[type=password] {
  font: inherit; width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #0c0810; color: var(--text); min-height: 44px;
}
label { display: block; font-weight: 600; margin: 12px 0 6px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.preview { max-width: 180px; border-radius: 10px; margin-top: 10px; display: none; }

table { width: 100%; border-collapse: collapse; }
td, th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
td.num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; }
td img { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; display: block; }

.zoom {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); display: none;
  align-items: center; justify-content: center; padding: 16px; z-index: 10;
}
.zoom.show { display: flex; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; }
#qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.hidden { display: none !important; }

/* vote ballot additions */
#ballot .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#ballot img { max-width: 100%; }
#ballot button.primary { margin: 8px 0 16px; }
#zoom-close { z-index: 11; }

/* vote results view */
.results { text-align: left; }
.results-section { margin: 20px 0; }
.results-section h2 { margin: 0 0 8px; }
.results-section.best h2 { color: var(--slime, #7bd62f); }
.results-section.worst h2 { color: var(--blood); }
.results ol.ranking { list-style: none; padding: 0; margin: 12px 0 0; }
.results ol.ranking li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.results ol.ranking img { width: 36px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.results .rank { min-width: 1.5em; font-weight: 700; text-align: right; flex: none; }
.results .rname { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.results .rvotes { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ===== Dawley poster look (opt in with <body class="poster">) ===== */
body.poster {
  --night: #0b0a09;
  --stone: #1a1612;
  --plank: #2a1d14;
  --pumpkin: #ff6a10;
  --blood: #ff3045;
  --blood-deep: #b3001b;
  --bone: #f3ead8;
  --slime: #7dff3c;
  --amber: #ffb547;
  --muted: #b8ab98;
  --line: #3a2a1e;
  --card: var(--stone);
  --text: var(--bone);
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(120% 50% at 50% 0%, #2a160b 0%, transparent 60%),
    radial-gradient(80% 40% at 50% 100%, #2b1408 0%, transparent 70%),
    var(--night);
  color: var(--bone);
  font-family: var(--info);
  font-size: 16px;
  padding: 24px 16px 40px;
}
html:has(body.poster) { background: var(--night); }
body.poster > * { position: relative; z-index: 1; }
body.poster > .deco { position: absolute; z-index: 0; pointer-events: none; }
body.poster .web { width: 96px; height: 96px; opacity: .55; top: 0; }
body.poster .web.tl { left: 0; }
body.poster .web.tr { right: 0; transform: scaleX(-1); }
body.poster .moon { top: 18px; right: 8px; width: 120px; height: auto; }

body.poster .title {
  font-family: var(--display); font-weight: 400; text-align: center;
  line-height: .86; letter-spacing: .02em; margin: 8px 0 0;
}
body.poster .title span { display: block; }
body.poster .title .t1 { color: var(--pumpkin); font-size: clamp(2.2rem, 11vw, 3.1rem); text-shadow: 0 0 18px rgba(255, 106, 16, .35); }
body.poster .title .t2 { color: var(--bone); font-size: clamp(2.4rem, 12vw, 3.5rem); }
body.poster .title .t3 { color: var(--blood); font-size: clamp(1.6rem, 8vw, 2rem); margin-top: 4px; }
body.poster .drips { display: block; width: 100%; height: 18px; margin: -2px 0 0; }

body.poster .board {
  background: linear-gradient(180deg, #33231a, #20160f); border: 3px solid #4a3324;
  outline: 2px solid #120c08; border-radius: 6px; padding: 14px 12px 12px; text-align: center;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .7), 0 8px 18px rgba(0, 0, 0, .6);
  margin: 14px 0;
}
body.poster .sign { font-family: var(--brush); font-size: 1.25rem; line-height: 1.15; color: var(--bone); margin: 0; transform: rotate(-3deg); }
body.poster .sign em { color: var(--blood); font-style: normal; }

body.poster .pumpkins { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 24px; }
body.poster .pumpkins img { width: 64px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 140, 20, .55)); }
body.poster .pumpkins img.mid { width: 84px; }
body.poster .splat { right: 6px; bottom: 6px; width: 46px; height: 46px; opacity: .9; }

body.poster h2 { font-family: var(--display); font-weight: 400; letter-spacing: .03em; font-size: 1.8rem; }

body.poster .card { background: var(--stone); border: 2px solid #3a2a1e; border-radius: 10px; }
body.poster .card.best { border-color: var(--slime); box-shadow: 0 0 0 2px rgba(125, 255, 60, .3); }
body.poster .card.worst { border-color: var(--blood); box-shadow: 0 0 0 2px rgba(255, 48, 69, .3); }
body.poster .card.best.worst { border-color: var(--pumpkin); }
body.poster .card .name { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }

body.poster button, body.poster .btn {
  font-family: var(--info); font-size: 1rem; font-weight: 700; letter-spacing: .04em;
  border-radius: 10px; border: 2px solid #5a3a22; background: #120f0c; color: var(--bone);
}
body.poster .picks button { font-size: 1rem; border-radius: 6px; padding: 8px 4px; }
body.poster .picks button.pick-best { border-color: #3d6b25; color: var(--slime); }
body.poster .picks button.pick-worst { border-color: #7a2230; color: #ff6b7a; }
body.poster .picks button.on.b { background: var(--slime); color: #0c1a04; border-color: var(--slime); }
body.poster .picks button.on.w { background: var(--blood); color: #170003; border-color: var(--blood); }
body.poster button.primary { background: var(--pumpkin); border-color: var(--pumpkin); color: #170800; font-size: 1.15rem; box-shadow: 0 4px 0 #8a2e00; }
body.poster button.primary:disabled { background: #4a3324; border-color: #4a3324; color: var(--bone); box-shadow: none; opacity: 1; }
body.poster button:focus-visible { outline: 3px solid var(--bone); outline-offset: 2px; }

body.poster button.danger { background: transparent; border-color: var(--blood); color: var(--blood); }
body.poster label { font-family: var(--info); font-size: 1rem; font-weight: 600; letter-spacing: .04em; }
body.poster input[type=text], body.poster input[type=password], body.poster input[type=file] {
  font-family: var(--info); font-size: 1rem; background: #120f0c; color: var(--bone); border: 2px solid #5a3a22;
}
body.poster input:focus-visible { outline: 3px solid var(--bone); outline-offset: 2px; }

body.poster p.sub { color: var(--muted); }
body.poster .notice { background: var(--stone); font-size: 1rem; }
body.poster .results-section.best h2 { color: var(--slime); }
body.poster .results-section.worst h2 { color: var(--blood); }
body.poster .results ol.ranking li { background: rgba(255, 255, 255, .04); padding: 6px 8px; border-bottom: 0; margin-bottom: 4px; border-radius: 6px; }
body.poster .results .rvotes { color: var(--muted); }

/* FR25 caps info face. Labels, pick buttons, secondary buttons and notices are upper-cased.
   Text that pre-M10 tests read through innerText (stage messages, status line, p.sub, primary
   buttons) keeps its DOM case: small caps instead, set larger so the synthesised capitals
   (about 0.7x the font size) stay >= 16px tall. Entry names are never transformed. */
body.poster label,
body.poster .picks button,
body.poster button:not(.primary),
body.poster .notice { text-transform: uppercase; }
body.poster #stage-message,
body.poster #status,
body.poster .sub,
body.poster button.primary {
  font-variant-caps: all-small-caps; font-size: 1.5rem; letter-spacing: .05em; overflow-wrap: anywhere;
}
body.poster button.primary { font-size: 1.5rem; }
body.poster .card .name, body.poster .rname, body.poster #entry-name { text-transform: none; font-variant-caps: normal; }

/* M11 WINS!/PUNISHED! panels: ballot chosen-picks bar, card highlights, results sections.
   Splatter blobs are pure CSS (radial-gradients) in the panel colour, kept to the corners
   where padding keeps all informational text clear of them. */
body.poster .panel {
  position: relative; overflow: hidden; box-sizing: border-box; border-radius: 12px;
  padding: 10px 14px; border: 3px solid var(--slime); background: #0d1a07; color: var(--bone);
}
body.poster .panel.punished { border-color: var(--blood); background: #1f0509; }
body.poster .panel::before, body.poster .panel::after {
  content: ''; position: absolute; pointer-events: none; width: 34px; height: 34px;
}
body.poster .panel.wins::before { top: -6px; right: -6px; background: radial-gradient(circle at 60% 40%, var(--slime) 0 28%, transparent 30%), radial-gradient(circle at 20% 75%, var(--slime) 0 12%, transparent 14%); }
body.poster .panel.wins::after { bottom: -6px; left: -6px; background: radial-gradient(circle at 40% 60%, var(--slime) 0 26%, transparent 28%), radial-gradient(circle at 80% 20%, var(--slime) 0 10%, transparent 12%); }
body.poster .panel.punished::before { top: -6px; right: -6px; background: radial-gradient(circle at 60% 40%, var(--blood) 0 28%, transparent 30%), radial-gradient(circle at 20% 75%, var(--blood) 0 12%, transparent 14%); }
body.poster .panel.punished::after { bottom: -6px; left: -6px; background: radial-gradient(circle at 40% 60%, var(--blood) 0 26%, transparent 28%), radial-gradient(circle at 80% 20%, var(--blood) 0 10%, transparent 12%); }
body.poster .panel-shout {
  font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; margin: 0;
  letter-spacing: .03em; text-transform: none; font-variant-caps: normal; color: var(--slime);
}
body.poster .panel.punished .panel-shout { color: var(--blood); }
body.poster .panel-label, body.poster .panel-pick {
  font-family: var(--info); font-size: 1rem; margin: 2px 0 0; overflow-wrap: anywhere; color: var(--bone);
  text-transform: none; font-variant-caps: normal;
}
body.poster .panel-label { font-weight: 700; text-transform: uppercase; }
body.poster .panel-pick { font-weight: 600; }
body.poster .results-section.panel { margin: 20px 0; }
body.poster .results-section.panel h2 { margin-top: 4px; }
body.poster .results-section.panel .rvotes { color: var(--bone); }

body.poster .chosen-picks {
  position: sticky; bottom: 0; z-index: 5; background: var(--night, #0b0806);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding: 8px 0 6px; margin-top: 12px; box-shadow: 0 -8px 12px rgba(0, 0, 0, .6);
}
body.poster .chosen-picks > .sub { grid-column: 1 / -1; margin: 0; }
body.poster .chosen-picks > button.primary { grid-column: 1 / -1; margin: 0; padding: 8px 12px; }
body.poster .card.best { background: #0d1a07; box-shadow: 0 0 0 2px rgba(125, 255, 60, .5), 0 0 14px rgba(125, 255, 60, .35); }
body.poster .card.worst { background: #1f0509; box-shadow: 0 0 0 2px rgba(255, 48, 69, .5), 0 0 14px rgba(255, 48, 69, .35); }
body.poster .card.best.worst { background: var(--stone); }

@media (prefers-reduced-motion: no-preference) {
  body.poster .flicker { animation: flick 4s infinite steps(1); }
  @keyframes flick { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 49% { opacity: 1; } 73% { opacity: .9; } 75% { opacity: 1; } }
}

/* M12 plain organiser screen: poster palette, info face only, no artwork or display lettering. */
body.poster.plain h1.plain-title { font-family: var(--info); font-weight: 700; font-size: 2rem; line-height: 1.15; text-align: center; margin: 8px 0 0; letter-spacing: .02em; }
body.poster.plain .plain-title .t1 { color: var(--pumpkin); }
body.poster.plain .plain-title .t2 { color: var(--bone); }
body.poster.plain .plain-title .t3 { color: var(--blood); }
body.poster.plain p.sub { text-align: center; margin: 4px 0 16px; font-family: var(--info); font-size: 1rem; font-variant-caps: normal; letter-spacing: .04em; }
body.poster.plain h2 { font-family: var(--info); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
body.poster.plain label,
body.poster.plain button:not(.primary) { text-transform: none; }
body.poster.plain button.primary { font-variant-caps: normal; font-size: 1.15rem; letter-spacing: .04em; }
body.poster.plain input[type=password] { box-sizing: border-box; max-width: 100%; padding: 8px; }
body.poster.plain #stage, body.poster.plain #voteCount, body.poster.plain #msg, body.poster.plain #loginMsg,
body.poster.plain #confirmText, body.poster.plain #entries .ename, body.poster.plain #qrUrl { font-family: var(--info); font-size: 1rem; }
body.poster.plain #entries .ename { overflow-wrap: anywhere; min-width: 0; }
body.poster.plain #downloadQr { padding: 12px; }

/* M13 sleeps countdown (vote page, signup stage only). */
body.poster .countdown { text-align: center; margin: 4px 0 12px; line-height: 1; overflow-wrap: anywhere; }
body.poster .countdown[hidden] { display: none; }
body.poster .countdown-num { font-family: var(--display); font-weight: 400; font-size: clamp(4rem, 26vw, 7rem); color: var(--pumpkin); text-shadow: 0 0 18px rgba(255, 106, 16, .35); }
body.poster .countdown-label { font-family: var(--info); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bone); }

/* M30 live reveal pop-up: a new row appears large, then settles into its table.
   Layout and colours only here; every transform/animation lives in the no-preference block so
   reduced motion gets a plain opacity fade by construction. */
body.poster .reveal-pop {
  position: fixed; inset: 0; margin: auto; z-index: 50; box-sizing: border-box;
  width: min(calc(100vw - 24px), 420px); height: fit-content; max-height: calc(100vh - 24px); overflow-y: auto;
  padding: 14px; border-radius: 14px; border: 4px solid var(--slime); background: #0d1a07; color: var(--bone);
  text-align: center; pointer-events: none; opacity: 0; transition: opacity .4s ease;
}
body.poster .reveal-pop.worst { border-color: var(--blood); background: #1f0509; }
body.poster .reveal-pop.show { opacity: 1; }
body.poster .reveal-pop.settling { opacity: 0; }
body.poster .reveal-pop .pop-shout {
  font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1.1; margin: 0 0 8px;
  letter-spacing: .03em; color: var(--slime); overflow-wrap: anywhere;
}
body.poster .reveal-pop.worst .pop-shout { color: var(--blood); }
body.poster .reveal-pop .pop-row { margin: 0 0 10px; min-width: 0; }
body.poster .reveal-pop .pop-row img {
  display: block; margin: 0 auto 8px; box-sizing: border-box; width: auto; max-width: 100%;
  height: min(40vh, 280px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px;
}
body.poster .reveal-pop.multi .pop-row img { height: min(22vh, 150px); }
body.poster .reveal-pop p { margin: 2px 0 0; font-family: var(--info); overflow-wrap: anywhere; text-transform: none; font-variant-caps: normal; }
body.poster .reveal-pop .pop-place { font-size: 1.6rem; font-weight: 700; }
body.poster .reveal-pop .pop-name { font-size: 1.5rem; font-weight: 600; }
body.poster .reveal-pop .pop-votes { font-size: 1.2rem; }
body.poster .results ol.ranking li.just-revealed { background: rgba(243, 234, 216, .22); }

@media (prefers-reduced-motion: no-preference) {
  body.poster .reveal-pop { transition: opacity .7s ease, transform .7s ease; }
  body.poster .reveal-pop.show { animation: reveal-pop-in .45s ease-out; }
  body.poster .reveal-pop.settling { transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(.15); }
  @keyframes reveal-pop-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

/* ===== Chat view (C8) and camera view (C9) =====
   Selectors are ids and classes used only by public/chat.js and public/camera.js, so no other page is affected.
   The overflow rule applies only on a page that hosts the chat. */
html:has(.chat-host), body:has(.chat-host) { overflow-x: hidden; }

/* ===== Results/Chat tab shell (C1, public/tabs.js) =====
   Outside tabbed mode #view-track has no transform and the panes are plain blocks, so "/" renders as before. */
.view-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; padding: 8px 12px; background: rgba(18, 15, 12, .92); }
.view-tabs[hidden] { display: none; }
.view-tab { flex: 1 1 0; min-width: 0; font-family: var(--info); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; padding: 10px 6px; border-radius: 8px; border: 2px solid var(--pumpkin); background: transparent; color: var(--bone); opacity: .55; }
.view-tab.on { background: var(--pumpkin); color: #170800; opacity: 1; font-weight: 800; }
#results-view[hidden], #chat-view[hidden] { display: none; }
body.tabbed { overflow-x: clip; }
body.tabbed #view-track { display: flex; align-items: flex-start; width: 200%; }
body.tabbed #results-view, body.tabbed #chat-view { flex: 0 0 50%; min-width: 0; box-sizing: border-box; }
body.tabbed #views { overflow: hidden; touch-action: pan-y; }
body.tabbed .pane-off { height: 0; overflow: hidden; }
/* FR64: Results tab flash while the camera holds the page on Chat. Reduced motion gets a steady highlight. */
.view-tab.flash { opacity: 1; outline: 3px solid var(--bone); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .view-tab.flash { animation: tab-flash .8s ease-in-out infinite alternate; }
  @keyframes tab-flash { from { background: transparent; } to { background: var(--pumpkin); color: #170800; } }
}
@media (prefers-reduced-motion: no-preference) {
  body.tabbed #view-track { transition: transform .3s ease; }
}
  #chat-status { text-align: center; margin: 12px 0; font-weight: 600; }
  #chat-status.err { color: #ff8a96; }
  #nickname-form, #post-form { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
  #nickname-form[hidden], #post-form[hidden], #posts[hidden] { display: none; }
  #nickname-form input, #post-form input { flex: 1; min-width: 0; width: auto; }
  #nickname-form button, #post-form button { flex: none; }
  body.poster #post-form button, body.poster #nickname-form button { width: auto; font-size: 1rem; font-variant-caps: normal; letter-spacing: .04em; padding: 10px 12px; }
  #current-nickname { margin: 8px 0; overflow-wrap: anywhere; }
  #me-profile { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
  #me-profile[hidden] { display: none; }
  #me-profile .me-name { font-weight: 700; overflow-wrap: anywhere; }
  .me-photo, .post-photo { object-fit: cover; border-radius: 8px; flex: none; }
  .me-photo { width: 56px; height: 56px; }
  .post-photo { width: 40px; height: 40px; vertical-align: middle; margin-right: 8px; }
  .contest-badge { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--slime); color: #0c1a04; font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  #posts li.award-best .post-photo, #posts li.award-both .post-photo { outline: 3px solid #f5c518; outline-offset: 1px; }
  #posts li.award-worst .post-photo { outline: 3px solid var(--blood, #e0435a); outline-offset: 1px; }
  .award-icon { margin-left: 6px; }
  #posts { list-style: none; margin: 8px 0; padding: 0; max-height: 55vh; overflow-y: auto; overflow-x: hidden; }
  #posts li { padding: 10px 12px; margin: 0 0 10px; background: var(--stone); border: 2px solid #4a3324; border-left: 6px solid var(--pumpkin); border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.55); overflow-wrap: anywhere; word-break: break-word; }
  #posts .post-author { display: block; font-weight: 700; color: var(--amber); font-size: 1rem; letter-spacing: .03em; overflow-wrap: anywhere; text-transform: none; }
  #posts .post-text { display: block; white-space: pre-wrap; overflow-wrap: anywhere; text-transform: none; font-size: 1rem; }
  #posts .post-media { display: block; max-width: 100%; max-height: 50vh; height: auto; margin-top: 4px; border-radius: 8px; }
  #posts .post-video-wrap { position: relative; display: block; max-width: 100%; }
  #posts .post-video-wrap .post-media { margin-top: 4px; width: 100%; }
  #posts .post-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; }
  #posts .post-play[hidden] { display: none; }
  #upload-status { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 8px 0; font-weight: 600; }
  #upload-status[hidden], #upload-retry[hidden] { display: none; }
  #upload-status.err { color: #ff8a96; }
  #camera-view { position: fixed; inset: 0; z-index: 1000; background: #000; overflow: hidden; }
  #camera-view[hidden] { display: none; }
  #camera-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
  #camera-frame { position: absolute; inset: 0; z-index: 1; pointer-events: none; box-sizing: border-box; overflow: hidden;
    border: 10px solid var(--pumpkin); border-radius: 22px; box-shadow: inset 0 0 0 4px #170800, inset 0 0 40px rgba(255,106,16,.45); }
  #camera-frame .camera-art { position: absolute; display: block; }
  #camera-frame .cf-web { width: 84px; height: 84px; opacity: .8; top: 0; }
  #camera-frame .cf-tl { left: 0; }
  #camera-frame .cf-tr { right: 0; transform: scaleX(-1); }
  #camera-frame .cf-drips { top: 0; left: 0; width: 100%; height: 18px; }
  #camera-frame .cf-pumpkin { bottom: 96px; width: 52px; height: auto; filter: drop-shadow(0 0 8px rgba(255,140,20,.6)); }
  #camera-frame .cf-pl { left: 4px; }
  #camera-frame .cf-pr { right: 4px; }
  #camera-frame .camera-frame-label { position: absolute; top: 22px; left: 0; right: 0; text-align: center;
    font-family: var(--display); color: var(--pumpkin); font-size: 1.8rem; letter-spacing: .04em; text-shadow: 0 0 8px #000, 0 0 14px rgba(255,106,16,.6); }
  #camera-view .camera-controls { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
    display: flex; gap: 8px; justify-content: center; align-items: center; padding: 0 20px; }
  #camera-view .camera-controls button { flex: 0 1 auto; min-width: 0; }
  #camera-view .camera-controls button { background: #120f0c; }
  #camera-view #camera-shutter { font-weight: 800; background: var(--pumpkin); border-color: var(--pumpkin); color: #170800; box-shadow: 0 4px 0 #8a2e00; }
  #camera-view .camera-controls { flex-wrap: wrap; }
  #camera-countdown { position: absolute; top: 64px; left: 0; right: 0; z-index: 2; text-align: center;
    font-family: var(--display); font-size: 3.4rem; font-weight: 400; color: var(--pumpkin); text-shadow: 0 0 6px #000, 0 0 16px #000; pointer-events: none; }
  #camera-countdown[hidden] { display: none; }
  #camera-notice { position: absolute; top: 140px; left: 12px; right: 12px; z-index: 2; margin: 0; padding: 8px 12px;
    box-sizing: border-box; text-align: center; font-size: 1rem; line-height: 1.35; color: var(--bone);
    background: rgba(11,10,9,0.92); border: 2px solid var(--pumpkin); border-radius: 8px; overflow-wrap: anywhere; }
  #camera-notice[hidden] { display: none; }
  #camera-view[data-recording="true"] #camera-record { background: #c62828; border-color: #c62828; color: #fff; }
