[hidden] {
    display: none !important;
}

:root {
    --sp-ink: #eaf6ff;
    --sp-muted: #91a8ba;
    --sp-line: rgba(138, 185, 214, 0.2);
    --sp-panel: rgba(7, 20, 31, 0.9);
    --sp-panel-soft: rgba(12, 30, 45, 0.78);
    --sp-cyan: #41d7ff;
    --sp-cyan-soft: rgba(65, 215, 255, 0.14);
    --sp-amber: #ffba5c;
    --sp-amber-soft: rgba(255, 186, 92, 0.13);
    --sp-like: #62e6a7;
    --sp-like-soft: rgba(98, 230, 167, 0.15);
    --sp-skip: #ff8b7a;
    --sp-skip-soft: rgba(255, 139, 122, 0.14);
    --sp-danger: #ff6f77;
    --sp-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.smash-pass-page,
.smash-pass-page *,
.smash-pass-page *::before,
.smash-pass-page *::after {
    box-sizing: border-box;
}

body.smash-pass-page {
    margin: 0;
    overflow-x: hidden;
}

.smash-pass-page {
    color: var(--sp-ink);
    background:
        radial-gradient(circle at 18% 0%, rgba(39, 162, 213, 0.18), transparent 31rem),
        radial-gradient(circle at 90% 12%, rgba(255, 177, 70, 0.11), transparent 28rem),
        #061019;
}

.smash-pass-page .page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(79, 133, 164, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 133, 164, 0.055) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.smash-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 88px;
}

.smash-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--sp-muted);
    font-size: 0.83rem;
    margin-bottom: 16px;
}

.smash-breadcrumb a {
    color: #c9e8f8;
    text-decoration: none;
}

.smash-breadcrumb a:hover {
    color: var(--sp-cyan);
}

.smash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 18px;
    align-items: end;
    padding: 18px 22px;
    border: 1px solid var(--sp-line);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(15, 42, 61, 0.92), rgba(7, 20, 31, 0.93)),
        radial-gradient(circle at 85% 10%, rgba(65, 215, 255, 0.13), transparent 50%);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
    position: relative;
}

.smash-hero::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -72px;
    top: -88px;
    border: 1px solid rgba(65, 215, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(65, 215, 255, 0.025), 0 0 0 60px rgba(65, 215, 255, 0.018);
}

.smash-eyebrow,
.smash-kicker,
.smash-state-label {
    margin: 0 0 8px;
    color: var(--sp-cyan);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.smash-hero h1 {
    margin: 0;
    max-width: 760px;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #fff;
    font-size: clamp(2.15rem, 5.5vw, 4.85rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.smash-hero .lead {
    margin: 12px 0 0;
    max-width: 760px;
    color: #c9dbe6;
    font-size: clamp(0.94rem, 1.7vw, 1.05rem);
    line-height: 1.48;
}

.smash-framing {
    margin: 9px 0 0;
    max-width: 790px;
    padding-left: 12px;
    border-left: 2px solid var(--sp-amber);
    color: #aebfca;
    font-size: 0.82rem;
    line-height: 1.42;
}

.smash-framing strong {
    color: #ffd79c;
}

.smash-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    position: relative;
    z-index: 1;
}

.smash-hero-facts div {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid rgba(146, 197, 224, 0.17);
    border-radius: 16px;
    background: rgba(4, 15, 24, 0.55);
    text-align: center;
}

.smash-hero-facts strong,
.smash-hero-facts span {
    display: block;
}

.smash-hero-facts strong {
    color: #fff;
    font-size: 1.35rem;
}

.smash-hero-facts span {
    margin-top: 3px;
    color: var(--sp-muted);
    font-size: 0.72rem;
    line-height: 1.25;
}

.smash-shell {
    margin-top: 14px;
    border: 1px solid var(--sp-line);
    border-radius: 28px;
    background: rgba(5, 16, 25, 0.93);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}

.smash-shell-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid var(--sp-line);
    background: linear-gradient(90deg, rgba(65, 215, 255, 0.08), transparent 55%);
}

.smash-shell-header h2,
.smash-setup-intro h3,
.smash-stats-heading h3,
.smash-result h3,
.smash-content-card h2,
.smash-guide h2,
.smash-reference h2,
.smash-related h2,
.smash-faq h2 {
    margin: 0;
    color: #f7fcff;
    letter-spacing: -0.025em;
}

.smash-shell-header h2 {
    font-size: clamp(1.08rem, 2.2vw, 1.42rem);
}

.smash-tabs {
    display: inline-flex;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--sp-line);
    border-radius: 13px;
    background: rgba(1, 9, 15, 0.7);
}

