/* MaiMaru export sheet styling.
 *
 * EXTRACTED VERBATIM from export.html's <style> block (2026-07-31): every rule
 * whose selector mentions export-sheet / export-card / sheet-* / the Chiron
 * fallback, minus the Chunithm-only [data-server="jp"] skin. Class names are
 * unchanged so the sheet renders identically, and maimaru.html loads no other
 * stylesheet using them, so nothing collides.
 *
 * Do not restyle this to match MaiMaru's own palette. The point is that the
 * exported image is the same artifact as Chunithm's; the only intended
 * difference is pool size, 30/20 becoming 35/15.
 *
 * Re:MASTER has no Chunithm counterpart and is defined at the end.
 */

/* Copied from export.html's :root. The sheet is typeset in Figtree with Chiron
   GoRound TC for CJK, which is exactly what ChuniExportFonts embeds at render
   time; using any other family means the rasterized PNG falls back to a system
   font. maimaru.html loads both stylesheets for the same reason. */
.export-sheet {
    --font-display: "Figtree", "Chiron GoRound TC", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display-cjk: "Chiron GoRound TC", "Figtree", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Chiron GoRound TC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --text: #241d17;
    --muted: #6e655b;
    --accent-deep: #8f4521;
    font-family: var(--font-body);
}

.use-chiron-fallback {
            font-family: "Chiron GoRound TC", "ChuniBotChiron", "Figtree", "Trebuchet MS", "Segoe UI", sans-serif !important;
        }

.export-sheet {
            position: relative;
            width: 1420px;
            margin: 0 auto;
            padding: 28px;
            border-radius: 28px;
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 14%, transparent 14% 100%),
                radial-gradient(circle at 12% 14%, rgba(76, 154, 255, 0.22), transparent 26%),
                radial-gradient(circle at 88% 16%, rgba(116, 110, 255, 0.18), transparent 22%),
                radial-gradient(circle at 82% 84%, rgba(60, 186, 255, 0.16), transparent 24%),
                radial-gradient(circle at 22% 88%, rgba(53, 118, 255, 0.12), transparent 22%),
                linear-gradient(180deg, rgba(10, 18, 36, 0.995), rgba(6, 12, 28, 0.995));
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.12),
                0 18px 44px rgba(0, 0, 0, 0.32);
            overflow: hidden;
        }

.export-sheet::before {
            content: "";
            position: absolute;
            inset: 18px;
            border-radius: 22px;
            pointer-events: none;
            opacity: 0.28;
            background-image:
                linear-gradient(rgba(156, 190, 255, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(156, 190, 255, 0.1) 1px, transparent 1px);
            background-size: 28px 28px;
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.28), transparent 88%);
        }

.export-sheet::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                radial-gradient(circle at 118px 118px, rgba(255,255,255,0.08) 0 52px, transparent 53px),
                radial-gradient(circle at 118px 118px, rgba(76, 154, 255, 0.2) 0 80px, transparent 81px),
                linear-gradient(135deg, transparent 0 63%, rgba(116, 110, 255, 0.14) 63% 64%, transparent 64% 100%),
                linear-gradient(135deg, transparent 0 66%, rgba(255,255,255,0.08) 66% 67%, transparent 67% 100%),
                radial-gradient(circle at calc(100% - 118px) 118px, rgba(255,255,255,0.08) 0 40px, transparent 41px),
                radial-gradient(circle at calc(100% - 118px) 118px, rgba(60, 186, 255, 0.18) 0 62px, transparent 63px),
                linear-gradient(90deg, transparent 0 84%, rgba(255,255,255,0.08) 84% 84.4%, transparent 84.4% 100%),
                linear-gradient(90deg, transparent 0 87%, rgba(110, 148, 218, 0.1) 87% 87.35%, transparent 87.35% 100%),
                linear-gradient(0deg, transparent 0 86%, rgba(255,255,255,0.08) 86% 86.35%, transparent 86.35% 100%);
            opacity: 0.84;
        }

.export-sheet-vignette {
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            z-index: 0;
            background:
                radial-gradient(circle at center, transparent 58%, rgba(10, 24, 54, 0.16) 78%, rgba(0, 0, 0, 0.34) 100%),
                radial-gradient(circle at 50% 42%, transparent 64%, rgba(130, 180, 255, 0.03) 82%, rgba(0, 0, 0, 0.14) 100%);
            mix-blend-mode: multiply;
        }

.export-sheet-decor {
            position: absolute;
            pointer-events: none;
            z-index: 0;
            opacity: 0.72;
        }

.export-sheet-decor.orbit {
            top: 56px;
            left: 54px;
            width: 168px;
            height: 168px;
            border-radius: 50%;
            border: 1px solid rgba(148, 188, 255, 0.2);
            box-shadow:
                inset 0 0 0 14px rgba(255,255,255,0.04),
                inset 0 0 0 34px rgba(76, 154, 255, 0.1);
        }

.export-sheet-decor.orbit::before,
        .export-sheet-decor.orbit::after {
            content: "";
            position: absolute;
            border-radius: 50%;
        }

.export-sheet-decor.orbit::before {
            inset: 24px;
            border: 1px solid rgba(255,255,255,0.12);
        }

.export-sheet-decor.orbit::after {
            width: 16px;
            height: 16px;
            top: 18px;
            right: 26px;
            background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(126, 65, 242, 0.86));
            box-shadow: 0 0 0 6px rgba(255,255,255,0.04);
        }

