:root {
    color-scheme: light;
    --ink: #2b2231;
    --paper: #eee5da;
    --paper-deep: #d8cdbe;
    --paper-card: #f6efe6;
    --muted: #403244;
    --red: #ba2e22;
    --acid: #d5e36b;
    --line: rgba(43, 34, 49, 0.22);
    font-family: Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #eee5da;
    background-image:
        radial-gradient(rgba(43, 34, 49, 0.038) 1px, transparent 1px),
        linear-gradient(180deg, #eee5da 0%, #e5dcce 100%);
    background-size: 10px 10px, 100% 100%;
    background-attachment: fixed;
}

button,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible,
dialog button:focus-visible {
    outline: 3px solid #9d75b7;
    outline-offset: 3px;
}

.masthead {
    min-height: 80px;
    padding: 0 clamp(18px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--ink);
    color: var(--paper);
    border-bottom: 3px solid var(--red);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
    font-weight: 750;
    letter-spacing: .06em;
    font-size: 19px;
    line-height: 1;
}

.brand small {
    display: block;
    margin-top: 7px;
    color: #ece5d8;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: .18em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: var(--red);
    color: #fff5df;
    border-radius: 50%;
    font: 900 21px/1 Georgia, serif;
    letter-spacing: -.02em;
    transform: rotate(-8deg);
}

.masthead-right {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 40px);
}

.live-tag,
.text-button {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
}

.live-tag {
    color: #f0eade;
}

.live-tag i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background: var(--acid);
    border-radius: 50%;
    box-shadow: 0 0 0 3px #d4e35f40;
}

.text-button {
    min-height: 44px;
    padding: 10px 0;
    color: var(--paper);
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.text-button span {
    color: var(--acid);
    font-size: 16px;
    margin-left: 6px;
}

.auth-status {
    color: #ece5d8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.connect-button {
    min-height: 44px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--acid);
    border: 0;
    cursor: pointer;
    font: 700 12px/1.2 Arial, sans-serif;
    letter-spacing: .035em;
}

main {
    max-width: 1360px;
    margin: auto;
    padding: 0 clamp(18px, 4vw, 56px);
}

.intro {
    min-height: 270px;
    padding: 46px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.eyebrow {
    margin: 0;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
}

h1 {
    margin: 13px 0 11px;
    font: 700 clamp(42px, 6.2vw, 74px)/1.03 Georgia, serif;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

h1 em {
    color: var(--red);
    font: italic 700 1em/1 Georgia, serif;
    letter-spacing: -.045em;
    text-transform: none;
}

.lede {
    max-width: 500px;
    margin: 15px 0 0;
    color: var(--muted);
    font: 500 18px/1.6 Georgia, serif;
}

.round-stamp {
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--red);
    border-radius: 50%;
    color: var(--red);
    transform: rotate(8deg);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.round-stamp span,
.round-stamp small {
    font: 900 9.5px/1 Arial, sans-serif;
    letter-spacing: .12em;
}

.round-stamp strong {
    margin: 5px 0;
    font: 700 16px/1.1 Georgia, serif;
    letter-spacing: .02em;
    white-space: nowrap;
}

.round-stamp small {
    font-size: 8.5px;
}

.bout {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    box-shadow: 6px 6px 0 var(--paper-deep);
}

.bout-strip,
.bout-footer {
    min-height: 44px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .075em;
}

.bout-strip {
    border-bottom: 1px solid #f0e8d638;
    color: #f0eade;
}

.bout-strip span:first-child {
    color: var(--acid);
    font-weight: 700;
}

.fight-stage {
    position: relative;
    min-height: 370px;
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    align-items: center;
    padding: 20px clamp(8px, 3vw, 40px) 52px;
    background-color: #382c40;
    background-image: radial-gradient(#f4eef21a .8px, transparent .8px), linear-gradient(135deg, #382c40, #241c2a 63%);
    background-size: 8px 8px, auto;
}

.corner {
    position: relative;
    z-index: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.corner.is-hit {
    animation: stage-hit-shake .26s ease-in-out;
}

@keyframes stage-hit-shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px) rotate(-1.2deg);
    }

    40% {
        transform: translateX(5px) rotate(1deg);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}

.fighter-art {
    position: relative;
    height: 195px;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.fighter-art svg {
    width: min(100%, 220px);
    height: 100%;
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.35));
}

.fighter-stage-frame,
.fighter-art>img {
    width: 170px;
    height: 170px;
    border: 3px solid #171715;
    border-radius: 4px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
    background: #171715;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: stage-img-fade 0.35s cubic-bezier(.2, .8, .2, 1) both;
    display: block;
}

@keyframes stage-img-fade {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fighter-stage-frame:hover,
.fighter-art>img:hover {
    transform: scale(1.04);
    box-shadow: 5px 5px 0 var(--acid);
}

.fighter-stage-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.09);
    transition: transform .2s ease;
}