.smash-tab {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    padding: 9px 14px;
    color: var(--sp-muted);
    background: transparent;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.smash-tab:hover,
.smash-tab:focus-visible {
    color: #fff;
    background: rgba(65, 215, 255, 0.09);
}

.smash-tab.is-active {
    color: #00151d;
    background: var(--sp-cyan);
    box-shadow: 0 6px 18px rgba(65, 215, 255, 0.2);
}

.smash-state {
    margin: 24px;
    padding: 24px;
    border: 1px solid var(--sp-line);
    border-radius: 18px;
    background: var(--sp-panel-soft);
}

.smash-loading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.smash-loading strong,
.smash-loading span {
    display: block;
}

.smash-loading span {
    margin-top: 4px;
    color: var(--sp-muted);
}

.smash-loader {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(65, 215, 255, 0.17);
    border-top-color: var(--sp-cyan);
    animation: smash-spin 0.8s linear infinite;
}

@keyframes smash-spin {
    to { transform: rotate(360deg); }
}

.smash-error {
    border-color: rgba(255, 111, 119, 0.38);
    background: rgba(55, 19, 26, 0.75);
}

.smash-error h3 {
    margin: 0;
    color: #fff;
}

.smash-error p:not(.smash-state-label) {
    color: #efb9bd;
}

.smash-round-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--sp-line);
    background: rgba(8, 24, 36, 0.7);
}

.smash-round-strip div {
    min-width: 0;
    padding: 7px 10px;
    border-right: 1px solid var(--sp-line);
}

.smash-round-strip div:last-child {
    border-right: 0;
}

.smash-round-strip span,
.smash-round-strip strong {
    display: block;
}

