@font-face {
    font-family: "Russo One";
    src: url("assets/fonts/RussoOne-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Literata";
    src: url("assets/fonts/Literata-Variable.ttf") format("truetype");
    font-weight: 200 900;
    font-display: swap;
}

:root {
    --ink: #251b26;
    --muted-ink: #73646b;
    --paper: #f1e5cf;
    --paper-deep: #e5d4b8;
    --wine: #a91f38;
    --wine-dark: #5a1221;
    --gold: #e2bd4c;
    --purple: #21142d;
    --purple-soft: #352442;
    --accent: #d8ad3a;
    color-scheme: dark;
    font-family: "Literata", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #100918;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

.app-shell {
    display: grid;
    grid-template-rows: 72px minmax(0, 1fr) 44px;
    width: 100%;
    height: 100%;
    min-width: 980px;
    color: #f8f1fa;
    background:
        linear-gradient(110deg, rgba(13, 7, 20, .96), rgba(35, 20, 48, .92)),
        url("assets/book-cover.png") center / cover fixed;
}

.topbar {
    display: grid;
    grid-template-columns: 54px 230px auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    background: linear-gradient(180deg, rgba(16, 8, 23, .98), rgba(25, 13, 34, .97));
    border-bottom: 1px solid rgba(230, 200, 99, .38);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .38);
    z-index: 5;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border: 2px solid #d7b44d;
    border-radius: 50%;
    background: url("assets/book-cover.png") 48% 46% / 310px auto;
    box-shadow: 0 0 0 3px rgba(117, 39, 62, .5), 0 0 20px rgba(228, 183, 63, .2);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-copy strong {
    color: #f0ce55;
    font: 20px/1 "Russo One", sans-serif;
    letter-spacing: .05em;
    text-shadow: 0 2px 0 #4b1421;
}

.brand-copy span {
    margin-top: 6px;
    color: #baa9c4;
    font: 600 11px/1 "Literata", serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mobile-roster-toggle,
.mobile-roster-close,
.roster-backdrop {
    display: none;
}

.history-controls {
    display: flex;
    gap: 6px;
}

.chrome-button {
    width: 34px;
    height: 34px;
    color: #eadff0;
    background: #30203e;
    border: 1px solid #574267;
    border-radius: 6px;
    cursor: pointer;
}

.chrome-button:hover {
    color: #fff;
    background: #4b315f;
}

.route-bar {
    min-width: 0;
    padding: 9px 14px;
    overflow: hidden;
    color: #c6b6ce;
    background: rgba(8, 4, 13, .42);
    border: 1px solid rgba(132, 102, 150, .3);
    border-radius: 7px;
    font: 600 11px/1 "Literata", serif;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.route-bar b {
    color: #e6c657;
    font-weight: 800;
}

.update-control {
    position: relative;
}

.update-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 12px;
    color: #d7c4df;
    background: #30203e;
    border: 1px solid #604671;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.update-button > span {
    font: 18px/1 "Russo One", sans-serif;
}

.update-button > b {
    font: 10px/1 "Russo One", sans-serif;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.hosted-site .update-button {
    gap: 0;
}

.hosted-site .update-button > span,
.hosted-site #updatePanelStatus,
.hosted-site .update-progress,
.hosted-site .update-action-button {
    display: none;
}

.hosted-site .update-notes {
    margin-top: 0;
}

.update-button:hover {
    color: #fff;
    background: #4b315f;
}

.update-button[data-state="available"] {
    color: #241521;
    background: linear-gradient(#f0ce55, #c89c2d);
    border-color: #f3d86d;
    box-shadow: 0 0 16px rgba(226, 189, 76, .24);
}

.update-button[data-state="error"] {
    color: #fff0f2;
    background: #7d2639;
    border-color: #c54a61;
}

.update-button:disabled {
    cursor: wait;
    opacity: .72;
}

.update-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: 370px;
    padding: 16px;
    color: #eadff0;
    background: linear-gradient(145deg, #21142d, #130b1c);
    border: 1px solid #6b4d7d;
    border-radius: 9px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .52);
}

.update-panel[hidden] {
    display: none;
}

.update-panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 189, 76, .25);
}

.update-panel-heading span,
.update-panel-heading strong {
    display: block;
}

.update-panel-heading span {
    color: #f0ce55;
    font: 14px/1 "Russo One", sans-serif;
    text-transform: uppercase;
}

.update-panel-heading strong {
    margin-top: 6px;
    color: #ac9ab8;
    font: 600 11px/1 "Literata", serif;
}

.update-panel-heading button {
    width: 28px;
    height: 28px;
    color: #cfbfd7;
    background: #342441;
    border: 1px solid #604c6d;
    border-radius: 50%;
    cursor: pointer;
    font: 18px/1 "Russo One", sans-serif;
}

.update-panel > p {
    margin: 13px 0 11px;
    color: #c9bacf;
    font: 600 12px/1.45 "Literata", serif;
}

.update-progress {
    margin: 0 0 11px;
}

.update-progress[hidden] {
    display: none;
}

.update-progress-track {
    height: 9px;
    overflow: hidden;
    background: #30233a;
    border: 1px solid #574663;
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .42);
}

.update-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #b52d4a, #f0ce55);
    border-radius: inherit;
    box-shadow: 0 0 10px rgba(240, 206, 85, .32);
    transition: width .14s linear;
}

.update-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    color: #ab9ab5;
    font: 650 10px/1 "Literata", serif;
}

.update-progress-meta strong {
    color: #f0ce55;
    font-family: "Russo One", sans-serif;
}

.update-action-button {
    width: 100%;
    min-height: 36px;
    padding: 7px 12px;
    color: #251721;
    background: linear-gradient(#f0ce55, #c89c2d);
    border: 1px solid #f3d86d;
    border-radius: 5px;
    cursor: pointer;
    font: 10px/1.2 "Russo One", sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.update-action-button:disabled {
    color: #93869a;
    background: #30233a;
    border-color: #574663;
    cursor: wait;
}

.update-notes {
    margin-top: 15px;
    padding: 13px 14px;
    color: #ddd0e2;
    background: rgba(255, 255, 255, .045);
    border-left: 3px solid #a72a43;
    border-radius: 4px;
}

.update-notes > span {
    color: #bba9c3;
    font: 700 9px/1 "Literata", serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.update-notes h3 {
    margin: 7px 0 9px;
    color: #f0ce55;
    font: 13px/1.25 "Russo One", sans-serif;
}

.update-notes ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
    color: #cfc1d4;
    font: 580 11px/1.4 "Literata", serif;
}

.workspace {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    min-height: 0;
}

.roster-panel {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 10px;
    padding: 16px 12px 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(36, 21, 48, .98), rgba(23, 13, 32, .98));
    border-right: 1px solid rgba(226, 189, 76, .28);
    box-shadow: 10px 0 28px rgba(0, 0, 0, .22);
    z-index: 2;
}

.roster-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 0 4px;
}

