:root {
    --v105-gold: #d9b766;
    --v105-gold-bright: #ffe7a4;
    --v105-ivory: #f0e2bd;
    --v105-muted: #9d9278;
    --v105-ink: #050607;
    --v105-wine: #6f1421;
}

/* ホーム左上の「帝国身分証」。既存のブランドと一つの区画として扱う。 */
#home-screen .v105-home-identity-zone {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 20px);
}

#v105-home-profile-button {
    --v105-frame-main: #d8b55d;
    --v105-frame-light: #fff0b1;
    --v105-frame-dark: #6f4b17;
    --v105-frame-glow: rgba(216, 181, 93, .32);
    position: relative;
    flex: 0 0 auto;
    width: clamp(218px, 18.5vw, 286px);
    min-height: 62px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 5px 7px 5px 5px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--v105-frame-main) 76%, #342718);
    border-radius: 2px;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
    color: var(--v105-ivory);
    background:
        linear-gradient(100deg, color-mix(in srgb, var(--v105-frame-main) 11%, rgba(32, 20, 15, .98)), rgba(5, 7, 8, .98) 72%),
        #070707;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255, 245, 208, .035), 0 8px 20px rgba(0, 0, 0, .4);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

#v105-home-profile-button::before {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--v105-frame-main) 29%, transparent);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

#v105-home-profile-button::after {
    content: "♛";
    position: absolute;
    right: 21px;
    bottom: -18px;
    z-index: -1;
    color: color-mix(in srgb, var(--v105-frame-main) 16%, transparent);
    font: 900 54px/1 Georgia, serif;
    transform: rotate(-9deg);
    pointer-events: none;
}

#v105-home-profile-button:hover,
#v105-home-profile-button:focus-visible {
    transform: translateY(-1px);
    border-color: var(--v105-frame-light);
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--v105-frame-light) 24%, transparent), 0 0 19px var(--v105-frame-glow), 0 10px 24px rgba(0, 0, 0, .54);
    outline: none;
}

#v105-home-profile-button:active { transform: translateY(0) scale(.985); }

.v105-profile-emblem {
    position: relative;
    display: block;
    width: 52px;
    height: 52px;
    padding: 3px;
    overflow: hidden;
    clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
    background: linear-gradient(135deg, var(--v105-frame-light), var(--v105-frame-main) 42%, var(--v105-frame-dark));
    box-shadow: 0 0 13px var(--v105-frame-glow);
}

.v105-profile-emblem::after {
    content: "";
    position: absolute;
    inset: 5px;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--v105-frame-light) 58%, transparent);
    clip-path: inherit;
}

.v105-profile-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    clip-path: inherit;
    object-fit: cover;
    object-position: 50% 22%;
    background: radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--v105-frame-main) 21%, #15110f), #050607 72%);
    filter: saturate(.93) contrast(1.04);
}