.home-art {
    --fighter-accent: var(--red);
    background: radial-gradient(ellipse at center 72%, #bda4d633, transparent 58%);
}

.home-shadow,
.pigeon-shadow {
    fill: #090909;
    opacity: .8;
}

.home-body {
    fill: #d0b996;
    stroke: #171715;
    stroke-width: 5;
    stroke-linejoin: round;
}

.home-head {
    fill: #d5bda0;
    stroke: #171715;
    stroke-width: 5;
    stroke-linejoin: round;
}

.home-mask {
    fill: #171715;
}

.home-face {
    fill: var(--acid);
}

.home-pupil {
    fill: #171715;
}

.home-scarf {
    fill: var(--fighter-accent);
    stroke: #171715;
    stroke-width: 4;
    stroke-linejoin: round;
}

.home-glove,
.home-boot {
    fill: var(--fighter-accent);
    stroke: #171715;
    stroke-width: 5;
    stroke-linejoin: round;
}

.home-detail {
    fill: none;
    stroke: #8d3c2c;
    stroke-width: 4;
    stroke-linecap: round;
}

.fighter-tagline {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 28px;
    margin: 10px 0 8px;
    padding: 0 4px;
    box-sizing: border-box;
}

.tagline-badge {
    display: block;
    width: 100%;
    max-width: 260px;
    padding: 4px 10px;
    color: #ffffff;
    background: #1f1724;
    border: 1px solid #5a4266;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
    font: 700 10.5px/1.25 Arial, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.corner-home .tagline-badge {
    border-color: #8b68a0;
}

.corner-away .tagline-badge {
    border-color: #839276;
}

.fighter-mark {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border: 1px dashed rgba(240, 232, 214, 0.4);
    border-radius: 2px;
    color: #d5e36b;
    background: rgba(28, 20, 34, 0.9);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
    font: 800 9px/1.2 Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fighter-mark:empty {
    display: none;
}

.corner-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.corner-label span {
    color: #f5f0e6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.corner-label b {
    max-width: 100%;
    padding: 8px 11px;
    color: var(--ink);
    background: var(--acid);
    font: 700 14px/1.2 Arial, sans-serif;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
}

.corner-home .corner-label b {
    color: var(--paper);
    background: #71557f;
}

.stage-centre {
    position: relative;
    z-index: 2;
    align-self: center;
    display: grid;
    place-items: center;
}

.stage-wire {
    position: absolute;
    width: 1px;
    height: 100px;
    background: #f0e8d64d;
    transform: rotate(35deg);
}

.stage-wire-two {
    transform: rotate(-35deg);
}

.stage-mark {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    background: #e6dbea;
    color: #5c3c6d;
    border: 3px solid var(--ink);
    outline: 1px solid #e6dbea;
    border-radius: 50%;
    font: 700 24px/.8 Georgia, serif;
    transform: rotate(-6deg);
}

.stage-caption {
    position: absolute;
    top: 88px;
    width: 140px;
    color: #ded8c8;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.stage-mark.is-series-win {
    background: #24542d;
    color: var(--acid);
    border-color: #438751;
    outline: 2px solid var(--acid);
    font: 900 22px/1 Arial, sans-serif;
    transform: rotate(0deg) scale(1.08);
    box-shadow: 0 0 16px rgba(213, 227, 107, 0.45);
}

.stage-mark.is-series-loss {
    background: var(--red);
    color: #ffffff;
    border-color: #f77a63;
    outline: 2px solid #f77a63;
    font: 900 22px/1 Arial, sans-serif;
    transform: rotate(0deg) scale(1.08);
    box-shadow: 0 0 16px rgba(186, 46, 34, 0.45);
}

.stage-caption.is-series-verdict {
    color: var(--acid);
    font-weight: 900;
    letter-spacing: .14em;
}

.corner.is-series-winner .fighter-art {
    filter: drop-shadow(0 0 14px rgba(213, 227, 107, 0.45));
}

.corner.is-series-winner .corner-label b {
    box-shadow: 0 0 12px var(--acid);
}

.corner.is-series-loser {
    opacity: .72;
    filter: grayscale(0.2);
}

.pigeon-art {
    background: radial-gradient(ellipse at center 70%, #9b7baa40, transparent 56%);
}

.pigeon-wing {
    fill: #737d70;
    stroke: #171715;
    stroke-width: 5;
    stroke-linejoin: round;
}

.pigeon-body {
    fill: #858f7a;
    stroke: #171715;
    stroke-width: 5;
}

.pigeon-neck,
.pigeon-head {
    fill: #a4a98c;
    stroke: #171715;
    stroke-width: 5;
    stroke-linejoin: round;
}

.pigeon-beak,
.pigeon-feet {
    fill: #e7a13c;
    stroke: #171715;
    stroke-width: 4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.pigeon-eye {
    fill: #171715;
    stroke: var(--acid);
    stroke-width: 4;
}

.pigeon-crest {
    fill: var(--red);
    stroke: #171715;
    stroke-width: 4;
    stroke-linejoin: round;
}

.pigeon-wing-line {
    fill: none;
    stroke: #c8c69f;
    stroke-width: 4;
    stroke-linecap: round;
}

.pigeon-shoe {
    fill: var(--red);
    stroke: #171715;
    stroke-width: 4;
    stroke-linejoin: round;
}

.pigeon-shorts {
    fill: #363e44;
    stroke: #171715;
    stroke-width: 4;
}

.pigeon-stripe {
    fill: none;
    stroke: var(--paper);
    stroke-width: 4;
}

.health-row {
    position: absolute;
    right: 24px;
    bottom: 14px;
    left: 24px;
    display: grid;
    grid-template-columns: minmax(50px, 1fr) auto minmax(50px, 1fr);
    align-items: center;
    gap: 13px;
}

.health-row div {
    display: flex;
    gap: 3px;
}

.health-row i {
    height: 9px;
    flex: 1;
    background: #473a4e;
    transform: skew(-20deg);
    transition: background .18s ease, opacity .18s ease;
    opacity: .35;
}

.health-row div:first-child i.pip-on {
    background: var(--fighter-accent, var(--red));
    opacity: 1;
}

.health-away {
    flex-direction: row-reverse;
}

.health-row div.health-away i.pip-on {
    background: var(--acid);
    opacity: 1;
}

.health-row span {
    color: #ece5d8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-align: center;
}

.health-row span.is-series-verdict {
    padding: 4px 14px;
    background: #1c1422;
    border: 1px solid var(--acid);
    border-radius: 3px;
    color: var(--acid);
    font-weight: 900;
    letter-spacing: .12em;
    box-shadow: 0 0 12px rgba(213, 227, 107, 0.3);
}

.health-row span.is-series-verdict.is-loss {
    border-color: var(--red);
    color: #ff9d8f;
    box-shadow: 0 0 12px rgba(186, 46, 34, 0.3);
}

.bout-footer {
    border-top: 1px solid #f0e8d638;
    color: #ece5d8;
}

.ringside {
    display: grid;
    grid-template-columns: minmax(250px, .74fr) minmax(0, 1.7fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "scout form"
        "scout status";
    gap: 16px 24px;
    margin: 42px 0 0;
    align-items: start;
}

.scout-card {
    position: relative;
    grid-area: scout;
    min-height: 210px;
    padding: 24px;
    overflow: hidden;
    background: #e7dce9;
    transform: rotate(-.35deg);
    box-shadow: 3px 4px 0 #c5b3ca;
}

.scout-card::before {
    position: absolute;
    top: -13px;
    right: 22px;
    width: 55px;
    height: 28px;
    content: "";
    background: #d94f3d66;
    transform: rotate(4deg);
}

.scout-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.scout-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scout-count {
    color: #3f3342;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.scout-cycle {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    background: #d7c5dc;
    color: #2e1b36;
    border: 1px solid #a891af;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.scout-cycle:hover {
    background: #cbb4d2;
    transform: rotate(45deg);
}

.scout-cycle:active {
    transform: rotate(180deg);
}

.scout-cycle:disabled {
    opacity: .4;
    cursor: not-allowed;
    background: #d7c5dc;
    transform: none !important;
}

.scout-question {
    max-width: 320px;
    margin: 22px 0 18px;
    color: #201625;
    font: 700 22px/1.35 Georgia, serif;
}

.scout-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 220px;
}

.scout-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    transition: transform .15s ease, box-shadow .15s ease;
}

.scout-button b {
    color: var(--acid);
    font-size: 15px;
}

.scout-bribe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    background: #2b1c33;
    color: var(--acid);
    border: 1px solid #71557f;
    border-radius: 2px;
    font: 800 11px/1.2 Arial, sans-serif;
    letter-spacing: .06em;
    cursor: pointer;
    transition: all .15s ease;
}

.scout-bribe small {
    color: #ded2e4;
    font: 700 9px Arial, sans-serif;
    letter-spacing: .08em;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 5px;
    border-radius: 2px;
}

.scout-bribe:hover {
    background: var(--ink);
    border-color: var(--acid);
    transform: translateY(-1px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.scout-bribe:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.scout-answer {
    margin: 16px 0 0;
    color: #2e1b36;
    font: italic 600 17px/1.55 Georgia, serif;
}

.fighter-form {
    grid-area: form;
    min-width: 0;
    padding: 26px;
    background: #f6efe5;
    background-image: radial-gradient(rgba(43, 34, 49, 0.03) 1px, transparent 1px);
    background-size: 8px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 3px 4px 0 var(--paper-deep);
}

.fighter-form label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.character-count {
    color: #3f3342;
    font: 600 13px Arial, sans-serif;
    white-space: nowrap;
}

.character-count b {
    color: var(--ink);
}

.fighter-form textarea {
    display: block;
    width: 100%;
    min-height: 100px;
    margin: 16px 0 14px;
    padding: 12px 2px;
    resize: vertical;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font: 20px/1.55 Georgia, serif;
}

.fighter-form textarea::placeholder {
    color: #5c4f60;
    font-style: italic;
}

.form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.form-bottom p {
    margin: 0;
    color: #3f3342;
    font: italic 500 15px/1.5 Georgia, serif;
}

.fight-button {
    min-height: 52px;
    flex: 0 0 auto;
    padding: 0 20px;
    color: #ffffff;
    background: var(--red);
    border: 0;
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    font: 700 15px/1.2 Arial, sans-serif;
    letter-spacing: .02em;
}

.fight-button:hover,
.scout-button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
}

.fight-button:disabled {
    color: #ffffff;
    background: #826c7e;
    box-shadow: none;
    cursor: default;
}

.form-status {
    grid-area: status;
    min-height: 24px;
    margin: 0;
    color: #352538;
    font: 600 14px/1.5 Georgia, serif;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-status.is-scout-warning {
    color: var(--red);
}

.status-manicule {
    display: inline-flex;
    align-items: center;
    color: var(--red);
    flex-shrink: 0;
    animation: manicule-nudge 1.1s ease-in-out infinite;
}

.status-manicule svg {
    width: 28px;
    height: 18px;
    display: block;
}

@keyframes manicule-nudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-6px);
    }
}

.tape-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 13px;
    border-bottom: 1px solid var(--line);
}

.tape-title-group {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
}

.tape-subtitle {
    color: #5c4465;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.tape-heading [data-action="clear-tape"] {
    color: #5c3c6d;
    background: transparent;
    border: 1px solid #aa95b2;
    padding: 4px 10px;
    font: 700 11px/1 Arial, sans-serif;
    letter-spacing: .08em;
    cursor: pointer;
    border-radius: 2px;
    transition: all .15s ease;
}

.tape-heading [data-action="clear-tape"]:hover {
    color: var(--red);
    border-color: var(--red);
    background: rgba(230, 80, 50, 0.06);
}

.tape-empty {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    color: #3f3342;
    font: italic 500 15px/1.5 Georgia, serif;
}

.tape-empty p {
    margin: 0;
}

.tape-stamp {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 2px solid #8e7399;
    border-radius: 50%;
    color: #5c3c6d;
    font: 700 14px/1 Georgia, serif;
    transform: rotate(-8deg);
}

.tape-log {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tape-log li {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.tape-log strong {
    color: #543763;
    font: 700 13px/1.3 Arial, sans-serif;
}

.tape-log strong.tape-win {
    color: #5b7519;
}

.tape-log strong.tape-loss {
    color: #8e2b1b;
}

.tape-log span {
    color: #3f3342;
    font: italic 500 15px/1.55 Georgia, serif;
}

.tape-log b {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 6px clamp(16px, 3.5vw, 44px);
    background: var(--ink);
    color: #ded2e4;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1.2;
    box-sizing: border-box;
}

.footer a:not(.pollinations-badge) {
    color: var(--acid);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s ease, opacity .15s ease;
}

.footer a:not(.pollinations-badge):hover {
    color: #fff;
}

.pollinations-badge {
    display: inline-flex;
    align-items: center;
    transition: transform .15s ease, opacity .15s ease;
}

.pollinations-badge:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.pollinations-badge img {
    height: 18px;
    width: auto;
    display: block;
}

.how-dialog {
    border: 2px solid #2b2231;
    border-radius: 6px;
    padding: clamp(20px, 4vw, 32px);
    background: var(--paper);
    color: var(--ink);
    max-width: min(92vw, 540px);
    margin: auto;
    box-shadow: 6px 6px 0 var(--ink);
}

.how-dialog::backdrop {
    background: #211827d9;
    backdrop-filter: blur(3px);
}

.how-dialog h2 {
    margin: 8px 0 10px;
    font: 700 clamp(30px, 7vw, 38px)/1.12 Georgia, serif;
}

.how-intro,
.how-footnote {
    color: var(--muted);
    font: 16px/1.55 Georgia, serif;
}

.how-steps {
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.how-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.how-steps li>span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--paper);
    background: #71557f;
    font-size: 11px;
    font-weight: 500;
}

.how-steps p {
    margin: 1px 0 0;
    color: var(--muted);
    font: 15px/1.55 Georgia, serif;
}

.how-steps b {
    color: var(--ink);
    font-weight: 700;
}

.how-footnote {
    margin: 18px 0;
    padding-left: 14px;
    border-left: 3px solid var(--acid);
    font-size: 14px;
}

.how-close {
    min-height: 48px;
    padding: 10px 16px;
    color: var(--paper);
    background: var(--ink);
    border: 0;
    font: 500 14px/1.2 Arial, sans-serif;
    cursor: pointer;
}

.how-close span {
    margin-left: 10px;
    color: var(--acid);
}

.forge-panel {
    margin: 28px 0 0;
    padding: 24px clamp(20px, 3vw, 36px);
    display: flex;
    align-items: center;
    gap: 22px;
    background: #f5ede2;
    border: 2px dashed #9b7baa;
    box-shadow: 4px 4px 0 var(--paper-deep);
    animation: forge-in 300ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes forge-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forge-stamp {
    flex: 0 0 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 2px solid var(--red);
    border-radius: 50%;
    color: var(--red);
    font: 900 12px/1 Arial, sans-serif;
    letter-spacing: .14em;
    transform: rotate(-7deg);
    animation: stamp-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes stamp-pulse {
    from {
        transform: rotate(-7deg) scale(1);
    }

    to {
        transform: rotate(-4deg) scale(1.06);
    }
}

.forge-content {
    flex: 1;
    min-width: 0;
}

.forge-title {
    margin: 6px 0 4px;
    color: var(--ink);
    font: 700 clamp(22px, 3.5vw, 28px)/1.2 Georgia, serif;
}

.forge-status {
    margin: 0 0 14px;
    color: var(--muted);
    font: italic 600 15px/1.5 Georgia, serif;
}

.forge-track {
    width: 100%;
    height: 6px;
    background: #ded2e2;
    overflow: hidden;
    border-radius: 3px;
}

.forge-meter {
    width: 38%;
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--acid));
    border-radius: 3px;
    animation: forge-sweep 1.6s ease-in-out infinite;
}

@keyframes forge-sweep {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(180%);
    }

    100% {
        transform: translateX(350%);
    }
}

.fighter-form[aria-busy="true"] .fight-button {
    background: #2b2231;
    color: var(--acid);
    box-shadow: 3px 3px 0 var(--red);
    cursor: wait;
    animation: button-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes button-pulse {
    from {
        opacity: .9;
    }

    to {
        opacity: 1;
        transform: translateY(-1px);
    }
}

.home-art.is-inking {
    animation: inking-shimmer 1.5s ease-in-out infinite alternate;
}

@keyframes inking-shimmer {
    from {
        filter: drop-shadow(0 0 4px var(--red));
        opacity: .85;
    }

    to {
        filter: drop-shadow(0 0 12px var(--acid));
        opacity: 1;
    }
}

.fight-panel {
    position: relative;
    margin: 36px 0 0;
    padding: clamp(26px, 4vw, 42px);
    background-color: #f7f1e6;
    background-image:
        radial-gradient(rgba(58, 38, 68, 0.045) 1px, transparent 1px),
        linear-gradient(135deg, #fcf8ee 0%, #f0e6d6 100%);
    background-size: 10px 10px, auto;
    border: 2px solid #2b2231;
    border-radius: 8px;
    box-shadow:
        0 0 0 3px #dacbb5,
        5px 6px 0 #2b2231;
}

.fight-panel::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(61, 44, 71, 0.22);
    border-radius: 4px;
    pointer-events: none;
}

.matchmaker-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 2px solid #2b2231;
    margin-bottom: 22px;
}

.matchmaker-header h2 {
    margin: 4px 0 0;
    color: #1f1425;
    font: 700 clamp(24px, 3.5vw, 36px)/1.15 Georgia, serif;
    letter-spacing: -.02em;
}

.matchmaker-sub {
    font: 800 11px/1.2 Arial, sans-serif;
    letter-spacing: .08em;
    color: var(--red);
    background: rgba(230, 80, 50, 0.1);
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid rgba(230, 80, 50, 0.25);
}

.dossier-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.card-dossier {
    background: #fbf8f2;
    border: 2px solid #2b2231;
    border-radius: 6px;
    padding: clamp(16px, 2.5vw, 22px);
    box-shadow: 4px 4px 0 #dacbb5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-home {
    border-top: 5px solid #71557f;
}

.card-away {
    border-top: 5px solid #556b2f;
}

.card-dossier .dossier-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dcd1c2;
}

