*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scrollbar-color: var(--amber) var(--bg0);
    scrollbar-width: thin;
}

body {
    min-height: 100vh;
    background: var(--bg0);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

img,
svg {
    display: block;
}

::selection {
    background: var(--amber);
    color: var(--bg0);
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg0);
}

::-webkit-scrollbar-thumb {
    background: var(--steel);
    border: 3px solid var(--bg0);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amber);
}

.veil {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(110% 70% at 84% -12%, rgba(176, 108, 255, 0.07) 0%, transparent 58%),
        radial-gradient(80% 60% at -12% 108%, rgba(148, 170, 210, 0.035) 0%, transparent 58%);
}

.shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 0;
    max-width: 1300px;
    margin: 0 auto;
    padding: clamp(34px, 6vh, 72px) clamp(20px, 4vw, 48px) 72px;
}

.rail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    align-self: start;
    position: sticky;
    top: 44px;
    padding-right: clamp(26px, 3vw, 46px);
    border-right: 1px solid var(--steel-soft);
}

.crown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.portrait {
    display: block;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
}

.sound {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0 7px;
    border-bottom: 1px solid var(--steel);
    color: var(--mut);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.3s, border-color 0.3s;
}

.sound:hover {
    color: var(--text);
    border-color: var(--text);
}

.sound.on {
    color: var(--amber);
    border-color: var(--amber);
}

.sound.busy {
    opacity: 0.5;
    pointer-events: none;
}

.wave {
    width: 21px;
    height: 13px;
    overflow: visible;
}

.bar {
    fill: currentColor;
    transform-box: fill-box;
    transform-origin: center;
    transform: scaleY(0.26);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.sound.on .bar {
    transform: none;
    animation: eq 1.1s ease-in-out infinite;
}

.sound.on .b1 { animation-duration: 0.92s; animation-delay: -0.15s; }
.sound.on .b2 { animation-duration: 1.34s; animation-delay: -0.55s; }
.sound.on .b3 { animation-duration: 0.78s; animation-delay: -0.3s; }
.sound.on .b4 { animation-duration: 1.18s; animation-delay: -0.7s; }
.sound.on .b5 { animation-duration: 1.02s; animation-delay: -0.05s; }

@keyframes eq {
    0%, 100% { transform: scaleY(0.28); }
    50% { transform: scaleY(1); }
}

.cut {
    fill: none;
    stroke: var(--amber);
    stroke-width: 1.6;
    stroke-dasharray: 25;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.sound.on .cut {
    stroke-dashoffset: 25;
}

.sound-frame {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.ident {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.ident-name {
    font-family: var(--disp);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
}

.ident-name {
    color: var(--cream);
    text-shadow: 2px 2px 0 var(--amber);
    transition: color 0.5s cubic-bezier(0.33, 0, 0.15, 1), text-shadow 0.5s cubic-bezier(0.33, 0, 0.15, 1);
    cursor: default;
}

.ident-name:hover {
    color: var(--amber);
    text-shadow: 2px 2px 0 var(--cream);
}

.ident-role {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
}

.ident-note {
    margin-top: 4px;
    font-size: 15px;
    color: var(--mut);
}

.stats {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--steel);
}

.stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--steel-soft);
}

.stat-n {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--text);
}

.stat-l {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mut);
    text-align: left;
}

.social {
    display: flex;
    gap: 22px;
    padding-bottom: 2px;
}

.social a {
    position: relative;
    display: block;
    padding-bottom: 7px;
    color: var(--mut);
    transition: color 0.3s;
}

.social a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.social a:hover {
    color: var(--amber);
}

.social a:hover::after {
    transform: scaleX(1);
}

.social svg {
    width: 16px;
    height: 16px;
}

.actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.actions .btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 11px;
    letter-spacing: 0.14em;
}

.actions .btn .arr {
    width: 13px;
    height: 13px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--steel);
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
    overflow: hidden;
    isolation: isolate;
    transition: color 0.35s, border-color 0.35s;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--amber);
    transform: translateX(-101%);
    transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.btn:hover {
    color: var(--bg0);
    border-color: var(--amber);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn .arr {
    width: 15px;
    height: 15px;
    transition: transform 0.35s;
}

.btn:hover .arr {
    transform: translateX(5px);
}

.stage {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-left: clamp(26px, 3vw, 46px);
}

.panel {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.panel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 38%;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-130%);
    background: linear-gradient(90deg, transparent, var(--amber-soft), transparent);
}

