/* Public site - RO classic: dark ember backdrop, white RO windows, pill buttons */
body.site { background: radial-gradient(ellipse at top, #3A2A3E 0%, #1A1622 55%, #120E14 100%) fixed; }
#embers { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body.site .wrap { position: relative; z-index: 1; max-width: 1100px; }
.hero { text-align: center; padding: 34px 0 18px; }
.logo.big { display: inline-block; font-size: 64px; letter-spacing: 3px; text-decoration: none;
  text-shadow: -3px -3px 0 #5A1E0E, 3px -3px 0 #5A1E0E, -3px 3px 0 #5A1E0E, 3px 3px 0 #5A1E0E, 0 0 24px rgba(255,140,40,.55); }
.logo.big:hover { text-decoration: none; }
.tagline { color: #E8E1D0; font-size: 15px; margin-top: 4px; }
nav.menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 6px;
  background: linear-gradient(#FAFAFA, #DCDCDC); border: 1px solid #8C8C8C; border-radius: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
nav.menu a { padding: 4px 18px; border-radius: 12px; color: var(--text); border: 1px solid transparent; }
nav.menu a:hover { text-decoration: none; background: linear-gradient(#fff, var(--hover-bottom)); border-color: var(--hover-border); }
nav.menu a.on { background: linear-gradient(var(--ember-top), var(--ember-bottom)); color: #fff; border-color: var(--ember-border); font-weight: bold; }
.cta { text-align: center; margin: 4px 0 22px; }
.btn.huge { font-size: 20px; padding: 10px 38px; border-radius: 24px; box-shadow: 0 0 18px rgba(255,120,40,.45); }
.btn.wide { display: block; text-align: center; margin-bottom: 6px; }
.cta-sub { margin-top: 10px; color: #CFC6B4; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.cta-sub span::before { content: "◆ "; color: #FFB15C; }
.cols { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } .logo.big { font-size: 42px; } }
.news-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px dotted #D4D4D4; color: var(--text); }
.news-row:hover { background: #F2F7FD; text-decoration: none; }
.ntag { color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 9px; white-space: nowrap; }
.ntitle { flex: 1; }
.ndate { color: var(--muted); font-size: 12px; white-space: nowrap; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.feat .body { line-height: 1.6; }
.status > div { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.status b { margin-left: auto; font-size: 12px; }
.status b.up { color: #15803D; } .status b.down { color: #B91C1C; }
ul.info { margin: 0 0 8px; padding-left: 18px; line-height: 1.8; }
.article .meta { color: var(--muted); margin-bottom: 10px; }
.article .content { line-height: 1.75; font-size: 14px; }
.steps { display: grid; gap: 14px; margin-bottom: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step > b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(circle at 40% 30%, #fff 0 12%, #93C5FD 28%, #2563EB 75%); border: 1px solid #1E3A8A; font-size: 16px; }
.step h4 { margin: 4px 0 8px; }
.foot { text-align: center; color: #8F8698; font-size: 11px; margin-top: 24px; }

/* ---- theme / media (settings in /admin/site) ---- */
body.site { background: radial-gradient(ellipse at top, var(--bg-bottom) 0%, var(--bg-top) 60%, #0B0A0E 100%) fixed; }
.logo.big { color: var(--logo); }
.logo.big img { display: block; margin: 0 auto; max-width: 92vw; object-fit: contain; filter: drop-shadow(0 0 18px rgba(0,0,0,.6)); }
.btn.ember, button.ember, nav.menu a.on { color: var(--ember-text); }
.cta-sub span::before { color: var(--accent-text); }
.hero-bg { position: absolute; left: 0; right: 0; top: 0; height: 560px; overflow: hidden; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: center/cover no-repeat; }
.hero-dim { position: absolute; inset: 0; }
.slider { position: relative; height: 300px; border: 1px solid #8C8C8C; border-radius: 4px; overflow: hidden; margin-bottom: 18px;
  box-shadow: 2px 3px 8px rgba(0,0,0,.45); background: #111; }
.slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity .8s; display: block; }
.slide.on { opacity: 1; z-index: 1; }
.slide .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; color: #fff; font-size: 20px; font-weight: bold;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); text-shadow: 0 1px 2px #000; }
.dots { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.45); border: 1px solid rgba(0,0,0,.4); cursor: pointer; }
.dots i.on { background: radial-gradient(circle at 40% 30%, #fff 0 18%, #93C5FD 30%, #2563EB 75%); }
@media (max-width: 820px) { .slider { height: 170px; } .slide .cap { font-size: 15px; } }
.trailer { padding: 0 !important; background: #000; }
.trailer iframe, .trailer video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #C8C8C8; border-radius: 2px; transition: transform .15s; }
.gallery a:hover img { transform: scale(1.04); border-color: var(--accent); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 90vh; border: 2px solid #fff; box-shadow: 0 0 30px #000; }
.btn.ember:hover, button.ember:hover { background: linear-gradient(var(--ember-top), var(--ember-bottom)); filter: brightness(1.12); }
.visits { font-size: 11px; color: #8F8698; opacity: .75; margin-bottom: 4px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
table.rank tr.r1 td:first-child::before { content: "🥇 "; } table.rank tr.r2 td:first-child::before { content: "🥈 "; } table.rank tr.r3 td:first-child::before { content: "🥉 "; }
form.search { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
form.search input[type=text] { flex: 1; min-width: 220px; }
td.ico { width: 34px; text-align: center; } td.ico img { max-width: 28px; max-height: 28px; vertical-align: middle; }
.dbhead { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; }
.dbhead img.big { max-width: 120px; max-height: 160px; border: 1px solid #DDD; border-radius: 3px; padding: 4px; background: #FAFAFA; }
.dbhead table { flex: 1; min-width: 280px; }
table.kvt td:nth-child(odd) { color: var(--muted); white-space: nowrap; width: 1%; }
pre.script { background: #F7F7F7; border: 1px solid #DDD; padding: 8px; white-space: pre-wrap; font-size: 12px; }
.win.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.regform .row span:first-child, .win.narrow label.row > span:first-child { width: 130px; }
.hp { position: absolute; left: -5000px; }
div.row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } div.row > span:first-child { width: 130px; font-weight: bold; }
.evnow { background: #FFF7ED; border: 1px solid #FDBA74; border-radius: 3px; padding: 6px 8px; margin-bottom: 8px; color: #9A3412; }
/* server guide (/info) - GitBook style: menu left, page right */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.gnav { position: sticky; top: 10px; }
.gnav .body { padding: 6px 0; }
.gnav .ggroup { padding: 8px 12px 3px; font-size: 11px; font-weight: bold; color: var(--muted); letter-spacing: .5px; }
.gnav a { display: block; padding: 5px 12px 5px 16px; color: var(--text); border-left: 3px solid transparent; }
.gnav a:hover { background: #F2F7FD; text-decoration: none; }
.gnav a.on { background: #FFF4EC; border-left-color: var(--ember-bottom); font-weight: bold; }
.gpage .body { line-height: 1.7; font-size: 14px; }
.gpage h2 { font-size: 17px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #EEE; }
.gpage h2:first-child { margin-top: 4px; }
.gpage h3 { font-size: 15px; margin: 14px 0 6px; }
.gpage table.list { margin: 6px 0 12px; font-size: 13px; }
.gpage table.list td.c, .gpage table.list th.c { text-align: center; }
.gpage ul { margin: 6px 0 12px; padding-left: 22px; }
.gpage code { background: #F3F4F6; border: 1px solid #E5E7EB; border-radius: 3px; padding: 0 4px; font-size: 12px; }
.hint { border-left: 4px solid #3B82F6; background: #EFF6FF; padding: 8px 12px; margin: 10px 0; border-radius: 0 3px 3px 0; }
.hint.warn { border-color: #F59E0B; background: #FFFBEB; }
.hint.ok { border-color: #16A34A; background: #F0FDF4; }
.hint.ember { border-color: var(--ember-bottom); background: #FFF4EC; }
.hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.hl div { border: 1px solid #E5E7EB; border-radius: 4px; padding: 8px 10px; background: #FAFAFA; }
.hl b { display: block; font-size: 18px; color: var(--ember-bottom); }
.gtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.gtabs button.on { background: linear-gradient(var(--ember-top), var(--ember-bottom)); border-color: var(--ember-border); color: var(--ember-text, #fff); }
.r-hi { color: #15803D; font-weight: bold; } .r-mid { color: #B45309; font-weight: bold; } .r-lo { color: #B91C1C; font-weight: bold; }
.gpager { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; padding-top: 12px; border-top: 1px solid #EEE; flex-wrap: wrap; }
@media (max-width: 820px) { .guide { grid-template-columns: 1fr; } .gnav { position: static; } .gpage .body { overflow-x: auto; } }
