/* План графики «Стражи Рубежа» / Rimwardens graphics plan */
:root {
  --bg: #0e1116; --bg2: #141922; --card: #1a202b; --card2: #212938; --line: #2c3546; --text: #e9edf3; --muted: #9aa6b8; --dim: #6c788b;
  --gold: #f0c35a; --gold2: #ffdf8e; --ink: #241805; --good: #72d08a; --warn: #f0b04a; --bad: #ef6b5f; --mag: #c49bff; --sky: #74b8ff;
  --r: 14px; --head: 'Philosopher', Georgia, serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold2); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 21px; }
h4 { font-size: 16px; color: var(--gold2); }
p { margin: 0 0 .8em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0 24px; border-top: 1px solid #1c2330; }
.lead { font-size: 17px; color: #cfd6e2; max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.g { color: var(--good); border-color: #2f5a3d; } .tag.w { color: var(--warn); border-color: #5c4a22; } .tag.b { color: var(--bad); border-color: #5e2c2a; } .tag.m { color: var(--mag); border-color: #4b3a6c; } .tag.y { color: var(--gold); border-color: #5c4a22; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .wrap { padding: 0 16px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.card h3 { margin-bottom: .35em; }
figure { margin: 0; }
figure.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
figure.shot img { width: 100%; height: auto; }
figure.shot figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }
figure.shot figcaption b { color: var(--text); }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 22px; margin: 4px 0; }
ul.ticks li::before { content: '◆'; position: absolute; left: 2px; top: 1px; color: var(--gold); font-size: 11px; }
ul.ticks.x li::before { content: '✕'; color: var(--bad); font-size: 12px; }
ul.ticks.ok li::before { content: '✓'; color: var(--good); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

/* Шапка / header */
.hero-top { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-top .bg { position: absolute; inset: 0; background: center 30% / cover no-repeat; filter: saturate(1.05); }
.hero-top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,.15) 0%, rgba(14,17,22,.55) 45%, rgba(14,17,22,.97) 100%); }
.hero-top .wrap { position: relative; z-index: 1; padding-bottom: 40px; width: 100%; }
.kicker { font-family: var(--head); color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: 13px; }
.hero-top h1 { font-size: clamp(36px, 6vw, 68px); margin: .1em 0 .2em; text-shadow: 0 3px 24px rgba(0,0,0,.6); }
.hero-top .lead { text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stat { background: rgba(26,32,43,.82); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; backdrop-filter: blur(6px); }
.stat b { font-family: var(--head); font-size: 22px; color: var(--gold2); display: block; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }
nav.toc { position: sticky; top: 0; z-index: 30; background: rgba(14,17,22,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav.toc .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 9px; padding-bottom: 9px; scrollbar-width: none; }
nav.toc a { flex: none; text-decoration: none; color: var(--muted); font-size: 13px; padding: 5px 10px; border-radius: 99px; border: 1px solid transparent; }
nav.toc a:hover { color: var(--text); border-color: var(--line); }
.tldr { margin-top: 22px; }
.tldr .card { border-left: 3px solid var(--gold); }

/* Живой макет боя / live battle */
.battle { position: relative; margin-top: 18px; }
.battle .toggles { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; align-items: center; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg span { font-size: 12px; color: var(--dim); padding: 0 8px 0 10px; display: flex; align-items: center; }
.seg button { font: 13px var(--body); color: var(--muted); background: none; border: 0; padding: 7px 11px; cursor: pointer; }
.seg button.on { background: var(--gold); color: var(--ink); font-weight: 600; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid #3a3222; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 4px #17130c; background: #0d1014; user-select: none; }
.battle.phone .stage { aspect-ratio: 9 / 16; max-width: 380px; margin: 0 auto; border-radius: 28px; border: 6px solid #232a36; }
.stage canvas.view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.battle:not(.ready) .stage::after { content: 'Загрузка макета…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.battle.aiming .stage canvas.view { cursor: crosshair !important; }
.ui { position: absolute; pointer-events: none; font-family: var(--head); color: #fff4dc; }
.ui > * { pointer-events: auto; }
.res { left: 12px; top: 10px; display: flex; gap: 6px; }
.pill { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 99px; background: linear-gradient(#3a2d1c, #24190c); border: 2px solid #b8893a; box-shadow: inset 0 1px 0 rgba(255,230,170,.35), 0 3px 8px rgba(0,0,0,.45); font-size: 17px; font-weight: 700; text-shadow: 0 1px 0 #000; }
.pill svg { width: 24px; height: 24px; flex: none; }
.pill.bump { animation: bump .3s ease-out; }
@keyframes bump { 40% { transform: scale(1.18); filter: brightness(1.4); } }
.wavebox { left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; }
.wavebox .pill { padding-right: 10px; }
.timer { --p: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #b8893a; background: conic-gradient(#f0c35a calc(var(--p) * 360deg), #2a2013 0); display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.45); }
.timer::before { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: #3a2d1c url('img/e_gob.webp') center 20% / 160% no-repeat; }
.timer { position: relative; }
.prev { display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 10px; background: rgba(20,14,8,.78); border: 1px solid #6b5326; }
.prev .next { display: flex; align-items: center; gap: 2px; }
.prev i { width: 24px; height: 24px; border-radius: 50%; background: #3a2d1c center 18% / 170% no-repeat; border: 1.5px solid #b8893a; display: block; }
.prev small { font: 600 11px var(--body); color: #f3dfb5; margin-right: 4px; }
.prev .nextname { font: 12px var(--body); color: #d9c49a; margin-left: 4px; white-space: nowrap; }
.ctl { right: 12px; top: 10px; display: flex; gap: 6px; }
.btn { height: 34px; min-width: 34px; border-radius: 10px; border: 2px solid #b8893a; background: linear-gradient(#4a3a22, #2a1f10); color: #ffe7b0; font: 700 14px var(--head); cursor: pointer; padding: 0 9px; box-shadow: inset 0 1px 0 rgba(255,230,170,.3), 0 3px 8px rgba(0,0,0,.4); }
.btn.on { background: linear-gradient(#f3cf73, #c8952f); color: #2a1a05; }
.herobox { left: 12px; bottom: 12px; display: flex; gap: 8px; align-items: flex-end; }
.hero { --hp: 1; --ult: 0; position: relative; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #e2b553; background: #2a2013 url('img/h_brand.webp') center 6% / 150% no-repeat; box-shadow: 0 0 0 3px rgba(20,14,8,.7), 0 4px 12px rgba(0,0,0,.5); }
.hero::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: -10px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #72d08a calc(var(--hp) * 100%), #2a1f10 0); border: 1px solid #000; }
.hero .lvl { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: #b8893a; color: #241805; font: 700 12px var(--body); display: grid; place-items: center; border: 2px solid #2a1f10; }
.skill { width: 42px; height: 42px; border-radius: 12px; border: 2px solid #b8893a; background: #2a2013 center / cover; position: relative; overflow: hidden; }
.skill.ult::after { content: ''; position: absolute; inset: 0; background: conic-gradient(rgba(0,0,0,.65) calc(var(--ult, 0) * 360deg), transparent 0); }
.spells { left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; }
.spell { --cd: 0; position: relative; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.spell img { width: 100%; height: 100%; border-radius: 50%; }
.spell span { position: absolute; inset: 3px; border-radius: 50%; background: conic-gradient(rgba(10,8,6,.7) calc(var(--cd) * 360deg), transparent 0); }
.spell.ready { animation: ready 2s ease-in-out infinite; }
@keyframes ready { 50% { filter: drop-shadow(0 0 10px rgba(255,210,110,.75)); } }
.battle.aiming .spell.ready { outline: none; }
.minibox { right: 12px; bottom: 12px; padding: 4px; border-radius: 12px; background: linear-gradient(#4a3a22, #2a1f10); border: 2px solid #b8893a; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.minibox canvas { display: block; width: 176px; height: 99px; border-radius: 8px; }
.banner { left: 50%; top: 26%; transform: translate(-50%, -20px); opacity: 0; text-align: center; pointer-events: none !important; padding: 10px 46px 12px; background: linear-gradient(90deg, transparent, rgba(30,20,8,.88) 18%, rgba(30,20,8,.88) 82%, transparent); border-top: 2px solid #c99b40; border-bottom: 2px solid #c99b40; transition: none; }
.banner b { display: block; font-size: 30px; color: #ffe39a; text-shadow: 0 2px 0 #3a2508, 0 0 18px rgba(255,190,80,.45); }
.banner span { font: 14px var(--body); color: #f0dcb3; letter-spacing: .08em; text-transform: uppercase; }
.banner.boss { border-color: #d24a3a; } .banner.boss b { color: #ff9b85; }
.banner.show { animation: banner 2.6s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -24px) scale(.94); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 6px); } }
.radial { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; transition: opacity .15s; }
.radial.show { opacity: 1; pointer-events: auto; }
.radial i { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; border: 2px dashed rgba(255,214,110,.7); pointer-events: none; }
.radial button { position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 2px solid #c99b40; background: radial-gradient(#4a3a22, #1f160a); cursor: pointer; padding: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.55); transform: scale(.3); transition: transform .18s cubic-bezier(.3,1.6,.5,1); }
.radial.show button { transform: scale(1); }
.radial button img { width: 100%; height: 100%; object-fit: contain; }
.radial button em { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); font: 700 11px var(--body); font-style: normal; background: #241805; color: #ffd66e; border: 1px solid #c99b40; border-radius: 8px; padding: 0 5px; }
.radial button.poor { filter: grayscale(.85) brightness(.7); } .radial button.poor em { color: #ef6b5f; }
.radial .r0 { left: 0; top: -62px; } .radial .r1 { left: 62px; top: 0; } .radial .r2 { left: 0; top: 62px; } .radial .r3 { left: -62px; top: 0; }
.radial button.shake { animation: shake .35s; }
@keyframes shake { 25% { margin-left: -32px; } 75% { margin-left: -20px; } }
.card.tcard, .stage .card { position: absolute; width: 240px; padding: 10px; display: flex; gap: 10px; border-radius: 14px; border: 2px solid #b8893a; background: linear-gradient(#3a2d1c, #1f160a); box-shadow: 0 8px 22px rgba(0,0,0,.6); font: 13px var(--body); color: #f3e3c0; opacity: 0; pointer-events: none; transform: translateY(6px); transition: .15s; }
.stage .card.show { opacity: 1; pointer-events: auto; transform: none; }
.stage .card > img { width: 54px; height: 72px; object-fit: contain; flex: none; }
.stage .card b { font: 700 15px var(--head); color: #ffe39a; display: block; }
.stage .card .lv { color: #ffd66e; letter-spacing: 2px; font-size: 11px; }
.stage .card dl { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; margin: 4px 0 6px; font-size: 12px; } .stage .card dt { color: #c9b48a; } .stage .card dd { margin: 0; font-weight: 600; }
.stage .card .acts { display: flex; gap: 6px; } .stage .card .acts button { flex: 1; height: 28px; border-radius: 8px; border: 1px solid #c99b40; background: #4f6d2c; color: #f4ffe0; font: 700 12px var(--body); cursor: pointer; }
.stage .card .acts .sell { background: #5a3a22; } .stage .card .acts .poor { background: #3a3530; color: #a99; }
.battle.old .ui, .battle.old .radial, .battle.old .stage .card { display: none; }
.oldbar { display: none; position: absolute; left: 0; right: 0; top: 0; padding: 6px 8px; background: #171c23; border-bottom: 1px solid #2c3542; font: 12px system-ui; color: #93a1b3; gap: 6px; flex-wrap: wrap; }
.oldbar i { font-style: normal; border: 1px solid #2c3542; background: #1f2630; color: #e8edf3; border-radius: 6px; padding: 2px 7px; }
.oldhud { display: none; position: absolute; left: 8px; top: 44px; background: rgba(15,19,24,.85); border: 1px solid #2c3542; border-radius: 8px; padding: 6px 9px; font: 12px/1.45 system-ui; color: #e8edf3; min-width: 170px; }
.oldhud div { display: flex; justify-content: space-between; gap: 10px; } .oldhud span { color: #93a1b3; }
.battle.old .oldbar { display: flex; } .battle.old .oldhud { display: block; }
.battle.phone .res { left: 8px; top: 8px; } .battle.phone .pill { height: 30px; font-size: 15px; }
.battle.phone .wavebox { left: auto; right: 8px; transform: none; top: 8px; } .battle.phone .prev { display: none; }
.battle.phone .ctl { right: 8px; top: 52px; flex-direction: column; } .battle.phone .ctl .btn[data-set] { display: none; }
.battle.phone .minibox { display: none; }
.battle.phone .spells { left: auto; right: 10px; transform: none; bottom: 14px; flex-direction: column; }
.battle.phone .herobox { bottom: 18px; }
.battle.phone .banner b { font-size: 22px; }
.callouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; margin-top: 16px; counter-reset: c; }
.callouts div { font-size: 14px; color: #cfd6e2; padding-left: 30px; position: relative; }
.callouts div::before { counter-increment: c; content: counter(c); position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 12px var(--body); display: grid; place-items: center; }
@media (max-width: 700px) {
  .battle:not(.phone) .prev, .battle:not(.phone) .minibox, .battle:not(.phone) .herobox .skill { display: none; }
  .battle:not(.phone) .spell { width: 40px; height: 40px; }
  .battle:not(.phone) .pill { height: 28px; font-size: 14px; } .battle:not(.phone) .pill svg { width: 18px; height: 18px; }
  .battle:not(.phone) .hero { width: 46px; height: 46px; }
  .battle:not(.phone) .timer { width: 32px; height: 32px; } .battle:not(.phone) .timer::before { width: 24px; height: 24px; }
  .battle:not(.phone) .btn { height: 28px; min-width: 28px; font-size: 12px; }
  .stage { border-radius: 10px; }
}

/* Аудит / audit */
.sev { font-weight: 700; font-size: 12px; } .sev.h { color: var(--bad); } .sev.m { color: var(--warn); } .sev.l { color: var(--muted); }

/* Принципы / principles */
.pyramid { display: grid; gap: 6px; }
.pyramid div { border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.scale { position: relative; display: flex; align-items: flex-end; gap: 14px; padding: 18px 14px 34px; background: linear-gradient(#2e4a2a, #24391f); border-radius: var(--r); border: 1px solid var(--line); overflow-x: auto; min-height: 330px; }
.scale::before { content: ''; position: absolute; left: 0; right: 0; bottom: 34px; border-top: 1px dashed rgba(255,255,255,.25); }
.scale figure { flex: none; display: flex; flex-direction: column; align-items: center; position: relative; }
.scale figure img { width: auto; filter: drop-shadow(0 6px 3px rgba(0,0,0,.35)); }
.scale figcaption { position: absolute; bottom: -28px; font-size: 11px; color: #cfe3c6; white-space: nowrap; text-align: center; line-height: 1.2; }
.sil { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 16px; background: #e9e4d8; border-radius: var(--r); }
.sil img { height: 64px; width: auto; filter: brightness(0); }
.sil.color img { filter: none; }
.sw { display: flex; height: 26px; border-radius: 7px; overflow: hidden; border: 1px solid rgba(0,0,0,.4); }
.sw i { flex: 1; }
.biomes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.biomes div { font-size: 13px; color: #cfd6e2; } .biomes b { display: block; font-weight: 600; margin-bottom: 4px; }
.dmg { display: flex; flex-wrap: wrap; gap: 10px; }
.dmg span { font: 700 20px var(--head); padding: 6px 14px; border-radius: 10px; background: #2a3a26; -webkit-text-stroke: 1px #1c0e04; paint-order: stroke fill; }
.halo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.halo figure { border-radius: 12px; overflow: hidden; position: relative; background: #2e5c28; }
.halo img { width: 100%; image-rendering: auto; }
.halo figcaption { position: absolute; left: 8px; top: 8px; font-size: 12px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; }

/* Фазы / phases */
.phase { margin-top: 26px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.phase > header { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: linear-gradient(90deg, #1e2533, #161b25); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.phase .num { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font: 700 22px var(--head); color: var(--ink); background: linear-gradient(#ffe08e, #c99b40); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.phase header h3 { font-size: 24px; margin: 0 0 4px; }
.phase header .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.phase .body { padding: 18px 20px 22px; }
.phase .cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .phase .cols { grid-template-columns: minmax(0, 1fr); } }
.done { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #182419; border: 1px solid #2b4a31; font-size: 14px; }
.done b { color: var(--good); }
.mock { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b0e12; position: relative; }
.mock .lbl { position: absolute; left: 10px; top: 10px; z-index: 3; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.65); color: var(--gold2); padding: 3px 8px; border-radius: 6px; }
.strip { display: flex; gap: 10px; align-items: flex-end; overflow-x: auto; padding: 14px; background: radial-gradient(ellipse at 50% 100%, #3a5a30, #1f2f1b); border-radius: 14px; border: 1px solid var(--line); }
.strip figure { flex: none; text-align: center; font-size: 12px; color: #d8e8cf; }
.strip img { height: 150px; width: auto; margin: 0 auto 6px; filter: drop-shadow(0 8px 4px rgba(0,0,0,.4)); }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.flow > div { flex: 1 1 140px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; position: relative; }
.flow > div b { display: block; font-family: var(--head); font-size: 15px; color: var(--gold2); margin-bottom: 3px; }
.flow > div:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 700; z-index: 2; }
.layers { display: grid; gap: 4px; }
.layers div { padding: 7px 12px; border-radius: 8px; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; border: 1px solid rgba(255,255,255,.06); }
.lod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lod .mock { aspect-ratio: 4 / 3; background: center / cover no-repeat; }
.lod .mock .u { position: absolute; transform: translate(-50%, -100%); }
.lod p { font-size: 13px; margin-top: 6px; }
@media (max-width: 620px) { .lod { grid-template-columns: minmax(0, 1fr); } }
.elite { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .elite { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.elite figure { background: radial-gradient(ellipse at 50% 90%, #3c5530, #1b2618); border-radius: 12px; border: 1px solid var(--line); padding: 12px 8px 8px; text-align: center; font-size: 12px; color: #d7e4cf; }
.elite img { height: 110px; width: auto; margin: 0 auto 6px; }
.gen { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.gen figure.shot img { aspect-ratio: 16 / 9; object-fit: cover; background: #222; }
.gen .pending { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: repeating-linear-gradient(45deg, #1a202b 0 10px, #1d2430 10px 20px); }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid #3a3222; background: center / cover no-repeat; font-family: var(--head); }
.screen .shade { position: absolute; inset: 0; }
.menu-logo { position: absolute; left: 6%; top: 10%; color: #ffe7a6; text-shadow: 0 3px 0 #3a2508, 0 0 30px rgba(255,190,80,.5); font-size: clamp(20px, 4vw, 44px); line-height: 1; }
.menu-logo small { display: block; font-size: .38em; letter-spacing: .3em; color: #f0d9a8; margin-top: 8px; }
.menu-btns { position: absolute; left: 6%; top: 40%; display: grid; gap: 8px; width: min(36%, 260px); }
.mbtn { padding: 9px 14px; border-radius: 10px; border: 2px solid #c99b40; background: linear-gradient(#4a3a22, #241a0c); color: #ffe7b0; font-size: clamp(12px, 1.5vw, 17px); text-align: left; box-shadow: 0 4px 10px rgba(0,0,0,.45); }
.mbtn.main { background: linear-gradient(#f6d27a, #c48f2c); color: #2a1a05; font-weight: 700; }
.result { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(70%, 440px); padding: 18px 20px 16px; border-radius: 18px; border: 3px solid #c99b40; background: linear-gradient(#3a2d1c, #1b1309); text-align: center; color: #f3e3c0; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.result h4 { font-size: clamp(18px, 3vw, 30px); color: #ffe39a; margin: 0 0 6px; }
.stars { font-size: clamp(26px, 5vw, 50px); color: #ffd34d; text-shadow: 0 3px 0 #6b4a10; letter-spacing: 4px; line-height: 1; }
.stars .off { color: #4a3b26; text-shadow: none; }
.result .row { display: flex; justify-content: center; gap: 14px; font: 13px var(--body); margin: 8px 0 10px; color: #d9c49a; flex-wrap: wrap; }
.gantt { display: grid; grid-template-columns: 190px repeat(9, minmax(0, 1fr)); gap: 3px; font-size: 12px; min-width: 760px; }
.gantt .h { color: var(--muted); text-align: center; padding: 4px 0; }
.gantt .n { color: #cfd6e2; padding: 5px 8px 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt .bar { border-radius: 6px; height: 22px; align-self: center; position: relative; }
.src li { margin: 3px 0; font-size: 13px; color: #cfd6e2; } .src a { word-break: break-all; }
.note { border-left: 3px solid var(--sky); background: #141c28; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin: 12px 0; }
footer { padding: 40px 0 60px; color: var(--dim); font-size: 13px; border-top: 1px solid #1c2330; margin-top: 40px; }