.dossier-avatar {
    width: 92px;
    height: 92px;
    padding: 0;
    border-radius: 6px;
    border: 2px solid #2b2231;
    background: #eae2d5;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    outline: none;
    position: relative;
}

.dossier-avatar:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.dossier-avatar:focus-visible {
    outline: 3px solid #9d75b7;
    outline-offset: 2px;
}

.card-home .dossier-avatar {
    background: #edd8d4;
    color: #8f3020;
    border-color: #5d251d;
}

.card-away .dossier-avatar {
    background: #e2e8d4;
    color: #3b5220;
    border-color: #374624;
}

.dossier-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.09);
    transition: opacity .3s ease, transform .2s ease;
}

.dossier-avatar svg {
    width: 44px;
    height: 44px;
    opacity: .85;
}

.dossier-health {
    margin: 12px 0 10px;
    padding: 10px 12px;
    background: rgba(43, 34, 49, 0.05);
    border: 1px solid rgba(43, 34, 49, 0.16);
    border-radius: 4px;
}

.dossier-health .health-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dossier-health .health-meta .eyebrow {
    font-size: 9px;
    letter-spacing: .08em;
}

.dossier-health .health-val {
    font: 800 12px/1 Arial, sans-serif;
    letter-spacing: .05em;
    color: var(--ink);
}