.panel.switching::after {
    animation: sweep 0.62s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sweep {
    0% { opacity: 0; transform: translateX(calc(var(--dir, 1) * -130%)); }
    14% { opacity: 1; }
    100% { opacity: 0; transform: translateX(calc(var(--dir, 1) * 330%)); }
}

.switch {
    padding: 0 0 16px;
    border-bottom: 1px solid var(--steel);
}

.switch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mut);
}

.switch-label::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--amber);
}

.switch-hint {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mut);
    text-align: right;
}

.hint-fine {
    display: none;
    align-items: center;
    gap: 8px;
}

.keys {
    display: inline-flex;
    gap: 4px;
}

.keys b {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-bottom: 1px solid var(--steel);
    font-weight: 400;
    font-size: 11px;
    line-height: 1;
    color: var(--mut);
}

@media (hover: hover) and (pointer: fine) {
    .hint-coarse {
        display: none;
    }

    .hint-fine {
        display: inline-flex;
    }
}

.switch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
}

.pill {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mut);
    transition: color 0.3s;
}

.pill i {
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0;
    color: var(--mut);
    transition: color 0.3s;
}

.pill::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.pill:hover {
    color: var(--text);
}

.pill:hover i {
    color: var(--mut);
}

.pill[aria-selected='true'] {
    color: var(--text);
}

.pill[aria-selected='true'] i {
    color: var(--amber);
}

.pill[aria-selected='true']::after {
    transform: scaleX(1);
}

.pill.cue i {
    color: var(--amber);
    animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

.deck {
    position: relative;
    min-height: 420px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: clamp(28px, 3.4vw, 44px) 0 10px;
}

.card.leaving {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transform: translateX(calc(var(--dir, 1) * -22px));
    transition: opacity 0.17s ease-in, transform 0.19s ease-in;
    pointer-events: none;
}

.card.entering {
    animation: cardIn 0.34s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.card.entering > * {
    animation: partIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.card.entering > *:nth-child(1) { animation-delay: 0.05s; }
.card.entering > *:nth-child(2) { animation-delay: 0.09s; }
.card.entering > *:nth-child(3) { animation-delay: 0.13s; }
.card.entering > *:nth-child(4) { animation-delay: 0.17s; }
.card.entering > *:nth-child(5) { animation-delay: 0.21s; }
.card.entering > *:nth-child(6) { animation-delay: 0.25s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 30px)); }
    to { opacity: 1; transform: none; }
}

@keyframes partIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.head-n {
    font-family: var(--mono);
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1;
    color: var(--amber);
    padding-top: 5px;
}

.head-t {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title {
    font-family: var(--disp);
    font-weight: 600;
    font-size: clamp(25px, 2.9vw, 35px);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--text);
}

.kicker {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--amber);
}

.prose {
    max-width: 66ch;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
}

.prose strong {
    font-weight: 500;
    color: var(--amber);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.filter {
    padding: 6px 0 7px;
    border-bottom: 1px solid transparent;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mut);
    transition: color 0.3s, border-color 0.3s;
}

.filter:hover {
    color: var(--text);
}

.filter[aria-pressed='true'] {
    color: var(--text);
    border-bottom-color: var(--amber);
}

.steps {
    position: relative;
}

.scanline {
    position: absolute;
    left: 43px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--steel);
}

.scanline i {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: var(--amber);
}

.yr {
    position: relative;
    display: flex;
    align-items: center;
    padding: 26px 0 14px;
}

.yr:first-child {
    padding-top: 6px;
}

.yr span {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 53px;
    padding-right: 12px;
    background: var(--bg0);
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--amber);
}

.yr::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--steel-soft);
}

.step {
    position: relative;
    padding: 22px 0 22px 87px;
    border-bottom: 1px solid var(--steel-soft);
}

.step:last-child {
    border-bottom: 0;
}

.step-head {
    flex: 1 1 240px;
    display: block;
    text-align: left;
}

.act {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border: 1px solid var(--steel);
    background: transparent;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.act svg {
    width: 13px;
    height: 13px;
    color: var(--amber);
    transition: color 0.25s;
}

.act:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--bg0);
}

.act:hover svg {
    color: var(--bg0);
}

.step-title {
    display: block;
    font-family: var(--disp);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.32;
    color: var(--text);
    transition: color 0.3s;
}

.step:hover .step-title {
    color: var(--amber);
}

.step-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 7px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mut);
}

.step-meta b {
    font-weight: 400;
    color: var(--amber);
}

.sep {
    font-style: normal;
    color: var(--steel);
}

.step-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.step.open .step-body {
    grid-template-rows: 1fr;
}

.step-body > div {
    overflow: hidden;
}

.step-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 16px;
}

.note {
    max-width: 64ch;
    font-size: 16px;
    line-height: 1.8;
    color: var(--mut);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags li,
.chip {
    list-style: none;
    padding: 6px 12px;
    border: 1px solid var(--steel);
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mut);
}

