/* ============================================================================
   HoodFox — фабл-раунд-5 (2026-09-01): рулетка как в CS внутри Hunt, ровные
   рамки, заголовки в одну строку, выноски пиццы, анимированная смена темы.
   Подключается ПОСЛЕ fable4.css и потому выигрывает каскад.
   ========================================================================== */

/* ---------- П11. Заголовки секций строго по центру ---------- */
.sec-head{text-align:center}
.sec-head .display{margin-left:auto;margin-right:auto}
.sec-head .section-note{margin-left:auto;margin-right:auto;max-width:72ch;text-align:center}
.sec-head .eyebrow{margin-left:auto;margin-right:auto}

/* ---------- П14. Роадмап: вводный текст чёткий, без «мыла» ---------- */
#roadmap .sec-head .section-note{text-shadow:none}
.sec-head .section-note{text-shadow:none}

/* ---------- П2. Пре-рег: поля и статус ---------- */
.wl-row{display:flex;align-items:stretch;gap:0}
.wl-input{height:58px;padding:0 18px;box-shadow:none}
.wl-status{margin-top:16px;margin-bottom:4px;line-height:1.55}
.wl-shell{margin-top:10px;margin-bottom:20px}
.steps{margin-top:22px}

/* ---------- П3. Пре-рег: фазы минта — короче, ровнее, бейджи ---------- */
#stages>.hud{display:block;text-align:center;margin-bottom:14px}
.stage-list{display:grid;gap:10px}
.stage-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:14px;align-items:center;
  padding:12px 16px}
.stage-row .n{width:36px;height:36px;display:grid;place-items:center}
.stage-row b{font:15px/1.3 var(--pxf);text-transform:uppercase;letter-spacing:.03em}
.stage-row .who{display:block;margin-top:4px;font-size:15px;line-height:1.4}
.stage-row .rule{white-space:nowrap;justify-self:end;padding:7px 10px;background:var(--dusk);
  border:2px solid var(--shadow);box-shadow:0 2px 0 var(--shadow);font-size:11px;color:var(--sand);
  text-align:center}
.counter{text-align:center}
#stages .mock-note{font-size:15px}