.roster-heading p {
    margin: 0;
    color: #f0ce55;
    font: 17px/1.1 "Russo One", sans-serif;
}

.roster-heading strong {
    color: #a894b5;
    font: 700 11px/1 "Literata", serif;
}

.search-box {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    height: 38px;
    padding: 0 9px;
    background: #160d20;
    border: 1px solid #5f496f;
    border-radius: 6px;
}

.search-box span {
    color: #d8b84f;
    font-size: 23px;
}

.search-box input {
    width: 100%;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
    font: 600 13px/1 "Literata", serif;
}

.search-box input::placeholder {
    color: #8f7d9c;
}

.platform-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    background: #130b1b;
    border: 1px solid #5f496f;
    border-radius: 7px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .3);
}

.platform-switch button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 28px;
    padding: 1px 6px 0;
    color: #9d8aaa;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}

.platform-switch button:hover {
    color: #f5e8f7;
    background: #30203e;
    border-color: #684e78;
}

.platform-switch button[aria-pressed="true"] {
    color: #fff7df;
    background:
        linear-gradient(135deg, rgba(181, 42, 66, .96), rgba(94, 27, 55, .98));
    border-color: #dfbd52;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .2),
        0 3px 10px rgba(0, 0, 0, .28);
}

.platform-switch button[data-platform="sega"][aria-pressed="true"] {
    background:
        linear-gradient(135deg, rgba(0, 145, 208, .96), rgba(0, 72, 138, .98));
}

.platform-beta {
    position: absolute;
    top: -5px;
    right: -4px;
    z-index: 2;
    min-width: 35px;
    padding: 2px 5px 1px;
    color: #fff8dc;
    background:
        linear-gradient(135deg, #d8a527 0%, #ad561f 52%, #692035 100%);
    border: 1px solid #f0ce55;
    border-radius: 2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        0 2px 5px rgba(0, 0, 0, .5);
    font: 7px/1 "Russo One", sans-serif;
    letter-spacing: .08em;
    text-shadow: 0 1px 1px rgba(66, 17, 16, .85);
    white-space: nowrap;
    transform: rotate(8deg);
    pointer-events: none;
}

.platform-switch button b {
    display: block;
    font: 10px/1 "Russo One", sans-serif;
    letter-spacing: .06em;
}

.platform-switch button small {
    display: block;
    color: currentColor;
    font: 700 6px/1 "Literata", serif;
    letter-spacing: .08em;
    opacity: .72;
}

.roster-list {
    display: grid;
    align-content: start;
    gap: 6px;
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #76558d #1a1022;
    scrollbar-width: thin;
}

.fighter-card {
    --card-accent: #9e2637;
    display: grid;
    grid-template-columns: 52px 1fr 28px;
    align-items: center;
    min-height: 54px;
    padding: 0;
    overflow: hidden;
    color: #f7f0f8;
    text-align: left;
    background: linear-gradient(90deg, rgba(57, 39, 70, .95), rgba(45, 29, 57, .88));
    border: 1px solid #5a426b;
    border-radius: 5px;
    cursor: pointer;
    transition: transform .13s ease, border-color .13s ease, background .13s ease;
}

.fighter-card:hover {
    transform: translateX(3px);
    border-color: #9c77b3;
    background: #493258;
}

.fighter-card[aria-selected="true"] {
    background: linear-gradient(90deg, var(--card-accent), #692035);
    border-color: #edcb5d;
    box-shadow: inset 4px 0 0 #f0ce55, 0 4px 12px rgba(0, 0, 0, .25);
}

.fighter-card img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    image-rendering: auto;
    border-right: 1px solid rgba(255, 255, 255, .14);
}

.fighter-card span {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 0 10px;
}

.fighter-card span b {
    overflow: hidden;
    font: 14px/1.1 "Russo One", sans-serif;
    text-overflow: ellipsis;
    text-shadow: 0 2px 1px rgba(0, 0, 0, .45);
    white-space: nowrap;
}

.fighter-card span em {
    width: max-content;
    max-width: 100%;
    padding: 3px 5px 2px;
    overflow: hidden;
    color: #f7e5ad;
    background: rgba(111, 26, 43, .9);
    border: 1px solid rgba(235, 190, 75, .5);
    border-radius: 3px;
    font: 8px/1 "Russo One", sans-serif;
    font-style: normal;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fighter-card > small {
    color: rgba(255, 255, 255, .55);
    font: 700 10px/1 "Literata", serif;
}

.fighter-card.is-platform-unavailable {
    opacity: .7;
    background: linear-gradient(90deg, rgba(52, 48, 57, .96), rgba(35, 31, 40, .92));
    border-color: #605963;
}

.fighter-card.is-platform-unavailable:hover {
    opacity: .9;
    border-color: #958a99;
    background: #464047;
}

.fighter-card.is-platform-unavailable[aria-selected="true"] {
    opacity: .88;
    background: linear-gradient(90deg, #4f464d, #342d35);
    border-color: #dfbd52;
}

.fighter-card.is-platform-unavailable img {
    filter: grayscale(1) brightness(.72) contrast(1.08);
}

.reader {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 20px 24px;
    overflow: hidden;
}

.reader-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 8%, rgba(126, 60, 143, .34), transparent 40%),
        linear-gradient(rgba(13, 7, 18, .38), rgba(10, 5, 14, .68));
    pointer-events: none;
}

.book {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 31%) 24px minmax(0, 1fr);
    width: min(1180px, 100%);
    height: 100%;
    margin: 0 auto;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .48));
}

.book-page {
    position: relative;
    min-width: 0;
    min-height: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(105, 69, 42, .035) 1px, transparent 1px) 0 0 / 4px 100%,
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .72), transparent 35%),
        linear-gradient(135deg, var(--paper), #f6ecd9 48%, var(--paper-deep));
    border: 1px solid #c8ad7c;
}

.book-page::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(112, 60, 45, .2);
    pointer-events: none;
}