.card-home .health-val {
    color: #8f3020;
}

.card-away .health-val {
    color: #3b5220;
}

.dossier-health .health-bar-track {
    width: 100%;
    height: 8px;
    background: #e3d9cb;
    border: 1px solid rgba(43, 34, 49, 0.22);
    border-radius: 2px;
    overflow: hidden;
}

.card-home .health-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ba2e22, #e65032);
    transition: width .3s ease;
}

.card-away .health-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #556b2f, #839276);
    transition: width .3s ease;
}

.dossier-titles {
    flex: 1;
    min-width: 0;
}

.dossier-titles .eyebrow {
    font-size: 10px;
    margin-bottom: 2px;
}

.dossier-titles h3 {
    margin: 2px 0 0;
    color: #1f1425;
    font: 700 clamp(20px, 2.4vw, 26px)/1.15 Georgia, serif;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.dossier-number {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #2b2231;
    color: #f5eedf;
    border: 1px solid #4d3856;
    border-radius: 4px;
    box-shadow: 2px 2px 0 var(--red);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-align: center;
    line-height: 1.35;
    flex-shrink: 0;
}

.card-away .dossier-number {
    box-shadow: 2px 2px 0 #839276;
}

.dossier-number b {
    color: var(--acid);
    font-size: 13px;
    font-weight: 900;
}

.card-away .dossier-number b {
    color: #d5e36b;
}

.dossier-line {
    position: relative;
    margin: 10px 0 16px;
    padding: 8px 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.65);
    border-left: 3px solid var(--red);
    border-radius: 0 4px 4px 0;
    color: #2b1f30;
    font: italic 600 14px/1.45 Georgia, serif;
}