.export-sheet-decor.spark {
            width: 84px;
            height: 84px;
            border-radius: 24px;
            transform: rotate(16deg);
            background:
                linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
                linear-gradient(135deg, rgba(76, 154, 255, 0.18), rgba(116, 110, 255, 0.14));
            border: 1px solid rgba(255,255,255,0.1);
        }

.export-sheet-decor.spark-a {
            top: 132px;
            right: 74px;
        }

.export-sheet-decor.spark-b {
            bottom: 68px;
            left: 74px;
            width: 72px;
            height: 72px;
            transform: rotate(-14deg);
            opacity: 0.52;
        }

.export-sheet-decor.spark::before,
        .export-sheet-decor.spark::after {
            content: "";
            position: absolute;
            inset: 50%;
            transform: translate(-50%, -50%);
            background: rgba(255,255,255,0.12);
            border-radius: 999px;
        }

.export-sheet-decor.spark::before {
            width: 40px;
            height: 1px;
        }

.export-sheet-decor.spark::after {
            width: 1px;
            height: 40px;
        }

.export-sheet-content {
            position: relative;
            z-index: 1;
        }

.export-version-logo {
            width: auto;
            object-fit: contain;
            align-self: center;
        }

.export-version-logo[hidden] {
            display: none;
        }

.sheet-profile {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto auto;
            gap: 22px;
            align-items: center;
            padding: 24px 26px;
            border-radius: 24px;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
                rgba(15, 18, 26, 0.94);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 12px 28px rgba(0, 0, 0, 0.18);
        }

.sheet-avatar-shell {
            width: 108px;
            height: 108px;
            padding: 6px;
            border-radius: 28px;
            background:
                linear-gradient(145deg, rgba(225, 107, 45, 0.22), rgba(240, 183, 87, 0.26) 40%, rgba(24, 140, 124, 0.18));
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.18),
                0 14px 26px rgba(0, 0, 0, 0.2);
        }

.sheet-avatar-shell img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.12);
        }

.sheet-player-name {
            margin: 0 0 12px;
            font-size: 72px;
            line-height: 1.05;
            letter-spacing: 0.03em;
            font-family: var(--font-display);
            color: rgba(248, 250, 255, 0.98);
        }

.sheet-player-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 12px;
            align-items: center;
            color: rgba(226, 233, 244, 0.72);
            font-size: 18px;
        }

.sheet-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
            min-height: 36px;
            padding: 0 16px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
            color: rgba(248, 250, 255, 0.9);
            font-size: 15px;
            font-weight: 800;
            white-space: nowrap;
        }

.sheet-rating-block {
            display: grid;
            gap: 6px;
            justify-items: end;
            text-align: right;
            font-family: var(--font-display);
            padding: 14px 16px;
            border-radius: 22px;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
                rgba(13, 16, 24, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.1),
                0 8px 18px rgba(0, 0, 0, 0.18);
        }

.sheet-rating-label {
            font-size: 16px;
            font-weight: 800;
            letter-spacing: 0.08em;
            color: rgba(226, 233, 244, 0.72);
            text-transform: uppercase;
        }

.sheet-rating-value {
            display: inline-flex;
            align-items: flex-end;
            justify-content: flex-end;
            gap: 4px;
            padding-right: 4px;
            font-size: 52px;
            line-height: 1;
            letter-spacing: -0.03em;
            font-weight: 900;
            text-shadow:
                2px 0 0 rgba(0, 0, 0, 0.85),
                -2px 0 0 rgba(0, 0, 0, 0.85),
                0 2px 0 rgba(0, 0, 0, 0.85),
                0 -2px 0 rgba(0, 0, 0, 0.85),
                1.5px 1.5px 0 rgba(0, 0, 0, 0.85),
                -1.5px 1.5px 0 rgba(0, 0, 0, 0.85),
                1.5px -1.5px 0 rgba(0, 0, 0, 0.85),
                -1.5px -1.5px 0 rgba(0, 0, 0, 0.85);
        }

.sheet-rating-main {
            position: relative;
            display: inline-flex;
            align-items: flex-end;
            gap: 0.01em;
            font-size: 1em;
            letter-spacing: -0.03em;
        }

.sheet-rating-main-ghost,
        .sheet-rating-main-fill {
            display: inline-block;
            line-height: 1;
        }

.sheet-rating-main-ghost {
            position: absolute;
            inset: 0;
            z-index: 0;
            color: rgba(0, 0, 0, 0.9);
            background: none !important;
            -webkit-background-clip: initial !important;
            background-clip: initial !important;
            -webkit-text-fill-color: rgba(0, 0, 0, 0.9);
            pointer-events: none;
            text-shadow:
                2px 0 0 rgba(0, 0, 0, 0.9),
                -2px 0 0 rgba(0, 0, 0, 0.9),
                0 2px 0 rgba(0, 0, 0, 0.9),
                0 -2px 0 rgba(0, 0, 0, 0.9),
                1.5px 1.5px 0 rgba(0, 0, 0, 0.9),
                -1.5px 1.5px 0 rgba(0, 0, 0, 0.9),
                1.5px -1.5px 0 rgba(0, 0, 0, 0.9),
                -1.5px -1.5px 0 rgba(0, 0, 0, 0.9);
        }

.sheet-rating-main-fill {
            position: relative;
            z-index: 1;
        }

.sheet-rating-char {
            display: inline-block;
        }