.book-page-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 34px;
    border-radius: 12px 3px 3px 12px;
    box-shadow: inset -18px 0 28px rgba(84, 52, 36, .11);
}

.book-page-right {
    display: grid;
    grid-template-rows: 54px auto minmax(0, 1fr) auto;
    padding: 20px 24px 34px;
    border-radius: 3px 12px 12px 3px;
    box-shadow: inset 18px 0 28px rgba(84, 52, 36, .09);
}

.book-page-right.is-global-page {
    grid-template-rows: minmax(0, 1fr) auto;
}

.book-page-right.is-global-page .page-content {
    grid-row: 1;
}

.book-page-right.is-global-page .combo-focus {
    grid-row: 2;
}

.book-gutter {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, rgba(15, 7, 18, .8), #6d4d40 43%, #c2a77e 50%, #6d4d40 57%, rgba(15, 7, 18, .8));
    box-shadow: 0 0 18px rgba(0, 0, 0, .55);
}

.page-corner {
    position: absolute;
    top: 14px;
    width: 48px;
    height: 48px;
    border-top: 3px double #9b273b;
}

.page-corner-left {
    left: 14px;
    border-left: 3px double #9b273b;
}

.page-corner-right {
    right: 14px;
    border-right: 3px double #9b273b;
}

.fighter-seal {
    position: relative;
    width: 112px;
    height: 112px;
    padding: 7px;
    border: 2px solid #9d273b;
    border-radius: 50%;
    background: #2a1834;
    box-shadow: 0 0 0 4px #d2ad4d, 0 8px 18px rgba(52, 24, 30, .35);
}

.fighter-seal img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.book.is-platform-unavailable .fighter-seal img {
    filter: grayscale(1) brightness(.75) contrast(1.08);
}

.fighter-seal.is-secrets {
    padding: 5px;
    background: #ead9bd;
}

.fighter-seal.is-secrets img {
    opacity: 1;
    object-fit: contain;
}

.fighter-seal.is-toasty-trigger {
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.fighter-seal.is-toasty-trigger:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 4px #f0c95c,
        0 10px 20px rgba(52, 24, 30, .4);
}

.fighter-seal.is-toasty-trigger:focus-visible {
    outline: 3px solid rgba(242, 205, 83, .75);
    outline-offset: 6px;
}

.fighter-seal.is-community {
    width: 132px;
    height: 132px;
    padding: 8px;
    background: #180f21;
    border-color: #8d4a31;
    border-radius: 18px;
    box-shadow:
        0 0 0 4px #c5914d,
        0 10px 22px rgba(52, 24, 30, .32);
}

.fighter-seal.is-community img {
    border-radius: 10px;
    object-fit: contain;
    image-rendering: auto;
}

.edition-label {
    margin: 20px 0 7px;
    color: #7f6670;
    font: 700 9px/1 "Literata", serif;
    letter-spacing: .16em;
}

#fighterTitle {
    max-width: 100%;
    margin: 0;
    color: var(--accent);
    font: 30px/.98 "Russo One", sans-serif;
    letter-spacing: .01em;
    text-align: center;
    text-shadow: 0 2px 0 rgba(45, 27, 34, .72), 0 3px 0 rgba(215, 186, 119, .72);
    word-break: break-word;
}

.ornament {
    display: flex;
    align-items: center;
    width: 82%;
    gap: 7px;
    margin: 15px 0 10px;
    color: #a3273d;
}

.ornament::before,
.ornament::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a3273d);
}

.ornament::after {
    background: linear-gradient(90deg, #a3273d, transparent);
}

.fighter-subtitle {
    margin: 0 0 18px;
    color: #6d5a60;
    font: 650 12px/1.45 "Literata", serif;
    text-align: center;
}

.contents-title {
    width: 100%;
    margin-bottom: 7px;
    color: #9c2338;
    font: 18px/1 "Russo One", sans-serif;
}

.category-nav {
    width: 100%;
    min-height: 0;
    overflow-y: auto;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 5px;
    color: #35282d;
    background: transparent;
    border-bottom: 1px dotted rgba(93, 64, 59, .35);
    cursor: pointer;
    font: 700 12px/1.2 "Literata", serif;
    text-align: left;
}

.category-link:hover {
    color: #a42138;
    padding-left: 10px;
}

.category-link b {
    color: #9d7d55;
    font: 800 10px/1 "Literata", serif;
}

.move-preview {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    margin: 14px 0 10px;
    overflow: hidden;
    background: #160f1b;
    border: 2px solid var(--accent);
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(52, 29, 39, .22);
}

.move-preview[hidden] {
    display: none;
}

.move-preview video {
    display: block;
    width: 100%;
    height: auto;
    background: #08060a;
    object-fit: contain;
    cursor: pointer;
}

.move-preview video[hidden] {
    display: none;
}

.move-requirement {
    position: relative;
    padding: 8px 10px 10px;
    color: #f8eee2;
    background:
        radial-gradient(circle at 100% 0, rgba(210, 151, 48, .18), transparent 40%),
        linear-gradient(145deg, #321624, #190f1c 68%);
    border-top: 2px solid #d39a35;
    box-shadow: inset 0 1px 0 rgba(255, 234, 177, .12);
    font: 650 10px/1.3 "Literata", serif;
}

.move-requirement[hidden] {
    display: none;
}

.move-requirement-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffd66d;
    text-transform: uppercase;
}

.move-requirement-heading span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #28121d;
    background: #f0bd49;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(238, 180, 63, .35);
    font: 13px/1 "Russo One", sans-serif;
}

.move-requirement-heading strong {
    font: 11px/1.1 "Russo One", sans-serif;
    letter-spacing: .06em;
}

.move-requirement-lead {
    margin: 6px 0;
    color: #fff8e9;
}

.move-requirement-lead b {
    color: #ffd66d;
}

.move-requirement ol {
    margin: 0;
    padding-left: 16px;
}

.move-requirement li + li {
    margin-top: 5px;
}

.move-requirement li::marker {
    color: #eab448;
    font-weight: 900;
}

.move-requirement li b {
    color: #ffd66d;
}

.move-requirement-command {
    display: inline;
}

.move-requirement-action {
    color: #e6d7cf;
}

.move-requirement-command .keycap {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    margin: 0 1px;
    padding: 0 4px;
    vertical-align: middle;
    font-size: 9px;
}

.move-requirement-command .sequence-separator {
    color: #c9a45d;
    font-size: 9px;
}

