/* ===== Tokens ===== */
:root{
  --bg: #10151c;
  --bg-panel: #182130;
  --bg-panel-2: #1f2a3d;
  --grass: #6aa84f;
  --grass-dark: #43672f;
  --diamond: #5fd3d9;
  --gold: #e8b64f;
  --redstone: #c1440e;
  --text: #eef1e6;
  --text-dim: #93a0b5;
  --border: #364154;
  --bevel-light: rgba(255,255,255,0.14);
  --bevel-dark: rgba(0,0,0,0.55);

  --font-display: 'Press Start 2P', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap{ max-width: 920px; margin: 0 auto; padding: 0 24px; }
a{ color: inherit; }
code{ font-family: var(--font-mono); }

/* Компенсирует высоту закреплённой шапки при переходе по якорным ссылкам */
section[id]{ scroll-margin-top: 84px; }

/* subtle blocky background grid, evokes chunk boundaries without being literal blocks */
.bg-grid{
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: var(--bg);
}

/* ===== Pixel bevel — the signature element (Minecraft inventory-slot bevel) ===== */
.pixel-bevel{
  border-radius: 0;
  box-shadow:
    inset -3px -3px 0 0 var(--bevel-dark),
    inset  3px  3px 0 0 var(--bevel-light);
}

/* ===== Header ===== */
.site-header{
  position: sticky; top: 0; z-index: 10;
  background: rgba(16,21,28,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 68px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-icon{
  width:32px; height:32px;
  object-fit: cover;
  image-rendering: pixelated;
}
.brand-text{
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.5px;
}
.brand-text em{ font-style:normal; color: var(--diamond); }
.site-nav{ display:flex; gap: 22px; }
.site-nav a{
  text-decoration:none; color: var(--text-dim);
  font-size: 14px; font-weight: 600;
  transition: color .15s ease;
}
.site-nav a:hover{ color: var(--gold); }
.site-nav a.is-active{ color: var(--diamond); }

.nav-toggle{
  display:none;
  flex-direction: column;
  justify-content:center;
  gap: 5px;
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display:block; width:100%; height:2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ===== Закреплённая мини-панель с IP ===== */
.quick-bar{
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 9;
  background: rgba(24,33,48,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.quick-bar.is-visible{ transform: translateY(0); opacity: 1; pointer-events: auto; }
.quick-bar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px; padding: 10px 24px;
  font-family: var(--font-mono); font-size: 13px;
}
.quick-bar-ip strong{ color: var(--gold); }
.copy-btn-sm{ height: 34px; padding: 0 16px; font-size: 13px; }

/* ===== Hero ===== */
.hero{
  padding: 64px 24px 56px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items:center;
  gap: 40px;
}
.hero-text{ text-align:left; }
.eyebrow{
  font-family: var(--font-mono);
  color: var(--grass);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero-title{
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.5;
  margin: 0 0 18px;
}
.hero-title .accent{ color: var(--diamond); }
.hero-sub{
  color: var(--text-dim);
  font-size: 17px;
  max-width: 440px;
  margin: 0 0 32px;
}

.hero-model{
  position: relative;
  height: 420px;
  display:flex; align-items:center; justify-content:center;
}
.hero-model canvas{
  width: 100%;
  height: 100%;
  cursor: grab;
}
.hero-model canvas:active{ cursor: grabbing; }

.skin-loading{
  position: absolute; inset: 0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono); font-size: 13px;
  text-align: center;
  transition: opacity .3s ease;
}
.skin-loading.is-hidden{ opacity: 0; pointer-events: none; }
.skin-loading.is-error{ color: var(--redstone); }
.skin-spinner{
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--diamond);
  border-radius: 50%;
  animation: skin-spin .8s linear infinite;
}
.skin-loading.is-error .skin-spinner{ display: none; }
@keyframes skin-spin{ to{ transform: rotate(360deg); } }

.ip-card{
  background: var(--bg-panel);
  max-width: 520px;
  padding: 22px;
}
.edition-switch{
  display:flex; gap: 8px;
  margin-bottom: 14px;
}
.edition-btn{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg);
  border: none;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 var(--bevel-dark), inset 2px 2px 0 0 var(--bevel-light);
  transition: color .15s ease, background .15s ease;
}
.edition-btn:hover{ color: var(--text); }
.edition-btn.is-active{
  color: #0f1a0a;
  background: var(--diamond);
  box-shadow: inset -2px -2px 0 0 rgba(0,0,0,0.35), inset 2px 2px 0 0 rgba(255,255,255,0.35);
}
.ip-card-row{
  display:flex; align-items: stretch; gap: 12px;
  flex-wrap: wrap;
}
.ip-slot{
  flex: 1 1 260px;
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
}
.ip-slot{ box-shadow: inset -3px -3px 0 0 var(--bevel-dark), inset 3px 3px 0 0 var(--bevel-light); }
.ip-label{
  display:block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.ip-value{
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  word-break: break-all;
}
.copy-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: #0f1a0a;
  background: var(--grass);
  border: none;
  padding: 0 22px;
  cursor: pointer;
  box-shadow: inset -3px -3px 0 0 var(--grass-dark), inset 3px 3px 0 0 rgba(255,255,255,0.35);
  transition: transform .08s ease, filter .15s ease, background .15s ease;
}
.copy-btn:hover{ filter: brightness(1.08); }
.copy-btn:active{ transform: translateY(2px); box-shadow: inset -1px -1px 0 0 var(--grass-dark), inset 1px 1px 0 0 rgba(255,255,255,0.35); }
.copy-btn.is-success{
  background: var(--diamond);
  animation: copy-pop .25s ease;
}
.copy-btn.is-success::before{
  content: "✓";
  font-weight: 700;
}
.copy-btn.is-error{ background: var(--redstone); color: var(--text); }
@keyframes copy-pop{
  0%{ transform: scale(1); }
  40%{ transform: scale(1.06); }
  100%{ transform: scale(1); }
}

.cta-row{
  display:flex; gap: 12px; flex-wrap: wrap;
  margin-top: 18px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 26px;
  cursor: pointer;
  border: none;
  transition: transform .08s ease, filter .15s ease;
}
.btn:active{ transform: translateY(2px); }
.btn-primary{
  color: #0f1a0a;
  background: var(--grass);
  box-shadow: inset -3px -3px 0 0 var(--grass-dark), inset 3px 3px 0 0 rgba(255,255,255,0.35);
}
.btn-primary:hover{ filter: brightness(1.08); }
.btn-discord{
  color: var(--text);
  background: #4752c4;
  box-shadow: inset -3px -3px 0 0 #333a91, inset 3px 3px 0 0 rgba(255,255,255,0.25);
}
.btn-discord:hover{ filter: brightness(1.1); }

.status-row{
  display:flex; align-items:center; gap:8px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
}
.status-dot{
  width: 10px; height: 10px; flex-shrink:0;
  background: var(--text-dim);
}
.status-dot.status-loading{ background: var(--text-dim); animation: pulse 1.2s infinite ease-in-out; }
.status-dot.status-online{ background: var(--grass); box-shadow: 0 0 8px var(--grass); }
.status-dot.status-offline{ background: var(--redstone); box-shadow: 0 0 8px var(--redstone); }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
.status-text{ color: var(--text-dim); }
.status-players{ color: var(--diamond); margin-left: auto; }
.status-refresh{
  background: none; border: none; cursor: pointer;
  color: var(--text-dim);
  font-size: 15px; line-height: 1;
  padding: 2px 4px;
  transition: color .15s ease;
}
.status-refresh:hover{ color: var(--diamond); }
.status-refresh.is-spinning{ animation: spin .6s linear; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.hero-note{
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-dim);
}
.hero-note strong{ color: var(--text); }

/* ===== Panels ===== */
.panel{ padding: 48px 24px; border-top: 1px solid var(--border); }
.panel-title{
  font-family: var(--font-display);
  font-size: 16px;
  display:flex; align-items:center; gap: 14px;
  margin: 0 0 32px;
}
.tag{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bg);
  background: var(--diamond);
  padding: 4px 8px;
}

/* Steps */
.steps{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.step{
  background: var(--bg-panel);
  padding: 22px;
  box-shadow: inset -3px -3px 0 0 var(--bevel-dark), inset 3px 3px 0 0 var(--bevel-light);
}
.step-num{
  display:inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 12px;
}
.step h3{ margin: 0 0 8px; font-size: 16px; }
.step p{ margin:0; color: var(--text-dim); font-size: 14px; }
.step code{ color: var(--diamond); font-size: 13px; }

/* Mods */
.mod-card{
  background: var(--bg-panel);
  padding: 22px;
  box-shadow: inset -3px -3px 0 0 var(--bevel-dark), inset 3px 3px 0 0 var(--bevel-light);
  display:flex; align-items:center; justify-content:space-between; gap: 20px;
  flex-wrap: wrap;
}
.mod-card-info h3{ margin: 0 0 8px; font-size: 16px; }
.mod-card-info p{ margin: 0 0 6px; color: var(--text-dim); font-size: 14px; max-width: 520px; }
.mod-meta{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--diamond);
}
.mod-picker{
  display:flex; align-items:center; gap: 10px; flex-wrap: wrap;
}
.mod-loader-switch{ display:flex; gap: 6px; }
.loader-btn{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 var(--bevel-dark), inset 2px 2px 0 0 var(--bevel-light);
  transition: color .15s ease, background .15s ease;
}
.loader-btn:hover{ color: var(--text); }
.loader-btn.is-active{
  color: #0f1a0a;
  background: var(--gold);
  box-shadow: inset -2px -2px 0 0 rgba(0,0,0,0.35), inset 2px 2px 0 0 rgba(255,255,255,0.35);
}
.mod-version-select{
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: none;
  padding: 11px 14px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 var(--bevel-dark), inset 2px 2px 0 0 var(--bevel-light);
}

/* Shorts */
.shorts-sub{ margin: -20px 0 20px; color: var(--text-dim); font-size: 14px; }
.shorts-row-wrap{
  display:flex; align-items:center; gap: 10px;
}
.shorts-nav{
  flex-shrink: 0;
  width: 36px; height: 36px;
  display:flex; align-items:center; justify-content:center;
  font-size: 18px; font-weight: 700;
  color: var(--text);
  background: var(--bg-panel);
  border: none;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 var(--bevel-dark), inset 2px 2px 0 0 var(--bevel-light);
  transition: color .15s ease;
}
.shorts-nav:hover{ color: var(--diamond); }
.shorts-list{
  --shorts-card-w: 160px;
  display:flex; align-items:center; gap: 14px;
  list-style:none; margin:0;
  padding: 20px calc(50% - (var(--shorts-card-w) / 2)) 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shorts-list::-webkit-scrollbar{ display: none; }
.shorts-item{
  flex: 0 0 var(--shorts-card-w);
  scroll-snap-align: center;
  position: relative;
  transform: scale(0.8);
  opacity: 0.45;
  transition: transform .25s ease, opacity .25s ease;
}
.shorts-item.is-active{
  transform: scale(1.22);
  opacity: 1;
  z-index: 2;
}
.shorts-video-btn{
  position: relative;
  display:block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: none;
}
.shorts-video{
  width: var(--shorts-card-w); aspect-ratio: 9 / 16;
  display:block;
  background: var(--bg-panel);
  object-fit: cover;
  pointer-events: none;
  box-shadow: inset -3px -3px 0 0 var(--bevel-dark), inset 3px 3px 0 0 var(--bevel-light);
}
.shorts-play-icon{
  position: absolute; top:50%; left:50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(16,21,28,0.7);
  color: var(--text);
  font-size: 15px;
  border-radius: 50%;
  transition: background .15s ease, transform .15s ease;
}
.shorts-video-btn:hover .shorts-play-icon{ background: var(--diamond); color: #0f1a0a; transform: translate(-50%, -50%) scale(1.08); }

/* Своё окно просмотра — вместо нативного полноэкранного режима, который
   у вертикального видео обрезает картинку под альбомный экран */
.video-modal{
  position: fixed; inset: 0; z-index: 30;
  display:flex; align-items:center; justify-content:center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.video-modal.is-open{ opacity: 1; pointer-events: auto; }
.video-modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(6,9,13,0.92);
}
.video-modal-body{
  position: relative;
  z-index: 1;
  width: min(420px, 90vw);
}
.video-modal-video{
  display:block;
  width: 100%;
  max-height: 85vh;
  aspect-ratio: 9 / 16;
  background: #000;
  object-fit: contain;
  box-shadow: inset -3px -3px 0 0 var(--bevel-dark), inset 3px 3px 0 0 var(--bevel-light);
}
.video-modal-close{
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px;
  display:flex; align-items:center; justify-content:center;
  font-size: 22px; line-height:1;
  color: var(--text);
  background: var(--bg-panel);
  border: none;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 var(--bevel-dark), inset 2px 2px 0 0 var(--bevel-light);
}
.video-modal-close:hover{ color: var(--redstone); }
body.modal-open{ overflow: hidden; }

/* На случай если из своего окна всё же включат нативный fullscreen —
   вертикальное видео не должно обрезаться под альбомный экран */
.shorts-video:fullscreen,
.shorts-video:-webkit-full-screen,
.video-modal-video:fullscreen,
.video-modal-video:-webkit-full-screen{
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
}
.shorts-empty{
  color: var(--text-dim);
  font-size: 14px;
  padding: 20px 0;
}
.shorts-channel-link{
  display:inline-block;
  margin-top: 16px;
  color: var(--diamond);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.shorts-channel-link:hover{ color: var(--gold); }

/* News */
.news-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.news-item{
  background: var(--bg-panel);
  padding: 18px 20px;
  box-shadow: inset -3px -3px 0 0 var(--bevel-dark), inset 3px 3px 0 0 var(--bevel-light);
  display:flex; gap:16px; align-items:baseline; flex-wrap: wrap;
}
.news-date{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grass);
  flex-shrink:0;
  min-width: 90px;
}
.news-body h4{ margin: 0 0 4px; font-size: 15px; }
.news-body p{ margin:0; color: var(--text-dim); font-size: 14px; }

/* Rules (teaser on homepage) */
.rules-list{ margin:0; padding-left: 20px; color: var(--text-dim); }
.rules-list li{ margin-bottom: 10px; }
.rules-list li::marker{ color: var(--redstone); }
.rules-more{ margin-top: 18px; }

/* FAQ */
.faq-list{ display:flex; flex-direction:column; gap: 12px; }
.faq-item{
  background: var(--bg-panel);
  padding: 0 20px;
  box-shadow: inset -3px -3px 0 0 var(--bevel-dark), inset 3px 3px 0 0 var(--bevel-light);
}
.faq-item summary{
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  font-size: 15px;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  position: absolute; top: 50%; right: 0;
  transform: translateY(-50%);
  color: var(--diamond);
  font-family: var(--font-mono);
  font-size: 18px;
}
.faq-item[open] summary::after{ content: "–"; }
.faq-item summary:hover{ color: var(--gold); }
.faq-item p{ margin: 0 0 18px; color: var(--text-dim); font-size: 14px; }
.faq-item code{ color: var(--diamond); font-size: 13px; background: var(--bg); padding: 2px 6px; }
.faq-item a{ color: var(--diamond); }
.faq-item a:hover{ color: var(--gold); }

/* Report form */
.report-form{
  max-width: 560px;
  margin: 0 auto;
  display:flex;
  flex-direction: column;
  gap: 20px;
}
.report-honeypot{
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.report-field{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.report-field label{
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.report-field input,
.report-field select,
.report-field textarea{
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-panel);
  border: none;
  padding: 12px 16px;
  box-shadow: inset -3px -3px 0 0 var(--bevel-dark), inset 3px 3px 0 0 var(--bevel-light);
  resize: vertical;
}
.report-field input::placeholder,
.report-field textarea::placeholder{ color: var(--text-dim); opacity: 0.7; }
.report-field select{ cursor: pointer; }
.report-field input[type="file"]{
  cursor: pointer;
  font-size: 14px;
}
.report-field input[type="file"]::file-selector-button{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: #0f1a0a;
  background: var(--grass);
  border: none;
  padding: 8px 16px;
  margin-right: 12px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 var(--grass-dark), inset 2px 2px 0 0 rgba(255,255,255,0.35);
}
.report-hint{ margin: 0; color: var(--text-dim); font-size: 12px; }
.report-submit{ align-self: flex-start; }
.report-submit:disabled{ opacity: 0.6; cursor: not-allowed; }
.report-status{
  margin: -8px 0 0;
  font-size: 14px;
  min-height: 1.4em;
}
.report-status-ok{ color: var(--grass); }
.report-status-error{ color: var(--redstone); }

/* Rules page */
.rules-hero{ padding: 56px 24px 12px; text-align:center; }
.rules-title{
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 30px);
  line-height: 1.5;
  margin: 0 0 14px;
}
.rules-title .accent{ color: var(--diamond); }
.rules-sub{ color: var(--text-dim); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* 404 page */
.error-hero{ padding: 96px 24px; text-align:center; }
.error-title{
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 38px);
  line-height: 1.5;
  margin: 0 0 16px;
}
.error-title .accent{ color: var(--diamond); }
.error-sub{ color: var(--text-dim); font-size: 16px; max-width: 480px; margin: 0 auto; }
.error-cta{ justify-content: center; margin-top: 28px; }

.rule-block-danger{ background: rgba(193,68,14,0.06); }
.tag-danger{ background: var(--redstone); color: var(--text); }
.tag-gold{ background: var(--gold); }
.rule-block-note{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 4px;
}

.rule-list{ margin:0; padding-left: 22px; color: var(--text-dim); display:flex; flex-direction:column; gap: 10px; }
.rule-list li{ font-size: 15px; }
.rule-list li::marker{ color: var(--diamond); font-family: var(--font-mono); }
.rule-list strong{ color: var(--text); }
.rule-list code{ color: var(--diamond); font-size: 13px; background: var(--bg); padding: 2px 6px; }

.rule-footnote{
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
}

.penalty-table-wrap{ overflow-x: auto; }
.penalty-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-panel);
  box-shadow: inset -3px -3px 0 0 var(--bevel-dark), inset 3px 3px 0 0 var(--bevel-light);
  font-size: 14px;
}
.penalty-table th, .penalty-table td{
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: normal;
}
.penalty-table th{
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--diamond);
  background: var(--bg-panel-2);
}
.penalty-table tbody tr:last-child td{ border-bottom: none; }
.penalty-table td:first-child{ color: var(--text); }
.penalty-table td.penalty-severe{ color: var(--redstone); font-weight: 700; }

/* Footer */
.site-footer{ border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap: wrap; gap:12px; }
.footer-inner p{ margin:0; color: var(--text-dim); font-size: 13px; }
.footer-links{ display:flex; gap:18px; }
.footer-links a{ text-decoration:none; color: var(--text-dim); font-size: 13px; font-weight:600; }
.footer-links a:hover{ color: var(--diamond); }
.footer-hosting{
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
}
.footer-hosting a{ color: var(--text-dim); text-decoration: none; }
.footer-hosting a:hover{ color: var(--diamond); }

/* ===== Responsive ===== */
@media (max-width: 800px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-text{ text-align:center; }
  .hero-sub{ margin: 0 auto 32px; }
  .ip-card{ margin: 0 auto; }
  .hero-model{ height: 320px; order: -1; }
}

@media (max-width: 700px){
  .steps{ grid-template-columns: 1fr; }

  .nav-toggle{ display:flex; }
  .site-nav{
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .site-nav.is-open{ max-height: 260px; }
  .site-nav a{
    font-size: 15px;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }

  .quick-bar-inner{ font-size: 12px; }
  .back-to-top{ right: 14px; bottom: 14px; }

  .shorts-list{ --shorts-card-w: 128px; }
  .shorts-nav{ width: 30px; height: 30px; font-size: 15px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .status-dot.status-loading{ animation: none; }
  .status-refresh.is-spinning{ animation: none; }
  .skin-spinner{ animation: none; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .shorts-item{ transition: none; }
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--diamond);
  outline-offset: 2px;
}

/* ===== Плавное появление блоков при прокрутке ===== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in{ opacity: 1; transform: translateY(0); }
.steps .step:nth-child(1){ transition-delay: 0s; }
.steps .step:nth-child(2){ transition-delay: .08s; }
.steps .step:nth-child(3){ transition-delay: .16s; }

/* ===== Кнопка «наверх» ===== */
.back-to-top{
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 8;
  width: 44px; height: 44px;
  display:flex; align-items:center; justify-content:center;
  font-size: 18px; font-weight: 700;
  color: #0f1a0a;
  background: var(--diamond);
  border: none;
  cursor: pointer;
  box-shadow: inset -3px -3px 0 0 rgba(0,0,0,0.3), inset 3px 3px 0 0 rgba(255,255,255,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, filter .15s ease;
}
.back-to-top.is-visible{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover{ filter: brightness(1.1); }
