/* ===== redesign53: ALPENUNIT post-apocalyptic terminal theme (owner design ALPENUNIT_FULL_DESIGN_AND_TZ_CLAUDE) ===== */
:root {
  --metal-1: #23241f; --metal-2: #15160f; --rust: #b77a32; --amber: #e58a19; --olive: #91a65c; --sand: #d6d0bd;
  --panel-bg: linear-gradient(180deg, rgba(36,35,29,.94), rgba(17,18,14,.96));
  --panel-border: 1px solid #4a3c26;
  --panel-shadow: inset 0 1px 0 rgba(255,220,160,.06), inset 0 0 0 1px rgba(0,0,0,.6), 0 8px 24px rgba(0,0,0,.45);
  --stripes: repeating-linear-gradient(-45deg, #e58a19 0 8px, #1a1408 8px 16px);
}
html { background: #0d0d0b; }
body {
  font-family: var(--font-sans); font-size: 15px; color: var(--sand);
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(229,138,25,.12), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(145,166,92,.05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    #0d0d0b;
}
h1, h2, h3, .page-title, .section-title { font-family: var(--font-display); letter-spacing: .03em; text-transform: uppercase; }
a { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber) !important; outline-offset: 2px; }

/* --- Header --- */
.site-header { background: linear-gradient(180deg, #1b1a15, #10100d); border-bottom: 1px solid #4a3c26; box-shadow: 0 6px 18px rgba(0,0,0,.55); }
.header-status-bar { gap: 18px; padding: 10px 24px; background: none; border-bottom: 1px solid #2c261b; flex-wrap: nowrap; }
.header-logo { gap: 12px; text-decoration: none; }
.brand-emblem { flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(229,138,25,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.header-title { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: .04em; color: #d8cfb8; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0,0,0,.6); }
.header-subtitle { margin-top: 4px; font-family: var(--font-display); font-size: 11px; letter-spacing: .5em; color: var(--rust); }
.header-slogan { font-family: var(--font-display); font-size: 12px; letter-spacing: .45em; color: #8d8573; white-space: nowrap; }
.header-server { margin-left: auto; display: flex; align-items: center; gap: 14px; padding: 8px 14px; border: var(--panel-border); background: rgba(0,0,0,.35); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.server-dot { width: 10px; height: 10px; border-radius: 50%; background: #6b6457; flex-shrink: 0; }
.server-dot.is-online { background: #7fd13b; box-shadow: 0 0 8px #7fd13b; animation: au-pulse 2.4s ease-in-out infinite; }
.server-dot.is-offline { background: #d0552f; }
.server-lines, .server-version { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.server-state b { color: #9fd65b; font-weight: 700; }
.server-state b.is-offline { color: #d0552f; } .server-state b.is-unknown { color: #a39b88; }
.server-players b, .server-version b { color: var(--sand); font-family: var(--font-display); font-size: 15px; }
.server-version { padding-left: 14px; border-left: 1px solid #3a3326; color: #a39b88; }
.header-telegram { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: var(--panel-border); background: rgba(0,0,0,.3); color: var(--sand); text-decoration: none; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.header-telegram:hover { border-color: var(--amber); color: #fff; }
.nav-toggle { display: none; font-size: 22px; background: none; border: var(--panel-border); color: var(--sand); padding: 4px 10px; }
.header-nav { height: auto; padding: 0 16px; gap: 4px; background: linear-gradient(180deg, #191813, #121210); backdrop-filter: none; border-top: 1px solid #000; }
.nav-item { font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; color: #c9c1ad; padding: 11px 16px; border-radius: 0; border-bottom: 2px solid transparent; }
.nav-item:hover { background: rgba(229,138,25,.08); color: #fff; }
.nav-item.active, .nav-item[aria-current="page"] { color: #ffb24a; background: linear-gradient(180deg, rgba(229,138,25,.18), rgba(229,138,25,.04)); border-bottom-color: var(--amber); }
.nav-account { margin-left: auto; color: var(--amber); }
.nav-admin { margin-left: 0; border: 1px solid #4a3c26; }

/* --- Layout --- */
.main-layout { grid-template-columns: 260px minmax(0, 1fr) 280px; max-width: 1560px; margin: 0 auto; gap: 18px; padding: 18px 20px 28px; }
body.home-layout .main-layout, body.wide-layout .main-layout { grid-template-columns: minmax(0, 1fr); max-width: 1480px; }
body.home-layout .sidebar-left, body.home-layout .sidebar-right, body.wide-layout .sidebar-left, body.wide-layout .sidebar-right { display: none; }

/* --- Panels / widgets / buttons (shared look for all existing pages) --- */
.panel-steel, .au-panel, .auth-panel, .terminal-widget, .profile-widget, .geo-clock-widget, .online-widget, .topic-card, .item-row, .dialog-content {
  background: var(--panel-bg) !important; border: var(--panel-border) !important; box-shadow: var(--panel-shadow); border-radius: 2px !important;
}
.au-panel { position: relative; padding: 18px 20px; }
.au-panel::before, .panel-steel::before { content: ""; position: absolute; inset: 4px; pointer-events: none; border: 1px solid rgba(255,220,160,.04); }
.panel-steel { position: relative; }
.au-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-display); font-size: 19px; color: var(--sand); text-transform: uppercase; }
.au-title::before { content: "///"; color: var(--amber); letter-spacing: -.05em; font-weight: 700; }
.au-title .au-more { margin-left: auto; font-family: var(--font-sans); font-size: 13px; text-transform: none; color: var(--amber); }
.btn, button.btn { border-radius: 0 !important; font-family: var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.btn-primary { background: linear-gradient(180deg, #f0a03a, #c66c10) !important; color: #1a1006 !important; border: 1px solid #ffb24a !important; box-shadow: 0 0 0 1px #000, 0 0 14px rgba(229,138,25,.35); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-secondary { background: rgba(0,0,0,.35) !important; color: var(--sand) !important; border: 1px solid #5a4a30 !important; }
.btn-secondary:hover { border-color: var(--amber) !important; color: #fff !important; }
.input-terminal, input, select, textarea { border-radius: 0 !important; }
.page-title { color: var(--sand); }
.page-title-prefix { color: var(--amber); }

/* --- Page banner (inner pages) --- */
.au-banner { position: relative; min-height: 150px; display: flex; align-items: center; gap: 24px; padding: 24px 28px; margin-bottom: 18px; border: var(--panel-border); background: #0d0d0b url("/img/forum-banner.jpg") left center / cover no-repeat; box-shadow: var(--panel-shadow); overflow: hidden; }
.au-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,11,.15) 0%, rgba(13,13,11,.75) 45%, rgba(13,13,11,.92) 100%); }
.au-banner > * { position: relative; z-index: 1; }
.au-banner-text { margin-left: 34%; }
.au-banner h1 { margin: 0; font-size: clamp(34px, 5vw, 60px); color: #e6dcc3; text-shadow: 0 3px 0 #000; line-height: 1; }
.au-banner .au-sub { margin: 6px 0 0; font-family: var(--font-display); font-size: 20px; color: var(--amber); text-transform: uppercase; letter-spacing: .04em; }
.au-banner p { max-width: 560px; color: #cfc7b2; margin: 10px 0 0; }

/* --- Home --- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.home-hero { position: relative; min-height: 470px; padding: 48px 44px; border: var(--panel-border); overflow: hidden; background: #0d0d0b; box-shadow: var(--panel-shadow); }
.home-hero-art { position: absolute; inset: 0; background: url("/img/hero.jpg") right center / cover no-repeat; transform: translate3d(0, var(--parallax, 0px), 0) scale(1.06); }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,11,.96) 0%, rgba(13,13,11,.8) 38%, rgba(13,13,11,.1) 75%), linear-gradient(0deg, rgba(13,13,11,.85), transparent 35%); }
.home-hero > :not(.home-hero-art) { position: relative; z-index: 1; }
.home-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 14px; color: #f0b04a; letter-spacing: .08em; text-transform: uppercase; }
.home-title { margin: 14px 0 0; font-family: var(--font-display); font-size: clamp(54px, 8vw, 104px); line-height: .9; color: #e9dfc6; text-shadow: 0 4px 0 #000, 0 0 30px rgba(0,0,0,.6); letter-spacing: .02em; }
.home-tagline { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 28px); text-transform: uppercase; color: #e2d7bd; }
.home-tagline span { color: var(--amber); }
.home-lead { max-width: 430px; margin: 18px 0 26px; font-size: 17px; line-height: 1.5; color: #d2cab5; }
.play-button { position: relative; display: inline-flex; align-items: center; gap: 18px; padding: 16px 40px 16px 26px; text-decoration: none; color: #1b1006; background: linear-gradient(180deg, #f6ae45, #d06f0f); border: 2px solid #ffc061; clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%); animation: au-glow 3s ease-in-out infinite; }
.play-button .play-icon { width: 0; height: 0; border-left: 20px solid #1b1006; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.play-button b { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: .04em; }
.play-button small { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.play-button:hover { filter: brightness(1.08); }
.home-news-list { display: flex; flex-direction: column; gap: 12px; }
.home-news { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #2c261b; text-decoration: none; color: inherit; }
.home-news:last-child { border-bottom: 0; }
.home-news img { width: 112px; height: 84px; object-fit: cover; border: 1px solid #4a3c26; }
.home-news time { font-size: 13px; color: var(--amber); }
.home-news h3 { margin: 2px 0 4px; font-family: var(--font-sans); font-size: 16px; font-weight: 700; text-transform: none; color: #ece3cc; }
.home-news p { margin: 0; font-size: 13px; color: #b3ab97; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-news:hover h3 { color: #ffb24a; }
.status-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: center; padding: 14px 8px; }
.status-cell { display: flex; align-items: center; gap: 14px; padding: 4px 18px; border-right: 1px solid #3a3326; }
.status-cell:last-child { border-right: 0; }
.status-cell svg { flex-shrink: 0; color: var(--amber); }
.status-cell small { display: block; font-size: 12px; color: #a39b88; text-transform: uppercase; letter-spacing: .06em; }
.status-cell b { font-family: var(--font-display); font-size: 26px; color: #ece3cc; font-weight: 600; }
.status-cell .ok { color: #9fd65b; font-size: 15px; font-family: var(--font-sans); }
.status-cell .bad { color: #d0552f; font-size: 15px; font-family: var(--font-sans); }
.home-row { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 18px; margin-top: 18px; }
.tg-panel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: inherit; }
.tg-panel b { display: block; font-family: var(--font-display); font-size: 21px; color: #6fc3ff; text-transform: uppercase; }
.tg-panel span { color: #c9c1ad; font-size: 14px; }
.tg-panel .tg-arrow { margin-left: auto; color: var(--amber); font-size: 26px; }
.tg-panel:hover { border-color: #2aabee !important; }
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.cat-card { position: relative; display: block; min-height: 170px; border: var(--panel-border); overflow: hidden; text-decoration: none; color: inherit; background: #11120f; box-shadow: var(--panel-shadow); transition: transform .2s ease, border-color .2s ease; }
.cat-card img { width: 100%; height: 118px; object-fit: cover; display: block; filter: saturate(.9); transition: transform .4s ease; }
.cat-card-body { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(180deg, rgba(20,19,15,.95), #0e0e0b); border-top: 1px solid #4a3c26; }
.cat-card-body svg { color: var(--amber); flex-shrink: 0; }
.cat-card b { display: block; font-family: var(--font-display); font-size: 18px; text-transform: uppercase; color: #ece3cc; }
.cat-card small { color: #a39b88; font-size: 13px; }
.cat-card .cat-arrow { margin-left: auto; color: var(--amber); font-weight: 700; font-size: 18px; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--amber); }
.cat-card:hover img { transform: scale(1.05); }
.about-panel { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; }
.about-panel ul { list-style: none; padding: 0; margin: 12px 0 18px; }
.about-panel li { padding: 4px 0 4px 26px; position: relative; }
.about-panel li::before { content: "✔"; position: absolute; left: 0; color: var(--amber); }
.about-art { min-height: 240px; background: url("/img/about.jpg") center / cover; border: 1px solid #4a3c26; }
.hazard { height: 10px; background: var(--stripes); opacity: .85; }

/* --- World / download / play / community --- */
.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.world-topic { display: block; padding: 14px 16px; text-decoration: none; color: inherit; }
.world-topic b { display: block; font-size: 16px; color: #ece3cc; margin-bottom: 4px; }
.world-topic span { font-size: 13px; color: #a39b88; }
.world-topic:hover { border-color: var(--amber) !important; }
.au-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.au-facts dt { color: #a39b88; } .au-facts dd { margin: 0; color: #ece3cc; word-break: break-all; }
.au-steps { padding-left: 22px; line-height: 1.7; }
.au-note { color: #a39b88; font-size: 14px; }
.play-stage { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; border: var(--panel-border); background: linear-gradient(rgba(13,13,11,.78), rgba(13,13,11,.9)), url("/img/hero.jpg") center / cover; }
.play-stage h2 { margin: 0 0 10px; font-size: 32px; color: #ece3cc; }
.play-stage p { max-width: 560px; margin: 0 auto 18px; color: #cfc7b2; }
.play-stage .au-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.au-badge { display: inline-block; padding: 3px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid #5a4a30; color: #f0b04a; }
.au-badge.ok { color: #9fd65b; border-color: #4f6b2b; } .au-badge.bad { color: #e07a55; border-color: #6b3020; }

/* --- Account / payments --- */
.balance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.balance-card { padding: 14px; border: 1px solid #4a3c26; background: rgba(0,0,0,.3); }
.balance-card b { display: block; font-family: var(--font-display); font-size: 18px; color: #ece3cc; }
.balance-card .credits { font-family: var(--font-display); font-size: 26px; color: #f0b04a; }
.au-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.au-table th { text-align: left; font-weight: 500; color: #a39b88; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; border-bottom: 1px solid #4a3c26; padding: 8px; }
.au-table td { padding: 8px; border-bottom: 1px solid #2c261b; vertical-align: top; }
.au-table tr:hover td { background: rgba(229,138,25,.04); }
.st-granted { color: #9fd65b; } .st-pending, .st-created { color: #f0b04a; } .st-failed, .st-canceled, .st-chargebacked, .st-mismatch { color: #e07a55; }
.au-scroll { overflow-x: auto; }
.au-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.au-filters select, .au-filters input { padding: 7px 10px; background: #0b0b09; border: 1px solid #4a3c26; color: var(--sand); }
.au-totals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.au-totals span { padding: 6px 10px; border: 1px solid #3a3326; font-size: 13px; }

/* --- Footer --- */
.site-footer { background: linear-gradient(180deg, #121210, #0b0b09); border-top: 1px solid #4a3c26; position: relative; }
.site-footer::before { content: ""; display: block; height: 6px; background: var(--stripes); opacity: .6; }
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; max-width: 1480px; margin: 0 auto; }
.footer-brand-name { display: block; font-family: var(--font-display); font-size: 30px; color: #cfc6ae; letter-spacing: .04em; }
.footer-brand-sub { display: block; font-family: var(--font-display); font-size: 11px; color: var(--rust); letter-spacing: .5em; margin-bottom: 8px; }
.footer-heading { font-family: var(--font-display); color: var(--amber); letter-spacing: .12em; }
.footer-motto { font-family: var(--font-display); letter-spacing: .5em; color: #8d8573; }

/* --- Motion --- */
@keyframes au-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes au-glow { 0%,100% { box-shadow: 0 0 10px rgba(229,138,25,.3); filter: none; } 50% { filter: drop-shadow(0 0 10px rgba(229,138,25,.55)); } }
@keyframes au-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.au-reveal { animation: au-rise .5s ease both; }
.au-dust { position: absolute; inset: 0; pointer-events: none; z-index: 1; background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,210,150,.5), transparent), radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,210,150,.35), transparent), radial-gradient(1px 1px at 40% 80%, rgba(255,210,150,.4), transparent), radial-gradient(1px 1px at 85% 20%, rgba(255,210,150,.4), transparent); background-size: 300px 300px; animation: au-dust 30s linear infinite; opacity: .6; }
@keyframes au-dust { from { background-position: 0 0; } to { background-position: 300px -300px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .home-hero-art { transform: none !important; }
}

/* --- Responsive --- */
@media (max-width: 1280px) {
  .main-layout { grid-template-columns: 240px minmax(0,1fr); }
  .sidebar-right { display: none; }
  .header-slogan { display: none; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1023px) {
  .main-layout { grid-template-columns: minmax(0,1fr); padding: 12px; }
  .sidebar-left { display: none; }
  .home-grid, .home-row, .about-panel { grid-template-columns: minmax(0,1fr); }
  .header-server .server-version { display: none; }
  .nav-toggle { display: inline-block; }
  .header-nav { display: none; flex-direction: column; align-items: stretch; padding: 6px 12px 12px; }
  .header-nav.is-open { display: flex; }
  .nav-account { margin-left: 0; }
  .au-banner-text { margin-left: 0; }
  .au-banner { background-position: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .au-dust { display: none; }
}
@media (max-width: 640px) {
  .header-status-bar { padding: 8px 12px; gap: 10px; }
  .header-title { font-size: 24px; } .header-subtitle { letter-spacing: .3em; font-size: 9px; }
  .brand-emblem { width: 38px; height: 38px; }
  .header-server { padding: 6px 8px; } .server-players { display: none; }
  .header-telegram-text { display: none; }
  .home-hero { padding: 28px 20px; min-height: 420px; }
  .home-hero::after { background: linear-gradient(0deg, rgba(13,13,11,.95) 10%, rgba(13,13,11,.55)); }
  .status-strip { grid-template-columns: minmax(0,1fr); }
  .status-cell { border-right: 0; border-bottom: 1px solid #3a3326; padding: 10px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .play-button b { font-size: 28px; }
}

/* banner heading (not an h1: pages keep their own h1) + misc */
.au-banner-h { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(34px, 5vw, 60px); color: #e6dcc3; text-shadow: 0 3px 0 #000; line-height: 1; }
body.forum-layout .au-banner, body.account-layout-wide .au-banner { min-height: 130px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Forum in the new design (owner reference 03-forum-concept) --- */
body.forum-layout { background: inherit; }
body .forum-page { --clr-text: #d6d0bd; --clr-text-muted: #a39b88; --clr-border: #3a3326; --clr-bg-input: #0b0b09; --clr-accent: #e58a19; font-family: var(--font-sans); color: #d6d0bd; }
body .forum-page h1, body .forum-page h2 { font-family: var(--font-display); color: #e6dcc3; text-shadow: none; }
body .forum-account-bar { background: var(--panel-bg); border: var(--panel-border); border-radius: 0; }
body .forum-page .forum-card { background: var(--panel-bg); border: var(--panel-border); border-radius: 0; box-shadow: var(--panel-shadow); }
body .forum-page .forum-category-title { background: linear-gradient(180deg, #2a241a, #17150f); color: #e6dcc3; border-bottom: 1px solid #4a3c26; text-shadow: none; font-family: var(--font-display); text-transform: uppercase; }
body .forum-page .forum-category-title::before { content: "///"; color: var(--amber); margin-right: 8px; }
body .forum-page .forum-columns { background: rgba(0,0,0,.35); color: #a39b88; border-bottom: 1px solid #4a3c26; }
body .forum-page .forum-row, body .forum-page .forum-row:nth-child(odd) { background: transparent; border-bottom: 1px solid #2c261b; box-shadow: none; }
body .forum-page .forum-row:hover { background: rgba(229,138,25,.06); }
body .forum-page .forum-row a { color: #f0a03a; font-family: var(--font-display); font-size: 17px; letter-spacing: .02em; }
body .forum-page .forum-row a:hover { color: #ffc061; }
body .forum-page .forum-count { color: #ece3cc; font-family: var(--font-display); font-size: 17px; }
body .forum-page .forum-topic-heading { background: var(--panel-bg); border: var(--panel-border); border-radius: 0; }
body .forum-page .btn { font-family: var(--font-display); font-size: 14px; border-radius: 0; text-transform: uppercase; letter-spacing: .04em; }
body .forum-page .btn-primary { background: linear-gradient(180deg, #f0a03a, #c66c10); color: #1a1006; border: 1px solid #ffb24a; box-shadow: none; }
body .forum-page .btn-secondary { background: rgba(0,0,0,.35); color: #d6d0bd; border: 1px solid #5a4a30; box-shadow: none; }
body .forum-message-author { background: #1d1f1a; color: #d6d0bd; border-right: 1px solid #3a3326; }
body .forum-message-body, body .forum-message-list .forum-message:nth-child(even) .forum-message-body { background: #151611; }
body .forum-message-heading { background: #1d1f1a; border-bottom: 1px solid #3a3326; color: #d6d0bd; }
body .forum-avatar-placeholder { background: #0d0d0b; color: #857e6e; border: 1px solid #4a3c26; }
body .forum-page .forum-editor { background: #151611; color: #d6d0bd; border: var(--panel-border); }
body .forum-page .forum-editor input:not([type=checkbox]), body .forum-page .forum-editor textarea, body .forum-page .forum-editor select { background: #0b0b09; color: #d6d0bd; border: 1px solid #4a3c26; }
body .forum-closed-note, body .forum-smile-picker { border-color: #4a3c26; background: #151611; }
body .forum-login-dialog { background: #141512; border: var(--panel-border); color: #d6d0bd; }
body .forum-login-dialog .panel-steel { background: #11120f; }
body .forum-page .forum-category-title { justify-content: flex-start; }
body .forum-page .forum-category-title, body .forum-page .forum-category-title * { color: #e6dcc3; text-shadow: none; }
body .forum-page .forum-category-title > :last-child:not(:first-child) { margin-left: auto; }
.account-shell .account-heading h1, .account-shell .account-heading .account-eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.account-shell .account-heading { justify-content: flex-end; margin-bottom: 8px; }

/* forum messages readable on the dark theme (old palette had #060606 text) */
body .forum-page .forum-message { color: #e2dac4; border: var(--panel-border); }
body .forum-message .forum-text { color: #e2dac4; }
body .forum-message-heading h2 { color: #ece3cc; }
body .forum-message-heading time { color: #a39b88; }
body .forum-message-author, body .forum-message-author * { color: #d6d0bd; }
body .forum-message-author img { border: 1px solid #4a3c26; }
body .forum-page .forum-editor, body .forum-page .forum-editor h3 { color: #e2dac4; }
body .forum-page .forum-editor .forum-note { color: #a39b88; }
body .forum-page .forum-format-preview { background: #0b0b09; color: #e2dac4; border: 1px solid #4a3c26; }
body .forum-page .forum-category-title h2 { color: #e6dcc3; text-shadow: none; }
body .forum-page .forum-row > div + div { border-left-color: #2c261b; }

/* --- playweb54: browser play --- */
.play-shell { display: flex; flex-direction: column; gap: 10px; }
.play-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; border: var(--panel-border); background: var(--panel-bg); }
.play-title { margin: 0; font-size: 24px; color: #ffb24a; }
.play-state { color: #9fd65b; font-size: 14px; }
.play-server { color: #a39b88; font-size: 14px; }
.play-server b { color: #ece3cc; }
.play-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.play-stage.play-live { position: relative; aspect-ratio: auto; height: calc(100vh - 230px); min-height: 520px; background: #000; display: block; overflow: hidden; }
.play-stage.play-live:fullscreen { height: 100vh; }
.play-player { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.play-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: linear-gradient(rgba(13,13,11,.75), rgba(13,13,11,.92)), url("/img/hero.jpg") center / cover; }
.play-loading[hidden] { display: none; }
.play-loading h2 { margin: 0; color: #ece3cc; font-size: 30px; }
.play-loading p { margin: 0; color: #cfc7b2; max-width: 520px; }
.play-progress { width: 320px; max-width: 80vw; height: 8px; border: 1px solid #5a4a30; background: #0b0b09; }
.play-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c66c10, #f0a03a); transition: width .4s ease; }
@media (max-width: 1023px) { .play-stage.play-live { height: 70vh; min-height: 360px; } .play-actions { margin-left: 0; } }

/* playmobile55: /play on a phone — the game takes the whole screen */
.play-menu-btn, .play-rotate, .play-phone-only { display: none; }
.play-text[hidden], body.play-mobile .play-text[hidden] { display: none; }
body.play-mobile .play-text { display: flex; position: absolute; z-index: 5005; top: 0; left: 0; right: 0; gap: 6px; padding: 6px; background: rgba(13,13,11,.97); border-bottom: 1px solid rgba(255,178,74,.5); }
body.play-mobile .play-text .btn { min-height: 40px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.play-text-input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; font-size: 16px; color: #ece3cc; background: #1b1a16; border: 1px solid rgba(255,178,74,.5); border-radius: 0; }
body.play-mobile { overflow: hidden; }
body.play-mobile .play-shell { position: fixed; inset: 0; z-index: 5000; height: 100dvh; display: block; background: #000; gap: 0; }
body.play-mobile .play-help { display: none; }
body.play-mobile .play-stage.play-live { position: absolute; inset: 0; height: 100%; width: 100%; min-height: 0; border: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body.play-mobile .play-player { inset: auto; left: 0; top: 0; transform-origin: 0 0; }
body.play-mobile .play-loading h2 { font-size: 20px; }
body.play-mobile .play-loading p { font-size: 13px; }
body.play-mobile .play-phone-only { display: inline-flex; align-items: center; justify-content: center; }
body.play-mobile .play-menu-btn { display: block; position: absolute; z-index: 5003; left: 4px; bottom: calc(min(100vw, 100vh) * .38); bottom: calc(min(100vw, 100dvh) * .38); width: 44px; height: 26px; padding: 0; font-size: 16px; line-height: 1; color: #ece3cc; background: rgba(13,13,11,.55); border: 1px solid rgba(255,178,74,.5); } /* just above the game clock (bottom left): at the top it covered the close buttons of game windows */
body.play-mobile .play-bar { display: none; position: absolute; z-index: 5002; top: 26px; left: 50%; transform: translateX(-50%); width: min(96vw, 620px); max-height: calc(100dvh - 30px); overflow: auto; padding: 8px 10px; gap: 6px 10px; background: rgba(13,13,11,.95); }
body.play-mobile .play-menu-open .play-bar { display: flex; }
body.play-mobile .play-title { display: none; }
body.play-mobile .play-state, body.play-mobile .play-server { font-size: 12px; }
body.play-mobile .play-actions { margin: 0; gap: 6px; }
body.play-mobile .play-actions .btn { min-height: 40px; padding: 6px 10px; font-size: 12px; }
@media (orientation: portrait) {
  body.play-mobile .play-shell:not(.play-rotate-skipped) .play-rotate { display: flex; position: absolute; inset: 0; z-index: 5004; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(13,13,11,.94); }
  body.play-mobile .play-rotate p { margin: 0; font-family: var(--font-display); font-size: 20px; color: #ece3cc; text-transform: uppercase; }
  body.play-mobile .play-rotate .btn { min-width: 220px; min-height: 44px; }
  .play-rotate-phone { width: 44px; height: 76px; border: 3px solid #ffb24a; border-radius: 7px; animation: play-rotate-hint 2.2s ease-in-out infinite; }
}
@keyframes play-rotate-hint { 0%, 25% { transform: rotate(0); } 60%, 100% { transform: rotate(90deg); } }
/* playmobile55: /online */
.server-players-link { color: inherit; text-decoration: none; }
.server-players-link:hover { text-decoration: underline; }
.online-panel { margin-top: 18px; padding: 14px 18px; overflow-x: auto; }
.online-table { width: 100%; border-collapse: collapse; }
.online-table th { padding: 8px 12px; text-align: left; font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #a39b88; border-bottom: 1px solid #4a3c26; }
.online-table td { padding: 9px 12px; color: #ece3cc; border-bottom: 1px solid #2c261b; overflow-wrap: anywhere; }
.online-table th:first-child, .online-table td:first-child { width: 48px; color: #a39b88; }
.online-table th:last-child, .online-table td:last-child { width: 96px; text-align: right; color: #ffb24a; }
.online-empty { margin: 8px 0; color: #cfc7b2; }