.book-note {
    width: 100%;
    margin-top: auto;
    padding: 10px 12px;
    color: #725e63;
    background: rgba(130, 86, 65, .08);
    border-left: 3px solid #a5263c;
    font-size: 10px;
}

.book-note span,
.book-note strong,
.book-note small {
    display: block;
}

.book-note strong {
    margin-top: 3px;
    color: #3c2b31;
    letter-spacing: .05em;
}

.book-note small {
    margin-top: 6px;
    color: #8a6f60;
    font: 700 9px/1.2 "Literata", serif;
    letter-spacing: .03em;
}

.book-note span[hidden],
.book-note strong[hidden],
.book-note small[hidden] {
    display: none;
}

.book-note span[hidden] ~ small {
    margin-top: 0;
}

.section-tabs {
    position: relative;
    z-index: 2;
    grid-row: 1;
    display: flex;
    align-items: end;
    gap: 5px;
    padding: 0 8px;
    border-bottom: 2px solid #7f2638;
}

.section-tabs[hidden] {
    display: none;
}

.section-tabs > button {
    height: 38px;
    padding: 0 15px;
    color: #745e65;
    background: rgba(151, 111, 78, .08);
    border: 1px solid rgba(116, 77, 59, .22);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    cursor: pointer;
    font: 15px/1 "Russo One", sans-serif;
}

.section-tabs > button:hover {
    color: #9d2037;
    background: rgba(169, 31, 56, .08);
}

.section-tabs > button[aria-selected="true"] {
    height: 44px;
    color: #fff8e8;
    background: linear-gradient(#b52a42, #811b2e);
    border-color: #651424;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25);
}

.platform-notice {
    position: relative;
    z-index: 3;
    display: grid;
    grid-row: 2;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin: 10px 10px 0;
    padding: 10px 12px;
    color: #4b2b31;
    background:
        linear-gradient(90deg, rgba(176, 41, 61, .16), rgba(117, 82, 68, .08));
    border: 1px solid rgba(151, 35, 53, .38);
    border-left: 5px solid #a5263c;
    border-radius: 5px;
}

.platform-notice[hidden] {
    display: none;
}

.platform-notice strong {
    padding: 5px 7px 4px;
    color: #fff4d4;
    background: #8f2135;
    border-radius: 3px;
    font: 10px/1 "Russo One", sans-serif;
    letter-spacing: .05em;
    white-space: nowrap;
}

.platform-notice span {
    font: 700 11px/1.35 "Literata", serif;
}

.notation-switch {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 34px;
    margin: 0 0 5px auto;
    padding: 3px;
    color: #79636a;
    background: rgba(74, 48, 67, .09);
    border: 1px solid rgba(111, 73, 80, .25);
    border-radius: 18px;
}

.notation-switch[hidden] {
    display: none;
}

.notation-switch > span {
    padding: 0 5px 0 8px;
    font: 650 9px/1 "Literata", serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.notation-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 124px;
    height: 28px;
    padding: 2px;
    overflow: hidden;
    color: #705b63;
    background: rgba(68, 45, 62, .09);
    border: 1px solid rgba(111, 73, 80, .28);
    border-radius: 14px;
    cursor: pointer;
}

.notation-toggle i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: 22px;
    background: linear-gradient(#a82a42, #701b2d);
    border-radius: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25),
        0 2px 5px rgba(66, 36, 43, .2);
    transition: transform .22s ease;
}

.notation-toggle[aria-checked="true"] i {
    transform: translateX(100%);
}

.notation-toggle b {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #705b63;
    font: 9px/1 "Russo One", sans-serif;
}

.notation-toggle b:first-of-type,
.notation-toggle[aria-checked="true"] b:last-of-type {
    color: #fff8e8;
}

.notation-toggle[aria-checked="true"] b:first-of-type {
    color: #705b63;
}

.page-content {
    position: relative;
    z-index: 1;
    grid-row: 3;
    min-height: 0;
    padding: 14px 10px 30px;
    overflow-y: auto;
    scrollbar-color: #9e735f transparent;
    scrollbar-width: thin;
}

.chapter {
    scroll-margin-top: 8px;
}

.chapter + .chapter {
    margin-top: 24px;
}

.chapter-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    color: #a32139;
    font: 21px/1.1 "Russo One", sans-serif;
    text-transform: none;
}

.chapter-heading::after {
    content: "";
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #a32139, transparent);
}

.move-list {
    display: grid;
    gap: 8px;
}

.move-card {
    display: grid;
    grid-template-columns: minmax(135px, .7fr) minmax(240px, 1.3fr);
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 8px 12px;
    background: rgba(255, 253, 245, .46);
    border: 1px solid rgba(111, 73, 58, .18);
    border-left: 4px solid rgba(145, 36, 53, .3);
    border-radius: 5px;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.move-card:hover {
    transform: translateX(3px);
    background: rgba(255, 253, 245, .78);
    border-left-color: #a42138;
}

.move-card.is-selected {
    background: #fffaf0;
    border-color: rgba(139, 30, 47, .48);
    border-left-color: #a42138;
    box-shadow: 0 4px 12px rgba(73, 42, 37, .12);
}

.move-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    color: #34262b;
    font: 750 16px/1.2 "Literata", serif;
}