.sheet-rating-tail {
            font-size: 0.6em;
            color: rgba(226, 233, 244, 0.66);
            opacity: 1;
            line-height: 1;
            padding-bottom: 2px;
            margin-left: 5px;
            letter-spacing: 0.08em;
            text-shadow: none !important;
            filter: none !important;
        }

.sheet-rating-images {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            vertical-align: middle;
        }

.sheet-rating-images-main {
            align-items: flex-end;
            gap: 0;
            font-size: 1em;
        }

.sheet-rating-images-tail {
            align-items: flex-end;
            gap: 0;
            margin-left: 0;
            font-size: 0.6em;
            transform: translateY(-0.04em);
        }

.sheet-rating-image-digit {
            display: block;
            flex: 0 0 auto;
            width: auto;
            height: 1em;
            object-fit: contain;
            image-rendering: auto;
        }

.sheet-rating-image-digit.is-comma {
            height: calc(1em * 5 / 17);
            align-self: flex-end;
            margin-bottom: 0.06em;
        }

.sheet-rating-image-digit.is-main-group.is-comma {
            margin-bottom: 0.06em;
        }

.sheet-rating-image-digit.is-tail {
            filter: grayscale(1) brightness(0.5) contrast(1.08);
            opacity: 0.92;
        }

.sheet-rating-image-digit.is-tail.is-comma {
            height: calc(1em * 5 / 17);
            align-self: flex-end;
            margin-bottom: 0.04em;
        }

.sheet-rating-rank {
            font-size: 22px;
            font-weight: 800;
            color: rgba(248, 250, 255, 0.92);
        }

.sheet-rating-averages {
            color: rgba(226, 233, 244, 0.72);
            font-size: 18px;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

.sheet-section {
            margin-top: 22px;
        }

.sheet-section-header {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 12px;
            padding: 0 4px;
        }

.sheet-section-title {
            margin: 0;
            font-size: 28px;
            font-family: var(--font-display);
            letter-spacing: -0.03em;
            color: rgba(248, 250, 255, 0.96);
        }

.sheet-section-meta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 36px;
            padding: 0 14px;
            border-radius: 999px;
            color: rgba(248, 250, 255, 0.92);
            font-size: 16px;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.12),
                0 8px 18px rgba(0, 0, 0, 0.18);
        }

.sheet-card-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 14px;
        }

.export-card {
            position: relative;
            --card-accent: #8d7a63;
            --card-accent-text: #fffaf3;
            --card-outline: #8d7a63;
            --card-main-bg: #161616;
            --card-main-text: #f8f7f3;
            --card-main-muted: rgba(248, 247, 243, 0.74);
            font-family: var(--font-display);
            font-weight: 750;
            display: grid;
            grid-template-rows: minmax(0, 1fr) auto;
            min-height: 140px;
            border-radius: 14px;
            border: 0;
            background: var(--card-outline);
            background-clip: padding-box;
            box-shadow:
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
            overflow: hidden;
            align-items: center;
        }

.export-card-surface {
            display: none;
        }

.export-card-surface::before {
            content: none;
        }

.export-card:not(.card-ultima) .export-card-surface {
            background: none;
        }

.export-card:not(.card-ultima) .export-card-surface::before {
            background: none;
        }

.export-card.is-max:not(.card-ultima) .export-card-surface {
            background: none;
        }

.export-card.is-max:not(.card-ultima) .export-card-surface::before {
            background: none;
        }