.card-away .dossier-line {
    border-left-color: #839276;
}

.card-dossier .dossier-traits {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.trait-card {
    min-width: 0;
    padding: 12px 14px;
    background: #fbf8f2;
    border: 1px solid #dcd1c2;
    border-top: 3px solid #825e94;
    border-radius: 4px;
    box-shadow: 2px 2px 0 rgba(43, 34, 49, 0.06);
    display: flex;
    flex-direction: column;
}

.trait-card.trait-strength,
.trait-card.trait-weakness,
.trait-card.trait-quirk {
    min-height: 124px;
}

.trait-card.trait-strength b,
.trait-card.trait-weakness b,
.trait-card.trait-quirk b {
    flex: 1;
    font-size: 14px;
    line-height: 1.35;
}

.trait-card.trait-power,
.trait-card.trait-speed,
.trait-card.trait-guard {
    min-height: 72px;
    justify-content: space-between;
}

.trait-card.trait-look {
    grid-column: 1 / -1;
    min-height: 64px;
    border-top-color: #4a3456;
    justify-content: center;
}

.trait-card.trait-look b {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.trait-card.trait-power {
    border-top-color: var(--red);
}

.trait-card.trait-speed {
    border-top-color: #9cb225;
}

.trait-card.trait-guard {
    border-top-color: #6e4f80;
}

.trait-card.trait-strength {
    border-top-color: #ba2e22;
}

.trait-card.trait-weakness {
    border-top-color: #7b6883;
}

.trait-card.trait-quirk {
    border-top-color: #427278;
}

.trait-card>span:not(.trait-icon) {
    display: inline-block;
    margin: 0 0 6px;
    color: #4a3852;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    vertical-align: middle;
}

.trait-card .trait-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    margin: 0 8px 6px 0;
    place-items: center;
    color: #71557f;
    font: 700 16px/1 Arial, sans-serif;
    vertical-align: middle;
}

.trait-card b {
    display: block;
    color: #1b1220;
    font: 700 16px/1.45 Arial, sans-serif;
    overflow-wrap: anywhere;
}

.trait-card b.trait-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.stat-val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    font: 900 18px/1 Arial, sans-serif;
    color: #1b1220;
    background: rgba(43, 34, 49, 0.08);
    border: 1px solid rgba(43, 34, 49, 0.15);
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
}