.smash-round-strip span {
    color: var(--sp-muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.smash-round-strip strong {
    margin-top: 3px;
    color: #fff;
    font-size: 0.96rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smash-panel {
    padding: 12px 18px 18px;
}

.smash-active-round {
    display: flex;
    flex-direction: column;
    max-width: 980px;
    margin: 0 auto;
}

.smash-card-stage {
    order: 1;
}

.smash-decision-controls {
    order: 2;
}

.smash-gesture-note {
    order: 3;
}

.smash-stage-toolbar {
    order: 4;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--sp-line);
}

.smash-stage-toolbar,
.smash-setup-intro,
.smash-stats-heading,
.smash-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.smash-seed,
.smash-shortcut {
    margin: 0;
}

.smash-seed {
    color: #dff6ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
}

.smash-shortcut {
    margin-top: 5px;
    color: var(--sp-muted);
    font-size: 0.76rem;
}

.smash-toolbar-actions,
.smash-result-actions,
.smash-setup-actions,
.smash-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.smash-button {
    min-height: 40px;
    border: 1px solid rgba(144, 190, 216, 0.24);
    border-radius: 11px;
    padding: 9px 14px;
    color: #dcebf3;
    background: rgba(18, 42, 57, 0.9);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 760;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.smash-button:hover:not(:disabled),
.smash-button:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(65, 215, 255, 0.54);
    background: rgba(23, 57, 76, 0.96);
}

.smash-button:disabled {
    opacity: 0.43;
    cursor: not-allowed;
}

.smash-button-primary {
    color: #00151d;
    border-color: var(--sp-cyan);
    background: var(--sp-cyan);
}

.smash-button-primary:hover:not(:disabled),
.smash-button-primary:focus-visible:not(:disabled) {
    color: #00151d;
    background: #78e4ff;
}

.smash-button-quiet {
    color: #a9bfcc;
    background: rgba(8, 23, 34, 0.66);
}

.smash-button-danger {
    color: #fff;
    border-color: rgba(255, 111, 119, 0.65);
    background: rgba(126, 31, 41, 0.92);
}

.smash-card-stage {
    display: grid;
    place-items: center;
    min-height: 396px;
    padding: 7px 0 5px;
    perspective: 1100px;
    overflow: hidden;
    touch-action: pan-y;
}

.smash-card {
    position: relative;
    width: min(100%, 400px);
    min-height: 382px;
    border: 1px solid rgba(141, 197, 225, 0.27);
    border-radius: 28px;
    padding: 16px;
    background:
        linear-gradient(160deg, rgba(20, 50, 68, 0.98), rgba(7, 18, 28, 0.99) 60%),
        #07131d;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255,255,255,0.04);
    cursor: grab;
    user-select: none;
    will-change: transform, opacity;
    transition: transform 0.22s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.smash-card:active,
.smash-card.is-dragging {
    cursor: grabbing;
    transition: none;
}

.smash-card.is-like-exit {
    transform: translateX(135%) rotate(13deg) !important;
    opacity: 0;
    border-color: var(--sp-like);
}

.smash-card.is-skip-exit {
    transform: translateX(-135%) rotate(-13deg) !important;
    opacity: 0;
    border-color: var(--sp-skip);
}

.smash-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.smash-card-number,
.smash-rarity {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.smash-card-number {
    color: #b9cfdb;
    border: 1px solid var(--sp-line);
    background: rgba(3, 13, 21, 0.55);
}

.smash-rarity {
    color: #ffe0af;
    border: 1px solid rgba(255, 186, 92, 0.3);
    background: var(--sp-amber-soft);
}

.smash-art-frame {
    position: relative;
    display: grid;
    place-items: center;
    height: 164px;
    margin: 6px 0 2px;
    border-radius: 21px;
    background:
        radial-gradient(circle at 50% 45%, rgba(65, 215, 255, 0.18), transparent 47%),
        linear-gradient(180deg, rgba(5, 15, 23, 0.16), rgba(5, 15, 23, 0.64));
    overflow: hidden;
}

.smash-art-frame::before,
.smash-art-frame::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(65, 215, 255, 0.09);
}

.smash-art-frame::before {
    width: 220px;
    height: 220px;
}

.smash-art-frame::after {
    width: 160px;
    height: 160px;
}

.smash-art-frame img {
    position: relative;
    z-index: 1;
    width: 156px;
    height: 156px;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.36));
    -webkit-user-drag: none;
}

.smash-image-fallback {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 160px;
    height: 160px;
    border: 1px dashed rgba(145, 189, 213, 0.34);
    border-radius: 50%;
    color: rgba(229, 246, 255, 0.6);
    background: rgba(8, 24, 36, 0.84);
    font-size: 4rem;
    font-weight: 850;
}

.smash-card-copy {
    text-align: center;
}

.smash-dex {
    margin: 0;
    color: var(--sp-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.smash-card-copy h3 {
    margin: 3px 0 8px;
    font-size: clamp(1.65rem, 4.5vw, 2.25rem);
    line-height: 1.05;
}

.smash-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.smash-type-pill {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    border-radius: 999px;
    padding: 4px 10px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: capitalize;
    text-shadow: 0 1px 3px rgba(0,0,0,0.38);
}

.smash-meta,
.smash-description {
    margin: 8px auto 0;
    color: var(--sp-muted);
    line-height: 1.45;
}

.smash-meta {
    font-size: 0.76rem;
}

.smash-description {
    display: -webkit-box;
    max-width: 365px;
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smash-decision-hint {
    position: absolute;
    z-index: 3;
    top: 56px;
    border: 3px solid currentColor;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 1.22rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    opacity: 0;
    pointer-events: none;
}

.smash-decision-hint-like {
    right: 20px;
    color: var(--sp-like);
    transform: rotate(9deg);
}

.smash-decision-hint-skip {
    left: 20px;
    color: var(--sp-skip);
    transform: rotate(-9deg);
}

.smash-gesture-note {
    max-width: 680px;
    margin: 10px auto 0;
    color: #849aa8;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.smash-decision-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 650px;
    margin: 0 auto;
}

.smash-decision {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 12px;
    align-items: center;
    min-height: 70px;
    border: 1px solid;
    border-radius: 16px;
    padding: 10px 16px;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.smash-decision > span {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 900;
}

.smash-decision strong {
    font-size: 1.05rem;
}

.smash-decision small {
    color: rgba(236, 247, 252, 0.68);
    font-size: 0.74rem;
}

.smash-decision:hover:not(:disabled),
.smash-decision:focus-visible:not(:disabled) {
    transform: translateY(-2px);
}

.smash-decision:disabled {
    opacity: 0.48;
    cursor: wait;
}

.smash-decision-skip {
    border-color: rgba(255, 139, 122, 0.45);
    background: linear-gradient(135deg, rgba(113, 39, 39, 0.88), rgba(50, 25, 31, 0.9));
}

.smash-decision-skip:hover:not(:disabled),
.smash-decision-skip:focus-visible:not(:disabled) {
    background: linear-gradient(135deg, rgba(139, 47, 47, 0.94), rgba(61, 27, 34, 0.95));
    box-shadow: 0 14px 34px rgba(255, 111, 119, 0.13);
}

.smash-decision-like {
    border-color: rgba(98, 230, 167, 0.42);
    background: linear-gradient(135deg, rgba(24, 100, 76, 0.91), rgba(15, 52, 46, 0.92));
}

.smash-decision-like:hover:not(:disabled),
.smash-decision-like:focus-visible:not(:disabled) {
    background: linear-gradient(135deg, rgba(28, 121, 88, 0.96), rgba(17, 67, 57, 0.96));
    box-shadow: 0 14px 34px rgba(98, 230, 167, 0.13);
}

.smash-setup-intro,
.smash-stats-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sp-line);
}

.smash-setup-intro p:not(.smash-kicker),
.smash-stats-heading p:not(.smash-kicker) {
    margin: 7px 0 0;
    max-width: 700px;
    color: var(--sp-muted);
    line-height: 1.55;
}

.smash-pool-meter {
    min-width: 150px;
    border: 1px solid rgba(65, 215, 255, 0.24);
    border-radius: 16px;
    padding: 12px 16px;
    background: var(--sp-cyan-soft);
    text-align: right;
}

.smash-pool-meter strong,
.smash-pool-meter span {
    display: block;
}

.smash-pool-meter strong {
    color: #fff;
    font-size: 1.45rem;
}

.smash-pool-meter span {
    color: var(--sp-muted);
    font-size: 0.72rem;
}

.smash-setup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 20px 0;
}

.smash-field {
    min-width: 0;
}

.smash-field > span:first-child,
.smash-field > small {
    display: block;
}

.smash-field > span:first-child {
    margin-bottom: 7px;
    color: #c8dce7;
    font-size: 0.76rem;
    font-weight: 780;
}

.smash-field select,
.smash-field input {
    width: 100%;
    min-height: 45px;
    border: 1px solid rgba(138, 185, 214, 0.25);
    border-radius: 11px;
    padding: 10px 12px;
    color: #edf9ff;
    background: #0b2232;
    font: inherit;
    font-size: 0.88rem;
}

.smash-field select:focus,
.smash-field input:focus {
    outline: 2px solid rgba(65, 215, 255, 0.35);
    outline-offset: 1px;
    border-color: var(--sp-cyan);
}

.smash-field-seed {
    grid-column: span 2;
}

.smash-input-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.smash-input-action button {
    border: 1px solid rgba(65, 215, 255, 0.3);
    border-radius: 11px;
    padding: 0 14px;
    color: var(--sp-cyan);
    background: rgba(65, 215, 255, 0.08);
    font: inherit;
    font-weight: 760;
    cursor: pointer;
}

.smash-field small {
    margin-top: 6px;
    color: #78909f;
    font-size: 0.7rem;
}

.smash-setup-message {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid var(--sp-line);
    border-radius: 11px;
    color: #a9bfcc;
    background: rgba(11, 31, 44, 0.6);
    font-size: 0.82rem;
}

.smash-setup-message.is-error {
    color: #ffd0d2;
    border-color: rgba(255, 111, 119, 0.43);
    background: rgba(85, 26, 32, 0.42);
}

.smash-stats-grid,
.smash-result-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.smash-stats-grid div,
.smash-result-metrics div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: rgba(12, 31, 44, 0.66);
}

.smash-stats-grid span,
.smash-stats-grid strong,
.smash-result-metrics span,
.smash-result-metrics strong {
    display: block;
}

.smash-stats-grid span,
.smash-result-metrics span {
    color: var(--sp-muted);
    font-size: 0.7rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.smash-stats-grid strong,
.smash-result-metrics strong {
    margin-top: 6px;
    color: #fff;
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smash-history {
    margin-top: 24px;
}

.smash-history-list {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.smash-history-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--sp-line);
    border-radius: 13px;
    background: rgba(10, 27, 39, 0.62);
}

.smash-history-item > span:first-child {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--sp-like);
    background: var(--sp-like-soft);
    font-weight: 850;
}

.smash-history-item strong,
.smash-history-item small {
    display: block;
}

.smash-history-item small {
    margin-top: 3px;
    color: var(--sp-muted);
}

.smash-history-item time {
    color: #8aa3b2;
    font-size: 0.72rem;
}

.smash-empty-note {
    padding: 16px;
    border: 1px dashed rgba(140, 185, 210, 0.28);
    border-radius: 13px;
    color: var(--sp-muted);
    text-align: center;
}

.smash-result-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(98, 230, 167, 0.31);
    border-radius: 20px;
    background:
        linear-gradient(120deg, rgba(18, 83, 66, 0.64), rgba(8, 25, 35, 0.82)),
        var(--sp-panel-soft);
}