.move-platform-badge {
    display: inline-flex;
    padding: 3px 6px;
    color: #fff8dc;
    background: #775824;
    border: 1px solid rgba(113, 72, 23, .35);
    border-radius: 3px;
    font: 8px/1 "Russo One", sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.move-platform-badge.is-sega-only {
    background: #5f3c77;
    border-color: #8764a0;
}

.move-platform-badge.is-unavailable {
    color: #f5e9e9;
    background: #6f3d45;
    border-color: #96616a;
}

.move-command,
.combo-keys {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.keycap {
    display: inline-grid;
    place-items: center;
    min-width: 29px;
    height: 29px;
    padding: 0 7px;
    color: #fff;
    background: #4a3a55;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 3px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 2px 0 rgba(67, 43, 35, .18);
    font: 14px/1 "Russo One", sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .36);
}

.keycap.hp { background: #cb3550; }
.keycap.lp { background: #347fc9; }
.keycap.hk { color: #2a2022; background: #e6b937; text-shadow: none; }
.keycap.lk { background: #43ad70; }
.keycap.bl { background: #2e2632; }
.keycap.run { background: #7853a4; }
.keycap.direction { background: #4b3a58; }

.sequence-separator {
    color: #8d6d72;
    font: 900 14px/1 "Literata", serif;
}

.sequence-text {
    color: #725b62;
    font: 750 11px/1 "Literata", serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.combo-focus {
    position: relative;
    z-index: 3;
    grid-row: 4;
    margin: 0 10px;
    padding: 12px 14px 14px;
    color: #fff9ed;
    background:
        linear-gradient(90deg, rgba(69, 31, 56, .98), rgba(38, 21, 46, .98)),
        #2d2036;
    border: 1px solid #997a9e;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -8px 22px rgba(61, 35, 45, .22);
}

.combo-focus-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.combo-focus-header strong {
    color: #f0ce55;
    font: 15px/1 "Russo One", sans-serif;
}

.combo-focus-header span {
    color: #baabbf;
    font: 650 11px/1 "Literata", serif;
}

.combo-focus .keycap {
    min-width: 34px;
    height: 34px;
    font-size: 15px;
}

.lore-page,
.codes-page {
    color: #34282c;
}

.editorial-heading {
    margin: 2px 0 18px;
    padding: 0 4px 15px;
    border-bottom: 1px solid rgba(130, 80, 65, .24);
    text-align: center;
}

.editorial-heading > span,
.codes-heading > span {
    color: #9e263b;
    font: 10px/1 "Russo One", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.editorial-heading h2 {
    margin: 8px 0 7px;
    color: var(--accent);
    font: 31px/1 "Russo One", sans-serif;
    text-shadow: 0 1px 0 #fff8e8, 0 2px 0 rgba(58, 35, 42, .28);
}

.editorial-heading p {
    max-width: 580px;
    margin: 0 auto;
    color: #786268;
    font: 570 13px/1.5 "Literata", serif;
}

.lore-hero {
    position: relative;
    display: block;
    width: calc(100% - 4px);
    height: auto;
    aspect-ratio: 250 / 127;
    margin: -3px 2px 18px;
    overflow: hidden;
    background: #efe2cc;
    border: 2px solid var(--accent);
    border-radius: 6px;
    box-shadow: 0 7px 16px rgba(53, 29, 35, .2);
}

.lore-hero img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

.lore-chapter {
    scroll-margin-top: 8px;
    margin: 0 2px 16px;
    padding: 18px 20px 20px;
    background:
        linear-gradient(100deg, rgba(255, 252, 243, .78), rgba(246, 232, 209, .52)),
        rgba(255, 255, 255, .35);
    border: 1px solid rgba(111, 73, 58, .2);
    border-left: 4px solid #a5263c;
    border-radius: 5px;
    box-shadow: 0 5px 13px rgba(75, 48, 41, .08);
}

.lore-chapter-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 14px;
    margin-bottom: 11px;
}

.lore-chapter-heading span {
    grid-column: 1 / -1;
    margin-bottom: 5px;
    color: #a5263c;
    font: 10px/1 "Russo One", sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lore-chapter-heading h2 {
    margin: 0;
    color: #3c2930;
    font: 21px/1.1 "Russo One", sans-serif;
}

.lore-chapter-heading em {
    color: #90767a;
    font: 650 10px/1 "Literata", serif;
}

.lore-chapter > p {
    margin: 0;
    color: #45363a;
    font: 580 15px/1.72 "Literata", Georgia, serif;
}

.lore-chapter > p::first-letter {
    float: left;
    margin: 4px 7px 0 0;
    color: #a5263c;
    font: 38px/.8 "Russo One", sans-serif;
}

.lore-note {
    border-left-color: #96753a;
}

.fact-grid {
    display: grid;
    gap: 10px;
}

.fact-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    min-height: 74px;
    overflow: hidden;
    background: rgba(255, 252, 243, .68);
    border: 1px solid rgba(111, 73, 58, .2);
    border-radius: 5px;
}

.fact-card b {
    display: grid;
    align-self: stretch;
    place-items: center;
    color: #f5df9c;
    background: linear-gradient(#6b2332, #3d1d29);
    font: 17px/1 "Russo One", sans-serif;
}

.fact-card p {
    margin: 0;
    padding: 12px 15px;
    color: #433439;
    font: 620 14px/1.55 "Literata", serif;
}

.source-caption {
    margin: 18px 4px 0;
    padding-top: 12px;
    color: #846f72;
    border-top: 1px solid rgba(130, 80, 65, .2);
    font: 550 11px/1.5 "Literata", serif;
}

.source-warning {
    margin: 0 2px 16px;
    padding: 12px 14px;
    color: #5c3c24;
    background: rgba(226, 189, 76, .17);
    border: 1px solid rgba(154, 112, 33, .32);
    border-left: 4px solid #bd8e24;
    border-radius: 5px;
}

.source-warning strong {
    color: #7d2634;
    font: 13px/1 "Russo One", sans-serif;
}

.source-warning p {
    margin: 6px 0 0;
    font: 580 12px/1.45 "Literata", serif;
}

.codes-section {
    scroll-margin-top: 8px;
    margin: 0 2px 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(147, 91, 68, .18);
}

.codes-heading {
    margin-bottom: 12px;
}

.codes-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 0;
    color: #9e263b;
    font: 22px/1.1 "Russo One", sans-serif;
}

.codes-heading h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #a5263c, transparent);
}

.code-steps {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    counter-reset: code-step;
    list-style: none;
}

.code-steps li {
    position: relative;
    min-height: 34px;
    padding: 7px 10px 7px 40px;
    color: #49393e;
    background: rgba(255, 252, 243, .52);
    border: 1px solid rgba(111, 73, 58, .14);
    border-radius: 4px;
    font: 590 12px/1.45 "Literata", serif;
    counter-increment: code-step;
}

.code-steps li::before {
    content: counter(code-step);
    position: absolute;
    top: 6px;
    left: 8px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    color: #f7e6b5;
    background: #5d2635;
    border-radius: 50%;
    font: 11px/1 "Russo One", sans-serif;
}

.code-steps.compact {
    margin-bottom: 12px;
}

.code-example {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    padding: 12px 14px;
    color: #3d3034;
    background: rgba(57, 35, 50, .09);
    border: 1px solid rgba(100, 65, 80, .2);
    border-radius: 6px;
}

.code-example > div > span {
    display: block;
    margin-bottom: 7px;
    color: #8f283a;
    font: 10px/1 "Russo One", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.code-example p {
    margin: 0;
    font: 620 12px/1.55 "Literata", serif;
}

.symbol-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(42px, 1fr));
    gap: 5px;
}

.symbol-grid figure {
    margin: 0;
    padding: 4px;
    overflow: hidden;
    background: #1b151b;
    border: 1px solid #6d5967;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(49, 29, 34, .16);
}

.symbol-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 7 / 6;
    object-fit: cover;
    image-rendering: pixelated;
}

.symbol-grid figcaption {
    padding: 5px 0 2px;
    color: #f0ce55;
    font: 14px/1 "Russo One", sans-serif;
    text-align: center;
}

.codes-explanation {
    margin: 10px 2px 0;
    color: #6f5b60;
    font: 570 11px/1.45 "Literata", serif;
}

.code-subheading {
    margin: 15px 0 7px;
    color: #60434c;
    font: 14px/1 "Russo One", sans-serif;
}

.code-list {
    display: grid;
    gap: 6px;
}

.code-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 7px 10px 7px 13px;
    background: rgba(255, 252, 243, .6);
    border: 1px solid rgba(111, 73, 58, .17);
    border-left: 3px solid rgba(165, 38, 60, .35);
    border-radius: 4px;
}

.code-row strong {
    display: block;
    color: #3c2c31;
    font: 690 13px/1.25 "Literata", serif;
}

.code-row small {
    display: block;
    margin-top: 3px;
    color: #8b7478;
    font: 560 9px/1.2 "Literata", serif;
}

.kode {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.kode-digit {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 27px;
    color: #f7e9b8;
    background: linear-gradient(#4e3a58, #2d2235);
    border: 1px solid #7e687f;
    border-radius: 3px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
    font: 13px/1 "Russo One", sans-serif;
}

.kode-separator {
    color: #9b6f72;
    font: 14px/1 "Russo One", sans-serif;
}

.unlock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.unlock-card {
    padding: 12px;
    background: rgba(255, 252, 243, .66);
    border: 1px solid rgba(111, 73, 58, .2);
    border-top: 3px solid #a5263c;
    border-radius: 5px;
}

.unlock-card h3 {
    margin: 0 0 9px;
    color: #9e263b;
    font: 15px/1 "Russo One", sans-serif;
}

.unlock-card .kode {
    gap: 1px;
}

.unlock-card .kode-digit {
    width: 15px;
    height: 23px;
    font-size: 10px;
}

.unlock-card .kode-separator {
    font-size: 10px;
}

.unlock-card p {
    margin: 8px 0 0;
    color: #5b484e;
    font: 570 10px/1.45 "Literata", serif;
}

.empty-page {
    min-height: 100%;
    padding: 38px clamp(20px, 7vw, 76px);
    text-align: center;
}

.empty-kicker {
    color: #9c2338;
    font: 11px/1 "Russo One", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.empty-page h2 {
    margin: 16px 0 12px;
    color: var(--accent);
    font: 35px/1.05 "Russo One", sans-serif;
    text-shadow: 0 2px 0 #6f1b2b;
}

.empty-page p {
    max-width: 560px;
    margin: 0 auto;
    color: #5f5055;
    font: 550 17px/1.65 "Literata", serif;
}

.empty-emblem {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 28px auto;
    color: #a42138;
    border: 2px solid #a42138;
    border-radius: 50%;
    font-size: 28px;
}

.community-page {
    display: grid;
    align-content: center;
    min-height: 100%;
    gap: 26px;
    padding: 28px clamp(8px, 3vw, 36px) 34px;
}

.community-intro {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.community-intro > p {
    margin: 0;
}

.community-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    scroll-margin-top: 10px;
}

.community-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 134px;
    padding: 18px;
    color: #33252d;
    text-decoration: none;
    background: rgba(255, 253, 245, .68);
    border: 1px solid rgba(105, 70, 62, .22);
    border-left: 5px solid var(--community-color);
    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(66, 39, 38, .1);
    transition:
        transform .14s ease,
        box-shadow .14s ease,
        background .14s ease;
}

.community-card:hover {
    transform: translateY(-3px);
    background: #fffaf0;
    box-shadow: 0 13px 24px rgba(66, 39, 38, .16);
}

.community-card.is-telegram {
    --community-color: #2aabee;
}

.community-card.is-discord {
    --community-color: #5865f2;
}

.community-card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.community-card span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.community-card small {
    color: var(--community-color);
    font: 11px/1 "Russo One", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.community-card strong {
    margin-top: 8px;
    color: #34262c;
    font: 17px/1.2 "Russo One", sans-serif;
}

.community-card em {
    margin-top: 8px;
    color: #806c71;
    font: 650 12px/1.2 "Literata", serif;
    font-style: normal;
}

.community-footer-note {
    max-width: 620px;
    margin: 0 auto;
    color: #78656a;
    font: 650 12px/1.45 "Literata", serif;
    text-align: center;
}

.page-number {
    position: absolute;
    bottom: 13px;
    color: #7d6a66;
    font: 700 10px/1 "Literata", serif;
}

.book-page-right .page-number {
    right: 24px;
}

.statusbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 0 16px 0 10px;
    color: #a998b5;
    background: #0e0815;
    border-top: 1px solid rgba(141, 102, 157, .25);
    font: 650 10px/1 "Literata", serif;
    letter-spacing: .04em;
}

.statusbar > #statusText {
    grid-column: 3;
    min-width: 0;
    overflow: hidden;
    justify-self: end;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portable-download {
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-height: 30px;
    padding: 0 14px;
    color: #fff5cf;
    background: linear-gradient(#ae2942, #76182b);
    border: 1px solid #d9b84e;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
    font: 10px/1 "Russo One", sans-serif;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
}

.portable-download:hover {
    color: #fffbe8;
    background: linear-gradient(#c73450, #8e1e34);
}

.portable-download[hidden] {
    display: none;
}

.toasty-easter-egg {
    position: fixed;
    right: 0;
    bottom: 34px;
    z-index: 80;
    width: min(24vw, 220px);
    max-width: 42vh;
    pointer-events: none;
    opacity: 0;
    transform: translateX(calc(100% + 24px));
    transition:
        transform .18s cubic-bezier(.18, .9, .2, 1.2),
        opacity .08s linear;
}

.toasty-easter-egg.is-visible {
    opacity: 1;
    transform: translateX(8px);
}

.toasty-easter-egg img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(-8px 8px 10px rgba(0, 0, 0, .5));
}

.community-entry {
    display: inline-flex;
    grid-column: 1;
    align-self: stretch;
    justify-self: start;
    height: 100%;
    align-items: center;
    gap: 11px;
    padding: 0 15px 0 6px;
    color: #e5c95e;
    background: transparent;
    cursor: pointer;
    font: 13px/1 "Russo One", sans-serif;
    letter-spacing: .02em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .7);
}

.community-entry:hover,
.community-entry[aria-pressed="true"] {
    color: #ffe277;
    background: transparent;
}

.community-entry img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: auto;
}

.community-entry[aria-pressed="true"] img {
    filter: drop-shadow(0 0 5px rgba(226, 189, 76, .42));
}

@media (min-width: 1600px) and (min-height: 850px) {
    .book {
        width: min(1260px, 100%);
        grid-template-columns: 400px 24px minmax(0, 1fr);
    }

}

@media (max-height: 900px) {
    .book-page-left {
        padding: 20px;
    }

    .fighter-seal {
        width: 96px;
        height: 96px;
        padding: 6px;
    }

    .edition-label {
        margin: 12px 0 5px;
    }

    .ornament {
        margin: 10px 0 7px;
    }

    .fighter-subtitle {
        margin-bottom: 10px;
    }

    .contents-title {
        margin-bottom: 4px;
    }

    .category-nav {
        flex: 0 0 auto;
        max-height: 82px;
    }

    .category-link {
        padding: 6px 5px;
        font-size: 11px;
    }

    .move-preview {
        margin: 8px 0 6px;
    }

    .book-note {
        padding: 7px 10px;
    }
}

@media (max-width: 1120px) {
    .workspace {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .topbar {
        grid-template-columns: 46px 175px auto minmax(140px, 1fr) auto;
        gap: 8px;
        padding-inline: 12px;
    }

    .update-button {
        width: 40px;
        padding: 0;
    }

    .update-button > b {
        display: none;
    }

    .book {
        grid-template-columns: 215px 18px minmax(0, 1fr);
    }

    .move-card {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .section-tabs > button {
        padding-inline: 10px;
        font-size: 13px;
    }

    .notation-switch > span {
        display: none;
    }

    .notation-toggle {
        width: 112px;
    }

    .unlock-grid {
        grid-template-columns: 1fr;
    }

    .community-links {
        grid-template-columns: 1fr;
    }

    .community-card {
        min-height: 108px;
    }

    .toasty-easter-egg {
        bottom: 46px;
        width: min(36vw, 170px);
    }
}

@media (max-width: 979px) {
    html,
    body {
        width: 100%;
        height: auto;
        min-height: 100%;
        overscroll-behavior-x: none;
    }

    html {
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }

    body {
        overflow: visible;
        touch-action: pan-y;
    }

    html.mobile-roster-open,
    body.mobile-roster-open {
        overflow: hidden;
    }

    .app-shell {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-width: 0;
        min-height: 100vh;
        min-height: 100dvh;
        background-attachment: scroll;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 60;
        grid-template-areas: "mark brand update roster";
        grid-template-columns: 36px minmax(0, 1fr) 36px auto;
        gap: 7px;
        min-height: 52px;
        padding: 6px max(9px, env(safe-area-inset-right)) 6px max(9px, env(safe-area-inset-left));
    }

    .brand-mark {
        grid-area: mark;
        width: 36px;
        height: 36px;
        background-size: 240px auto;
    }

    .brand-copy {
        grid-area: brand;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .brand-copy span {
        margin-top: 4px;
        overflow: hidden;
        font-size: 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .history-controls,
    .route-bar {
        display: none;
    }

    .mobile-roster-toggle {
        grid-area: roster;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 82px;
        min-height: 36px;
        padding: 0 10px;
        color: #fff6d8;
        background: linear-gradient(#a82a42, #701b2d);
        border: 1px solid #d8b84f;
        border-radius: 6px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 10px rgba(0, 0, 0, .28);
        cursor: pointer;
    }

    .mobile-roster-toggle > span {
        font: 18px/1 sans-serif;
    }

    .mobile-roster-toggle > b {
        font: 10px/1 "Russo One", sans-serif;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .update-control {
        grid-area: update;
    }

    .update-button {
        width: 36px;
        height: 36px;
        padding: 0;
    }

    .hosted-site .update-button > span {
        display: block;
    }

    .update-panel {
        position: fixed;
        top: 58px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
    }

    .workspace {
        display: block;
        flex: 0 0 auto;
        min-height: 0;
    }

    .roster-backdrop {
        position: fixed;
        inset: 0;
        z-index: 68;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        pointer-events: none;
        background: rgba(8, 4, 13, .72);
        opacity: 0;
        transition: opacity .2s ease;
    }

    .mobile-roster-open .roster-backdrop {
        pointer-events: auto;
        opacity: 1;
    }

    .roster-panel {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 70;
        width: min(86vw, 340px);
        height: 100vh;
        height: 100dvh;
        padding: max(16px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
        border-right-color: rgba(226, 189, 76, .48);
        box-shadow: 18px 0 40px rgba(0, 0, 0, .48);
        transform: translateX(calc(-100% - 18px));
        transition: transform .22s ease;
    }

    .mobile-roster-open .roster-panel {
        transform: translateX(0);
    }

    .roster-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 9px;
    }

    .mobile-roster-close {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        color: #f3e8f6;
        background: #352342;
        border: 1px solid #6b517c;
        border-radius: 50%;
        cursor: pointer;
        font: 22px/1 "Russo One", sans-serif;
    }

    .roster-list {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .reader {
        min-height: 0;
        padding: 10px;
        overflow: visible;
    }

    .book {
        display: block;
        width: 100%;
        height: auto;
        filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .42));
    }

    .book-gutter {
        display: none;
    }

    .book-page::after {
        inset: 7px;
    }

    .page-corner {
        display: none;
    }

    .book-page-left {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: center;
        gap: 2px 11px;
        min-height: 0;
        padding: 10px 12px;
        border-radius: 12px 12px 3px 3px;
        box-shadow: inset 0 -14px 24px rgba(84, 52, 36, .08);
    }

    .fighter-seal,
    .fighter-seal.is-community {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 54px;
        height: 54px;
        padding: 4px;
    }

    .edition-label {
        display: none;
    }

    #fighterTitle {
        grid-column: 2;
        margin: 0;
        font-size: 21px;
        line-height: 1.05;
        text-align: left;
    }

    .ornament {
        display: none;
    }

    .fighter-subtitle {
        grid-column: 2;
        margin: 2px 0 0;
        font-size: 10px;
        line-height: 1.3;
        text-align: left;
    }

    .contents-title {
        display: none;
    }

    .category-nav {
        display: none;
    }

    .category-link {
        flex: 0 0 auto;
        width: auto;
        min-height: 40px;
        gap: 10px;
        padding: 9px 11px;
        white-space: nowrap;
    }

    .move-preview {
        position: sticky;
        top: var(--mobile-preview-top, 120px);
        z-index: 11;
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
        scroll-margin-top: var(--mobile-preview-top, 120px);
        box-shadow: 0 8px 14px rgba(52, 29, 39, .24);
    }

    .move-preview video {
        max-height: min(29dvh, 210px);
    }

    .book-note {
        width: 100%;
        margin: 18px 0 6px;
    }

    html[data-tab="moves"] .book-note {
        display: none;
    }

    .book-page-right,
    .book-page-right.is-global-page {
        display: block;
        min-height: 0;
        padding: 0 12px 28px;
        border-radius: 3px 3px 12px 12px;
        box-shadow: inset 0 14px 24px rgba(84, 52, 36, .07);
    }

    .section-tabs {
        position: sticky;
        top: var(--mobile-tabs-top, 52px);
        z-index: 12;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: end;
        gap: 2px;
        min-height: 0;
        margin: 0 -3px;
        padding: 4px 3px 0;
        background: linear-gradient(180deg, #f5ead6 72%, rgba(245, 234, 214, .96));
        box-shadow: 0 5px 10px rgba(69, 40, 35, .08);
    }

    .section-tabs > button,
    .section-tabs > button[aria-selected="true"] {
        width: 100%;
        height: 32px;
        padding: 1px 4px;
        font-size: 10px;
        line-height: 1.05;
    }

    .notation-switch {
        grid-column: 1 / -1;
        width: 100%;
        height: 28px;
        margin: 1px 0 3px;
        padding: 2px;
        justify-content: flex-end;
    }

    .notation-switch > span {
        display: block;
        margin-right: auto;
        font-size: 8px;
    }

    .notation-toggle {
        width: 112px;
        height: 24px;
    }

    .notation-toggle i {
        height: 18px;
    }

    .notation-toggle b {
        font-size: 8px;
    }

    .platform-notice {
        margin: 10px 0 0;
    }

    .page-content,
    .book-page-right.is-global-page .page-content {
        min-height: 0;
        padding: 8px 0 22px;
        overflow: visible;
    }

    .chapter,
    .lore-chapter,
    .codes-section {
        scroll-margin-top: 130px;
    }

    .chapter-heading {
        gap: 8px;
        margin-bottom: 6px;
        font-size: 17px;
    }

    .chapter + .chapter {
        margin-top: 16px;
    }

    .move-list {
        gap: 5px;
    }

    .move-card {
        grid-template-columns: minmax(88px, .58fr) minmax(0, 1.42fr);
        gap: 6px;
        min-height: 44px;
        padding: 6px 7px;
    }

    .move-card:hover {
        transform: none;
    }

    .move-name {
        gap: 3px;
        font-size: 14px;
        line-height: 1.15;
    }

    .move-command,
    .combo-keys {
        gap: 4px;
    }

    .keycap {
        min-width: 27px;
        height: 27px;
        padding-inline: 6px;
        font-size: 13px;
    }

    .sequence-separator {
        font-size: 12px;
    }

    .combo-focus,
    .book-page-right.is-global-page .combo-focus {
        margin: 0;
        padding: 11px 12px 13px;
    }

    .combo-focus-header {
        align-items: start;
        flex-direction: column;
        gap: 5px;
    }

    .lore-chapter {
        padding: 15px 14px 17px;
    }

    .lore-chapter-heading {
        grid-template-columns: 1fr;
    }

    .lore-chapter > p {
        font-size: 14px;
        line-height: 1.65;
    }

    .code-example,
    .code-row {
        grid-template-columns: 1fr;
    }

    .code-row {
        align-items: start;
    }

    .unlock-grid,
    .community-links {
        grid-template-columns: 1fr;
    }

    .empty-page {
        padding: 30px 12px;
    }

    .community-page {
        padding: 22px 4px 28px;
    }

    .statusbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px 10px;
        min-height: 50px;
        margin-top: auto;
        padding: 7px max(10px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    }

    .statusbar > #statusText {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        max-width: 100%;
        text-align: left;
    }

    .community-entry {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .portable-download {
        grid-column: 2;
        grid-row: 1;
    }

    .toasty-easter-egg {
        bottom: 56px;
        width: min(52vw, 180px);
        max-width: 40vh;
    }
}

@media (max-width: 560px) {
    .move-preview video {
        max-height: none;
    }

    .topbar {
        grid-template-columns: 34px minmax(0, 1fr) 34px auto;
        gap: 6px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .brand-copy strong {
        font-size: 15px;
        letter-spacing: .02em;
    }

    .brand-copy span {
        display: none;
    }

    .mobile-roster-toggle {
        min-width: 76px;
        min-height: 34px;
        padding-inline: 8px;
    }

    .update-button {
        width: 34px;
        height: 34px;
    }

    .reader {
        padding: 7px;
    }

    .book-page-left {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 2px 9px;
        padding: 9px 10px;
    }

    .fighter-seal,
    .fighter-seal.is-community {
        width: 50px;
        height: 50px;
    }

    #fighterTitle {
        font-size: 19px;
    }

    .book-page-right,
    .book-page-right.is-global-page {
        padding-inline: 10px;
    }

    .section-tabs > button,
    .section-tabs > button[aria-selected="true"] {
        font-size: 9px;
    }

    .move-card {
        grid-template-columns: minmax(82px, .55fr) minmax(0, 1.45fr);
    }

    .move-name {
        font-size: 13px;
    }

    .platform-notice {
        grid-template-columns: 1fr;
    }

    .editorial-heading h2 {
        font-size: 25px;
    }

    .lore-chapter-heading h2 {
        font-size: 18px;
    }

    .fact-card {
        grid-template-columns: 38px 1fr;
    }

    .fact-card p {
        padding: 11px;
        font-size: 13px;
    }

    .symbol-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .community-card {
        grid-template-columns: 56px minmax(0, 1fr);
        padding: 12px;
    }

    .community-card img {
        width: 54px;
    }

    .statusbar > #statusText {
        display: none;
    }

    .community-entry span {
        font-size: 10px;
    }

    .portable-download {
        padding-inline: 10px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .roster-panel,
    .roster-backdrop {
        transition: none;
    }
}
