:root {
  color-scheme: dark;
  --bg: #100e1b;
  --panel: #1a1729;
  --ink: #f9f7ff;
  --soft: #c1b9d3;
  --line: #383049;
  --lime: #d6ff57;
  --purple: #be9bff;
  --radius: 18px;
  font: 16px/1.58 "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--lime); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
h1, h2 { letter-spacing: -.045em; }
h3 { letter-spacing: -.02em; }
p { color: var(--soft); }
[id] { scroll-margin-top: 85px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); padding: 8px 12px; background: var(--lime); color: var(--bg); z-index: 3; }
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #100e1bf5;
  border-bottom: 1px solid var(--line);
}
.header-inner, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.header-inner { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1.08; text-decoration: none; font-weight: 800; }
.brand small { display: block; margin-top: 4px; color: var(--soft); font-size: .61rem; font-weight: 750; letter-spacing: .16em; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--lime); color: var(--bg); font: 27px/1 Georgia, serif; }
.header-inner nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.header-inner nav a { text-decoration: none; color: var(--soft); font-weight: 650; font-size: .9rem; }
.header-inner nav a:hover { color: var(--lime); }

.hero {
  background:
    radial-gradient(ellipse at 77% 23%, #493079 0%, transparent 53%),
    repeating-linear-gradient(135deg, transparent 0 44px, #ede0ff0a 45px 46px, transparent 47px 89px),
    #1b132b;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(24px, 6vw, 80px); align-items: center; padding-block: clamp(52px, 8vw, 104px); }
.kicker { color: var(--purple); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1, .guide-heading h1 { font-size: clamp(2.85rem, 7.15vw, 6.45rem); font-weight: 900; line-height: .98; letter-spacing: -.066em; }
.hero h1 span { color: var(--lime); }
.hero-description { margin-top: 20px; max-width: 40ch; font-size: clamp(1rem, 1.8vw, 1.17rem); }
.button { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 11px 16px; border-radius: 9px; background: var(--lime); color: var(--bg); font-weight: 800; text-decoration: none; }
.button:hover { background: #ecffaf; color: var(--bg); }

.status-card, .index-card, .answer-panel, .setup-panel, .related-grid a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.status-card { padding: clamp(18px, 4vw, 28px); box-shadow: 0 16px 44px #100b2488; }
.status-card h2 { font-size: clamp(1.65rem, 3.5vw, 2.55rem); margin: 10px 0; }
.status-label { color: var(--purple); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; background: var(--purple); }
.status-dot.live { background: var(--lime); }
.next-date { margin-top: 12px; color: var(--ink); }
.status-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--soft); font-size: .8rem; }

.solutions { padding-top: clamp(36px, 6vw, 64px); }
.section-title { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.section-title h2, .faq h2, .walkthrough h2, .related h2 { font-size: clamp(1.65rem, 4.3vw, 2.7rem); }
.section-title > span { color: var(--soft); font-size: .85rem; white-space: nowrap; }
.set-group { margin-top: 19px; }
.set-group + .set-group { margin-top: 36px; }
.set-name { color: var(--purple); font-weight: 750; font-size: .92rem; }
.day-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 19px; }
.day-nav a { display: grid; place-items: center; min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-weight: 800; }
.day-nav a:hover { border-color: var(--lime); }
.index-grid, .related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.index-card { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 20px; }
.index-card:target { border-color: var(--lime); }
.day-number { color: #d4bfff; background: #2d2244; border-radius: 9px; font-weight: 900; font-size: 1.25rem; width: 44px; height: 43px; display: grid; place-items: center; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; font-size: .72rem; font-weight: 700; color: var(--soft); margin-bottom: 7px; }
.difficulty { padding: 1px 6px; border-radius: 4px; }
.easy { color: #c4f59e; background: #223824; }
.hard { color: #ffd28c; background: #41301f; }
.ultra { color: #ffabd0; background: #46243a; }
.index-card h3 { font-size: 1.38rem; }
.index-card h3 a { text-decoration: none; }
.index-card p { margin-top: 7px; font-size: .93rem; }
.text-link { display: inline-block; color: var(--lime); font-weight: 750; margin-top: 10px; font-size: .88rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.faq { padding-block: 45px; }
.faq h2 { margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.faq summary { cursor: pointer; font-weight: 720; }
.faq p { padding-top: 8px; max-width: 72ch; }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px; }
.site-footer p { font-size: .8rem; }

.guide { padding-block: 26px 56px; }
.breadcrumbs { display: flex; gap: 10px; color: var(--soft); font-size: .85rem; margin-bottom: 26px; }
.guide-heading { margin-bottom: 23px; }
.guide-heading h1 { font-size: clamp(2.75rem, 8vw, 5.4rem); }
.guide-subtitle { font-size: 1.13rem; margin-top: 9px; }
.guide-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.guide-tags > * { background: #241b37; border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; color: #e4d7fb; font-size: .78rem; font-weight: 700; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .9fr); align-items: start; gap: 13px; }
.answer-panel, .setup-panel { padding: clamp(17px, 3vw, 26px); }
.answer-panel { border-color: #64507b; }
.answer-panel h2, .setup-panel h2 { font-size: 1.5rem; margin-bottom: 8px; }
.answer-panel > p { color: var(--ink); font-size: 1.03rem; }
.setup-panel h3 { color: var(--purple); font-size: .8rem; margin: 14px 0 5px; }
.setup-panel ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.setup-panel li { background: #35264e; border-radius: 6px; padding: 4px 8px; font-weight: 700; font-size: .85rem; }
.walkthrough, .related { margin-top: 34px; }
.walkthrough ol { list-style: none; counter-reset: step; padding: 0; margin: 16px 0 0; }
.walkthrough li { position: relative; counter-increment: step; padding: 11px 0 15px 47px; border-bottom: 1px solid var(--line); }
.walkthrough li::before { content: counter(step); position: absolute; top: 11px; left: 0; display: grid; place-items: center; background: var(--lime); color: var(--bg); border-radius: 8px; width: 31px; height: 31px; font-weight: 900; }
.walkthrough li p, .fix p { margin-top: 5px; }
.fix { margin-top: 19px; padding: 14px 17px; border-left: 3px solid var(--purple); background: var(--panel); }
.references { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: .86rem; }
.related-grid { margin-top: 13px; }
.related-grid a { padding: 12px 15px; text-decoration: none; }
.related-grid a > span { display: block; color: var(--soft); font-size: .8rem; }
.related-grid a:hover { border-color: var(--lime); }

.diagram { margin-top: 14px; }
.tile-map { position: relative; overflow: hidden; isolation: isolate; min-height: 150px; border: 1px solid #685589; border-radius: 11px; background-color: #312747; background-image: linear-gradient(#b09bd82b 1px, transparent 1px), linear-gradient(90deg, #b09bd82b 1px, transparent 1px); background-size: 20px 20px; }
.tower-map { height: 160px; }
.arena-note { position: absolute; top: 7px; left: 9px; font-size: .75rem; color: #e7d7ff; }
.tower-block { position: absolute; top: 50px; left: 50%; width: 76px; height: 64px; transform: translateX(-50%); display: grid; place-items: center; border: 2px solid #bc9cfa; border-radius: 7px; background: #493665; color: #f4ebff; font: 34px/1 Georgia, serif; }
.tower-block small { position: absolute; top: calc(100% + 7px); white-space: nowrap; font: 650 .72rem/1.1 system-ui, sans-serif; }
.marker { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #171220; border-radius: 50%; background: var(--lime); color: #171220; font-weight: 900; z-index: 1; }
.marker-bandit { top: 44px; left: calc(50% - 66px); }
.marker-ghost { top: 68px; left: calc(50% + 41px); }
.river-map { height: 150px; }
.river-line { position: absolute; top: 24px; left: 0; width: 100%; height: 24px; background: #285d81; border-block: 1px solid #7ec4fc; color: #e1f3ff; text-align: right; padding-right: 12px; font-size: .77rem; }
.river-bridge { position: absolute; top: 20px; left: 22%; width: 21px; height: 34px; background: #bf965e; border: 2px solid #e9ba80; border-radius: 3px; }
.quake-zone { position: absolute; display: grid; place-items: end center; text-align: center; line-height: 1.1; left: 9%; top: 55px; width: 35%; height: 80px; border: 1px dashed #ffb6a4; border-radius: 50%; background: #b365583b; color: #ffd5cc; font-size: .7rem; padding-bottom: 8px; }
.hog-path { position: absolute; top: 44px; left: calc(22% + 4px); font-size: 1.1rem; color: #fff1d9; }
.marker-ram { top: 62px; left: 17%; }
.marker-cannon { top: 50px; left: 54%; }
.diagram figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: var(--soft); font-size: .8rem; }
.diagram figcaption b { color: var(--lime); margin-right: 3px; }

@media (max-width: 720px) {
  .hero-inner, .guide-grid, .index-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 28px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 440px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { gap: 10px; }
  .header-inner nav { gap: 12px; }
  .header-inner nav a { font-size: .8rem; }
  .brand-icon { width: 31px; height: 31px; font-size: 22px; }
  .index-card { padding: 14px; gap: 10px; }
  .day-number { width: 34px; height: 34px; font-size: .96rem; }
}