.stat-pips {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-pips i {
    display: inline-block;
    width: 8px;
    height: 14px;
    transform: skew(-15deg);
    border-radius: 1px;
}

.trait-power .pip-on {
    background: var(--red);
}

.trait-speed .pip-on {
    background: #9db226;
}

.trait-guard .pip-on {
    background: #71557f;
}

.pip-off {
    background: #dfd4c4;
}

.move-strip {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 16px;
    min-height: 76px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border-top: 1px solid #ded3c4;
}

.move-strip>div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.move-chip {
    padding: 7px 13px;
    color: #1e1324;
    background: #ebdff0;
    border: 1px solid #c9b8d2;
    border-radius: 3px;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
    font: 700 12px/1.3 Arial, sans-serif;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.tactic-picker {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    padding-top: 20px;
    display: grid;
    grid-template-columns: minmax(170px, .65fr) 1.7fr;
    gap: 20px;
    border-top: 1px solid #ded3c4;
}

.tactic-picker>div:first-child>p:last-child {
    margin: 7px 0 0;
    color: #3f3342;
    font: italic 600 15px/1.55 Georgia, serif;
}

.tactic-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tactic-options button {
    min-height: 72px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    color: var(--ink);
    background: #fbf8f2;
    border: 1px solid #d4c7b6;
    border-radius: 4px;
    box-shadow: 2px 2px 0 rgba(43, 34, 49, 0.1);
    text-align: left;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}

.tactic-options button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(43, 34, 49, 0.2);
}

.tactic-options button[aria-pressed="true"] {
    color: #ffffff;
    background: #2b2231;
    border-color: #2b2231;
    box-shadow: 2px 2px 0 var(--red);
}

.tactic-options b {
    font: 700 15px/1.25 Arial, sans-serif;
    letter-spacing: .02em;
}

.tactic-options span {
    color: #3f3342;
    font: 500 14px/1.35 Georgia, serif;
}

.tactic-options button[aria-pressed="true"] span {
    color: #e8ddeb;
}

.dossier-actions {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.dossier-actions .form-status {
    margin: 0;
    color: #352538;
    font-weight: 600;
}

.bout-result {
    margin: 28px 0 0;
    padding: 26px clamp(20px, 3vw, 38px);
    color: var(--paper);
    background: #302638;
    box-shadow: 4px 5px 0 #9b7baa;
}

.result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0e8d638;
}

.result-head h2 {
    margin: 8px 0 0;
    color: var(--acid);
    font: 700 clamp(30px, 4vw, 40px)/1.12 Georgia, serif;
}

.result-head .eyebrow {
    color: #f8daf2;
}

.result-head .text-button {
    font-size: 11px;
}

.round-log {
    margin: 0;
    padding: 0;
    list-style: none;
}

.round-log li {
    scroll-margin-bottom: 80px;
    display: grid;
    grid-template-columns: 68px 24px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 12px;
    border-bottom: 1px solid #f4eef226;
    border-left: 3px solid transparent;
    transition: background .15s ease;
    animation: tape-hit 320ms cubic-bezier(.2, .8, .2, 1) both;
}

.round-log li>b {
    color: #ebd2f7;
    font: 600 12px/1.3 Arial, sans-serif;
}

.event-mark {
    color: var(--acid);
    font: 700 17px/1 Arial, sans-serif;
    text-align: center;
}

.round-log p {
    margin: 0;
    color: #ffffff;
    font: 500 15px/1.5 Georgia, serif;
}

.round-log small {
    color: #ded2e4;
    font: 700 11px/1.3 Arial, sans-serif;
    white-space: nowrap;
}

.round-log li.hit-dealt {
    border-left-color: #3f854f;
    background: rgba(36, 84, 45, 0.16);
}

.round-log li.hit-dealt .event-mark {
    color: #4ba65b;
}

.round-log li.hit-dealt small {
    color: #ffffff;
    background: #24542d;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid #3f854f;
    font-weight: 800;
    letter-spacing: .04em;
}

.round-log li.hit-taken {
    border-left-color: var(--red);
    background: rgba(230, 80, 50, 0.12);
}

.round-log li.hit-taken .event-mark {
    color: var(--red);
}

.round-log li.hit-taken small {
    color: #ffffff;
    background: var(--red);
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 800;
    letter-spacing: .04em;
}

.round-log li.hit-exploit {
    border-left-color: #f5b73d;
    background: rgba(245, 183, 61, 0.16);
}

.round-log li.hit-exploit .event-mark {
    color: #f5b73d;
}

.round-log li.hit-exploit small {
    color: #1f1425;
    background: #f5b73d;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: 0 0 10px rgba(245, 183, 61, 0.45);
}

.round-log li.hit-miss {
    border-left-color: #695d70;
    opacity: .78;
}

.round-log li.hit-miss .event-mark {
    color: #a89bb0;
}

.round-log li.hit-miss small {
    color: #bfaec6;
    background: #251b2c;
    padding: 3px 7px;
    border-radius: 3px;
    border: 1px solid #483852;
}

.round-log li small {
    position: relative;
}

.dust-puff {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 232, 214, 0.9) 0%, rgba(240, 232, 214, 0) 75%);
    pointer-events: none;
    animation: dust-puff-anim .35s ease-out forwards;
}

@keyframes dust-puff-anim {
    0% {
        transform: translateY(-50%) scale(0.3);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) scale(2.4);
        opacity: 0;
    }
}

.result-stamp-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 18px 0;
}

.result-stamp {
    display: inline-block;
    padding: 10px 24px;
    border: 3px dashed;
    border-radius: 4px;
    font: 900 clamp(16px, 2.5vw, 22px)/1.1 Impact, Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: rotate(-3deg);
    animation: stamp-slam .35s cubic-bezier(.175, .885, .32, 1.275) both;
}

.result-stamp.is-win {
    color: #ffffff;
    background: #24542d;
    border-color: #438751;
    box-shadow: 4px 4px 0 #132e19;
}

.result-stamp.is-loss {
    color: #ffffff;
    background: var(--red);
    border-color: #f77a63;
    box-shadow: 4px 4px 0 #942b1b;
}