.export-card.card-basic:not(.card-ultima) {
            --card-accent: #0f8b7c;
            --card-accent-text: #f4fffc;
            --card-outline: #18b8a1;
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card.is-max.card-basic:not(.card-ultima) {
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card.card-advanced:not(.card-ultima) {
            --card-accent: #a85a10;
            --card-accent-text: #fffaf2;
            --card-outline: #e08a24;
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card.is-max.card-advanced:not(.card-ultima) {
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card.card-expert:not(.card-ultima) {
            --card-accent: #a32632;
            --card-accent-text: #fff;
            --card-outline: #e0434f;
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card.is-max.card-expert:not(.card-ultima) {
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card.card-master:not(.card-ultima) {
            --card-accent: #5f35b8;
            --card-accent-text: #fff;
            --card-outline: #8b5cf6;
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card.is-max.card-master:not(.card-ultima) {
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card.card-ultima .export-card-surface {
            background: none;
        }

.export-card.card-ultima .export-card-surface::before {
            background: none;
        }

.export-card.is-max.card-ultima .export-card-surface {
            background: none;
        }

.export-card.is-max.card-ultima .export-card-surface::before {
            background: none;
        }

.export-card.card-ultima {
            --card-accent: #5c0f0f;
            --card-accent-text: #fff;
            --card-outline: #3a0f12;
            color: var(--card-main-text);
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card.is-max.card-ultima {
            box-shadow:
                0 0 0 2px var(--card-outline),
                0 2px 5px rgba(71, 46, 15, 0.04),
                0 10px 18px rgba(71, 46, 15, 0.06),
                0 20px 34px rgba(71, 46, 15, 0.05);
        }

.export-card-top {
            position: relative;
            display: grid;
            grid-template-columns: 88px minmax(0, 1fr);
            gap: 12px;
            padding: 12px 12px 8px;
            margin: 2px 2px 0;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
                var(--card-main-bg);
            border-radius: 10px 10px 0 0;
            align-items: center;
            min-width: 0;
            z-index: 1;
        }

.export-card.is-max .export-card-top {
            background:
                linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
                var(--card-main-bg);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.14);
        }

.export-card-media {
            position: relative;
            width: 88px;
            align-self: center;
            z-index: 1;
        }

.export-card-jacket,
        .export-card-jacket-placeholder {
            position: relative;
            width: 88px;
            height: 88px;
            border-radius: 10px;
            overflow: hidden;
            background: rgba(255,255,255,0.55);
            border: 0;
            box-shadow: none;
            z-index: 1;
        }

.export-card-jacket::after,
        .export-card-jacket-placeholder::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.74) 78%, rgba(0, 0, 0, 0.92) 100%);
            pointer-events: none;
            z-index: 1;
        }

.export-card-jacket-status {
            position: absolute;
            left: 8px;
            right: 8px;
            bottom: 7px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            z-index: 2;
        }

.export-card-jacket-status-rank {
            min-width: 0;
            color: #fff;
            font-size: 15px;
            font-weight: 750;
            letter-spacing: 0.04em;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
            white-space: nowrap;
        }

.export-card-jacket-status-flag {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            font-size: 15px;
            font-weight: 750;
            letter-spacing: 0.08em;
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.82);
            white-space: nowrap;
        }

.export-card-jacket-status-flag.is-fc {
            color: #6dff8c;
        }

.export-card-jacket-status-flag.is-ap {
            color: #ffe667;
        }

.export-sheet.is-jacket-right .export-card-top {
            grid-template-columns: minmax(0, 1fr) 88px;
        }

.export-sheet.is-jacket-right .export-card-media {
            grid-column: 2;
            justify-self: end;
        }

.export-sheet.is-jacket-right .export-card-body {
            grid-column: 1;
        }

.export-sheet.is-jacket-right .export-card-body {
            text-align: right;
        }

.export-sheet.is-jacket-right .export-card-title-text {
            text-align: right;
        }

.export-sheet.is-jacket-right .export-card-bottom {
            text-align: right;
        }

.export-sheet.is-jacket-right .export-card-scoreline,
        .export-sheet.is-jacket-right .export-card-badgeline {
            justify-content: flex-end;
            text-align: right;
        }

.export-card.has-fc .export-card-jacket,
        .export-card.has-fc .export-card-jacket-placeholder {
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.7),
                0 0 0 3px rgba(133, 221, 123, 0.82),
                0 0 26px rgba(118, 221, 109, 0.48),
                0 0 42px rgba(118, 221, 109, 0.26);
        }

.export-card.has-aj .export-card-jacket,
        .export-card.has-aj .export-card-jacket-placeholder {
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.7),
                0 0 0 3px rgba(255, 214, 92, 0.9),
                0 0 28px rgba(255, 211, 87, 0.58),
                0 0 44px rgba(255, 211, 87, 0.3);
        }

.export-card-jacket img,
        .export-card-jacket-placeholder {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.export-card-jacket-placeholder {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.34), rgba(255,255,255,0.08)),
                rgba(73, 54, 28, 0.1);
        }

.export-card-body {
            position: relative;
            display: grid;
            gap: 14px;
            min-width: 0;
            z-index: 1;
        }

.export-card-scoreline,
        .export-card-badgeline {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-width: 0;
        }

.export-card-scoreline {
            padding-right: 20px;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }

.export-card-badgeline {
            align-items: stretch;
            gap: 6px;
        }

.export-card-bottom {
            position: relative;
            display: flex;
            align-items: center;
            min-height: 34px;
            padding: 4px 12px;
            margin: 0 2px 2px;
            background: var(--card-accent);
            color: var(--card-accent-text);
            border-radius: 0 0 10px 10px;
            min-width: 0;
            z-index: 1;
        }

.export-card-title {
            margin: 0;
            display: block;
            width: 100%;
            min-width: 0;
            max-width: 100%;
            padding-bottom: 1px;
            overflow: hidden;
        }

.export-card-title-text {
            display: block;
            font-size: 18px;
            line-height: 1.08;
            font-weight: 750;
            letter-spacing: -0.02em;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            color: #fff;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

.export-card-title-text.is-short-title {
            font-size: 20px;
        }

.export-card-bookmark {
            position: absolute;
            top: -4px;
            right: -4px;
            width: 52px;
            height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--card-outline);
            clip-path: polygon(0 0, 100% 0, 100% 100%);
            color: var(--card-accent-text);
            font-size: 11px;
            font-weight: 750;
            line-height: 1;
            letter-spacing: 0.02em;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
            pointer-events: none;
            z-index: 2;
        }

.export-card-bookmark span {
            position: absolute;
            top: 10px;
            right: 8px;
            z-index: 1;
            transform: none;
        }

.export-card-difficulty-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 26px;
            padding: 0 6px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.28);
            background: rgba(255, 255, 255, 0.06);
            box-shadow: none;
            font-size: 16px;
            font-weight: 750;
            letter-spacing: -0.03em;
            line-height: 1;
            flex: 0 0 auto;
            font-variant-numeric: tabular-nums;
            color: var(--card-main-text);
        }

.export-card-pr-arrow {
            width: 0;
            height: 0;
            border-top: 4px solid transparent;
            border-bottom: 4px solid transparent;
            border-left: 6px solid var(--card-main-muted);
            flex: 0 0 auto;
            align-self: center;
        }

.export-card-score {
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -0.03em;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            color: var(--card-main-text);
        }