.chip {
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.chip:hover {
    color: var(--text);
    border-color: var(--amber);
    background: var(--amber-soft);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.go {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mut);
    transition: color 0.3s, gap 0.3s;
}

.go:hover {
    color: var(--amber);
    gap: 16px;
}

.go svg {
    width: 13px;
    height: 13px;
}

.cells {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 0 clamp(22px, 2.6vw, 40px);
    border-top: 1px solid var(--steel);
}

.cell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 24px 0 26px;
    border-bottom: 1px solid var(--steel-soft);
    transition: padding-left 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.cell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 26px;
    width: 1px;
    background: var(--amber);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.cell:hover {
    padding-left: 16px;
}

.cell:hover::before {
    transform: scaleY(1);
}

.cell-idx {
    display: flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--amber);
}

.cell-glyph {
    width: 28px;
    height: 28px;
    color: var(--amber);
}

.cell-t {
    font-family: var(--disp);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.28;
    color: var(--text);
    transition: color 0.3s;
}

.cell:hover .cell-t {
    color: var(--amber);
}

.cell-d {
    font-size: 15.5px;
    line-height: 1.72;
    color: var(--mut);
}

.cell-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: auto;
    padding-top: 6px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mut);
}

.cell-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.cell:hover .act {
    border-color: var(--amber);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    padding-top: 24px;
    border-top: 1px solid var(--steel);
}

.cta-t {
    font-size: 16px;
    color: var(--mut);
}

.cta .btn {
    padding: 13px 20px;
    font-size: 11px;
    letter-spacing: 0.14em;
}

.groups {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-l {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
}

.group-l::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--steel-soft);
}

.rows {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--steel);
}

.row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 2px;
    border-bottom: 1px solid var(--steel-soft);
    transition: padding-left 0.3s;
}

.row:hover {
    padding-left: 10px;
}

.row-k {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mut);
    white-space: nowrap;
    text-align: right;
}

.row-v {
    font-family: var(--disp);
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
    text-align: left;
    word-break: break-word;
    transition: color 0.3s;
}

.row.plain .row-v {
    font-family: var(--body);
    font-weight: 400;
    font-size: 17px;
    letter-spacing: 0;
}

a.row-v:hover {
    color: var(--amber);
}

.helm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.helm-meter {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.helm-k {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mut);
}

.helm-count {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--text);
}

.helm-count b {
    font-weight: 500;
    color: var(--amber);
}

.helm-row {
    display: flex;
    gap: 8px;
}

.helm-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 10px;
    border: 1px solid var(--steel);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.helm-btn:hover {
    color: var(--bg0);
    border-color: var(--amber);
    background: var(--amber);
}

.helm-btn.urge {
    color: var(--amber);
    border-color: var(--amber);
    animation: cue 2s ease-in-out infinite;
}

.helm-btn svg {
    width: 12px;
    height: 12px;
}

.sk {
    display: block;
    background: var(--steel-soft);
    animation: sk 1.7s ease-in-out infinite;
}

@keyframes sk {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

.sk-name { width: 190px; height: 28px; }
.sk-role { width: 128px; height: 11px; }
.sk-stat { width: 100%; height: 32px; margin-bottom: 9px; }
.sk-dot { width: 38px; height: 38px; }
.sk-pill { width: 88px; height: 33px; }
.sk-title { width: 320px; max-width: 100%; height: 38px; }
.sk-line { width: 100%; max-width: 68ch; height: 13px; }
.sk-line.short { max-width: 36ch; }
.sk-block { height: 108px; }

.sk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

body:not(.loading) .card-skeleton {
    display: none;
}

body.loading .ident-note,
body.loading .actions,
body.loading .helm {
    opacity: 0;
}

.ident-note,
.actions,
.helm {
    transition: opacity 0.4s;
}

@media (max-width: 940px) {
    .shell {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 36px;
    }

    .rail {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        width: 100%;
        padding-right: 0;
        padding-bottom: 30px;
        border-right: 0;
        border-bottom: 1px solid var(--steel-soft);
    }

    .crown {
        align-items: flex-end;
    }

    .portrait {
        width: 68px;
        height: 68px;
    }

    .stage {
        padding-left: 0;
    }

    .actions,
    .helm {
        max-width: 420px;
    }

    .deck {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .head {
        gap: 14px;
    }

    .cells {
        grid-template-columns: 1fr;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .row-k {
        text-align: left;
    }

    .step {
        padding-left: 58px;
    }

    .yr span {
        width: 44px;
    }

    .scanline {
        left: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}