.smash-result-hero p:not(.smash-state-label) {
    margin: 8px 0 0;
    color: #b2c8d3;
}

.smash-result-rate {
    min-width: 120px;
    text-align: right;
}

.smash-result-rate strong,
.smash-result-rate span {
    display: block;
}

.smash-result-rate strong {
    color: var(--sp-like);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    line-height: 1;
}

.smash-result-rate span {
    margin-top: 5px;
    color: var(--sp-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.smash-result-actions {
    justify-content: flex-start;
    margin-bottom: 24px;
}

.smash-result-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--sp-line);
}

.smash-count-badge {
    display: grid;
    place-items: center;
    min-width: 40px;
    min-height: 30px;
    border-radius: 999px;
    color: var(--sp-like);
    background: var(--sp-like-soft);
    font-weight: 850;
}

.smash-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.smash-result-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: rgba(10, 29, 42, 0.75);
}

.smash-result-card img,
.smash-result-card .smash-result-image-fallback {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.smash-result-image-fallback {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(65, 215, 255, 0.08);
    color: var(--sp-muted);
    font-weight: 850;
}

.smash-result-card strong,
.smash-result-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smash-result-card small {
    margin-top: 4px;
    color: var(--sp-muted);
    font-size: 0.68rem;
    text-transform: capitalize;
}

.smash-result-grid-skipped .smash-result-card {
    opacity: 0.78;
}

.smash-type-breakdown {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.smash-type-breakdown-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: center;
}

.smash-type-breakdown-row > span:first-child {
    text-transform: capitalize;
}

.smash-type-bar {
    height: 9px;
    border-radius: 999px;
    background: rgba(132, 174, 198, 0.12);
    overflow: hidden;
}

.smash-type-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.smash-type-breakdown-row strong {
    text-align: right;
}

.smash-skipped-details {
    margin-top: 24px;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: rgba(9, 25, 36, 0.58);
}

.smash-skipped-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 780;
}