/* ---------- П4/П12. Витрина и статы ханта ---------- */
.stats{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:14px}
.stat{padding:20px 18px;gap:8px;justify-content:center}
/* плашка экспоната тёмная в обеих темах — текст фиксированно светлый */
.placard{color:#d9c4b0}
.placard b{color:#f2c377}
.wall-hint{text-align:center}

/* ---------- П7. Кейс-блок: рамки не гигантские, текст по ширине, без «04» ---------- */
#trait-hunt .mechanic-no{display:none}
#trait-hunt .mechanic-head{display:block}
#trait-hunt .mechanic-head>div{max-width:none}
#trait-hunt .mechanic-head h3{margin-top:0}
/* хиро-панель рулетки: текст во всю ширину рамки */
#rolls .presale-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(18px,3vw,40px);
  align-items:center;padding:clamp(20px,2.6vw,32px)}
#rolls .presale-hero p{max-width:none}
#rolls .presale-amount{align-self:center}
#rolls .simulator{margin-top:24px;padding:clamp(18px,2.4vw,30px)}
#rolls .sim-side h3{margin:8px 0 10px}
#rolls .sim-side p{max-width:64ch}
#rolls .sim-actions{margin-top:14px}
#rolls .sim-actions .btn{min-width:260px}
#rolls .sim-honest{max-width:64ch;margin-left:auto;margin-right:auto;text-align:center}
#rolls .section-note{max-width:64ch}
.sim-count{font-size:13px}

/* ---------- П6. Лента кейса: живой CS-прогон ---------- */
.case-frame{height:168px}
.case-tape{transition:none}
.case-window.spinning .case-frame{box-shadow:0 8px 0 var(--shadow),0 0 0 3px var(--fox),
  0 0 30px rgba(255,139,61,.35)}
.case-window.landed .case-frame{box-shadow:0 8px 0 var(--shadow),0 0 0 3px var(--sand),
  0 0 26px rgba(242,195,119,.45)}

/* ---------- П10. Парные рамки: заголовки/текст/кнопки на одном уровне ---------- */
.season-grid{align-items:stretch}
.season-grid>.season-panel{display:grid;grid-template-rows:subgrid;grid-row:span 5;
  align-content:start;row-gap:0}
.season-grid>.season-panel .hud{align-self:start}
.season-grid>.season-panel h3{align-self:start;margin-top:10px}
.season-grid>.season-panel>p{align-self:start;margin-top:10px}
.season-grid>.season-panel>p:last-child{align-self:end}
.presale-grid{align-items:stretch}
.presale-grid>.presale-card{display:grid;grid-template-rows:subgrid;grid-row:span 2;
  align-content:start;row-gap:8px}
.presale-grid>.presale-card b{align-self:start}
.presale-grid>.presale-card p{align-self:start;margin-top:0}

/* ---------- П16. Хейст: season-lead без блока обещаний ---------- */
.season-lead{grid-template-columns:minmax(0,1fr)}
.season-lead>div{max-width:none}

/* ---------- П18. Пицца: арт со впечатанными подписями, по центру ---------- */
/* Подписи впечатаны в PNG тёмным цветом, поэтому арт всегда лежит на светлой
   «карточке-меню» — фиксированный крем в обеих темах, ночью читается как
   подсвеченное меню пиццерии. 800px-арт с 2px-пикселем показывается ровно
   в 400px: 1 арт-пиксель = 1 css-пиксель, без мыла и лесенок. */
.pizza-plate{overflow:visible}
.pizza-board{width:-moz-fit-content;width:fit-content;max-width:100%;margin:14px auto 0;
  padding:clamp(12px,2.4vw,24px);background:#ffedd2;border:3px solid #3b1d13;
  box-shadow:0 5px 0 rgba(27,10,26,.4)}
.pizza-board img{display:block;width:400px;max-width:100%;height:auto;image-rendering:pixelated}
/* мелкая текстовая легенда: точные количества под артом */
.pizza-fine{list-style:none;margin:18px auto 0;padding:0;width:min(100%,880px);
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 26px}
.pizza-fine li{text-align:center;min-width:0}
.pizza-fine b{display:block;font:13px/1.4 var(--pxf);letter-spacing:.04em;
  text-transform:uppercase;color:var(--sand)}
.pizza-fine span{display:block;margin-top:2px;font-size:14px;line-height:1.4;color:var(--faded)}
@media (max-width:900px){.pizza-fine{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.pizza-fine{grid-template-columns:minmax(0,1fr)}}

/* ---------- П22. Кнопка темы: чистая иконка без рамки ---------- */
.theme-toggle,html[data-theme="day"] .theme-toggle{background:none;border:none;box-shadow:none;
  width:44px;height:44px;padding:6px}
.theme-toggle:hover{transform:translateY(1px);box-shadow:none}
.theme-toggle:focus-visible{outline:2px solid var(--fox);outline-offset:2px}
.theme-toggle img{width:28px;height:28px}

/* ---------- П23. Анимированный переход темы ---------- */
html.theme-anim body *{transition:background-color .7s ease,color .7s ease,
  border-color .7s ease,box-shadow .7s ease,opacity .7s ease}
html.theme-anim .skystars,html.theme-anim .stars-bg{transition:opacity 1.2s ease!important}
html.theme-anim .sky-band img{animation:none!important;transition:transform 1s ease,opacity 1s ease}
.sky-band img.orb-set{transform:translateY(84px)!important;opacity:0}
.sky-band img.orb-pre{transform:translateY(84px);opacity:0;transition:none!important}
html.theme-anim .dune-band,html.theme-anim .dune-band::before,html.theme-anim .dune-band::after{
  transition:filter 1.2s ease,opacity 1.2s ease,background-color 1.2s ease}
.theme-veil{position:absolute;inset:0;z-index:1;opacity:0;transition:opacity 1.15s ease;
  pointer-events:none}
@media (prefers-reduced-motion:reduce){
  html.theme-anim body *{transition:none!important}
}

/* ---------- Общая полировка раунда ---------- */
/* подписи таблицы редкости: колонки ровные */
table.season-table td.rarity-word{min-width:0;vertical-align:top;font-size:14px}
table.season-table.bands-even{table-layout:fixed}
table.season-table.bands-even th:first-child,table.season-table.bands-even td:first-child{width:19%}
/* правило «после сезона»: две карточки без дыры */
#after-season .rule-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
