@font-face {
    font-family: 'OwnglyphYuntaeng';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/2608211801@font-160/font-160/%EC%98%A8%EA%B8%80%EC%9E%8E%20%EC%9C%A4%ED%83%B1%EC%B2%B4.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

:root {
    --card-ink: #3f342f;
    --card-muted: #766a64;
    --card-line: #eadfd8;
    --card-pink: #f7b7c9;
    --card-peach: #f6c19e;
    --card-cream: #fffaf5;
    --profile-card-hand-font: 'OwnglyphYuntaeng', 'Nanum Gothic', sans-serif;
}

html[lang="zh-Hans"] {
    --profile-card-hand-font: 'ZCOOL KuaiLe', 'Nanum Gothic', sans-serif;
}

html[lang="zh-Hant"] {
    --profile-card-hand-font: 'Huninn', 'Nanum Gothic', sans-serif;
}

html[lang="ja"] {
    --profile-card-hand-font: 'Yomogi', 'Nanum Gothic', sans-serif;
}

.card-maker-hero {
    position: relative;
    background:
        radial-gradient(circle at 9% 20%, rgba(246, 193, 158, .34), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(247, 183, 201, .4), transparent 34%),
        linear-gradient(135deg, #fffaf4 0%, #fff4f6 48%, #fffaf0 100%);
}

.card-maker-hero::before,
.card-maker-hero::after {
    position: absolute;
    color: rgba(234, 124, 92, .18);
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.card-maker-hero::before {
    content: "\f004";
    top: 25px;
    left: 6%;
    font-size: 34px;
    transform: rotate(-14deg);
}

.card-maker-hero::after {
    content: "\f005";
    right: 7%;
    bottom: 28px;
    font-size: 42px;
    transform: rotate(16deg);
}

.card-maker-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.card-maker-blob-one {
    top: -70px;
    right: 14%;
    width: 180px;
    height: 180px;
    background: rgba(125, 211, 252, .2);
}

.card-maker-blob-two {
    bottom: -85px;
    left: 12%;
    width: 210px;
    height: 210px;
    background: rgba(253, 224, 71, .16);
}

.card-maker-shell {
    background:
        radial-gradient(circle at 0 0, rgba(251, 207, 232, .16), transparent 28rem),
        #f9fafb;
}

.card-maker-grid {
    display: grid;
    gap: 1.25rem;
}

.maker-panel {
    border: 1px solid var(--card-line);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .96);
    padding: 1.15rem;
    box-shadow: 0 10px 34px rgba(78, 57, 46, .065);
}

.maker-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1rem;
}

.maker-panel-heading h2,
.preview-title-row h2 {
    margin: 0;
    color: #26211f;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.maker-panel-heading p {
    margin: .2rem 0 0;
    color: var(--card-muted);
    font-size: .78rem;
    line-height: 1.55;
}

.maker-step {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--card-ink);
    border-radius: 999px;
    background: linear-gradient(145deg, #ffd4df, #fac49e);
    color: var(--card-ink);
    font-size: .82rem;
    font-weight: 900;
    box-shadow: 2px 2px 0 rgba(63, 52, 47, .13);
}

.frame-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.frame-option {
    min-width: 0;
    padding: .35rem;
    border: 2px solid transparent;
    border-radius: .9rem;
    background: #fff;
    color: #625650;
    cursor: pointer;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.frame-option:hover {
    transform: translateY(-2px);
}

.frame-option:focus-visible,
.character-option:focus-visible,
.photo-preview:focus-visible,
.maker-button:focus-visible,
.maker-generate:focus-visible,
.maker-text-button:focus-visible,
.character-actions button:focus-visible {
    outline: 3px solid rgba(234, 124, 92, .28);
    outline-offset: 2px;
}

.frame-option.is-active {
    border-color: #ea7c5c;
    color: #9b3f32;
    box-shadow: 0 5px 14px rgba(234, 124, 92, .16);
}

.frame-picker-toggle {
    display: none;
}

.photo-uploader {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.photo-preview {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 6.6rem;
    height: 6.6rem;
    overflow: hidden;
    border: 2px dashed #e4bca8;
    border-radius: 1.3rem;
    background: linear-gradient(145deg, #fff8f2, #fff1f3);
    color: #c96d52;
    cursor: pointer;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-empty {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-size: .67rem;
    font-weight: 800;
}

.photo-empty i {
    font-size: 1.55rem;
}

.photo-controls {
    min-width: 0;
}

.photo-controls p {
    margin: .55rem 0 0;
    color: #8a7d76;
    font-size: .68rem;
    line-height: 1.45;
}

.maker-button,
.maker-generate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: .85rem;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 800;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.maker-button {
    min-height: 2.65rem;
    padding: .68rem .95rem;
    border: 1px solid transparent;
}

.maker-button:hover:not(:disabled),
.maker-generate:hover:not(:disabled) {
    transform: translateY(-2px);
}

.maker-button:disabled,
.maker-generate:disabled {
    cursor: wait;
    opacity: .55;
}

.maker-button-primary {
    border-color: #db5a47;
    background: linear-gradient(135deg, #f09f78, #e96c73);
    color: #fff;
    box-shadow: 0 8px 18px rgba(219, 90, 71, .2);
}

.maker-button-secondary {
    border-color: #f1c8b3;
    background: #fff3ea;
    color: #a84e3e;
}

.maker-button-ghost {
    border-color: #e5e7eb;
    background: #fff;
    color: #60636b;
}

.maker-text-button {
    margin-top: .55rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9b6357;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 700;
}

.maker-error {
    margin: .75rem 0 0;
    padding: .65rem .75rem;
    border-radius: .7rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: .72rem;
}

.maker-input-wrap {
    position: relative;
}

.maker-input-wrap input {
    width: 100%;
    min-height: 3rem;
    padding: .75rem 4.2rem .75rem .9rem;
    border: 1.5px solid #e5d6ce;
    border-radius: .85rem;
    background: #fffdfb;
    color: #332b27;
    font-size: .9rem;
    font-weight: 700;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.maker-input-wrap input:focus {
    border-color: #ea7c5c;
    box-shadow: 0 0 0 4px rgba(234, 124, 92, .11);
}

.maker-input-wrap > span {
    position: absolute;
    top: 50%;
    right: .9rem;
    color: #a09189;
    font-size: .7rem;
    transform: translateY(-50%);
}

.selected-count {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff1f2;
    padding: .3rem .62rem;
    color: #be526b;
    font-size: .65rem;
    font-weight: 800;
}

.character-actions {
    display: flex;
    justify-content: flex-end;
    gap: .45rem;
    margin: -.35rem 0 .85rem;
    color: #d1a38f;
    font-size: .68rem;
}

.character-actions button {
    padding: .18rem;
    border: 0;
    background: transparent;
    color: #a35343;
    cursor: pointer;
    font-weight: 800;
}

.character-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem .5rem;
}

.character-option {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #746861;
    cursor: pointer;
    font-size: .63rem;
    font-weight: 800;
}

.character-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: .32rem;
    overflow: hidden;
    border: 2px solid #eee6e1;
    border-radius: 999px;
    background: #fffaf5;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.character-option:hover .character-image-wrap {
    transform: translateY(-2px);
}

.character-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .15s ease, opacity .15s ease;
}

.character-option:not(.is-selected) img {
    filter: saturate(.55);
    opacity: .58;
}

.character-option.is-selected .character-image-wrap {
    border-color: #ea7c5c;
    box-shadow: 0 4px 14px rgba(234, 124, 92, .2);
}

.character-option.is-selected {
    color: #a14333;
}

.character-check {
    position: absolute;
    right: .12rem;
    bottom: .12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ea7c5c;
    color: #fff;
    font-size: .55rem;
    opacity: 0;
    transform: scale(.75);
    transition: opacity .15s ease, transform .15s ease;
}

.character-option.is-selected .character-check {
    opacity: 1;
    transform: scale(1);
}

.character-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.maker-generate {
    width: 100%;
    min-height: 3.4rem;
    border: 0;
    background: linear-gradient(105deg, #ed8b65, #eb6d80 52%, #d95874);
    color: #fff;
    box-shadow: 0 12px 24px rgba(219, 90, 71, .24);
    font-size: .95rem;
}

.preview-panel {
    overflow: hidden;
}

.preview-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-kicker {
    display: block;
    margin-bottom: .22rem;
    color: #c2604b;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.preview-status {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #ecfdf5;
    padding: .35rem .58rem;
    color: #15803d;
    font-size: .63rem;
    font-weight: 800;
}

.canvas-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid #eadfd8;
    border-radius: 1rem;
    background: #f2ede8;
    box-shadow: 0 12px 30px rgba(63, 52, 47, .12);
}

#chiikawaCardCanvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background: #fff8f3;
}

.canvas-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: rgba(255, 250, 245, .9);
    color: #a65343;
    font-size: .76rem;
    font-weight: 800;
    transition: opacity .2s ease, visibility .2s ease;
}

.canvas-loading.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.preview-actions {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: .55rem;
    margin-top: 1rem;
}

.share-message {
    margin: .85rem 0 0;
    padding: .65rem .75rem;
    border-radius: .75rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .7rem;
    line-height: 1.5;
}

.preview-note {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin: .85rem 0 0;
    color: #8b7d76;
    font-size: .67rem;
    line-height: 1.5;
}

.preview-note i {
    margin-top: .16rem;
    color: #e38a69;
}

.how-card {
    position: relative;
    overflow: hidden;
    min-height: 12rem;
    border: 1px solid #f0e3dc;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #fff, #fffaf6);
    padding: 1.35rem;
    box-shadow: 0 8px 24px rgba(78, 57, 46, .05);
}

.how-card > span {
    position: absolute;
    top: -.35rem;
    right: .7rem;
    color: rgba(234, 124, 92, .1);
    font-size: 4.7rem;
    font-weight: 900;
    line-height: 1;
}

.how-card > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: .85rem;
    background: #fff0e9;
    color: #d9644d;
    font-size: 1.1rem;
}

.how-card h3 {
    margin: 1.1rem 0 .4rem;
    color: #302925;
    font-size: .95rem;
    font-weight: 800;
}

.how-card p {
    margin: 0;
    color: #746a65;
    font-size: .78rem;
    line-height: 1.65;
}

@media (min-width: 768px) {
    .maker-panel {
        padding: 1.35rem;
    }

    .maker-panel-heading h2,
    .preview-title-row h2 {
        font-size: 1.08rem;
    }

    .frame-picker {
        gap: .8rem;
    }

    .frame-option {
        font-size: .72rem;
    }
}

@media (min-width: 1024px) {
    .card-maker-grid {
        grid-template-columns: minmax(0, 25rem) minmax(0, 1fr);
        align-items: start;
        gap: 1.5rem;
    }

    .card-preview-column {
        position: sticky;
        top: 5.25rem;
    }
}

@media (max-width: 639px) {
    .maker-panel {
        border-radius: 1.15rem;
    }

    .frame-picker {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .4rem;
    }

    .frame-option {
        padding: .25rem;
        font-size: .58rem;
    }

    .photo-uploader {
        align-items: flex-start;
    }

    .photo-preview {
        width: 5.7rem;
        height: 5.7rem;
    }

    .character-picker {
        gap: .65rem .38rem;
    }

    .preview-actions {
        grid-template-columns: 1fr 1fr;
    }

    .preview-actions .maker-button-ghost {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frame-option,
    .character-image-wrap,
    .maker-button,
    .maker-generate,
    .canvas-loading {
        transition: none;
    }
}

/* Hand-drawn restyle inspired by the original profile-card maker. */
.card-maker-hero,
.card-maker-shell,
.card-maker-shell + section {
    font-family: 'Nanum Gothic', sans-serif;
}

.card-maker-hero {
    background:
        radial-gradient(circle at 8% 18%, rgba(175, 217, 143, .35) 0, transparent 38%),
        radial-gradient(circle at 90% 14%, rgba(248, 203, 221, .38) 0, transparent 38%),
        #fffcf3;
}

.card-maker-hero::before,
.card-maker-hero::after {
    content: none;
}

.card-maker-hero h1 {
    color: #2e2620;
    font-family: var(--profile-card-hand-font);
    font-size: clamp(2.4rem, 7vw, 4.25rem);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.12;
    text-wrap: balance;
}

html[lang="zh-Hans"] .card-maker-hero h1,
html[lang="zh-Hant"] .card-maker-hero h1,
html[lang="ja"] .card-maker-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.card-maker-hero p {
    color: #7a6a5a;
}

.card-maker-shell {
    background:
        radial-gradient(circle at 6% 8%, rgba(175, 217, 143, .3) 0, transparent 34%),
        radial-gradient(circle at 94% 12%, rgba(248, 203, 221, .32) 0, transparent 36%),
        radial-gradient(circle at 50% 96%, rgba(191, 227, 242, .28) 0, transparent 42%),
        #fffcf3;
    padding-top: 1rem;
}

.card-maker-grid {
    display: block;
    max-width: 56rem;
    margin: 0 auto;
}

.card-preview-column {
    position: static;
    margin-top: 1.25rem;
}

.maker-panel {
    border: 3px solid #2e2620;
    border-radius: 28px 32px 26px 34px / 34px 24px 32px 26px;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 7px 8px 0 rgba(46, 38, 32, .09);
}

.maker-panel:nth-child(even) {
    border-radius: 34px 25px 32px 27px / 26px 34px 25px 33px;
}

.maker-panel-heading {
    gap: .8rem;
    margin-bottom: 1.1rem;
}

.maker-panel-heading h2,
.preview-title-row h2 {
    color: #2e2620;
    font-family: var(--profile-card-hand-font);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -.01em;
}

.maker-panel-heading p {
    color: #8a7a68;
    font-size: .78rem;
}

.maker-step {
    width: 2.8rem;
    height: 2.8rem;
    border: 3px solid #2e2620;
    background: #afd98f;
    color: #2e2620;
    font-family: var(--profile-card-hand-font);
    font-size: 1.45rem;
    font-weight: 400;
    box-shadow: none;
}

.frame-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.frame-option {
    position: relative;
    padding: .42rem;
    border: 3px solid transparent;
    border-radius: 14px 17px 13px 16px / 16px 13px 17px 14px;
    color: #5a4a3a;
    font-family: var(--profile-card-hand-font);
    font-size: 1rem;
    font-weight: 400;
    box-shadow: none;
}

.frame-option.is-active {
    border-color: #2e2620;
    color: #2e2620;
    box-shadow: 3px 4px 0 rgba(46, 38, 32, .16);
}

.frame-preview-image {
    display: block;
    width: 100%;
    aspect-ratio: 25 / 16;
    margin-bottom: .35rem;
    overflow: hidden;
    border-radius: 8px;
    background: #fffaf0;
}

.frame-preview-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photo-uploader {
    gap: 1.15rem;
}

.photo-preview {
    border: 3px dashed #cbb99e;
    border-radius: 24px 20px 25px 21px / 21px 25px 20px 24px;
    background: #fffaf0;
    color: #6c5a49;
}

.photo-controls p {
    color: #8a7a68;
}

.maker-button,
.maker-generate,
.maker-text-button,
.character-actions button {
    font-family: 'Nanum Gothic', sans-serif;
}

.maker-button {
    border: 2.5px solid #2e2620;
    border-radius: 14px 11px 15px 12px / 12px 15px 11px 14px;
    box-shadow: 3px 3px 0 rgba(46, 38, 32, .15);
}

.maker-button-primary {
    border-color: #2e2620;
    background: #f8cbdd;
    color: #2e2620;
    box-shadow: 3px 3px 0 rgba(46, 38, 32, .15);
}

.maker-button-secondary {
    border-color: #2e2620;
    background: #fbe28e;
    color: #2e2620;
}

.maker-button-ghost {
    border-color: #2e2620;
    background: #fff;
    color: #2e2620;
}

.maker-input-wrap input {
    border: 2.5px solid #2e2620;
    border-radius: 14px 11px 15px 12px / 12px 15px 11px 14px;
    background: #fffefa;
    color: #2e2620;
    font-family: 'Nanum Gothic', sans-serif;
}

.maker-input-wrap input:focus {
    border-color: #2e2620;
    box-shadow: 0 0 0 4px rgba(175, 217, 143, .3);
}

.selected-count {
    border: 2px solid #2e2620;
    background: #f8cbdd;
    color: #2e2620;
    font-family: var(--profile-card-hand-font);
    font-size: .95rem;
    font-weight: 400;
}

.character-actions {
    color: #9d8c79;
}

.character-actions button {
    color: #5f4d3d;
}

.character-picker {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: .7rem;
}

.character-option {
    font-size: 0;
}

.character-image-wrap {
    margin-bottom: 0;
    border: 3px solid transparent;
    background: transparent;
    box-shadow: none;
}

.character-option:not(.is-selected) img {
    filter: none;
    opacity: .3;
}

.character-option.is-selected .character-image-wrap {
    border-color: #2e2620;
    box-shadow: 2px 2px 0 rgba(46, 38, 32, .18);
}

.character-check,
.character-name {
    display: none;
}

.maker-generate {
    min-height: 4rem;
    border: 3px solid #2e2620;
    border-radius: 20px 17px 21px 18px / 18px 21px 17px 20px;
    background: #afd98f;
    color: #2e2620;
    font-family: var(--profile-card-hand-font);
    font-size: 1.55rem;
    font-weight: 400;
    box-shadow: 4px 5px 0 rgba(46, 38, 32, .18);
}

.preview-kicker {
    color: #7a6a5a;
    font-family: 'Nanum Gothic', sans-serif;
}

.preview-status {
    border: 2px solid #2e2620;
    background: #afd98f;
    color: #2e2620;
}

.canvas-stage {
    border: 3px solid #2e2620;
    border-radius: 20px 17px 22px 18px / 18px 22px 17px 20px;
    background: #fffaf0;
    box-shadow: 4px 5px 0 rgba(46, 38, 32, .15);
}

.canvas-loading {
    background: rgba(255, 252, 243, .94);
    color: #4a3626;
}

.share-message,
.maker-error {
    border: 2px solid #2e2620;
    border-radius: 12px 15px 11px 14px / 14px 11px 15px 12px;
}

.card-maker-shell + section {
    border-color: #d9c9b8;
    background: #fffcf3;
}

.card-maker-shell + section h2,
.how-card h3 {
    font-family: var(--profile-card-hand-font);
    font-weight: 400;
}

.how-card {
    border: 3px solid #2e2620;
    border-radius: 24px 29px 22px 27px / 28px 23px 29px 24px;
    background: #fff;
    box-shadow: 5px 6px 0 rgba(46, 38, 32, .1);
}

.how-card > i {
    border: 2px solid #2e2620;
    background: #fbe28e;
    color: #2e2620;
}

@media (min-width: 1024px) {
    .card-maker-grid {
        display: block;
    }

    .card-preview-column {
        position: static;
    }
}

@media (max-width: 639px) {
    .card-maker-hero h1 {
        font-size: 2.35rem;
    }

    .maker-panel {
        padding: 1rem;
        border-width: 2.5px;
        border-radius: 22px 25px 20px 24px / 25px 20px 24px 21px;
    }

    .maker-panel-heading h2,
    .preview-title-row h2 {
        font-size: 1.45rem;
    }

    .maker-step {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.2rem;
    }

    .frame-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .frame-picker.is-collapsed .frame-option:nth-child(n + 7) {
        display: none;
    }

    .frame-picker.is-collapsed.has-overflow-active .frame-option:nth-child(6) {
        display: none;
    }

    .frame-picker.is-collapsed.has-overflow-active .frame-option.is-active {
        display: block;
    }

    .frame-option {
        font-size: .9rem;
    }

    .frame-picker-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        gap: .55rem;
        margin-top: .8rem;
        padding: .62rem .9rem;
        border: 2px solid #2e2620;
        border-radius: 13px 16px 12px 15px / 15px 12px 16px 13px;
        background: #f7ffe9;
        color: #2e2620;
        font-family: var(--profile-card-hand-font);
        font-size: .95rem;
        line-height: 1;
        box-shadow: 2px 3px 0 rgba(46, 38, 32, .14);
    }

    .frame-picker-toggle i {
        font-size: .78rem;
        transition: transform .18s ease;
    }

    .frame-picker-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .character-picker {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: .4rem;
    }

    .preview-actions {
        grid-template-columns: 1fr 1fr;
    }
}