@keyframes stamp-slam {
    0% {
        transform: scale(2.2) rotate(14deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(-3deg);
        opacity: 1;
    }
}

.round-verdict {
    display: block !important;
    scroll-margin-bottom: 100px;
    padding: 0 !important;
    margin: 22px 0 10px !important;
    border: none !important;
    background: transparent !important;
    animation: stamp-slam .4s cubic-bezier(.175, .885, .32, 1.275) both;
}

.verdict-banner {
    padding: 18px 22px;
    border-radius: 4px;
    border: 3px dashed;
    text-align: center;
}

.verdict-win .verdict-banner {
    background: #24542d;
    border-color: #438751;
    box-shadow: 4px 4px 0 #132e19;
    color: #ffffff;
}

.verdict-loss .verdict-banner {
    background: var(--red);
    border-color: #f77a63;
    box-shadow: 4px 4px 0 #942b1b;
    color: #ffffff;
}

.verdict-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    background: #171715;
    color: #f5eedf;
    font: 900 12px/1 Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.verdict-win .verdict-badge {
    background: #14331b;
    color: #9fe2ad;
    border: 1px solid #366d42;
}

.verdict-banner h3 {
    margin: 4px 0;
    font: 900 clamp(22px, 3.5vw, 32px)/1.1 Impact, Arial, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.verdict-banner p {
    margin: 4px 0 0;
    font: 700 13px/1.3 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .95;
}

.result-navigation {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.return-corner-button {
    width: 100%;
    max-width: 520px;
    min-height: 52px;
    padding: 12px 24px;
    background: #2b2231;
    color: var(--acid);
    border: 2px solid var(--red);
    box-shadow: 4px 4px 0 var(--red);
    font: 800 13px/1.2 Arial, sans-serif;
    letter-spacing: .08em;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-transform: uppercase;
}

.return-corner-button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 var(--red);
    background: #1d1423;
}

.return-corner-button:focus-visible {
    outline: 3px solid #9d75b7;
    outline-offset: 3px;
}

.return-corner-button:disabled,
.result-head button:disabled {
    opacity: .55;
    cursor: wait;
}

.fight-button:disabled {
    cursor: wait;
}

@keyframes tape-hit {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scout-button:disabled {
    color: var(--ink);
    background: var(--acid);
    cursor: default;
    box-shadow: none;
}

.zoom-dialog::backdrop {
    background: rgba(23, 17, 27, 0.82);
    backdrop-filter: blur(4px);
}

.zoom-dialog {
    border: none;
    padding: 18px;
    background: transparent;
    max-width: min(92vw, 460px);
    margin: auto;
    overflow: visible;
}

.zoom-card {
    position: relative;
    background: #fcf8f0;
    border: 3px solid #2b2231;
    border-radius: 8px;
    padding: 22px 20px 18px;
    box-shadow: 6px 8px 0 #1b1220;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.zoom-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    border: 2px solid #2b2231;
    background: var(--red);
    color: #ffffff;
    border-radius: 50%;
    font: 900 15px/1 Arial, sans-serif;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 2px 2px 0 #2b2231;
    transition: transform .15s ease;
    z-index: 10;
}

.zoom-close:hover {
    transform: scale(1.1);
}

.zoom-media {
    width: 100%;
    aspect-ratio: 1;
    max-width: 380px;
    max-height: 55vh;
    border: 2px solid #2b2231;
    border-radius: 6px;
    overflow: hidden;
    background: #eae2d5;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.15);
}

.zoom-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
}

.zoom-media svg {
    width: 120px;
    height: 120px;
    opacity: .85;
}

.zoom-info {
    margin-top: 14px;
    text-align: center;
    width: 100%;
}

.zoom-info h3 {
    margin: 4px 0 2px;
    font: 700 24px/1.2 Georgia, serif;
    color: #1f1425;
}

.zoom-info p {
    margin: 4px 0 0;
    font: italic 600 14px/1.45 Georgia, serif;
    color: #3b2a40;
}

[hidden] {
    display: none !important;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
    background: var(--ink);
}

.auth-page main.auth-card {
    width: min(100%, 480px);
    max-width: 480px;
    margin: 0;
    padding: clamp(24px, 6vw, 42px);
    background: var(--paper);
    border: 1px solid #f0e8d638;
    box-shadow: 8px 8px 0 var(--red);
}

.auth-brand {
    margin-bottom: 48px;
    color: var(--ink);
}

.auth-card h1 {
    margin: 12px 0 20px;
    font-size: clamp(42px, 9vw, 68px);
}

.auth-message {
    min-height: 42px;
    color: #352538;
    font: 500 15px/1.4 Georgia, serif;
}

.auth-back {
    display: inline-block;
    margin-top: 20px;
    padding: 11px 13px;
    color: var(--paper);
    background: var(--ink);
    text-decoration: none;
    font: 900 10px/1 Impact, sans-serif;
    letter-spacing: .12em;
}

.auth-back span {
    margin-left: 9px;
    color: var(--acid);
    font-size: 14px;
}

@media (max-width: 700px) {
    .masthead {
        min-height: 72px;
        padding-inline: 16px;
    }

    .masthead {
        gap: 12px;
    }

    .brand {
        gap: 8px;
        font-size: 15px;
    }

    .brand>span:last-child {
        white-space: nowrap;
    }

    .brand small {
        font-size: 8px;
        letter-spacing: .12em;
    }

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

    .masthead-right {
        gap: 8px;
    }

    .live-tag {
        display: none;
    }

    .text-button {
        font-size: 9px;
    }

    .auth-status {
        display: none;
    }

    .connect-button {
        min-height: 42px;
        padding-inline: 8px;
        font-size: 9px;
    }

    main {
        padding-inline: 16px;
    }

    .intro {
        min-height: 0;
        padding: 24px 0 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .intro-copy {
        width: 100%;
    }

    h1 {
        font-size: clamp(38px, 10vw, 52px);
    }

    .round-stamp {
        width: 104px;
        height: 104px;
        flex-basis: 104px;
        align-self: flex-end;
        margin-right: 12px;
        margin-top: -6px;
        padding: 6px;
    }

    .round-stamp strong {
        margin: 3px 0;
        font-size: 11.5px;
        line-height: 1.05;
        letter-spacing: .01em;
        white-space: nowrap;
    }

    .round-stamp span,
    .round-stamp small {
        font-size: 7.5px;
        letter-spacing: .1em;
    }

    .lede {
        max-width: 520px;
        font-size: 16px;
    }

    .fight-stage {
        min-height: 270px;
        grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
        padding: 16px 8px 46px;
    }

    .fighter-art {
        height: 155px;
    }

    .fighter-art svg {
        width: min(100%, 155px);
        height: 100%;
    }

    .stage-mark {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .stage-wire {
        height: 78px;
    }

    .stage-caption {
        display: none;
    }

    .fighter-tagline {
        min-height: 32px;
        margin: 8px 0 6px;
        padding: 0 2px;
    }

    .tagline-badge {
        font-size: 8.5px;
        line-height: 1.25;
        letter-spacing: .03em;
        padding: 3px 5px;
        max-width: 100%;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
        min-height: 24px;
        max-height: 28px;
        text-align: center;
    }

    .corner-label {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .corner-label span {
        font-size: 8.5px;
        letter-spacing: .08em;
    }

    .corner-label b {
        font-size: 11px;
        padding: 5px 8px;
        width: 100%;
        max-width: 135px;
        box-sizing: border-box;
    }

    .health-row {
        right: 12px;
        left: 12px;
        bottom: 12px;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .health-row span {
        display: none;
    }

    .health-row span.is-series-verdict {
        display: block !important;
        font-size: 9px;
        grid-column: 1 / -1;
        margin-top: 6px;
    }

    .bout-strip,
    .bout-footer {
        min-height: 42px;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: .05em;
    }

    .ringside {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "scout"
            "status"
            "form";
        gap: 14px;
        margin-top: 24px;
    }

    .scout-card {
        min-height: 0;
        padding: 20px;
    }

    .scout-question {
        max-width: 520px;
        font-size: 21px;
        margin: 16px 0 14px;
    }

    .form-status {
        margin: 2px 0;
        min-height: 20px;
        font-size: 13px;
        align-items: center;
        gap: 8px;
    }

    .form-status.is-scout-warning {
        padding: 10px 14px;
        background: #fbf0e8;
        border: 1px solid #dfc7bd;
        border-left: 4px solid var(--red);
        border-radius: 4px;
        box-shadow: 2px 2px 0 rgba(43, 34, 49, 0.08);
        color: #2b1f30;
        font: 600 13.5px/1.45 Georgia, serif;
        margin: 2px 0;
    }

    .fighter-form {
        padding: 20px;
    }

    .fighter-form textarea {
        min-height: 96px;
        font-size: 18px;
        margin: 12px 0;
    }

    .status-manicule {
        transform: rotate(90deg);
        animation: manicule-nudge-up 1.1s ease-in-out infinite;
        margin: 2px 2px 0 0;
    }

    @keyframes manicule-nudge-up {

        0%,
        100% {
            transform: rotate(90deg) translateX(0);
        }

        50% {
            transform: rotate(90deg) translateX(-6px);
        }
    }

    .tactic-picker {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tactic-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .tactic-options button:last-child {
        grid-column: 1 / -1;
    }

    .move-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .forge-panel {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px 16px;
    }

    .forge-stamp {
        align-self: center;
    }

    .fight-panel,
    .bout-result {
        padding: 22px 20px;
    }

    .matchmaker-header {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .matchmaker-header h2 {
        font-size: clamp(22px, 6vw, 30px);
    }

    .matchmaker-sub {
        font-size: 10px;
        padding: 4px 8px;
    }

    .dossier-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-dossier {
        padding: 16px;
    }

    .dossier-head {
        align-items: center;
        gap: 12px;
    }

    .dossier-head h2 {
        font-size: clamp(26px, 7vw, 34px);
    }

    .dossier-avatar {
        width: 76px;
        height: 76px;
    }

    .dossier-line {
        font-size: 13px;
        padding: 7px 10px;
        min-height: 40px;
        margin: 8px 0 12px;
    }

    .card-dossier .dossier-traits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .trait-card {
        padding: 10px 11px;
    }

    .trait-card b {
        font-size: 13px;
    }

    .trait-card b.trait-stat-row {
        font-size: 14px;
    }

    .trait-card:last-child {
        grid-column: 1 / -1;
    }

    .trait-card.trait-strength,
    .trait-card.trait-weakness,
    .trait-card.trait-quirk {
        min-height: 96px;
    }

    .round-log li {
        grid-template-columns: 50px 18px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
    }

    .round-log p,
    .round-log small {
        grid-column: 3;
    }

    .round-log p {
        font-size: 14px;
    }

    .round-log small {
        margin-top: 2px;
    }

    .tape-log li {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .tape-log b {
        grid-column: 2;
        justify-self: end;
    }

    .dossier-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dossier-actions .fight-button {
        width: 100%;
    }

    .form-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .fight-button {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        padding: 8px 12px;
        gap: 5px;
        line-height: 1.3;
        font-size: 9.5px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .masthead {
        flex-wrap: wrap;
        gap: 8px;
        padding-block: 10px;
    }

    .masthead-right {
        width: 100%;
        justify-content: space-between;
    }

    main {
        padding-inline: 12px;
    }

    .round-stamp {
        width: 94px;
        height: 94px;
        flex-basis: 94px;
        margin-right: 4px;
        padding: 5px;
    }

    .round-stamp strong {
        font-size: 11px;
        margin: 2px 0;
    }

    .round-stamp span,
    .round-stamp small {
        font-size: 7px;
    }

    h1 {
        font-size: clamp(34px, 11vw, 42px);
    }

    .fight-stage {
        grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
        min-height: 250px;
        padding: 14px 6px 44px;
    }

    .fighter-art {
        height: 135px;
    }

    .fighter-art svg {
        width: min(100%, 135px);
    }

    .stage-mark {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .tagline-badge {
        font-size: 8px;
        padding: 2px 4px;
        min-height: 22px;
        max-height: 26px;
    }

    .corner-label b {
        padding: 5px 6px;
        font-size: 10px;
    }

    .bout-strip,
    .bout-footer {
        padding-inline: 9px;
        font-size: 8px;
    }

    .fight-panel,
    .bout-result {
        padding-inline: 14px;
    }

    .fighter-form textarea {
        min-height: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}