.smash-skipped-details[open] summary {
    border-bottom: 1px solid var(--sp-line);
}

.smash-skipped-details .smash-result-grid {
    padding: 0 14px 14px;
}

.smash-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.smash-content-card,
.smash-guide,
.smash-reference,
.smash-related,
.smash-faq {
    border: 1px solid var(--sp-line);
    border-radius: 22px;
    background: rgba(7, 20, 30, 0.78);
}

.smash-content-card {
    padding: 23px;
}

.smash-content-card-wide {
    grid-column: 1 / -1;
}

.smash-content-card p:not(.smash-kicker),
.smash-guide p,
.smash-reference p,
.smash-related span,
.smash-faq p {
    color: #9eb3c0;
    line-height: 1.66;
}

.smash-content-card p:last-child {
    margin-bottom: 0;
}

.smash-guide,
.smash-reference,
.smash-related,
.smash-faq {
    margin-top: 22px;
    padding: 26px;
}

.smash-guide-heading,
.smash-reference > div:first-child {
    max-width: 760px;
}

.smash-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.smash-step-grid li {
    padding: 17px;
    border: 1px solid var(--sp-line);
    border-radius: 16px;
    background: rgba(11, 30, 43, 0.66);
}

.smash-step-grid li > span {
    display: inline-flex;
    color: var(--sp-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 850;
}

.smash-step-grid h3 {
    margin: 13px 0 0;
    color: #fff;
    font-size: 1rem;
}

.smash-step-grid p {
    margin-bottom: 0;
    font-size: 0.84rem;
}

.smash-reference-table {
    margin-top: 20px;
    border: 1px solid var(--sp-line);
    border-radius: 16px;
    overflow: hidden;
}

.smash-reference-table > div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.smash-reference-table > div > * {
    padding: 13px 15px;
    border-bottom: 1px solid var(--sp-line);
}

.smash-reference-table > div:last-child > * {
    border-bottom: 0;
}

.smash-reference-table > div > *:first-child {
    border-right: 1px solid var(--sp-line);
    color: #d7e9f2;
}

.smash-reference-table > div:first-child {
    background: rgba(65, 215, 255, 0.09);
}

.smash-reference-table span {
    color: var(--sp-muted);
    line-height: 1.5;
}

.smash-related {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
    gap: 22px;
    align-items: start;
}

.smash-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.smash-related-grid a {
    display: block;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    color: inherit;
    background: rgba(10, 28, 41, 0.68);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.smash-related-grid a:hover,
.smash-related-grid a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(65, 215, 255, 0.45);
}

.smash-related-grid strong,
.smash-related-grid span {
    display: block;
}

.smash-related-grid span {
    margin-top: 6px;
    font-size: 0.8rem;
}

.smash-faq {
    display: grid;
    grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
    gap: 24px;
}

.smash-faq-list {
    display: grid;
    gap: 9px;
}

.smash-faq details {
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: rgba(10, 29, 42, 0.64);
}

.smash-faq summary {
    padding: 14px 16px;
    color: #e7f5fb;
    font-weight: 770;
    cursor: pointer;
}

.smash-faq p {
    margin: 0;
    padding: 0 16px 16px;
}

.smash-dialog {
    width: min(92vw, 470px);
    border: 1px solid rgba(139, 187, 213, 0.28);
    border-radius: 20px;
    padding: 0;
    color: var(--sp-ink);
    background: #091b28;
    box-shadow: 0 34px 100px rgba(0,0,0,0.62);
}

.smash-dialog::backdrop {
    background: rgba(1, 7, 12, 0.72);
    backdrop-filter: blur(4px);
}

.smash-dialog form {
    padding: 24px;
}

.smash-dialog h2 {
    margin: 0;
    color: #fff;
}

.smash-dialog p:not(.smash-state-label) {
    color: var(--sp-muted);
    line-height: 1.55;
}

.smash-dialog-actions {
    margin-top: 20px;
}

.smash-toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 15px;
    border: 1px solid rgba(65, 215, 255, 0.35);
    border-radius: 12px;
    color: #e9f9ff;
    background: rgba(8, 27, 39, 0.97);
    box-shadow: 0 18px 50px rgba(0,0,0,0.42);
    font-size: 0.84rem;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 980px) {
    .smash-hero {
        grid-template-columns: 1fr;
        padding: 17px 20px;
    }

    .smash-hero-facts {
        display: none;
    }

    .smash-setup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smash-result-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .smash-related,
    .smash-faq {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) {
    body.smash-pass-page .site-header-unified {
        margin-bottom: 0;
        padding: 0.62rem 0 0.45rem;
    }

    body.smash-pass-page .site-header-unified .site-header-inner {
        padding-top: 0.58rem;
        padding-bottom: 0.58rem;
    }
}

@media (max-width: 900px) {
    body.smash-pass-page .site-header-unified .site-header-inner {
        flex-wrap: nowrap;
        align-items: center;
        border-radius: 20px;
    }

    body.smash-pass-page .site-header-unified .site-logo {
        width: auto;
    }

    body.smash-pass-page .site-header-unified .route-pills {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .smash-main {
        width: min(100% - 16px, 1180px);
        padding-top: 12px;
    }

    .smash-breadcrumb {
        margin: 0 6px 10px;
    }

    .smash-hero {
        gap: 18px;
        padding: 20px;
        border-radius: 20px;
    }

    .smash-hero h1 {
        font-size: clamp(2.05rem, 11vw, 3.2rem);
    }

    .smash-hero .lead {
        margin-top: 13px;
        font-size: 0.96rem;
    }

    .smash-framing {
        font-size: 0.82rem;
    }

    .smash-shell {
        border-radius: 20px;
    }

    .smash-shell-header {
        align-items: flex-start;
        padding: 16px;
    }

    .smash-tabs {
        flex: 0 0 auto;
    }

    .smash-tab {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .smash-panel {
        padding: 16px;
    }

    .smash-round-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smash-round-strip div:nth-child(2) {
        border-right: 0;
    }

    .smash-round-strip div:nth-child(-n+2) {
        border-bottom: 1px solid var(--sp-line);
    }

    .smash-stage-toolbar,
    .smash-setup-intro,
    .smash-stats-heading,
    .smash-result-hero {
        align-items: flex-start;
    }

    .smash-stage-toolbar,
    .smash-stats-heading {
        flex-direction: column;
    }

    .smash-toolbar-actions,
    .smash-result-actions,
    .smash-setup-actions {
        justify-content: flex-start;
    }

    .smash-card-stage {
        min-height: 390px;
        padding-top: 6px;
    }

    .smash-card {
        min-height: 378px;
    }

    .smash-art-frame {
        height: 160px;
    }

    .smash-art-frame img {
        width: 152px;
        height: 152px;
    }

    .smash-setup-grid {
        grid-template-columns: 1fr;
    }

    .smash-field-seed {
        grid-column: auto;
    }

    .smash-stats-grid,
    .smash-result-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smash-stats-grid div:last-child,
    .smash-result-metrics div:last-child {
        grid-column: 1 / -1;
    }

    .smash-result-hero {
        flex-direction: column;
    }

    .smash-result-rate {
        text-align: left;
    }

    .smash-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smash-content-grid {
        grid-template-columns: 1fr;
    }

    .smash-content-card-wide {
        grid-column: auto;
    }

    .smash-guide,
    .smash-reference,
    .smash-related,
    .smash-faq {
        padding: 20px;
        border-radius: 18px;
    }

    .smash-reference-table {
        overflow-x: auto;
    }

    .smash-reference-table > div {
        min-width: 620px;
    }
}

@media (max-width: 470px) {
    body.smash-pass-page .site-header-unified {
        margin-bottom: 0;
        padding: 7px 6px 4px;
    }

    body.smash-pass-page .site-header-unified .site-header-inner {
        min-height: 50px;
        flex-wrap: nowrap;
        align-items: center;
        padding: 7px 10px;
        border-radius: 17px;
    }

    body.smash-pass-page .site-header-unified .site-logo {
        width: auto;
        font-size: 1.02rem;
    }

    body.smash-pass-page .site-header-unified .site-logo img {
        width: 28px;
        height: 28px;
    }

    body.smash-pass-page .site-header-unified .route-pills {
        display: none !important;
    }

    .smash-main {
        width: calc(100% - 12px);
        padding: 4px 0 64px;
    }

    .smash-breadcrumb {
        display: none;
    }

    .smash-hero {
        gap: 8px;
        padding: 13px 14px;
        border-radius: 17px;
    }

    .smash-hero::after {
        width: 150px;
        height: 150px;
        right: -58px;
        top: -70px;
    }

    .smash-eyebrow {
        margin-bottom: 4px;
        font-size: 0.61rem;
    }

    body.smash-pass-page .smash-hero h1 {
        font-size: 1.72rem;
        line-height: 1.02;
        letter-spacing: -0.045em;
        white-space: nowrap;
    }

    .smash-hero .lead {
        display: -webkit-box;
        margin-top: 8px;
        font-size: 0.79rem;
        line-height: 1.38;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .smash-framing {
        display: -webkit-box;
        margin-top: 7px;
        padding-left: 9px;
        font-size: 0.68rem;
        line-height: 1.32;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .smash-hero-facts {
        display: none;
    }

    .smash-shell {
        margin-top: 8px;
        border-radius: 17px;
    }

    .smash-shell-header {
        justify-content: center;
        gap: 0;
        padding: 7px 8px;
    }

    .smash-shell-header > div:first-child {
        display: none;
    }

    .smash-tabs {
        width: 100%;
        gap: 3px;
        padding: 3px;
    }

    .smash-tab {
        flex: 1 1 0;
        padding: 7px 8px;
        font-size: 0.72rem;
    }

    .smash-round-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .smash-round-strip div,
    .smash-round-strip div:nth-child(-n+2) {
        padding: 6px 5px;
        border-bottom: 0;
        border-right: 1px solid var(--sp-line);
        text-align: center;
    }

    .smash-round-strip div:last-child {
        border-right: 0;
    }

    .smash-round-strip span {
        font-size: 0.55rem;
        letter-spacing: 0.04em;
    }

    .smash-round-strip strong {
        margin-top: 1px;
        font-size: 0.7rem;
    }

    .smash-panel {
        padding: 7px 9px 10px;
    }

    .smash-stage-toolbar {
        gap: 0;
        margin-top: 7px;
        padding-top: 7px;
    }

    .smash-stage-toolbar > div:first-child {
        display: none;
    }

    .smash-toolbar-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 5px;
    }

    .smash-toolbar-actions .smash-button {
        min-width: 0;
        min-height: 31px;
        padding: 5px 4px;
        border-radius: 8px;
        font-size: 0.62rem;
    }

    .smash-card-stage {
        min-height: 349px;
        padding: 6px 0 4px;
    }

    .smash-card {
        min-height: 340px;
        padding: 9px;
        border-radius: 19px;
    }

    .smash-card-topline {
        min-height: 22px;
    }

    .smash-card-number,
    .smash-rarity {
        min-height: 21px;
        padding: 3px 7px;
        font-size: 0.57rem;
    }

    .smash-art-frame {
        height: 146px;
        margin-top: 5px;
    }

    .smash-art-frame::before {
        width: 145px;
        height: 145px;
    }

    .smash-art-frame::after {
        width: 105px;
        height: 105px;
    }

    .smash-art-frame img {
        width: 142px;
        height: 142px;
    }

    .smash-image-fallback {
        width: 105px;
        height: 105px;
        font-size: 2.8rem;
    }

    .smash-dex {
        font-size: 0.62rem;
    }

    .smash-card-copy h3 {
        margin: 1px 0 5px;
        font-size: 1.42rem;
    }

    .smash-type-pill {
        min-height: 20px;
        padding: 2px 7px;
        font-size: 0.6rem;
    }

    .smash-meta {
        margin-top: 5px;
        font-size: 0.64rem;
    }

    .smash-description {
        display: -webkit-box;
        margin-top: 5px;
        font-size: 0.7rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .smash-gesture-note {
        display: none;
    }

    .smash-decision-controls {
        gap: 6px;
        margin-top: 5px;
    }

    .smash-decision {
        grid-template-columns: auto 1fr;
        gap: 0 7px;
        min-height: 57px;
        padding: 7px 9px;
        border-radius: 12px;
    }

    .smash-decision > span {
        width: 30px;
        height: 30px;
        font-size: 0.92rem;
    }

    .smash-decision strong {
        font-size: 0.84rem;
    }

    .smash-decision small {
        font-size: 0.57rem;
    }

    .smash-result-grid {
        grid-template-columns: 1fr;
    }

    .smash-type-breakdown-row {
        grid-template-columns: 80px minmax(0, 1fr) 34px;
        font-size: 0.78rem;
    }

    .smash-step-grid,
    .smash-related-grid {
        grid-template-columns: 1fr;
    }

    .smash-history-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .smash-history-item time {
        grid-column: 2;
    }

    .smash-toast {
        right: 8px;
        bottom: 8px;
        max-width: calc(100vw - 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .smash-loader {
        animation: none;
    }

    .smash-card,
    .smash-button,
    .smash-decision,
    .smash-related-grid a {
        transition: none !important;
    }
}