.v105-profile-copy { min-width: 0; display: block; }
.v105-profile-kicker {
    display: block;
    margin-bottom: 3px;
    overflow: hidden;
    color: color-mix(in srgb, var(--v105-frame-main) 82%, #c9b98d);
    font: 700 6.5px/1.1 "Courier New", monospace;
    letter-spacing: .17em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-profile-name {
    display: block;
    overflow: hidden;
    color: #f7e8be;
    font: 800 clamp(12px, 1.1vw, 15px)/1.15 Georgia, "Yu Mincho", serif;
    letter-spacing: .045em;
    text-shadow: 0 2px 4px #000;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-profile-title {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #9e9275;
    font: 700 8px/1.1 Georgia, "Yu Mincho", serif;
    letter-spacing: .05em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-profile-edit-mark {
    align-self: stretch;
    display: grid;
    place-items: center;
    border-left: 1px solid color-mix(in srgb, var(--v105-frame-main) 29%, transparent);
    color: color-mix(in srgb, var(--v105-frame-main) 82%, #ad9e79);
    font: 700 11px/1 Georgia, serif;
}

/* 縁の色は彩度を抑え、古い金属・宝石の質感として使う。 */
[data-v105-frame="imperial"] { --v105-frame-main:#d8b55d; --v105-frame-light:#fff0b1; --v105-frame-dark:#6f4b17; --v105-frame-glow:rgba(216,181,93,.34); }
[data-v105-frame="crimson"]  { --v105-frame-main:#9e3840; --v105-frame-light:#f08b8f; --v105-frame-dark:#491119; --v105-frame-glow:rgba(158,56,64,.36); }
[data-v105-frame="sapphire"] { --v105-frame-main:#315f83; --v105-frame-light:#83c9e9; --v105-frame-dark:#112d42; --v105-frame-glow:rgba(49,95,131,.4); }
[data-v105-frame="silver"]   { --v105-frame-main:#8c959b; --v105-frame-light:#f0f3ec; --v105-frame-dark:#3d454a; --v105-frame-glow:rgba(160,174,181,.3); }
[data-v105-frame="emerald"]  { --v105-frame-main:#33775a; --v105-frame-light:#8cd9aa; --v105-frame-dark:#173e2e; --v105-frame-glow:rgba(51,119,90,.39); }
[data-v105-frame="obsidian"] { --v105-frame-main:#4d405c; --v105-frame-light:#bca2cf; --v105-frame-dark:#17131d; --v105-frame-glow:rgba(110,82,135,.38); }

body.v105-profile-editor-open { overflow: hidden !important; }

#v105-profile-editor[hidden] { display: none !important; }
#v105-profile-editor {
    position: fixed;
    inset: 0;
    z-index: 2147483500 !important;
    display: grid;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    color: var(--v105-ivory);
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(8px) saturate(.75);
    -webkit-backdrop-filter: blur(8px) saturate(.75);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
}

#v105-profile-editor::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background:
        radial-gradient(circle at 15% 30%, rgba(126, 24, 38, .55), transparent 31%),
        radial-gradient(circle at 85% 70%, rgba(26, 85, 95, .42), transparent 34%),
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, .025) 6px);
}

.v105-profile-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    border: 1px solid rgba(217, 183, 102, .72);
    border-radius: 3px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    background:
        radial-gradient(circle at 76% 18%, rgba(132, 31, 44, .15), transparent 34%),
        linear-gradient(142deg, #1c1512, #08090a 58%, #071216);
    box-shadow: 0 28px 85px rgba(0, 0, 0, .9), inset 0 0 55px rgba(0, 0, 0, .56);
}

.v105-profile-panel::before {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(217, 183, 102, .18);
    clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 17px 100%, 0 calc(100% - 17px));
}

.v105-profile-panel-header {
    flex: 0 0 auto;
    position: relative;
    min-height: 74px;
    padding: 15px 58px 13px 22px;
    border-bottom: 1px solid rgba(217, 183, 102, .29);
    background: linear-gradient(90deg, rgba(111, 18, 31, .36), rgba(0, 0, 0, .12) 65%);
}
.v105-profile-panel-kicker {
    color: #ae9865;
    font: 700 8px/1.1 "Courier New", monospace;
    letter-spacing: .38em;
}
.v105-profile-panel-title {
    margin-top: 7px;
    color: #f5dfa4;
    font: 900 clamp(22px, 3.4vw, 34px)/1 Georgia, "Yu Mincho", serif;
    letter-spacing: .1em;
    text-shadow: 0 3px 0 #000, 0 0 18px rgba(217, 183, 102, .24);
}
.v105-profile-panel-subtitle {
    margin-top: 7px;
    color: #8e846f;
    font-size: 9px;
    letter-spacing: .05em;
}
#v105-profile-close {
    position: absolute;
    top: 15px;
    right: 17px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(217, 183, 102, .4);
    border-radius: 1px;
    color: #d6c597;
    background: rgba(6, 7, 8, .78);
    font: 400 21px/1 Georgia, serif;
    cursor: pointer;
}
#v105-profile-close:hover,
#v105-profile-close:focus-visible { border-color: #ffe3a0; color: #fff1c2; outline: none; }

.v105-profile-form {
    display: flex;
    flex-direction: column;
}
.v105-profile-panel-body {
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.5fr);
    gap: 18px;
    padding: 18px 20px 16px;
    overflow: auto;
    scrollbar-color: rgba(217, 183, 102, .42) rgba(0, 0, 0, .3);
}

.v105-profile-preview-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.v105-section-label {
    color: #b29a65;
    font: 700 8px/1.1 "Courier New", monospace;
    letter-spacing: .28em;
}
.v105-profile-large-preview {
    --v105-frame-main:#d8b55d;
    --v105-frame-light:#fff0b1;
    --v105-frame-dark:#6f4b17;
    --v105-frame-glow:rgba(216,181,93,.34);
    position: relative;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 16px 21px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--v105-frame-main) 68%, #302819);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    background:
        radial-gradient(circle at 50% 31%, color-mix(in srgb, var(--v105-frame-main) 20%, transparent), transparent 43%),
        linear-gradient(155deg, #181415, #050708 70%);
    box-shadow: inset 0 0 40px rgba(0,0,0,.58), 0 0 18px var(--v105-frame-glow);
}
.v105-profile-large-preview::before {
    content: "♠";
    position: absolute;
    right: -15px;
    top: -26px;
    color: color-mix(in srgb, var(--v105-frame-main) 13%, transparent);
    font: 900 150px/1 Georgia, serif;
    transform: rotate(-9deg);
}
.v105-profile-large-preview .v105-profile-emblem {
    width: 142px;
    height: 142px;
    padding: 5px;
    box-shadow: 0 0 27px var(--v105-frame-glow), 0 14px 28px rgba(0, 0, 0, .7);
}
.v105-profile-large-preview .v105-profile-emblem::after { inset: 8px; }
.v105-preview-character {
    position: relative;
    margin-top: 13px;
    max-width: 100%;
    overflow: hidden;
    color: color-mix(in srgb, var(--v105-frame-main) 84%, #efe0b7);
    font: 700 9px/1.15 Georgia, "Yu Mincho", serif;
    letter-spacing: .07em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-preview-name {
    position: relative;
    max-width: 100%;
    margin-top: 13px;
    overflow: hidden;
    color: #f8e9bd;
    font: 900 20px/1.15 Georgia, "Yu Mincho", serif;
    letter-spacing: .06em;
    text-shadow: 0 3px 5px #000;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-preview-title {
    position: relative;
    max-width: 100%;
    margin-top: 7px;
    overflow: hidden;
    color: #a99b7b;
    font: 700 10px/1.2 Georgia, "Yu Mincho", serif;
    letter-spacing: .06em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-preview-note {
    padding: 9px 10px;
    border-left: 2px solid rgba(217, 183, 102, .55);
    color: #827a69;
    background: rgba(0, 0, 0, .27);
    font-size: 8px;
    line-height: 1.55;
}

.v105-profile-fields { min-width: 0; }
.v105-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 8px;
}
.v105-field { min-width: 0; display: block; }
.v105-field > span {
    display: block;
    margin-bottom: 6px;
    color: #b6a987;
    font-size: 9px;
    letter-spacing: .08em;
}
.v105-field input {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid rgba(217, 183, 102, .34);
    border-radius: 1px;
    outline: none;
    color: #f3e5bb;
    background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(20, 15, 13, .76));
    font: 700 13px/1.2 Georgia, "Yu Mincho", serif;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45);
}
.v105-field input:focus {
    border-color: #e5c66e;
    box-shadow: 0 0 0 2px rgba(217, 183, 102, .12), inset 0 2px 8px rgba(0, 0, 0, .45);
}
.v105-field-help {
    display: block;
    margin-top: 5px;
    color: #716b5e;
    font: 700 7px/1.3 "Courier New", monospace;
}
.v105-option-section { margin-top: 16px; }
.v105-frame-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
}
.v105-frame-choice {
    --v105-frame-main:#d8b55d;
    --v105-frame-light:#fff0b1;
    --v105-frame-dark:#6f4b17;
    --v105-frame-glow:rgba(216,181,93,.34);
    min-width: 0;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid rgba(217, 183, 102, .19);
    border-radius: 1px;
    color: #9b927e;
    background: rgba(3, 5, 6, .65);
    font: 700 9px/1.15 Georgia, "Yu Mincho", serif;
    text-align: left;
    cursor: pointer;
}
.v105-frame-choice:hover,
.v105-frame-choice:focus-visible { border-color: var(--v105-frame-main); color: #eadcb6; outline: none; }
.v105-frame-choice.is-selected {
    border-color: var(--v105-frame-light);
    color: #f5e5b9;
    background: linear-gradient(110deg, color-mix(in srgb, var(--v105-frame-main) 18%, #090909), #080909);
    box-shadow: 0 0 12px var(--v105-frame-glow), inset 0 1px rgba(255, 255, 255, .06);
}
.v105-frame-swatch {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
    color: #080808;
    background: linear-gradient(135deg, var(--v105-frame-light), var(--v105-frame-main) 50%, var(--v105-frame-dark));
    font-size: 9px;
    box-shadow: 0 0 8px var(--v105-frame-glow);
}
.v105-character-grid {
    display: grid;
    gap: 7px;
    max-height: 230px;
    margin-top: 8px;
    padding: 1px 4px 3px 1px;
    overflow: auto;
    scrollbar-color: rgba(217,183,102,.42) rgba(0,0,0,.3);
}
.v105-character-choice {
    --v105-character-gem: #d9b766;
    position: relative;
    min-width: 0;
    min-height: 102px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(217, 183, 102, .2);
    border-radius: 1px;
    color: #a79b7e;
    background: #060708;
    cursor: pointer;
}
.v105-character-choice:hover,
.v105-character-choice:focus-visible { border-color: color-mix(in srgb, var(--v105-character-gem) 74%, #fff); filter: brightness(1.1); outline: none; }
.v105-character-choice.is-selected {
    border-color: var(--v105-character-gem);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--v105-character-gem) 32%, transparent), 0 0 13px color-mix(in srgb, var(--v105-character-gem) 38%, transparent);
}
.v105-character-thumb {
    position: relative;
    flex: 1 1 auto;
    min-height: 72px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--v105-character-gem) 15%, #171415), #050607 75%);
}
.v105-character-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    filter: saturate(.9) contrast(1.04);
}
.v105-character-choice-name {
    display: block;
    padding: 5px 2px 3px;
    overflow: hidden;
    color: #bcb091;
    font: 700 7px/1.1 Georgia, "Yu Mincho", serif;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-character-choice.is-selected .v105-character-choice-name { color: #f0ddb0; }
.v105-character-choice.is-locked { cursor: not-allowed; opacity: .6; }
.v105-character-choice.is-locked .v105-character-thumb {
    display: grid;
    place-items: center;
    border: 1px solid rgba(217, 183, 102, .16);
    background:
        linear-gradient(45deg, transparent 48%, rgba(217,183,102,.15) 49% 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(217,183,102,.15) 49% 51%, transparent 52%),
        repeating-linear-gradient(45deg, #131213 0 5px, #090a0b 5px 10px);
}
.v105-character-choice.is-locked .v105-character-thumb::after {
    content: "♠";
    width: 28px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(217,183,102,.35);
    color: rgba(217,183,102,.55);
    background: #080909;
    font: 900 17px/1 Georgia, serif;
}

.v105-profile-panel-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 62px;
    padding: 10px 20px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(217, 183, 102, .27);
    background: rgba(3, 4, 5, .9);
}
#v105-profile-status {
    min-width: 0;
    margin-right: auto;
    color: #9b8d70;
    font: 700 8px/1.35 "Courier New", monospace;
    letter-spacing: .06em;
}
.v105-profile-action {
    min-width: 118px;
    min-height: 41px;
    padding: 9px 14px;
    border: 1px solid rgba(217, 183, 102, .34);
    border-radius: 1px;
    color: #bdb092;
    background: linear-gradient(180deg, #28241e, #0b0c0c);
    font: 800 10px/1 Georgia, "Yu Mincho", serif;
    letter-spacing: .08em;
    cursor: pointer;
}
.v105-profile-action:hover,
.v105-profile-action:focus-visible { border-color: #e5c66e; color: #f5e6bd; outline: none; }
.v105-profile-action.primary {
    min-width: 164px;
    border-color: #f1d17a;
    color: #fff0bf;
    background: linear-gradient(110deg, #7d1826, #390a12 58%, #10191a);
    box-shadow: 0 0 18px rgba(157, 28, 43, .28), inset 0 1px rgba(255, 239, 187, .12);
}

@media (max-width: 900px) {
    #home-screen .v105-home-identity-zone { gap: 9px; }
    #v105-home-profile-button { width: 202px; }
    #home-screen .v105-home-identity-zone .home-brand-title { font-size: 28px !important; }
    .v105-profile-panel-body { grid-template-columns: 210px minmax(0, 1fr); gap: 13px; }
    .v105-character-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    #home-screen .v105-home-identity-zone .home-brand { display: none !important; }
    #v105-home-profile-button {
        width: clamp(154px, 43vw, 184px);
        min-height: 52px;
        grid-template-columns: 42px minmax(0, 1fr) 12px;
        gap: 6px;
        padding: 4px;
    }
    #v105-home-profile-button .v105-profile-emblem { width: 42px; height: 42px; padding: 2px; }
    #v105-home-profile-button .v105-profile-emblem::after { inset: 4px; }
    #v105-home-profile-button .v105-profile-kicker { font-size: 5.5px; letter-spacing: .1em; }
    #v105-home-profile-button .v105-profile-name { font-size: 11px; }
    #v105-home-profile-button .v105-profile-title { margin-top: 3px; font-size: 6.5px; }
    #v105-home-profile-button .v105-profile-edit-mark { font-size: 8px; }

    #v105-profile-editor { padding: max(7px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); }
    .v105-profile-panel-header { min-height: 65px; padding: 12px 49px 10px 14px; }
    .v105-profile-panel-kicker { font-size: 6px; letter-spacing: .23em; }
    .v105-profile-panel-title { margin-top: 6px; font-size: 21px; }
    .v105-profile-panel-subtitle { margin-top: 5px; font-size: 7px; }
    #v105-profile-close { top: 12px; right: 12px; width: 34px; height: 34px; }
    .v105-profile-panel-body { grid-template-columns: 1fr; gap: 14px; padding: 13px 12px; }
    .v105-profile-large-preview { min-height: 168px; padding: 14px 12px 12px; }
    .v105-profile-large-preview .v105-profile-emblem { width: 86px; height: 86px; padding: 4px; }
    .v105-profile-large-preview .v105-profile-emblem::after { inset: 6px; }
    .v105-preview-character { margin-top: 8px; font-size: 7px; }
    .v105-preview-name { margin-top: 8px; font-size: 15px; }
    .v105-preview-title { margin-top: 5px; font-size: 8px; }
    .v105-preview-note { display: none; }
    .v105-field-grid { grid-template-columns: 1fr; gap: 9px; }
    .v105-frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v105-character-grid { grid-template-columns: repeat(4, minmax(70px, 1fr)); max-height: 210px; }
    .v105-character-choice { min-height: 94px; }
    .v105-profile-panel-actions { min-height: 57px; padding: 8px 11px max(8px, env(safe-area-inset-bottom)); }
    #v105-profile-status { display: none; }
    .v105-profile-action { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
    .v105-profile-action.primary { min-width: 0; }
}

@media (max-width: 370px) {
    #v105-home-profile-button { width: 142px; }
    #home-screen.v62-shocker-home .home-resource { min-width: 58px !important; padding-inline: 5px !important; }
    #v105-home-profile-button .v105-profile-kicker { display: none; }
    .v105-character-grid { grid-template-columns: repeat(3, minmax(68px, 1fr)); }
}

@media (max-height: 650px) and (min-width: 701px) {
    .v105-profile-panel-header { min-height: 60px; padding-top: 10px; padding-bottom: 9px; }
    .v105-profile-panel-title { margin-top: 4px; font-size: 25px; }
    .v105-profile-panel-subtitle { display: none; }
    .v105-profile-panel-body { padding-top: 12px; padding-bottom: 10px; }
    .v105-profile-large-preview { min-height: 245px; }
    .v105-character-grid { max-height: 182px; }
}

@media (prefers-reduced-motion: reduce) {
    #v105-home-profile-button { transition-duration: .01ms; }
}
