/* EssenceInfo — styles of the «gate» pages (site/gate, site/changes). Loaded after app.css only on these pages
   (layouts/site.php, CssBundles). Page-only rules go here; anything shared by several pages belongs in app.css. */
/* ---------- Closed site: login / invite registration page (layouts/gate.php) ---------- */
.gate-body { min-height: 100vh; background: #0b0404; }
.gate-top .logo span { text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.gate-top .online-pill { background: rgba(15,6,6,.6); backdrop-filter: blur(6px); }
.gate-grid > .gate-log ol { max-height: 60vh; }
@media (max-width: 1100px) {
  .gate-grid > .gate-log ol { max-height: 240px; }
}
.gate-card {
  padding: 22px 24px 24px; border-radius: 16px; background: rgba(22, 9, 9, .78); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
}
.captcha-row input::placeholder { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.gate-submit { justify-content: center; margin-top: 4px; padding: 13px 22px; font-size: 15.5px; border-radius: 10px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.gs-btn:hover { background: #f1f1f1; }
.gate-verify h1 { margin: 0; font-size: 26px; }
.gate-log { padding: 16px 20px 6px; border-radius: 16px; background: rgba(12,5,5,.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.06); }
.gl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.gate-log li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #3a1a18; box-shadow: 0 0 0 2px rgba(247,3,0,.5); }
@media (max-width: 480px) { .gate-card { padding: 18px 16px 20px; } }
.gate-mini h1 { margin: 0; font-size: 26px; text-align: center; }
.gate-back:hover { color: #fff; }
.gc-link:hover { transform: translateY(-2px); filter: brightness(1.1); }
.gc-tg { background: linear-gradient(135deg, #2aabee, #1b86c7); box-shadow: 0 8px 22px rgba(42,171,238,.25); }
.gc-ds { background: linear-gradient(135deg, #6c78f5, #4b55d8); box-shadow: 0 8px 22px rgba(88,101,242,.25); }
.gc-go { font-size: 18px; transition: transform .15s; } .gc-link:hover .gc-go { transform: translateX(3px); }
.yt-facade:hover .yt-play { transform: scale(1.1); }
.gc-yt { background: linear-gradient(135deg, #ff2d2d, #c4000a); box-shadow: 0 8px 22px rgba(255,0,0,.25); }

.gc-tt { background: linear-gradient(135deg, #1b1b1f, #0d0d10); box-shadow: 0 8px 22px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.1); }
.gc-tt .gc-ico { color: #fff; background: rgba(255,255,255,.08); filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.gate-tfa .tfa-code { font-size: 26px; padding: 12px; }
.gate-tfa .gv-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 6px; border-radius: 50%; color: var(--accent); background: var(--accent-dim); }
.gate-tfa { text-align: center; }
.gate-tfa .gate-form { text-align: left; }
.gate-tfa .gate-link { background: none; border: 0; cursor: pointer; }

/* ---------- Update history: login page log grouped by day + /changes page ---------- */
.gate-log li.gl-day { padding: 4px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #fff; }
.gate-log li.gl-day::before, .gate-log li.gl-day::after { display: none; }
.gate-log li.gl-day ~ li.gl-day { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.gl-all:hover { color: #fff; }
.chg-page { position: relative; z-index: 1; max-width: 1180px; padding-top: 30px; padding-bottom: 50px; }
.chg-page.is-guest { padding-top: 96px; }
.chg-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; margin-bottom: 22px; }
.chg-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); color: #fff; }
.chg-head p { margin: 6px 0 0; color: var(--text-2); }
.chg-total { flex: none; padding: 8px 16px; border-radius: 999px; font-weight: 800; color: #ffb8a8; background: rgba(247,3,0,.14); box-shadow: inset 0 0 0 1px rgba(247,3,0,.4); }
.chg-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.chg-days { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 4px; padding: 10px; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; scrollbar-color: #8f1111 transparent; }
.chg-page.is-guest .chg-days { top: 24px; }
.chg-days button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 0; border-radius: 11px; font: inherit; font-weight: 700; text-align: left; color: var(--text-2); background: none; cursor: pointer; transition: background .15s, color .15s; }
.chg-days button:hover { color: #fff; background: rgba(255,255,255,.05); }
.chg-days button.is-on { color: #fff; background: linear-gradient(90deg, rgba(247,3,0,.28), rgba(247,3,0,.06)); box-shadow: inset 3px 0 0 var(--accent); }
.chg-days button.is-on small { color: #fff; background: rgba(247,3,0,.45); }
.chg-back:hover { color: #fff; }
.chg-list { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.chg-day { padding: 20px 24px 8px; }
.chg-day h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 22px; color: #fff; }
.chg-day ol { list-style: none; margin: 0; padding: 0; }
.chg-day li::before { content: ""; position: absolute; left: 66px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #3a1a18; box-shadow: 0 0 0 2px rgba(247,3,0,.55); }
.chg-day li:last-child::after { display: none; }
.chg-day time { font-size: 14px; font-weight: 800; color: #ffb8a8; font-variant-numeric: tabular-nums; }
.chg-day p { margin: 0; padding-left: 22px; line-height: 1.55; color: var(--text); }
@media (max-width: 900px) {
  .chg-layout { grid-template-columns: minmax(0, 1fr); }
  .chg-days { top: 64px; z-index: 5; flex-direction: row; overflow-x: auto; max-height: none; padding: 6px; }
  .chg-page.is-guest .chg-days { top: 8px; }
  .chg-days button { flex: none; }
  .chg-days button.is-on { box-shadow: inset 0 -3px 0 var(--accent); }
}
@media (max-width: 600px) {
  .chg-head { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .chg-day { padding: 16px 14px 4px; }
  .chg-day li::before { left: 48px; }
  .chg-day p { padding-left: 16px; }
}
.chg-day p::first-letter, .gate-log li:not(.gl-day) p::first-letter { text-transform: uppercase; }
.gate-main > .gate-card { width: 100%; }
.gate-logo:hover { transform: translateY(-2px); filter: drop-shadow(0 0 26px rgba(247,3,0,.65)) drop-shadow(0 6px 16px rgba(0,0,0,.7)); }
@media (max-width: 480px) { .gate-logo { width: 140px; } }

/* login page: pinned layout — top-anchored, so the logo and card top never move when switching Login / Register (card height differs) */
@media (min-width: 1101px) {
  .gate-grid > .gate-log, .gate-grid > .gate-right { margin-top: calc(clamp(150px, 16vw, 210px) * .611 + 18px); }
}
.gate-top-r .lm-btn { background: rgba(15,6,6,.55); backdrop-filter: blur(6px); }