.export-card.is-max .export-card-score,
        .export-card.is-max .export-card-pr {
            color: #efe3b0;
            text-shadow: 0 0 12px rgba(246, 207, 93, 0.18);
        }

.export-card-pr {
            font-weight: 850;
            font-variant-numeric: tabular-nums;
        }

.export-card-pr {
            margin-left: auto;
            min-height: 26px;
            display: inline-flex;
            align-items: center;
            text-align: right;
            font-size: 26px;
            line-height: 1;
            letter-spacing: -0.04em;
            white-space: nowrap;
            color: var(--card-main-text);
        }

.export-card.card-ultima .export-card-jacket,
        .export-card.card-ultima .export-card-jacket-placeholder {
            background: rgba(255, 255, 255, 0.55);
        }

.sheet-rating-value.tone-rainbow .sheet-rating-main-fill,
        .sheet-rating-value.tone-rainbow .sheet-rating-tail {
            display: inline-block;
            background: linear-gradient(180deg, #ff7a64 0%, #ff7a64 15%, #ffcf35 38%, #45c987 67%, #4f97ff 85%, #4f97ff 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

.sheet-rating-value.tone-rainbow .sheet-rating-tail {
            color: #7b746d;
            background: none;
            -webkit-background-clip: initial;
            background-clip: initial;
        }

.sheet-rating-value.tone-rainbow-extreme .sheet-rating-main-fill,
        .sheet-rating-value.tone-rainbow-extreme .sheet-rating-tail {
            display: inline-block;
            background: linear-gradient(180deg, #ff2f87 0%, #ff2f87 15%, #ff7a1f 31%, #ffd21f 47%, #33d483 63%, #2f8fff 79%, #8557ff 85%, #8557ff 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

.sheet-rating-value.tone-rainbow-extreme .sheet-rating-tail {
            color: #7b746d;
            background: none;
            -webkit-background-clip: initial;
            background-clip: initial;
        }

.sheet-rating-value.tone-bronze,
        .sheet-rating-value.tone-silver,
        .sheet-rating-value.tone-gold,
        .sheet-rating-value.tone-platinum,
        .sheet-rating-value.tone-rainbow,
        .sheet-rating-value.tone-rainbow-extreme {
            text-shadow: none;
        }

.sheet-rating-value.tone-bronze .sheet-rating-main-fill {
            display: inline-block;
            background: linear-gradient(180deg, #ffd6aa 0%, #e7a765 18%, #bc7334 50%, #90511f 80%, #cd8643 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            -webkit-text-fill-color: transparent;
        }

.sheet-rating-value.tone-silver .sheet-rating-main-fill {
            display: inline-block;
            background: linear-gradient(180deg, #ffffff 0%, #eef3f8 18%, #c0c9d3 48%, #7e8894 78%, #d7dee5 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            -webkit-text-fill-color: transparent;
        }

.sheet-rating-value.tone-gold .sheet-rating-main-fill {
            display: inline-block;
            background: linear-gradient(180deg, #fff6c9 0%, #f7d96b 16%, #d7a12a 48%, #9f6913 80%, #f0c557 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            -webkit-text-fill-color: transparent;
        }

.sheet-rating-value.tone-platinum .sheet-rating-main-fill {
            display: inline-block;
            background: linear-gradient(180deg, #fffdf3 0%, #efe2bc 16%, #d8bf84 46%, #ad8a52 80%, #f5e8c2 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            -webkit-text-fill-color: transparent;
        }

/* Export sheet must render independently of user theme preference */
        .export-sheet {
            --bg: #f6f1e8;
            --bg-strong: #eee5d7;
            --panel: rgba(255, 251, 245, 0.78);
            --panel-solid: #fffaf3;
            --text: #241d17;
            --muted: #6e655b;
            --line: rgba(73, 54, 28, 0.12);
            --shadow: 0 18px 44px rgba(71, 46, 15, 0.1);
            --accent: #e16b2d;
            --accent-2: #188c7c;
            --accent-3: #f0b757;
            --accent-deep: #8f4521;
            color-scheme: light;
        }

html[data-scheme="dark"] .export-sheet .tone-neutral { background: none; color: #5d5750; }

html[data-scheme="dark"] .export-sheet .tone-green { background: none; color: #11b85b; }

html[data-scheme="dark"] .export-sheet .tone-yellow { background: none; color: #ff9800; }

html[data-scheme="dark"] .export-sheet .tone-red { background: none; color: #f44336; }

html[data-scheme="dark"] .export-sheet .tone-magenta { background: none; color: #db38ff; }

html[data-scheme="dark"] .export-sheet .tone-bronze { background: none; color: #98601f; }

html[data-scheme="dark"] .export-sheet .tone-silver { background: none; color: #7a8698; }

html[data-scheme="dark"] .export-sheet .tone-gold { background: none; color: #bf8819; }

html[data-scheme="dark"] .export-sheet .tone-platinum { background: none; color: #d3b98a; }

html[data-scheme="dark"] .export-sheet .tone-rainbow { background: none; color: #578ee3; }

html[data-scheme="dark"] .export-sheet .tone-rainbow-extreme {
            background: linear-gradient(180deg, #ff2f87 0%, #ff2f87 15%, #ff7a1f 31%, #ffd21f 47%, #33d483 63%, #2f8fff 79%, #8557ff 85%, #8557ff 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

.export-sheet.is-light {
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0 14%, transparent 14% 100%),
                radial-gradient(circle at 12% 14%, rgba(47, 143, 255, 0.18), transparent 26%),
                radial-gradient(circle at 88% 16%, rgba(126, 65, 242, 0.14), transparent 22%),
                radial-gradient(circle at 82% 84%, rgba(49, 207, 220, 0.14), transparent 24%),
                radial-gradient(circle at 22% 88%, rgba(255, 122, 100, 0.12), transparent 22%),
                linear-gradient(180deg, rgba(228, 234, 242, 0.99), rgba(212, 222, 234, 0.99));
            border: 1px solid rgba(42, 52, 65, 0.12);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.72),
                0 18px 44px rgba(31, 39, 48, 0.1);
        }

.export-sheet.is-light .sheet-rating-block {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
                rgba(28, 34, 48, 0.82);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 8px 18px rgba(0, 0, 0, 0.12);
        }

.export-sheet.is-light::before {
            opacity: 0.36;
            background-image:
                linear-gradient(rgba(117, 132, 148, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(117, 132, 148, 0.05) 1px, transparent 1px);
        }

.export-sheet.is-light::after {
            background:
                radial-gradient(circle at 118px 118px, rgba(255,255,255,0.28) 0 52px, transparent 53px),
                radial-gradient(circle at 118px 118px, rgba(47, 143, 255, 0.12) 0 80px, transparent 81px),
                linear-gradient(135deg, transparent 0 63%, rgba(126, 65, 242, 0.1) 63% 64%, transparent 64% 100%),
                linear-gradient(135deg, transparent 0 66%, rgba(255,255,255,0.16) 66% 67%, transparent 67% 100%),
                radial-gradient(circle at calc(100% - 118px) 118px, rgba(255,255,255,0.26) 0 40px, transparent 41px),
                radial-gradient(circle at calc(100% - 118px) 118px, rgba(49, 207, 220, 0.12) 0 62px, transparent 63px),
                linear-gradient(90deg, transparent 0 84%, rgba(255,255,255,0.14) 84% 84.4%, transparent 84.4% 100%),
                linear-gradient(90deg, transparent 0 87%, rgba(117, 132, 148, 0.1) 87% 87.35%, transparent 87.35% 100%),
                linear-gradient(0deg, transparent 0 86%, rgba(255,255,255,0.12) 86% 86.35%, transparent 86.35% 100%);
            opacity: 0.72;
        }

.export-sheet.is-light .export-sheet-vignette {
            background:
                radial-gradient(circle at center, transparent 58%, rgba(85, 100, 118, 0.06) 78%, rgba(31, 39, 48, 0.14) 100%),
                radial-gradient(circle at 50% 42%, transparent 64%, rgba(255, 255, 255, 0.04) 82%, rgba(31, 39, 48, 0.08) 100%);
        }

.export-sheet.is-light .sheet-profile {
            background: rgba(255, 252, 247, 0.9);
            border: 1px solid rgba(73, 54, 28, 0.1);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

.export-sheet.is-light .sheet-avatar-shell {
            border: 1px solid rgba(73, 54, 28, 0.1);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.82),
                0 14px 26px rgba(71, 46, 15, 0.08);
        }

.export-sheet.is-light .sheet-avatar-shell img {
            background: rgba(255, 255, 255, 0.64);
        }

.export-sheet.is-light .sheet-player-name {
            color: var(--text);
        }

.export-sheet.is-light .sheet-player-meta {
            color: var(--muted);
        }

.export-sheet.is-light .sheet-chip {
            background: rgba(255, 255, 255, 0.68);
            border: 1px solid rgba(73, 54, 28, 0.1);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
            color: var(--text);
        }

.export-sheet.is-light .sheet-rating-tail {
            color: #7b746d;
        }

.export-sheet.is-light .sheet-section-title {
            color: var(--text);
        }

.export-sheet.is-light .sheet-section-meta {
            color: #7e4a1a;
            background: linear-gradient(135deg, rgba(255, 230, 181, 0.95), rgba(255, 247, 225, 0.95));
            border: 1px solid rgba(191, 136, 25, 0.24);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.84),
                0 8px 18px rgba(191, 136, 25, 0.08);
        }

.export-sheet.is-light .sheet-credit {
            border-top: 1px solid rgba(73, 54, 28, 0.1);
            color: var(--muted);
        }

.export-sheet.is-light .sheet-credit a {
            color: var(--accent-deep);
        }

.export-sheet.is-light .export-card {
            --card-main-bg: #ffffff;
            --card-main-text: #241d17;
            --card-main-muted: rgba(36, 29, 23, 0.72);
        }

.export-sheet.is-light .export-card-top {
            background: rgba(255, 255, 255, 0.96);
        }

.export-sheet.is-light .export-card.is-max .export-card-top {
            background:
                radial-gradient(circle at top right, rgba(255, 232, 150, 0.62), transparent 42%),
                radial-gradient(circle at center right, rgba(255, 214, 92, 0.24), transparent 46%),
                radial-gradient(circle at bottom left, rgba(245, 195, 66, 0.28), transparent 48%),
                linear-gradient(180deg, rgba(255, 248, 221, 0.48), rgba(255, 255, 255, 0) 58%),
                rgba(255, 255, 255, 0.96);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.82),
                inset 0 0 22px rgba(246, 207, 93, 0.22);
        }

.export-sheet.is-light .export-card-title-text,
        .export-sheet.is-light .export-card-score,
        .export-sheet.is-light .export-card-pr {
            color: var(--text);
        }

.export-sheet.is-light .export-card-title-text {
            color: #fff;
        }

.export-sheet.is-light .export-card.is-max .export-card-score,
        .export-sheet.is-light .export-card.is-max .export-card-pr {
            color: var(--text);
            text-shadow: none;
        }

.export-sheet.is-light .export-card-scoreline {
            border-bottom-color: rgba(36, 29, 23, 0.14);
        }

.export-sheet.is-light .export-card-difficulty-badge {
            border: 1px solid rgba(36, 29, 23, 0.24);
            background: rgba(255, 255, 255, 0.18);
            color: rgba(36, 29, 23, 0.9);
        }

.export-sheet.is-light .export-card-pr-arrow {
            border-left-color: rgba(36, 29, 23, 0.72);
        }

.export-sheet.is-light .export-card.card-basic:not(.card-ultima) {
            --card-accent: rgb(46, 185, 170);
            --card-accent-text: #032e2b;
            --card-outline: rgb(46, 185, 170);
        }

.export-sheet.is-light .export-card.card-advanced:not(.card-ultima) {
            --card-accent: rgb(238, 155, 42);
            --card-accent-text: #1c150f;
            --card-outline: rgb(238, 155, 42);
        }

.export-sheet.is-light .export-card.card-expert:not(.card-ultima) {
            --card-accent: rgb(223, 88, 88);
            --card-accent-text: #fff;
            --card-outline: rgb(223, 88, 88);
        }

.export-sheet.is-light .export-card.card-master:not(.card-ultima) {
            --card-accent: rgb(137, 98, 233);
            --card-accent-text: #fff;
            --card-outline: rgb(137, 98, 233);
        }

.export-sheet.is-light .export-card.card-ultima {
            --card-accent: rgb(112, 28, 28);
            --card-accent-text: #fff;
            --card-outline: rgb(112, 28, 28);
        }

.sheet-credit {
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.14);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            color: rgba(232, 238, 248, 0.76);
            font-size: 14px;
        }

.sheet-credit a {
            color: rgba(255, 255, 255, 0.94);
            text-decoration: none;
            font-weight: 800;
        }

/* Re:MASTER has no Chunithm equivalent: same geometry as the other tiers in
   maimai's own white-lavender. */
.export-card.card-remaster:not(.card-ultima) {
    --card-accent: #8a84a8;
    --card-accent-text: #fff;
    --card-outline: #d8d3e8;
    box-shadow:
        0 0 0 2px var(--card-outline),
        0 2px 5px rgba(71, 46, 15, 0.04),
        0 10px 18px rgba(71, 46, 15, 0.06),
        0 20px 34px rgba(71, 46, 15, 0.05);
}


/* The only additions beyond the verbatim copy. Chunithm's labels are short
   English ("Rating", "Old Best 30"); the localized MaiMaru equivalents are
   wider and wrapped mid-word inside the same boxes. These keep them on one
   line without altering any geometry. */
.export-sheet .sheet-rating-label,
.export-sheet .sheet-section-title,
.export-sheet .sheet-section-meta {
    white-space: nowrap;
}

/* maimai has a blue DX rating band between "no colour" and green; Chunithm's
   ladder starts at green, so there is no tone-blue to copy. Colour taken from
   the same family as the neighbouring tones. */
.export-sheet .tone-blue { color: #3f7fd6; }

/* Chunithm applies the rainbow gradients to .sheet-rating-main-fill, part of
   its digit-image rating, so its dark-theme rule
   (html[data-scheme="dark"] .export-sheet .tone-rainbow) can safely flatten the
   CONTAINER to solid blue. maimai reports the rating as text and we render it
   as text, so that flattening would hit the number itself. These selectors
   carry html[data-scheme="dark"] to outrank it, and this page always forces the
   dark attribute. Gradient values are verbatim from export.html. */
html .export-sheet .sheet-rating-value.tone-rainbow,
html[data-scheme="dark"] .export-sheet .sheet-rating-value.tone-rainbow {
    display: inline-block;
    background: linear-gradient(180deg, #ff7a64 0%, #ff7a64 15%, #ffcf35 38%, #45c987 67%, #4f97ff 85%, #4f97ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html .export-sheet .sheet-rating-value.tone-rainbow-extreme,
html[data-scheme="dark"] .export-sheet .sheet-rating-value.tone-rainbow-extreme {
    display: inline-block;
    background: linear-gradient(180deg, #ff2f87 0%, #ff2f87 15%, #ff7a1f 31%, #ffd21f 47%, #33d483 63%, #2f8fff 79%, #8557ff 85%, #8557ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------------------------------------------------------------------
   Background identity. Everything above is Chunithm's sheet verbatim; this
   block re-hues only the ATMOSPHERE layers so the exported image reads as
   MaiMaru rather than as a Chunithm export with different data. Geometry is
   deliberately untouched: same 1420px width, padding, radii, card metrics.
   Palette matches maimaru.html (burnt #17120f, crimson #b52a45).
   Selectors carry `html` purely to outrank the originals.
   --------------------------------------------------------------------------- */

html .export-sheet {
    background:
        linear-gradient(135deg, rgba(255, 236, 220, 0.05) 0 14%, transparent 14% 100%),
        radial-gradient(circle at 12% 14%, rgba(181, 42, 69, 0.26), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(138, 106, 85, 0.18), transparent 22%),
        radial-gradient(circle at 82% 84%, rgba(192, 138, 62, 0.14), transparent 24%),
        radial-gradient(circle at 22% 88%, rgba(181, 42, 69, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(23, 18, 15, 0.995), rgba(12, 9, 7, 0.995));
    border: 1px solid rgba(214, 180, 150, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 220, 0.08),
        0 18px 44px rgba(0, 0, 0, 0.42);
}

html .export-sheet::before {
    background-image:
        linear-gradient(rgba(214, 180, 150, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214, 180, 150, 0.09) 1px, transparent 1px);
}

html .export-sheet::after {
    background:
        radial-gradient(circle at 118px 118px, rgba(255, 236, 220, 0.06) 0 52px, transparent 53px),
        radial-gradient(circle at 118px 118px, rgba(181, 42, 69, 0.22) 0 80px, transparent 81px),
        linear-gradient(135deg, transparent 0 63%, rgba(192, 138, 62, 0.12) 63% 64%, transparent 64% 100%);
}

html .export-sheet-vignette {
    background:
        radial-gradient(circle at center, transparent 58%, rgba(40, 14, 10, 0.18) 78%, rgba(0, 0, 0, 0.38) 100%),
        radial-gradient(circle at 50% 42%, transparent 64%, rgba(255, 190, 160, 0.03) 82%, rgba(0, 0, 0, 0.16) 100%);
}

html .export-sheet-decor.orbit {
    border: 1px solid rgba(181, 42, 69, 0.28);
    box-shadow:
        inset 0 0 0 14px rgba(255, 236, 220, 0.03),
        inset 0 0 0 34px rgba(181, 42, 69, 0.1);
}

html .export-sheet-decor.spark {
    background:
        linear-gradient(135deg, rgba(255, 236, 220, 0.07), rgba(255, 236, 220, 0)),
        linear-gradient(135deg, rgba(181, 42, 69, 0.2), rgba(192, 138, 62, 0.12));
    border: 1px solid rgba(214, 180, 150, 0.1);
}

/* Surfaces. The copied sheet's neutrals are cold: the profile sits on
   rgba(15,18,26), the rating block on rgba(13,16,24), the card body on
   #161616, and chip/credit text on blue-white rgba(248,250,255). Against a
   burnt background they read as a different material. These swap the hue while
   holding the same lightness, so contrast and legibility are unchanged. */

html .export-card {
    --card-main-bg: #191310;
    --card-main-text: #f7f2ec;
    --card-main-muted: rgba(247, 242, 236, 0.74);
}

html .sheet-profile {
    background:
        linear-gradient(180deg, rgba(255, 236, 220, 0.05), rgba(255, 236, 220, 0.02)),
        rgba(26, 20, 16, 0.94);
    border: 1px solid rgba(214, 180, 150, 0.12);
}

html .sheet-rating-block {
    background:
        linear-gradient(180deg, rgba(255, 236, 220, 0.07), rgba(255, 236, 220, 0.03)),
        rgba(22, 17, 13, 0.92);
    border: 1px solid rgba(214, 180, 150, 0.14);
}

html .sheet-avatar-shell {
    background: linear-gradient(145deg, rgba(181, 42, 69, 0.26), rgba(192, 138, 62, 0.24) 45%, rgba(138, 106, 85, 0.2));
    border: 1px solid rgba(214, 180, 150, 0.14);
}

html .sheet-chip {
    background: rgba(255, 236, 220, 0.06);
    border: 1px solid rgba(214, 180, 150, 0.14);
    color: rgba(247, 242, 236, 0.9);
}

html .sheet-section-meta {
    background: linear-gradient(135deg, rgba(255, 236, 220, 0.08), rgba(255, 236, 220, 0.03));
    border: 1px solid rgba(214, 180, 150, 0.14);
    color: rgba(247, 242, 236, 0.92);
}

html .sheet-credit {
    border-top: 1px solid rgba(214, 180, 150, 0.16);
    color: rgba(240, 232, 224, 0.76);
}

/* ---- Chumai summary sheet (bot /summary) --------------------------------
   Additive only: nothing above changes. One sheet carrying both games —
   shared background and a single profile row (with one rating block per
   game), then the two Best pools side by side split by a vertical divider.
   Card/section markup reuses the classes above so both columns render in
   the same visual language. */

.export-sheet.is-chumai {
    width: 2916px;
}

.summary-columns {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin-top: 22px;
}

.summary-column {
    flex: 1 1 0;
    min-width: 0;
}

.summary-column .sheet-section:first-of-type {
    margin-top: 0;
}

.summary-divider {
    flex: 0 0 2px;
    border-radius: 2px;
    background: linear-gradient(180deg,
        transparent,
        rgba(156, 190, 255, 0.42) 8%,
        rgba(156, 190, 255, 0.42) 92%,
        transparent);
}

.summary-column-title {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 20px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: rgba(248, 250, 255, 0.92);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---- STD/DX kind chip on maimai jackets ---------------------------------
   Top-left corner of the jacket, both on the standalone sheet and the
   chumai summary. Chunithm summary cards pass no kind and render bare. */

.export-card-kind {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    padding: 3px 6px;
    border-radius: 7px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #ffffff;
    background: #58a6e0;
}

.export-card-kind.is-dx {
    background: #ffffff;
}

.export-card-kind.is-dx .dx-d {
    color: #e8503f;
}

.export-card-kind.is-dx .dx-x {
    color: #27a95c;
}
