:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.how-to-main {
    display: grid;
    gap: 22px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(32px, 6vw, 76px) 0;
}

.how-to-panel {
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    padding: clamp(22px, 5vw, 52px);
    background: linear-gradient(145deg, rgba(28, 41, 64, 0.95), rgba(15, 24, 39, 0.94));
    box-shadow: var(--theme-glow);
}

.how-to-hero,
.how-to-tip {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
}

.how-to-kicker {
    margin: 0 0 10px;
    color: var(--theme-accent-soft);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(28px, 4vw, 46px);
}

h3 {
    margin-bottom: 8px;
}

p {
    color: var(--theme-muted);
    line-height: 1.65;
}

.how-to-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.how-to-actions > a:last-child {
    color: var(--theme-cyan);
    font-weight: 750;
}

.how-to-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 12px;
    padding: 0 16px;
    color: #fff;
    background: var(--theme-accent);
    font-weight: 850;
}

.how-to-facts {
    display: grid;
    gap: 5px;
    border-left: 2px solid var(--theme-cyan);
    padding-left: 18px;
}

.how-to-facts strong {
    margin-top: 9px;
    color: #fff;
    font-size: 22px;
}

.how-to-facts span {
    color: var(--theme-muted);
    line-height: 1.45;
}

.how-to-step-grid,
.how-to-mode-grid,
.how-to-field-grid {
    display: grid;
    gap: 12px;
}

.how-to-step-grid,
.how-to-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.how-to-step-grid article,
.how-to-mode-grid article,
.how-to-field-grid article {
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.how-to-step-grid strong,
.how-to-mode-grid article > span {
    color: var(--theme-accent-soft);
    font-size: 14px;
}

.how-to-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-to-field-grid article {
    display: flex;
    align-items: center;
    gap: 12px;
}

.how-to-field-grid article > span {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--field-color);
}

.how-to-field-grid h3,
.how-to-field-grid p {
    margin-bottom: 0;
}

.how-to-field-grid .lava { --field-color: #ff5868; }
.how-to-field-grid .neutral { --field-color: #36d3a1; }
.how-to-field-grid .life { --field-color: #f4ca55; }
.how-to-field-grid .finish { --field-color: #72a9ff; }
.how-to-field-grid .key { --field-color: #f59e0b; }
.how-to-field-grid .trail { --field-color: #a78bfa; }

.how-to-tip .how-to-primary {
    justify-self: end;
}

@media (max-width: 760px) {
    .how-to-hero,
    .how-to-tip,
    .how-to-step-grid,
    .how-to-mode-grid,
    .how-to-field-grid {
        grid-template-columns: 1fr;
    }

    .how-to-tip .how-to-primary {
        justify-self: stretch;
    }
}
