@font-face { font-family: 'Nunito'; src: url('../Sprites/Fonts/Nunito-Variable.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }
:root { --font-body: 'Nunito', sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #081510; color: #e5eee7; font-family: var(--font-body); overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #ffd05d; outline-offset: 3px; }
[hidden] { display: none !important; }
.login-screen { display: none; position: fixed; inset: 0; overflow-y: auto; padding: 28px 16px; background: linear-gradient(#07151859, #07151899), url('../assets/backgrounds/auth/battlefield-idle.gif') center / cover no-repeat, #081510; align-items: center; justify-content: center; gap: 20px; flex-direction: column; }
.login-screen.active { display: flex; }
.login-brand { text-align: center; }
.login-brand h1 { margin: 4px 0; font-size: 44px; font-weight: 1000; color: #ffd05d; letter-spacing: -2px; }
.login-brand small, .login-brand span { font-size: 10px; letter-spacing: 3px; color: #a6c4b6; }
.login-panel { width: min(380px,100%); border: 1px solid #567369; border-radius: 10px; padding: 20px; background: #102429e8; box-shadow: 0 20px 60px #0004; }
.login-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.login-tabs button { flex: 1; padding: 10px; border: 1px solid #426359; color: #bcd4c8; background: #17322e; border-radius: 5px; }
.login-tabs button.active { color: #ffd05d; border-color: #ffd05d; }
.login-panel header small { font-size: 9px; letter-spacing: 1px; color: #87ab98; }
.login-panel h2 { margin: 4px 0; font-size: 22px; }
.login-panel p { font-size: 12px; color: #b1cabf; line-height: 1.5; }
.login-panel label { display: grid; gap: 5px; margin: 12px 0; font-size: 12px; }
.login-panel input { width: 100%; min-height: 42px; padding: 10px; border: 1px solid #4b6c61; border-radius: 5px; background: #091d20; color: white; }
.login-panel label.register-terms-field { display: flex; align-items: center; gap: 8px; }
.login-panel input[type=checkbox] { width: 18px; min-height: 18px; }
.auth-link { display: block; border: 0; background: transparent; color: #c2dacc; padding: 8px 0; font-size: 11px; }
.login-submit { width: 100%; padding: 12px; border: 0; border-radius: 5px; background: #f7c74d; color: #18232b; font-weight: 900; }
.auth-feedback { min-height: 18px; color: #ffd05d !important; }
.login-panel footer, .login-version { text-align: center; font-size: 9px; color: #789b89; margin-top: 16px; }
.install-app-help { position: fixed; z-index: 200000; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(340px,90vw); border: 1px solid #769c83; padding: 20px; border-radius: 8px; background: #10282f; color: white; }
.install-app-help button { float: right; background: none; border: 0; color: white; font-size: 24px; }
.solo-rpg {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: block;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: #081510;
    color: #e0ecdf;
    font-family: 'Nunito', system-ui, sans-serif;
}
.solo-rpg header {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #081510db;
}
.solo-rpg header small { display: block; color: #91ad99; }
.solo-rpg button {
    border: 1px solid #557560;
    border-radius: 5px;
    padding: 9px 14px;
    background: #1b3425;
    color: #e0ecdf;
    cursor: pointer;
}
.solo-rpg canvas {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    box-sizing: border-box;
    cursor: crosshair;
    touch-action: none;
}
.solo-rpg footer { position: absolute; bottom: 12px; left: 12px; padding: 6px 10px; border-radius: 5px; background: #081510db; font-size: 11px; color: #aac4ae; pointer-events: none; }
.solo-skill-bar { position: absolute; z-index: 2; bottom: 64px; left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 24px)); padding: 8px; box-sizing: border-box; border: 1px solid #557560; border-radius: 8px; background: #081510e8; text-align: center; }
.solo-skills { display: flex; gap: 6px; justify-content: center; margin-top: 5px; }
.solo-rpg .solo-skills button, .solo-passive { position: relative; width: 46px; height: 46px; flex: 0 1 46px; min-width: 0; padding: 5px; border: 1px solid #557560; border-radius: 5px; background: #1b3425; box-sizing: border-box; }
.solo-skills img { width: 30px; height: 30px; max-width: 100%; }
.solo-skills small { display: none; }
.solo-skills kbd { position: absolute; left: 4px; top: 2px; color: #f2cf59; }
.solo-skill-count { position: absolute; top: 20px; left: 0; right: 0; font-weight: bold; background: #081510cc; }
.solo-skills button:disabled img { opacity: .35; }
.solo-skills button:focus-visible { outline: 2px solid #f2cf59; }
.solo-mana { color: #8dcaff; font-size: 12px; }
.solo-skill-bar p { min-height: 16px; margin: 5px 0 0; font-size: 12px; }
.solo-unit-frames { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; gap: 12px; max-width: calc(100% - 24px); }
.solo-unit-frame { display: flex; gap: 8px; width: 240px; min-width: 0; padding: 8px; border: 1px solid #557560; border-radius: 6px; background: #10271c; box-sizing: border-box; }
.solo-unit-frame[role="button"] { cursor: pointer; }
.solo-unit-frame[role="button"]:focus-visible { outline: 2px solid #f7c74d; outline-offset: 2px; }
.solo-unit-frame > div:last-child { flex: 1; min-width: 0; }
.solo-unit-frame strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.solo-unit-frame > img, .solo-target-portrait { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.solo-target-portrait { display: grid; place-items: center; font-size: 32px; color: #ed6868; }
.solo-unit-health { height: 17px; margin-top: 4px; position: relative; background: #081510; border: 1px solid #456d4b; overflow: hidden; border-radius: 3px; }
.solo-unit-health i { display: block; height: 100%; background: #368b49; }
.solo-target-frame .solo-unit-health i { background: #a43f43; }
.solo-unit-health span { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 17px; color: white; }
.solo-unit-mana { display: block; margin-top: 3px; color: #8dcaff; font-size: 10px; }
.solo-unit-frame button.solo-clear-target { padding: 2px 0; border: 0; background: transparent; font-size: 10px; }
.solo-unit-frame button:disabled { opacity: .4; }
.solo-bottom-menu { position: absolute; z-index: 3; bottom: 12px; right: 12px; display: flex; gap: 5px; padding: 6px; border: 1px solid #557560; border-radius: 7px; background: #081510e8; }
.solo-rpg .solo-bottom-menu button { width: 38px; height: 38px; padding: 5px; display: grid; place-items: center; }
.solo-bottom-menu img { width: 26px; height: 26px; object-fit: contain; }
.solo-bottom-menu button.active { border-color: #f2cf59; background: #35432b; }
.solo-bottom-menu button:disabled { cursor: default; }
.solo-bottom-menu button:focus-visible { outline: 2px solid #f2cf59; }
.solo-skill-bar[hidden] { display: none; }
.solo-skill-list { position: absolute; z-index: 4; top: 72px; right: 12px; bottom: 76px; width: min(440px, calc(100% - 24px)); box-sizing: border-box; display: flex; flex-direction: column; padding: 16px; border: 1px solid #6a8c70; border-radius: 10px; background: #0b1816f5; color: #e1ebde; box-shadow: 0 12px 40px #0009; }
.solo-skill-list[hidden] { display: none; }
.solo-skill-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.solo-skill-list h2 { margin: 0 0 4px; font-size: 20px; color: #f2cf59; }
.solo-skill-list-heading small, .solo-skill-card-heading small { color: #a4b9a6; font-size: 11px; }
.solo-skill-cards { overflow-y: auto; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, 56px); align-content: start; gap: 10px; }
.solo-skill-card { width: 56px; height: 56px; box-sizing: border-box; display: grid; place-items: center; padding: 7px; border: 1px solid #3c5947; border-radius: 7px; background: #15271f; }
.solo-skill-card > img { width: 40px; height: 40px; object-fit: contain; pointer-events: none; }
.solo-skill-card:hover, .solo-skill-card:focus-visible { border-color: #f2cf59; outline: 1px solid #f2cf59; }
.solo-skill-locked > img { opacity: .35; }
.solo-skill-tooltip { display: none; position: fixed; z-index: 10; width: min(300px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; box-sizing: border-box; padding: 14px; border: 1px solid #6a8c70; border-radius: 8px; background: #0b1816; color: #e1ebde; box-shadow: 0 8px 24px #0009; pointer-events: none; }
.solo-skill-card:hover .solo-skill-tooltip, .solo-skill-card:focus-visible .solo-skill-tooltip { display: block; }
.solo-skill-list-dragging .solo-skill-tooltip { display: none; }
.solo-skill-card-heading { display: flex; align-items: center; gap: 10px; }
.solo-skill-card-heading img { width: 40px; height: 40px; object-fit: contain; }
.solo-skill-card h3 { margin: 0 0 3px; font-size: 15px; }
.solo-skill-card p { margin: 10px 0; font-size: 12px; line-height: 1.5; color: #c2d2c4; }
.solo-skill-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 12px; }
.solo-skill-card dt { color: #9bb4a0; }
.solo-skill-card dd { margin: 0; text-align: right; color: #f2df9c; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
    .solo-rpg header > div { display: none; }
    .solo-unit-frames { max-width: calc(100% - 190px); gap: 6px; }
    .solo-unit-frame { width: 190px; }
}
@media (max-width: 600px) {
    .solo-rpg header { top: 6px; right: 6px; padding: 0; }
    .solo-rpg header button { padding: 6px; font-size: 10px; }
    .solo-unit-frames { top: 6px; left: 6px; max-width: calc(100% - 135px); }
    .solo-unit-frame { padding: 4px; gap: 4px; }
    .solo-unit-frame > img, .solo-target-portrait { display: none; }
    .solo-unit-frame strong { font-size: 10px; }
    .solo-unit-health span { font-size: 8px; }
    .solo-skills { gap: 3px; }
    .solo-skills button, .solo-passive { padding: 3px; }
    .solo-skills img { width: 28px; height: 28px; }
    .solo-rpg footer { display: none; }
    .solo-bottom-menu { right: 6px; bottom: 6px; }
}

.solo-skills img[hidden] { display: none; }
.solo-skill-unavailable img { opacity: .35; }
.solo-rpg .solo-skills .solo-skill-drop-target { border-color: #f2cf59; background: #40512a; }
.solo-skill-card[draggable="true"] { cursor: grab; touch-action: none; user-select: none; }
.solo-skill-drag-preview { position: fixed; z-index: 100; width: 42px; height: 42px; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 3px 5px #000); }
.solo-skill-list-dragging { pointer-events: none; opacity: .35; }
.solo-skills button[draggable="true"] { cursor: grab; }
.solo-unit-xp { margin-top: 4px; }
.solo-quest-list { min-height: 0; overflow-y: auto; display: grid; gap: 10px; touch-action: pan-y; }
.solo-quest-card { padding: 12px; border: 1px solid #3c5947; border-radius: 8px; background: #15271f; }
.solo-quest-card h3 { margin: 0; color: #f2cf59; font-size: 15px; }
.solo-quest-card p { margin: 6px 0; font-size: 12px; }
.solo-quest-card small { color: #a4b9a6; font-size: 11px; }
.solo-quest-card progress { display: block; width: 100%; height: 8px; margin: 8px 0; accent-color: #f2cf59; }
.solo-quest-card button { min-height: 44px; width: 100%; border: 1px solid #6a8c70; border-radius: 6px; background: #35432b; color: #f2cf59; cursor: pointer; }
.solo-quest-card button:disabled { opacity: .5; cursor: default; }
.solo-quest-card.ready { border-color: #f2cf59; }
.solo-quest-card.completed { opacity: .7; }
.solo-bottom-menu button.has-reward::after { content: ''; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; background: #f2cf59; border-radius: 50%; }
.solo-quest-panel { touch-action: pan-y; }
.solo-quest-tracker { position: absolute; z-index: 2; top: 72px; right: 12px; width: 230px; max-height: calc(100% - 250px); box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #557560; border-radius: 9px; background: #081510de; color: #e1ebde; }
.solo-quest-tracker-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; color: #f2cf59; background: #1b3425; border: 0; border-bottom: 1px solid #3c5947; cursor: pointer; font: inherit; font-weight: bold; flex-shrink: 0; }
.solo-quest-tracker-heading small { font-size: 10px; color: #a4b9a6; font-weight: normal; }
.solo-quest-summary { overflow-y: auto; min-height: 0; padding: 8px 12px; touch-action: pan-y; }
.solo-quest-summary-row { margin-bottom: 9px; }
.solo-quest-summary-row:last-child { margin-bottom: 0; }
.solo-quest-summary-row > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.solo-quest-summary-row b { white-space: nowrap; color: #f2cf59; }
.solo-quest-summary-row small { display: block; margin-top: 3px; color: #a4b9a6; font-size: 10px; line-height: 1.4; }
.solo-quest-summary-row progress { display: block; width: 100%; height: 4px; margin-top: 5px; accent-color: #f2cf59; }
.solo-quest-summary-row.ready > div { color: #f2cf59; }
.solo-quest-summary-complete { margin: 3px 0; font-size: 12px; color: #f2cf59; }
@media (pointer: coarse) and (orientation: landscape) {
    .solo-quest-tracker { top: calc(62px + env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 192px; max-height: calc(100dvh - 240px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
    .solo-quest-tracker-heading { padding: 5px 8px; min-height: 32px; font-size: 12px; }
    .solo-quest-summary { padding: 6px 8px; }
    .solo-quest-summary-row { margin-bottom: 6px; }
    .solo-quest-summary-row > div { font-size: 10px; }
    .solo-quest-summary-row small { display: none; }
    .solo-quest-summary-row progress { margin-top: 3px; height: 3px; }
}
.solo-unit-xp small { display: block; color: #f2cf59; font-size: 10px; }
.solo-unit-xp progress { display: block; width: 100%; height: 6px; margin-top: 2px; accent-color: #f2cf59; }
.solo-bottom-menu button { position: relative; }
.solo-bottom-menu kbd { position: absolute; bottom: 1px; right: 3px; font-size: 10px; color: #f2cf59; }
.mobile-orientation-gate, .solo-mobile-stick { display: none; }
.mobile-orientation-gate button { min-height: 48px; padding: 12px 24px; border: 1px solid #f2cf59; border-radius: 8px; background: #1b3425; color: #f2cf59; font: inherit; cursor: pointer; }
.app-install { width: min(360px, calc(100% - 32px)); margin: 0 auto 12px; text-align: center; }
.app-install button { min-height: 44px; padding: 10px 20px; background: #1b3425; color: #f2cf59; border: 1px solid #557560; border-radius: 8px; cursor: pointer; font: inherit; }
.app-install p { font-size: 13px; color: #a4b9a6; line-height: 1.5; }
.app-install [hidden] { display: none !important; }
.app-install-help { position: fixed; z-index: 100000; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(340px, calc(100% - 32px)); box-sizing: border-box; padding: 16px 38px 16px 16px; border: 1px solid #557560; border-radius: 10px; background: #081510; color: #e1ebde; box-shadow: 0 8px 30px #0009; }
.app-install-help[hidden], [data-install-app][hidden] { display: none !important; }
.app-install-help p { margin: 0; font-size: 14px; line-height: 1.5; }
.app-install-help button { position: absolute; top: 2px; right: 2px; width: 36px; height: 36px; color: #f2cf59; background: transparent; border: 0; font-size: 24px; }
@media (pointer: coarse) and (orientation: landscape) {
    .solo-rpg .solo-bottom-menu { gap: 3px; }
    .solo-rpg .solo-bottom-menu button { width: 40px; min-width: 40px; }
}
@media (pointer: coarse) and (orientation: portrait) {
    .mobile-orientation-gate { display: flex; position: fixed; inset: 0; z-index: 2147483647; background: #081510; color: #e1ebde; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; touch-action: none; }
    .mobile-orientation-gate > span { font-size: 64px; color: #f2cf59; }
    .mobile-orientation-gate strong { font-size: 24px; }
    body > :not(.mobile-orientation-gate) { visibility: hidden !important; pointer-events: none !important; }
}
@media (pointer: coarse) and (orientation: landscape) {
    .solo-rpg { height: 100dvh; touch-action: none; }
    .solo-rpg canvas { touch-action: none; }
    .solo-rpg header { top: max(8px, env(safe-area-inset-top)); right: 8px; }
    .solo-rpg header > div { display: none; }
    .solo-rpg header button { min-height: 44px; padding: 8px; font-size: 11px; }
    .solo-unit-frames { top: max(8px, env(safe-area-inset-top)); left: 8px; width: calc(100% - 140px); max-width: none; flex-direction: column; gap: 5px; }
    .solo-unit-frame { width: 100%; padding: 6px; box-sizing: border-box; }
    .solo-unit-frame > img, .solo-target-portrait { display: none; }
    .solo-unit-frame > div { width: 100%; }
    .solo-target-frame button { min-height: 32px; }
    .solo-mobile-stick { display: block; position: absolute; z-index: 3; left: 16px; bottom: calc(85px + env(safe-area-inset-bottom)); width: 108px; height: 108px; border: 2px solid #8ba98c88; border-radius: 50%; background: #08151099; touch-action: none; user-select: none; }
    .solo-stick-knob { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; border: 2px solid #f2cf59; background: #557560cc; pointer-events: none; }
    .solo-skill-bar { left: auto; right: 8px; bottom: calc(90px + env(safe-area-inset-bottom)); transform: none; width: min(210px, calc(100% - 142px)); padding: 6px; }
    .solo-skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .solo-rpg .solo-skills button { width: 100%; height: 48px; min-width: 44px; padding: 6px; touch-action: none; }
    .solo-skills img { width: 32px; height: 32px; }
    .solo-skills kbd, .solo-bottom-menu kbd { display: none; }
    .solo-skill-bar p { font-size: 10px; }
    .solo-bottom-menu { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); justify-content: center; gap: 6px; }
    .solo-bottom-menu button { width: 44px; height: 44px; min-width: 44px; }
    .solo-skill-list { top: calc(154px + env(safe-area-inset-top)); bottom: calc(250px + env(safe-area-inset-bottom)); right: 8px; left: 8px; width: auto; padding: 10px; }
    .solo-skill-cards { grid-template-columns: repeat(auto-fill, 52px); gap: 8px; }
    .solo-skill-card { width: 52px; height: 52px; }
    .solo-skill-list-heading { margin-bottom: 8px; }
    .solo-skill-list-heading button { min-width: 44px; min-height: 44px; }
    .solo-skill-card:focus .solo-skill-tooltip { display: block; }
    .solo-skill-list-dragging .solo-skill-tooltip { display: none; }
    .solo-rpg footer { display: none; }
}
@media (pointer: coarse) and (orientation: landscape) {
    .solo-rpg { touch-action: auto; }
    .solo-unit-frames { width: min(340px, calc(100% - 160px)); flex-direction: row; }
    .solo-unit-frame { width: 50%; }
    .solo-mobile-stick { left: max(16px, env(safe-area-inset-left)); bottom: calc(30px + env(safe-area-inset-bottom)); }
    .solo-skill-bar { right: max(12px, env(safe-area-inset-right)); bottom: calc(26px + env(safe-area-inset-bottom)); width: 192px; }
    .solo-rpg .solo-bottom-menu { left: 140px; right: 218px; bottom: calc(8px + env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 3px; }
    .solo-skill-list { top: calc(66px + env(safe-area-inset-top)); bottom: calc(108px + env(safe-area-inset-bottom)); left: 140px; right: 218px; }
    .solo-skill-list h2 { font-size: 16px; }
    .solo-skill-list-heading small { display: none; }
}

.solo-rpg .solo-skill-list { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 120px); padding: 16px; touch-action: pan-y; }
.solo-rpg .solo-skill-list-heading { flex-shrink: 0; }
.solo-rpg .solo-skill-list-heading button { min-width: 44px; min-height: 44px; }
.solo-quest-track { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: #e1ebde; cursor: pointer; }
.solo-quest-track input { width: 18px; height: 18px; accent-color: #f2cf59; }
.solo-talent-rule { margin: 0 0 10px; font-size: 12px; color: #a4b9a6; flex-shrink: 0; }
.solo-talent-path-headings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; color: #f2cf59; font-size: 13px; padding-bottom: 10px; flex-shrink: 0; }
.solo-talent-tiers { min-height: 0; overflow-y: auto; padding: 2px; touch-action: pan-y; }
.solo-talent-tier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; position: relative; padding: 0 0 16px; }
.solo-talent-level { grid-column: 1 / -1; text-align: center; color: #a4b9a6; font-size: 11px; }
.solo-talent-node { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #557560; border-radius: 8px; background: #15271f; color: #e1ebde; text-align: left; font: inherit; cursor: pointer; min-height: 100px; }
.solo-talent-node::before { content: ''; position: absolute; width: 2px; height: 34px; top: -35px; left: 50%; background: #557560; pointer-events: none; }
.solo-talent-tier:first-child .solo-talent-node::before { display: none; }
.solo-talent-node strong { color: #f2cf59; font-size: 13px; }
.solo-talent-node span { font-size: 11px; line-height: 1.5; }
.solo-talent-node small { margin-top: auto; font-size: 10px; color: #a4b9a6; }
.solo-talent-node.available { border-color: #f2cf59; }
.solo-talent-node.selected { border: 2px solid #f2cf59; background: #35432b; }
.solo-talent-node:disabled { opacity: .55; cursor: default; }
.solo-talent-node:focus-visible { outline: 2px solid #8edff0; outline-offset: 2px; }
.solo-talent-feedback { font-size: 12px; min-height: 16px; margin: 6px 0 0; color: #f2cf59; flex-shrink: 0; }
.solo-build-reset { align-self: flex-end; flex-shrink: 0; min-height: 30px; padding: 5px 12px; margin-top: 4px; border: 1px solid #a48e54; border-radius: 4px; background: #3b3726; color: #ffdf7e; font-size: 11px; cursor: pointer; }
.solo-build-reset:disabled { opacity: .45; cursor: default; }
.solo-skill-tooltip:not([hidden]) { display: block; }
.solo-skill-tooltip[hidden] { display: none !important; }
.solo-skill-tooltip h3 { margin: 0 0 3px; font-size: 15px; color: #f2cf59; }
.solo-skill-tooltip p { margin: 10px 0; font-size: 12px; line-height: 1.5; color: #c2d2c4; }
.solo-skill-tooltip dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 12px; }
.solo-skill-tooltip dt { color: #a4b9a6; }
.solo-skill-tooltip dd { margin: 0; text-align: right; color: #f2df9c; }
.solo-skill-tooltip-heading { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.solo-skill-tooltip-heading img { width:30px; height:30px; object-fit:contain; flex-shrink:0; border:1px solid #77998a; border-radius:3px; }
.solo-skill-tooltip .solo-skill-tooltip-heading h3 { flex:1; min-width:0; margin:0; }
.solo-skill-tooltip-cooldown { flex-shrink:0; color:#f2df9c; font-size:12px; white-space:nowrap; }
.solo-skill-tooltip-heading + small { color:#a4b9a6; font-size:11px; }
.solo-rpg .solo-tracker-compact .solo-tracker-tabs button { min-height:20px; font-size:9px; padding:2px 6px; }
.solo-rpg .solo-tracker-compact .solo-quest-summary { padding:4px 6px; }
.solo-rpg .solo-tracker-compact .solo-quest-summary-row { margin-bottom:4px; }
.solo-rpg .solo-tracker-compact .solo-quest-summary-row:nth-child(n+3), .solo-rpg .solo-tracker-compact .solo-quest-summary-row small { display:none; }
.solo-rpg .solo-tracker-compact .solo-quest-summary-row > div { font-size:9px; gap:4px; }
.solo-rpg .solo-tracker-compact .solo-quest-summary-row > div > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.solo-rpg .solo-tracker-compact .solo-quest-summary-row progress { height:3px; margin-top:3px; }
.solo-rpg .solo-tracker-compact .solo-party-frames { padding:3px; gap:3px; }
.solo-rpg .solo-tracker-compact .solo-party-frames button { min-height:24px; padding:3px 4px; grid-template-columns:18px minmax(0,1fr); gap:4px; }
.solo-rpg .solo-tracker-compact .solo-party-member-info { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1px 4px; }
.solo-rpg .solo-tracker-compact .solo-party-class-icon { width:18px; height:18px; }
.solo-rpg .solo-tracker-compact .solo-party-frames strong { font-size:9px; }
.solo-rpg .solo-tracker-compact .solo-party-frames span { font-size:8px; }
.solo-rpg .solo-tracker-compact .solo-party-frames progress { height:3px; grid-column:1 / -1; }
.solo-rpg .solo-tracker-compact .solo-party-empty { font-size:9px; margin:5px; }
.solo-rpg .solo-tracker-compact .solo-tracker-open { min-height:22px; font-size:9px; }
.solo-rpg .solo-party-invites { width:min(240px,calc(100% - 16px)); gap:5px; }
.solo-rpg .solo-party-invites section { padding:8px; }
.solo-rpg .solo-party-invites strong { font-size:13px; }
.solo-rpg .solo-party-invites p { font-size:10px; margin:3px 0 6px; }
.solo-rpg .solo-party-invites button { min-height:32px; padding:4px 12px; font-size:11px; }
.solo-loot-roll { position:absolute; z-index:11; bottom:110px; left:50%; transform:translateX(-50%); display:grid; grid-template-columns:32px minmax(0,1fr); gap:5px 7px; box-sizing:border-box; width:min(260px,calc(100% - 16px)); padding:8px; color:#d9e7df; background:#10282ff5; border:1px solid var(--item-rarity,#91a58b); border-radius:5px; }
.solo-loot-roll[hidden] { display:none; }
.solo-loot-roll > img { width:32px; height:32px; object-fit:contain; }
.solo-loot-roll strong { display:block; font-size:12px; overflow-wrap:anywhere; }
.solo-loot-roll small { display:block; font-size:10px; line-height:1.3; }
.solo-roll-actions, .solo-roll-votes { grid-column:1 / -1; }
.solo-roll-actions { display:flex; gap:5px; }
.solo-roll-actions button { flex:1; min-height:30px; border:1px solid #719c87; border-radius:3px; background:#285c46; color:#fff; cursor:pointer; font-size:11px; }
.solo-roll-actions button:last-child { background:#49353b; }
.solo-roll-actions button:disabled { opacity:.55; cursor:default; }
@media (max-width:680px) and (pointer:coarse) {
 .solo-rpg .solo-party-invites { width:200px; top:20%; }
 .solo-rpg .solo-party-invites section { padding:6px; }
 .solo-rpg .solo-party-invites strong { font-size:12px; }
 .solo-rpg .solo-party-invites button { min-height:28px; padding:3px 10px; }
 .solo-loot-roll { width:210px; padding:6px; bottom:64px; grid-template-columns:26px minmax(0,1fr); gap:4px 6px; }
 .solo-loot-roll > img { width:26px; height:26px; }
 .solo-loot-roll strong { font-size:11px; }
 .solo-loot-roll small { font-size:9px; }
 .solo-roll-actions button { min-height:28px; }
}
@media (pointer: coarse) {
    .solo-rpg .solo-skill-list { width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 10px; }
    .solo-rpg .solo-skill-list-heading { margin-bottom: 6px; }
    .solo-rpg .solo-skill-list-heading small { display: block; font-size: 10px; }
    .solo-rpg .solo-skill-list h2 { font-size: 16px; }
    .solo-talent-node { padding: 8px; }
    .solo-talent-node strong { font-size: 12px; }
    .solo-talent-path-headings { gap: 8px; padding-bottom: 6px; }
    .solo-talent-tier { gap: 6px 8px; }
}
/* RPG visual refresh: forest glass, warm gold and compact combat frames. */
.solo-rpg { --solo-gold: #f7c74d; color: #edf5ed; }
.solo-rpg header { top: 12px; right: 220px; background: #102127db; border: 1px solid #52726a; box-shadow: 0 4px 18px #0005; }
.solo-rpg header strong { color: #f7c74d; font-size: 13px; }
.solo-rpg button { font-weight: 800; transition: border-color .15s, background .15s, box-shadow .15s; }
.solo-rpg button:hover:not(:disabled) { border-color: #f7c74d; box-shadow: 0 0 12px #f7c74d22; }
.solo-unit-frame { background: linear-gradient(145deg, #182e32f2, #0e1d22ed); border: 2px solid #496766; border-radius: 8px; box-shadow: 0 5px 16px #0005, inset 0 1px #bad7cc17; }
.solo-unit-frame strong { color: #f7c74d; font-size: 14px; font-weight: 900; }
.solo-unit-frame > img { background: #203c39; border: 1px solid #668a77; border-radius: 6px; }
.solo-unit-health { border-color: #1b4734; height: 18px; border-radius: 2px; }
.solo-unit-health i { background: linear-gradient(180deg, #59e44a, #2ca727); box-shadow: inset 0 2px #bdff822f; }
.solo-target-frame .solo-unit-health i { background: linear-gradient(180deg, #ff7481, #cf354d); }
.solo-unit-health span { font-weight: 900; text-shadow: 0 1px 2px #000; }
.solo-unit-mana { background: linear-gradient(90deg, #2068bd, #153651); padding: 2px 5px; color: #d6efff; border-radius: 2px; }
.solo-status-list { display: flex; gap: 4px; flex-wrap: wrap; }
.solo-status-list:empty { display: none; }
.solo-status-icon { display: inline-grid; place-items: center; position: relative; width: 24px; height: 24px; margin-top: 4px; background: #142d32; border: 1px solid #8bdcc2; border-radius: 4px; color: #baf5dc; font-size: 17px; font-weight: 900; }
.solo-status-icon.debuff { color: #ffa8b0; border-color: #f37485; background: #3c1d2b; }
.solo-status-icon small { position: absolute; right: 1px; bottom: -2px; color: #fff; font-size: 9px; font-weight: 900; text-shadow: 0 1px 2px #000; }
.solo-skill-bar { background: linear-gradient(180deg, #1d3438ee, #0d1a22f5); border: 2px solid #4f706c; border-radius: 8px; box-shadow: 0 8px 26px #0006; }
.solo-rpg .solo-skills button { border: 2px solid #506c70; border-radius: 4px; background: radial-gradient(ellipse at top, #263a47, #0c141e); box-shadow: inset 0 0 0 2px #0a101c88; }
.solo-skills kbd { color: #8dadaf; font-size: 11px; font-weight: 900; }
.solo-bottom-menu { background: #12262dec; border: 2px solid #4b6968; border-radius: 7px; box-shadow: 0 5px 20px #0006; }
.solo-rpg .solo-bottom-menu button { background: #101e29; border-color: #3d565e; }
.solo-rpg .solo-bottom-menu button.active { background: #504524; border-color: #f7c74d; }
.solo-rpg .solo-skill-list { background: linear-gradient(145deg, #193237f7, #0e1b26fc); border: 2px solid #6e8d80; border-radius: 12px; box-shadow: 0 20px 70px #000b, inset 0 1px #d3eee522; }
.solo-skill-list-heading { padding-bottom: 12px; border-bottom: 1px solid #496866; }
.solo-rpg .solo-skill-list h2 { font-weight: 900; color: #f7c74d; }
.solo-skill-card { background: radial-gradient(ellipse at top, #2b4445, #101e2c); border: 2px solid #56716e; border-radius: 6px; }
.solo-skill-tooltip { background: #11242afc; border: 2px solid #77998a; }
.solo-talent-node { background: linear-gradient(135deg, #20393f, #142530); border-color: #4f706c; }
.solo-talent-node.selected { background: linear-gradient(135deg, #49492b, #263b34); box-shadow: 0 0 14px #f7c74d22; }
.solo-quest-card { background: #172c34; border-color: #476867; }
.solo-quest-tracker { top: 238px; right: 12px; width: 200px; max-height: calc(100% - 340px); background: #11262bdc; border-color: #52746a; box-shadow: 0 5px 18px #0004; }
.solo-quest-tracker-heading { background: #1b353a; }
.solo-minimap { position: absolute; z-index: 2; top: 12px; right: 12px; width: 200px; padding: 7px; border: 2px solid #6b8778; border-radius: 8px; background: #10242beb; box-shadow: 0 5px 20px #0006; pointer-events: none; }
.solo-minimap > div { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.solo-minimap strong { font-size: 12px; color: #f7c74d; font-weight: 900; }
.solo-map-coordinates { color: #9db8af; font-size: 10px; }
.solo-rpg .solo-minimap canvas { width: 100%; height: auto; aspect-ratio: 3 / 2; border: 1px solid #728e7a; border-radius: 3px; }
.solo-minimap > small { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 9px; color: #c6d7d0; }
.solo-minimap i { display: block; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.solo-minimap i:nth-of-type(2) { background: #ff5d70; margin-left: 7px; }
.solo-rpg :focus-visible { outline: 2px solid #f7c74d; outline-offset: 3px; }
.topbar-main-nav button { border-radius: 6px; }
.topbar-main-nav button:hover, .topbar-main-nav button[aria-expanded="true"] { background: #283e39; border-color: #f7c74d; }
.topbar-hunt-identity #topbar-player-name { color: #f7c74d; font-weight: 900; }
.modal-box, .game-feature-panel, .city-hero-picker, .login-panel { background: linear-gradient(145deg, #1b3439f7, #0f202afb); border-color: #58756f; box-shadow: 0 16px 60px #0009; }
.login-submit { background: #f7c74d; color: #18232b; font-weight: 900; border-color: #ffe199; }
.login-submit:hover { background: #ffda72; }
.house-hero-copy strong { color: #f7c74d; }
.city-role-hero-card { border-radius: 8px; }
.city-role-hero-card.selected { border-color: #f7c74d; box-shadow: 0 0 12px #f7c74d22; }
@media (max-width: 1000px) { .solo-rpg header { right: 220px; } }
@media (pointer: coarse) {
    .solo-rpg header { right: 132px; top: max(8px, env(safe-area-inset-top)); padding: 0; }
    .solo-rpg header button { font-size: 10px; padding: 6px 9px; }
    .solo-unit-frame { padding: 5px; }
    .solo-unit-frames { width: min(340px, calc(100% - 260px)); }
    .solo-unit-frame strong { font-size: 11px; }
    .solo-status-icon { width: 19px; height: 19px; font-size: 13px; margin-top: 2px; }
    .solo-status-icon small { font-size: 8px; }
    .solo-minimap { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); width: 116px; padding: 4px; }
    .solo-minimap strong { font-size: 10px; }
    .solo-minimap > small { font-size: 8px; gap: 3px; }
    .solo-minimap i:nth-of-type(2) { margin-left: 2px; }
    .solo-quest-tracker { top: calc(126px + env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); width: 172px; max-height: max(30px, calc(100dvh - 316px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); }
    .solo-quest-tracker-heading { min-height: 30px; font-size: 11px; }
    .solo-rpg .solo-skill-bar { padding: 5px; }
    .solo-skill-bar p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (pointer: coarse) and (max-height: 350px) {
    .solo-minimap { width: 98px; }
    .solo-minimap > small { display: none; }
    .solo-quest-tracker { top: 102px; max-height: 30px; }
}
.solo-rpg .solo-attack-toggle { display: block; width: 100%; min-height: 28px; margin-top: 4px; padding: 3px 7px; border: 1px solid #7e9980; background: #294737; color: #e7f4d9; font-size: 10px; }
.solo-rpg .solo-attack-toggle[aria-pressed="true"] { border-color: #f7c74d; background: #57442a; color: #ffde89; }
.solo-skills button.solo-cooling-down::after { content: ''; position: absolute; inset: 2px; border-radius: 2px; background: conic-gradient(#050d1bd9 var(--solo-cooldown-angle), transparent 0deg); pointer-events: none; }
.solo-skills kbd, .solo-skill-count { z-index: 1; }
.solo-skills img { object-fit: contain; border-radius: 4px; }
.solo-rpg .solo-skill-card { padding: 2px; overflow: hidden; }
.solo-skill-card > img { width: 100%; height: 100%; border-radius: 4px; }
@media (pointer: coarse) {
    .solo-rpg .solo-attack-toggle { min-height: 32px; font-size: 10px; }
    .solo-rpg .solo-skills button { padding: 2px; }
    .solo-skills img { width: 100%; height: 100%; }
}
/* Character sheet: equipment flanks the hero, with a separate status panel. */
.solo-character-content { min-height: 0; overflow-y: auto; display: grid; gap: 12px; padding: 0 4px 2px 0; touch-action: pan-y; }
.solo-character-stage { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; gap: 10px; }
.solo-character-equipment { display: grid; grid-template-rows: repeat(4, minmax(52px, 1fr)); gap: 6px; }
.solo-character-equipment article { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-width: 0; padding: 5px; border: 1px solid #49686c; border-radius: 3px; background: linear-gradient(145deg, #15252b, #0b171d); box-shadow: inset 0 0 0 3px #101e24, inset 0 0 0 4px #2d444955; text-align: center; }
.solo-character-equipment small { color: #b1c7c5; font-size: 10px; }
.solo-character-equipment strong { color: #658182; font-size: 8px; font-weight: 700; overflow-wrap: anywhere; }
.solo-character-identity { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; margin: 0; padding: 10px; border: 1px solid #49686c; border-radius: 5px; background: radial-gradient(ellipse at 50% 60%, #38564a77, transparent 65%), linear-gradient(145deg, #17282d, #101b21); text-align: center; overflow: hidden; }
.solo-character-identity figcaption { z-index: 1; flex-shrink: 0; }
.solo-character-identity h3 { font-size: 20px; color: #f7c74d; font-weight: 900; }
.solo-character-identity small { display: block; color: #9fc4c4; font-size: 11px; }
.solo-character-portrait { position: relative; width: 100%; height: 164px; display: grid; place-items: center; }
.solo-character-portrait::before { content: ''; position: absolute; bottom: 15px; width: 126px; height: 24px; border: 1px solid #89bda85c; border-radius: 50%; background: radial-gradient(ellipse, #0006, #5fa58d22); box-shadow: 0 0 28px #60aa8822; }
.solo-character-portrait img { position: relative; display: block; width: 240px; height: 184px; max-width: none; object-fit: contain; margin-top: -8px; filter: drop-shadow(0 5px 5px #0006); }
.solo-character-identity > span { position: relative; color: #95b7a8; font-size: 10px; }
.solo-character-status-panel { padding: 10px 12px; border: 1px solid #49686c; border-radius: 5px; background: linear-gradient(145deg, #19282df5, #111d22fa); }
.solo-character-content .solo-character-status-panel > h3 { color: #eaf3ee; font-size: 13px; margin: 0 0 8px; font-weight: 900; padding-bottom: 6px; border-bottom: 1px solid #40585c; }
.solo-character-resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.solo-character-resources > div { min-width: 0; }
.solo-character-resources span { color: #93aeae; font-size: 9px; text-transform: uppercase; }
.solo-character-resources b { display: block; font-size: 12px; margin: 3px 0; color: #edf4e7; }
.solo-character-resources progress { display: block; width: 100%; height: 4px; accent-color: #4dd44a; }
.solo-character-resources [data-character-progress="mana"] { accent-color: #4fa9f7; }
.solo-character-resources [data-character-progress="xp"] { accent-color: #f7c74d; }
.solo-character-attributes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.solo-character-attributes > div { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 5px 7px; background: #21383b; border-radius: 3px; }
.solo-character-attributes dt { color: #a8c0b8; font-size: 9px; }
.solo-character-attributes dd { color: #e7d395; font-size: 12px; font-weight: 900; margin: 0; }
.solo-character-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.solo-character-stats > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #365053; }
.solo-character-stats dt { font-size: 10px; color: #a8bfbd; }
.solo-character-stats dd { margin: 0; font-size: 12px; font-weight: 900; color: #edf3ef; white-space: nowrap; }
.solo-character-effects { margin-top: 6px; }
.solo-character-effects > small { display: block; font-size: 10px; color: #93b3a8; line-height: 1.5; margin-top: 4px; }
@media (pointer: coarse), (max-width: 600px) {
    .solo-character-stage { grid-template-columns: 58px minmax(0, 1fr) 58px; gap: 8px; }
    .solo-character-equipment { grid-template-rows: repeat(4, minmax(44px, 1fr)); gap: 5px; }
    .solo-character-equipment small { font-size: 9px; }
    .solo-character-identity { padding: 6px; }
    .solo-character-identity h3 { font-size: 18px; }
    .solo-character-portrait { height: 138px; }
    .solo-character-portrait img { width: 220px; height: 169px; }
    .solo-character-status-panel { padding: 8px; }
    .solo-character-stats dt { font-size: 10px; }
    .solo-character-stats dd { font-size: 11px; }
}
@media (max-width: 420px) {
    .solo-character-stage { grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 6px; }
    .solo-character-attributes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .solo-character-stats { grid-template-columns: 1fr; }
    .solo-character-resources { gap: 6px; }
    .solo-character-resources b { font-size: 10px; }
    .solo-character-identity small { font-size: 9px; }
}
.solo-character-content { scrollbar-width: thin; scrollbar-color: #567971 #102128; }
.solo-character-content::-webkit-scrollbar { width: 6px; }
.solo-character-content::-webkit-scrollbar-track { background: #102128; border-radius: 3px; }
.solo-character-content::-webkit-scrollbar-thumb { background: #567971; border-radius: 3px; }
.solo-character-resources progress::-webkit-progress-bar { background: #304a4c; border-radius: 2px; }
.solo-character-resources progress::-webkit-progress-value { background: #4dd44a; border-radius: 2px; }
.solo-character-resources [data-character-progress="mana"]::-webkit-progress-value { background: #4fa9f7; }
.solo-character-resources [data-character-progress="xp"]::-webkit-progress-value { background: #f7c74d; }
.solo-character-resources progress::-moz-progress-bar { background: #4dd44a; }
.solo-character-resources [data-character-progress="mana"]::-moz-progress-bar { background: #4fa9f7; }
.solo-character-resources [data-character-progress="xp"]::-moz-progress-bar { background: #f7c74d; }
.solo-bag-hint, .solo-room-content > p { color: #b1c9be; font-size: 12px; line-height: 1.6; margin: 0 0 12px; }
.solo-bag-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; min-height: 0; overflow-y: auto; touch-action: pan-y; }
.solo-bag-slot { position: relative; min-height: 82px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 6px; border: 1px solid #587971; border-radius: 5px; background: radial-gradient(ellipse at top, #29413e, #101f2b); }
.solo-bag-slot.empty { opacity: .55; border-color: #3b535c; background: #101e29; }
.solo-bag-slot img { width: 34px; height: 34px; object-fit: contain; }
.solo-bag-slot small { text-align: center; font-size: 9px; line-height: 1.3; color: #d8e5d9; }
.solo-bag-slot b { position: absolute; right: 5px; top: 3px; color: #f7c74d; font-size: 11px; }
.solo-bag-slot:focus-visible { outline: 2px solid #f7c74d; outline-offset: -2px; }
.solo-room-content { min-height: 0; overflow-y: auto; touch-action: pan-y; }
.solo-room-content > label { display: block; font-size: 12px; color: #c8dbce; margin-bottom: 6px; }
.solo-room-content > input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #63887a; border-radius: 6px; background: #0f2129; color: #ffe3a0; font-size: 20px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.solo-room-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.solo-room-actions button { min-height: 44px; }
.solo-room-actions button:disabled { opacity: .45; cursor: default; }
.solo-room-actions button[hidden] { display: none; }
.solo-room-content > p.solo-room-status { color: #f7c74d; margin-top: 12px; }
.solo-room-players { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.solo-room-players li { padding: 8px 10px; background: #20383a; border-radius: 5px; font-size: 12px; color: #d8e8dd; }
.solo-room-content > small { display: block; font-size: 11px; line-height: 1.6; color: #94b5a7; }
.solo-room-count:not(:empty) { position: absolute; top: -3px; right: -3px; min-width: 16px; padding: 1px 3px; border-radius: 8px; background: #7fd5b1; color: #10232b; font-size: 10px; font-weight: 900; }
.solo-rpg .solo-bottom-menu button { position: relative; }
@media (pointer: coarse), (max-width: 600px) {
    .solo-bag-slot { min-height: 68px; }
    .solo-bag-slot img { width: 28px; height: 28px; }
    .solo-bag-hint, .solo-room-content > p { font-size: 11px; margin-bottom: 8px; }
}
@media (max-width: 420px) { .solo-bag-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.solo-bag-slots, .solo-room-content { scrollbar-width: thin; scrollbar-color: #567971 #102128; }

.solo-entry-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: #081419eb; color: #e1eee5; font-family: var(--font-body, 'Nunito', sans-serif); }
.solo-entry-card { width: min(740px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; padding: 18px; border: 2px solid #688b7b; border-radius: 14px; background: linear-gradient(145deg, #263f42, #102128); box-shadow: 0 18px 60px #0009; }
.solo-entry-content, .solo-social-content { overflow-y: auto; min-height: 0; touch-action: pan-y; scrollbar-width: thin; }
.solo-entry-content h3, .solo-social-content h3 { color: #f7c74d; font-size: 15px; margin: 14px 0 8px; }
.solo-entry-heroes, .solo-entry-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.solo-entry-overlay button, .solo-social-content button, .solo-chat-form select, .solo-chat-form input { min-height: 44px; padding: 8px 12px; border: 1px solid #63887a; border-radius: 6px; font: inherit; color: #e2eee6; background: #183136; }
.solo-entry-overlay button[aria-pressed="true"] { border-color: #f7c74d; background: #415146; box-shadow: inset 0 0 0 1px #f7c74d; }
.solo-entry-hero { display: flex; align-items: center; text-align: left; gap: 6px; }
.solo-entry-hero img { width: 70px; height: 58px; object-fit: contain; }
.solo-entry-overlay button:disabled, .solo-social-content button:disabled { opacity: .5; cursor: default; }
.solo-entry-overlay label { display: grid; gap: 6px; margin: 12px 0; }
.solo-entry-overlay input { min-height: 44px; padding: 8px 12px; color: #ffe3a0; border: 1px solid #63887a; border-radius: 6px; font: inherit; background: #102128; text-transform: uppercase; }
.solo-entry-overlay [role="status"] { font-size: 12px; color: #f7c74d; }
.solo-social-panel { width: min(680px, calc(100% - 24px)); }
.solo-social-content ul { list-style: none; margin: 0; padding: 0; }
.solo-social-content li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px; margin-bottom: 6px; border-radius: 6px; background: #20383a; font-size: 12px; overflow-wrap: anywhere; }
.solo-social-content li > span { flex: 1; min-width: 120px; }
.solo-social-content h3 small, .solo-social-content > small { font-size: 11px; color: #b1c9be; line-height: 1.6; }
.solo-social-status { font-size: 12px; color: #f7c74d; }
.solo-chat-messages { min-height: 100px; max-height: 190px; overflow-y: auto; padding: 8px; margin: 0 0 8px; background: #0e2028; border-radius: 6px; }
.solo-social-content .solo-chat-messages li { background: none; padding: 2px 0; margin: 0; }
.solo-chat-form { display: flex; gap: 6px; margin-bottom: 8px; }
.solo-chat-form input { min-width: 0; flex: 1; }
.solo-chat-form.solo-chat-readonly :is(input, button) { display: none; }
.solo-chat-event.damage { color: #ffb0a1; }
.solo-chat-event.heal { color: #89f5a4; }
.solo-chat-event.drop { color: #f7d471; }
.solo-chat-event.pickup { color: #a6d7ff; }
.solo-chat-messages li { overflow-wrap: anywhere; }
.solo-chat-preview { position: absolute; z-index: 3; left: 12px; bottom: 12px; width: min(320px, 40%); padding: 8px; background: #102128e8; border: 1px solid #406476; border-radius: 8px; font-size: 11px; color: #e1eee5; }
.solo-chat-toggle { width: 100%; text-align: left; background: none; border: 0; color: #a9d8ff; font: inherit; font-weight: 800; cursor: pointer; min-height: 28px; }
.solo-chat-preview-log { height: 80px; overflow-y: auto; touch-action: pan-y; }
.solo-chat-preview .solo-chat-form { margin: 6px 0 0; }
.solo-chat-preview :is(input, select, button[type="submit"]) { background: #152e37; border: 1px solid #406476; border-radius: 4px; color: #e1eee5; font: inherit; padding: 6px; }
.solo-chat-preview small:empty { display: none; }
.solo-chat-preview.collapsed .solo-chat-form, .solo-chat-preview.collapsed small { display: none; }
.solo-chat-preview.collapsed .solo-chat-preview-log { height: 28px; }
.solo-party-frames { position: absolute; z-index: 2; display: grid; gap: 5px; }
.solo-character-creation { padding: 10px; border: 1px solid #406476; border-radius: 8px; margin: 12px 0; background: #102128; }
.solo-character-creation summary { min-height: 32px; cursor: pointer; font-weight: 800; color: #f8d576; }
.solo-character-creation form { display: grid; gap: 10px; margin-top: 8px; }
.solo-character-creation label { display: grid; gap: 4px; }
.solo-character-creation :is(input, select, button) { width: 100%; min-height: 44px; padding: 8px; color: #e5f2ff; background: #19343e; border: 1px solid #477ba5; border-radius: 6px; font: inherit; }
.solo-character-creation button { cursor: pointer; background: #395b35; }
.solo-character-creation small { color: #a5beb6; }
.solo-character-creation [role="status"]:empty { display: none; }
.solo-server-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.solo-server-options button { min-height: 48px; background: #19343e; color: #e5f2ff; border: 1px solid #477ba5; border-radius: 6px; cursor: pointer; font: inherit; }
.solo-server-options button[aria-pressed="true"] { border-color: #f8d576; background: #394634; }
.solo-speech-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.solo-speech-bubble { position: absolute; transform: translate(-50%, -100%); width: max-content; max-width: min(220px, calc(100vw - 24px)); padding: 8px 12px; border-radius: 10px; border: 1px solid #648477; background: #f2f6eefa; box-shadow: 0 3px 10px #0005; color: #20362c; font: 800 12px Nunito, sans-serif; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; }
.solo-speech-bubble::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #f2f6ee; }
.solo-speech-bubble.party { border-color: #59a8ff; background: #e5f1fffa; }
.solo-speech-bubble.party::after { border-top-color: #e5f1ff; }
.solo-speech-bubble[hidden] { display: none; }

/* Compact player frame: the name shares HP; level shares mana. */
.solo-rpg .solo-unit-frames { width: max-content; align-items: flex-start; gap: 8px; }
.solo-rpg .solo-player-frame { width: 300px; flex: 0 1 300px; padding: 3px; gap: 5px; border-radius: 4px; }
.solo-rpg .solo-player-frame > img { display: block; width: 32px; height: 32px; align-self: center; border-radius: 3px; }
.solo-rpg .solo-player-frame > div { width: auto; flex: 1; min-width: 0; }
.solo-rpg .solo-player-frame .solo-unit-health { height: 23px; margin: 0; border: 0; border-radius: 1px 1px 0 0; }
.solo-rpg .solo-player-frame .solo-unit-health strong { position: absolute; left: 5px; top: 0; max-width: calc(100% - 94px); line-height: 23px; font-size: 13px; color: #fff; text-shadow: 0 1px 2px #0009; }
.solo-rpg .solo-player-frame .solo-unit-health span { text-align: right; padding-right: 4px; line-height: 23px; font-size: 11px; }
.solo-rpg .solo-player-frame .solo-unit-mana { position: relative; height: 13px; margin: 0; padding: 0; overflow: hidden; background: #102b49; border-radius: 0 0 1px 1px; }
.solo-player-frame .solo-unit-mana i { display: block; height: 100%; background: linear-gradient(180deg, #388ce0, #1e64b6); }
.solo-player-frame .solo-unit-mana :is(small, span) { position: absolute; top: 0; line-height: 13px; color: #e3f3ff; font-size: 9px; font-weight: 900; text-shadow: 0 1px #163c66; }
.solo-player-frame .solo-unit-mana small { left: 5px; }
.solo-player-frame .solo-unit-mana span { right: 4px; }
.solo-rpg .solo-target-frame { width: 300px; flex: 0 1 300px; cursor: pointer; }
.solo-target-frame:focus-visible { outline: 2px solid #f8d576; outline-offset: 2px; }
.solo-target-frame { position: relative; }
.solo-rpg .solo-target-buffs { position: absolute; top: calc(100% + 4px); left: 0; right: 78px; gap: 3px; }
.solo-rpg .solo-target-buffs .solo-status-icon { width: 18px; height: 18px; box-sizing: border-box; margin: 0; font-size: 12px; }
.solo-rpg .solo-target-buffs .solo-status-icon small { font-size: 7px; }
.solo-rpg .solo-inspect-target { position: absolute; top: calc(100% + 4px); right: 0; min-height: 24px; padding: 3px 5px; border: 1px solid #708b87; border-radius: 4px; background: #30474b; color: #edf4ef; font: inherit; font-size: 10px; cursor: pointer; }
.solo-inspect-target[hidden] { display: none; }
.solo-target-frame[hidden] { display: none !important; }
@media (pointer: coarse) {
    .solo-rpg .solo-unit-frames { flex-direction: row; max-width: calc(100% - 260px); }
}
@media (pointer: coarse) and (max-width: 700px) {
    .solo-rpg .solo-unit-frames { flex-direction: column; max-width: calc(100% - 160px); }
    .solo-rpg .solo-unit-frame { flex: none; max-width: 100%; }
}
.solo-party-frames[hidden] { display: none; }
.solo-party-frames button { display: grid; gap: 2px; text-align: left; min-height: 48px; padding: 5px 8px; color: #e5f2ff; background: #102735e8; border: 1px solid #477ba5; border-radius: 6px; cursor: pointer; font: inherit; }
.solo-party-frames button[aria-pressed="true"] { border-color: #ffd359; box-shadow: 0 0 0 1px #ffd359; }
.solo-party-frames strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.solo-party-frames span { font-size: 10px; }
.solo-party-frames progress { width: 100%; height: 5px; accent-color: #56a6f7; }
.solo-wave-status { position: absolute; z-index: 2; left: 50%; top: 12px; transform: translateX(-50%); display: grid; gap: 3px; padding: 8px 14px; text-align: center; background: #102128df; border: 1px solid #716333; border-radius: 8px; color: #f8d576; font-size: 12px; }
.solo-wave-status span, .solo-wave-status small { color: #d3dfda; font-size: 10px; }
.solo-wave-status button { min-height: 32px; border: 1px solid #ba9a4a; border-radius: 4px; background: #4f4221; color: #fff0bc; cursor: pointer; }
.solo-chat-preview p { margin: 3px 0; overflow-wrap: anywhere; }
.solo-minimap > small { flex-wrap: wrap; }
.solo-minimap i.map-player { background: #5ae58a; margin-left: 0; }
.solo-minimap i.map-party { background: #59a8ff; }
.solo-minimap i.map-monster { background: #ff5d70; }
.solo-rpg .solo-bottom-menu .solo-social-menu { font-size: 10px; overflow-wrap: anywhere; line-height: 1.1; }
@media (max-height: 500px), (max-width: 600px) {
    .solo-entry-overlay { padding: 8px; }
    .solo-entry-card { padding: 10px; max-height: calc(100dvh - 16px); }
    .solo-entry-content h3 { margin-top: 8px; }
    .solo-chat-preview { bottom: max(8px, env(safe-area-inset-bottom)); left: max(8px, env(safe-area-inset-left)); width: min(320px, calc(100% - 24px)); font-size: 10px; padding: 4px 6px; }
    .solo-chat-preview.collapsed { width: 124px; }
    .solo-chat-preview.collapsed .solo-chat-preview-log { height: 20px; }
    .solo-chat-toggle { min-height: 40px; }
    .solo-chat-preview :is(input, select, button[type="submit"]) { min-height: 40px; }
    .solo-rpg .solo-mobile-stick { bottom: calc(82px + env(safe-area-inset-bottom)); }
    .solo-wave-status { top: max(8px, env(safe-area-inset-top)); left: auto; right: 140px; width: 108px; transform: none; padding: 5px; font-size: 10px; }
    .solo-wave-status small { display: none; }
    .solo-party-frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .solo-party-frames button { padding: 4px; }
    .solo-social-content li > span { min-width: 80px; }
}

/* Compact skill slots and menu above the minimap. */
.solo-experience-bar { position: absolute; z-index: 5; bottom: env(safe-area-inset-bottom, 0px); left: 4px; right: 4px; height: 14px; box-sizing: border-box; overflow: hidden; border: 1px solid #74908b; border-radius: 2px; background: #102a2deb; color: white; font-size: 10px; font-weight: 800; line-height: 12px; pointer-events: none; }
.solo-experience-fill { height: 100%; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(5vw - 1px), #74442088 calc(5vw - 1px), #74442088 5vw), linear-gradient(#ffc96a, #e7892b); transition: width .15s linear; }
.solo-experience-bar span { position: absolute; top: 0; left: 3px; text-shadow: 0 1px 2px #000; }
.solo-experience-bar small { position: absolute; top: 0; right: 3px; font-size: inherit; text-shadow: 0 1px 2px #000; }
.solo-party-invites { position: absolute; z-index: 12; top: 25%; left: 50%; transform: translateX(-50%); width: min(300px, calc(100% - 24px)); max-height: 55%; overflow-y: auto; display: grid; gap: 8px; }
.solo-party-invites[hidden] { display: none; }
.solo-party-invites section { padding: 12px; background: #10282ff5; border: 1px solid #91a58b; border-radius: 7px; box-shadow: 0 4px 20px #0007; text-align: center; color: #eef5ec; }
.solo-party-invites strong { color: #ffd573; font-size: 16px; overflow-wrap: anywhere; }
.solo-party-invites p { margin: 4px 0 10px; font-size: 12px; }
.solo-party-invites button { min-height: 40px; padding: 6px 16px; margin: 0 3px; border: 1px solid #719c87; border-radius: 4px; background: #285c46; color: white; cursor: pointer; }
.solo-party-invites button:last-child { background: #49353b; }
.solo-rpg .solo-chat-preview { bottom: calc(20px + env(safe-area-inset-bottom)); }
.solo-rpg header { display: none; }
.solo-rpg .solo-skill-bar { bottom: 24px; width: max-content; padding: 4px; border-radius: 4px; }
.solo-rpg .solo-skills { display: flex; gap: 3px; margin: 0; }
.solo-rpg .solo-skills button { width: 44px; height: 44px; min-width: 44px; flex: 0 0 44px; padding: 2px; }
.solo-rpg .solo-skills img { width: 100%; height: 100%; border-radius: 2px; }
.solo-rpg .solo-skills kbd { font-size: 9px; top: 1px; right: 2px; left: auto; }
.solo-rpg .solo-skill-count { top: auto; bottom: 1px; font-size: 10px; }
.solo-rpg .solo-player-buffs { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; justify-content: center; align-content: flex-end; gap: 4px; }
.solo-rpg .solo-player-buffs .solo-status-icon { width: 26px; height: 26px; box-sizing: border-box; margin: 0; font-size: 17px; }
.solo-rpg .solo-player-buffs .solo-status-icon small { font-size: 9px; }
.solo-menu-dock { position: absolute; z-index: 5; top: 12px; right: 12px; }
.solo-rpg .solo-menu-dock .solo-bottom-menu { position: static; padding: 3px; gap: 3px; flex-wrap: nowrap; border-radius: 4px; }
.solo-rpg .solo-menu-dock .solo-bottom-menu button { width: 28px; height: 28px; min-width: 28px; padding: 3px; }
.solo-rpg .solo-menu-dock .solo-bottom-menu img { width: 20px; height: 20px; }
.solo-rpg .solo-menu-dock kbd { display: none; }
.solo-menu-gear { display: none; }
.solo-menu-preview { position: fixed; z-index: 11; display: flex; align-items: center; gap: 8px; width: max-content; max-width: 220px; min-height: 44px; box-sizing: border-box; padding: 6px 9px; background: #10252df5; color: #e5f2ff; border: 1px solid #72948a; border-radius: 5px; box-shadow: 0 4px 12px #0006; pointer-events: none; }
.solo-menu-preview[hidden] { display: none; }
.solo-menu-preview-icon { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; }
.solo-menu-preview-icon :is(img, svg) { width: 30px; height: 30px; object-fit: contain; }
.solo-menu-preview strong { display: block; font-size: 12px; line-height: 1.2; color: #f8d576; }
.solo-menu-preview small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.2; color: #a9c6bc; }
.solo-menu-preview small[hidden] { display: none; }
.solo-social-alert { position: absolute; top: -2px; right: -2px; color: #ffe18a; font-size: 10px; font-weight: 900; }
.solo-rpg .solo-minimap { top: 54px; }
.solo-rpg .solo-quest-tracker { top: 250px; }
@media (pointer: coarse) {
 .solo-rpg .solo-skill-bar { width: 168px; right: max(8px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); left: auto; transform: none; padding: 3px; }
 .solo-rpg .solo-skills { display: grid; grid-template-columns: repeat(3, 50px); gap: 3px; }
 .solo-rpg .solo-skills button { width: 50px; height: 50px; min-width: 50px; }
 .solo-rpg .solo-player-buffs { bottom: calc(100% + 6px); justify-content: flex-end; }
 .solo-menu-dock { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); }
 .solo-menu-gear { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 8px; background: #132c34; border: 2px solid #648477; border-radius: 6px; }
 .solo-menu-gear img { width: 24px; height: 24px; }
 .solo-menu-gear[aria-expanded="true"] { border-color: #f8d576; }
 .solo-rpg .solo-menu-dock:not(.expanded) .solo-bottom-menu { display: none; }
 .solo-rpg .solo-menu-dock .solo-bottom-menu { position: absolute; top: 50px; right: 0; left: auto; bottom: auto; width: max-content; display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; padding: 6px; }
 .solo-rpg .solo-menu-dock .solo-bottom-menu button { width: 44px; height: 44px; min-width: 44px; padding: 8px; }
 .solo-rpg .solo-menu-dock .solo-bottom-menu img { width: 24px; height: 24px; }
 .solo-rpg .solo-minimap { top: calc(60px + env(safe-area-inset-top)); }
 .solo-rpg .solo-quest-tracker { top: calc(198px + env(safe-area-inset-top)); max-height: 60px; }
}
@media (pointer: coarse) and (max-height: 350px) {
 .solo-rpg .solo-minimap { width: 86px; }
 .solo-rpg .solo-quest-tracker { top: calc(152px + env(safe-area-inset-top)); }
}
@media (pointer: coarse) {
 .solo-rpg .solo-quest-tracker { top: auto; right: calc(184px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); width: 160px; max-height: 60px; }
}

/* Inventory is an independent, movable window. */
.solo-rpg .solo-bag-panel { position: absolute; z-index: 6; display: flex; flex-direction: column; width: 260px; max-width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 6px; box-sizing: border-box; gap: 5px; background: #10252df2; border: 1px solid #608378; border-radius: 5px; box-shadow: 0 8px 24px #0007; color: #e1ebde; transform: none; }
.solo-rpg .solo-bag-panel[hidden] { display: none; }
.solo-bag-heading { display: flex; justify-content: space-between; align-items: center; cursor: grab; touch-action: none; user-select: none; flex-shrink: 0; }
.solo-bag-heading:active { cursor: grabbing; }
.solo-bag-heading h2 { font-size: 14px; color: #f7c74d; margin: 0; }
.solo-bag-heading button { width: 32px; height: 32px; padding: 0; font-size: 24px; color: #edf4ef; border: 0; border-radius: 3px; background: #19343e; cursor: pointer; }
.solo-bag-filter { min-width: 0; width: 100%; min-height: 32px; box-sizing: border-box; padding: 5px 8px; font: inherit; font-size: 12px; background: #254650; color: #edf4ef; border: 1px solid #789893; border-radius: 3px; flex-shrink: 0; }
.solo-rpg .solo-bag-panel .solo-bag-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.solo-rpg .solo-bag-panel .solo-bag-slot { min-height: 44px; height: 44px; box-sizing: border-box; padding: 3px; border: 2px solid #496766; border-radius: 2px; }
.solo-rpg .solo-bag-panel .solo-bag-slot[hidden] { display: none; }
.solo-rpg .solo-bag-panel .solo-bag-slot img { width: 30px; height: 30px; }
.solo-rpg .solo-bag-panel .solo-bag-slot small { display: none; }
.solo-rpg .solo-bag-panel .solo-bag-slot b { top: auto; bottom: 1px; right: 3px; font-size: 11px; color: white; text-shadow: 0 1px 2px #000; }
.solo-rpg .solo-bag-panel footer { position: static; padding: 4px 0 0; background: none; border-radius: 0; text-align: right; font-size: 10px; color: #b7d0c5; flex-shrink: 0; }
.solo-bag-empty { margin: 4px 0; font-size: 12px; }
.solo-bag-slot[role="button"] { cursor: pointer; }
.solo-rpg .solo-bag-panel .solo-bag-slot.selected { border-color: #f8d576; }
.solo-bag-item-details { display: grid; gap: 5px; padding: 6px; border: 1px solid #608378; border-radius: 4px; flex-shrink: 0; }
.solo-bag-item-details[hidden] { display: none; }
.solo-bag-item-details strong { font-size: 12px; color: #f8d576; }
.solo-bag-item-details small { font-size: 10px; color: #bfd9ce; }
.solo-item-hint { font-size: 10px; line-height: 1.4; color: #b9cfc5; }
.solo-item-hint[hidden] { display: none; }
.solo-rpg .solo-item-draggable { cursor: grab; touch-action: none; user-select: none; }
.solo-rpg .solo-item-draggable img { pointer-events: none; -webkit-user-drag: none; }
.solo-rpg .solo-item-drop-target { outline: 2px solid #ffdb76; outline-offset: -2px; background-color: #58684e; }
.solo-item-drag-preview { position: fixed; z-index: 100; width: 44px; height: 44px; object-fit: contain; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 3px 4px #000a); }
.solo-item-comparison { position: fixed; z-index: 101; box-sizing: border-box; width: max-content; max-width: min(300px, calc(100vw - 12px)); padding: 10px; border: 1px solid #83988e; border-radius: 5px; background: #10282ff5; color: #eef5ec; box-shadow: 0 5px 18px #0008; pointer-events: none; font-size: 12px; }
.solo-item-comparison[hidden] { display: none; }
.solo-item-comparison strong, .solo-item-comparison small { display: block; overflow-wrap: anywhere; }
.solo-item-comparison strong { color: #f8d576; }
.solo-item-comparison small { margin: 4px 0 8px; color: #c1d3c9; }
.solo-item-comparison p { margin: 4px 0; }
.solo-item-comparison .better { color: #90e6a0; }
.solo-item-comparison .worse { color: #ff9999; }
.solo-character-equipment img { width: 24px; height: 24px; object-fit: contain; }
.solo-character-equipment img[hidden] { display: none; }
.solo-equipment-feedback { font-size: 11px; color: #f8d576; margin: 3px 0; }
.solo-equipment-feedback:empty { display: none; }
.solo-inspection-panel [data-equipment-feedback] { display: none; }
@media (pointer: coarse) {
 .solo-bag-heading button { width: 44px; height: 44px; }
 .solo-bag-filter { min-height: 40px; }
 .solo-rpg .solo-bag-panel footer { display: block; }
}

/* Entry and character creation fit mobile viewports and software keyboards. */
.solo-entry-overlay, .solo-entry-overlay * { box-sizing: border-box; }
.solo-entry-overlay { overflow: hidden; overscroll-behavior: contain; }
.solo-entry-card { min-width: 0; overflow: hidden; }
.solo-entry-card > .solo-skill-list-heading { flex-shrink: 0; }
.solo-entry-content { flex: 1 1 auto; overflow-x: hidden; }
.solo-entry-character-section, .solo-entry-server-section { min-width: 0; }
.solo-entry-hero { min-width: 0; overflow-wrap: anywhere; }
.solo-entry-hero img { flex-shrink: 0; }
.solo-entry-overlay :is(input, select) { min-width: 0; max-width: 100%; text-transform: none; }
.solo-entry-footer { flex-shrink: 0; padding-top: 10px; border-top: 1px solid #507267; margin-top: 10px; }
.solo-entry-footer button { width: 100%; }
.solo-character-creation label { margin: 0; }
.solo-character-creation form { gap: 8px; }
.solo-character-creation summary { min-height: 44px; padding: 10px 0; }
@media (pointer: coarse), (max-width: 600px), (max-height: 500px) {
 .solo-entry-overlay { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
 .solo-entry-card { width: min(820px, 100%); max-height: 100%; padding: 10px; border-radius: 9px; }
 .solo-entry-card > .solo-skill-list-heading { margin-bottom: 6px; gap: 8px; }
 .solo-entry-card h2 { font-size: 18px; margin: 0; }
 .solo-entry-card > .solo-skill-list-heading small { display: none; }
 .solo-entry-content h3 { margin: 4px 0 8px; font-size: 13px; }
 .solo-entry-overlay :is(button, input, select) { font-size: 16px; }
 .solo-entry-heroes, .solo-entry-rooms { grid-template-columns: 1fr; gap: 6px; }
 .solo-entry-hero { padding: 6px 8px !important; font-size: 12px !important; min-height: 54px; }
 .solo-entry-hero img { width: 42px; height: 38px; }
 .solo-entry-rooms button { font-size: 12px; text-align: left; padding: 10px; }
 .solo-character-creation { padding: 8px; margin: 8px 0; }
 .solo-character-creation small { font-size: 10px; }
 .solo-entry-footer { padding-top: 6px; margin-top: 6px; }
}
@media (orientation: landscape) and (max-height: 500px) {
 .solo-entry-card { height: 100%; }
 .solo-entry-content { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; overflow: hidden; }
 .solo-entry-character-section, .solo-entry-server-section { overflow-y: auto; overflow-x: hidden; min-height: 0; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 3px; }
 .solo-entry-server-section { border-left: 1px solid #42645a; padding-left: 12px; }
}
@media (orientation: landscape) and (max-height: 500px) and (min-width: 700px) {
 .solo-character-creation form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
 .solo-character-creation form > :is(button, p) { grid-column: 1 / -1; }
}
/* Character selection is the only home screen. */
.solo-character-home { display: block; padding: 0; background: #142e25; overflow: hidden; }
.solo-home-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.solo-character-home::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0a252500, #0b202040 45%, #091b22c9), linear-gradient(0deg, #071a22d9, #071a2200 55%); pointer-events: none; }
.solo-home-header { position: absolute; z-index: 2; top: 24px; left: 32px; right: 32px; display: flex; align-items: center; justify-content: space-between; }
.solo-home-header h1 { font-size: 28px; letter-spacing: -1px; margin: 0; color: #ffcf58; font-weight: 1000; }
.solo-home-header small { font-size: 9px; letter-spacing: 3px; color: #c3d7c7; }
.solo-home-header nav { display: flex; gap: 8px; }
.solo-character-home .solo-home-header button { border: 1px solid #6c8a7455; background: #102c26aa; min-height: 36px; font-size: 11px; padding: 6px 12px; }
.solo-home-preview { position: absolute; z-index: 2; left: 7%; top: 15%; bottom: 6%; width: 48%; margin: 0; display: flex; align-items: center; justify-content: flex-end; flex-direction: column; }
.solo-home-character-glow { position: absolute; left: 5%; right: 5%; top: 0; bottom: 20%; background: radial-gradient(ellipse, #c4e78a36, transparent 64%); }
.solo-home-portrait { width: min(460px,90%); min-height: 0; flex: 1; max-height: 65%; object-fit: contain; filter: drop-shadow(0 20px 15px #0005); position: relative; }
.solo-home-preview figcaption { position: relative; text-align: center; width: min(300px,95%); }
.solo-home-preview h2 { color: #ffcd50; font-size: 28px; line-height: 1.15; margin: 10px 0 4px; font-weight: 1000; overflow-wrap: anywhere; }
.solo-home-preview p { margin: 0 0 12px; font-size: 14px; color: #d4e3d6; }
.solo-character-home [data-start] { width: 100%; min-height: 50px; background: #f8c646; color: #18232b; border-color: #ffe298; font-weight: 1000; font-size: 18px; border-radius: 3px; }
.solo-home-preview [data-server-status] { margin: 8px 0 0; font-size: 10px; color: #9fbcae; }
.solo-home-roster { position: absolute; z-index: 2; right: 4%; top: 17%; bottom: 9%; width: min(370px,36%); display: flex; flex-direction: column; padding: 18px; border: 1px solid #78998c44; border-radius: 12px; background: #0f2528d9; box-shadow: 0 18px 40px #0003; backdrop-filter: blur(4px); overflow-y: auto; }
.solo-home-roster-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.solo-home-roster-heading h2 { margin: 0; font-size: 12px; color: #bdd1c8; }
.solo-home-roster-heading span { font-size: 10px; padding: 2px 7px; border: 1px solid #537366; border-radius: 4px; color: #bdd1c8; }
.solo-character-home .solo-entry-heroes { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; flex-shrink: 0; max-height: 55%; }
.solo-character-home .solo-entry-hero { display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; min-height: 62px; border: 2px solid #344f52; border-radius: 2px; background: #14282ed9; }
.solo-character-home .solo-entry-hero[aria-pressed=true] { border-color: #f8c646; background: #263633da; box-shadow: none; }
.solo-entry-hero span { display: grid; gap: 2px; min-width: 0; }
.solo-entry-hero strong { color: #ffce50; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.solo-entry-hero small { color: #c2d7ca; font-size: 11px; }
.solo-character-home .solo-entry-hero img { width: 40px; height: 42px; object-fit: contain; }
.solo-character-home .solo-character-creation { flex-shrink: 0; padding: 0; margin: 8px 0; background: transparent; border: 0; }
.solo-character-home .solo-character-creation summary { min-height: 32px; padding: 6px 0; cursor: pointer; color: #c7d9cc; font-size: 12px; }
.solo-character-home .solo-character-creation form { display: grid; gap: 8px; padding: 6px 0; }
.solo-character-home .solo-character-creation label { font-size: 11px; display: grid; gap: 4px; margin: 0; }
.solo-character-home .solo-character-creation :is(input,select) { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #55746a; background: #091e22; color: white; border-radius: 4px; font: inherit; text-transform: none; }
.solo-character-home .solo-character-creation small { color: #8da99c; font-size: 10px; }
.solo-home-servers { margin-top: auto; padding-top: 8px; flex-shrink: 0; }
.solo-home-servers h3 { font-size: 10px; margin: 0 0 6px; color: #a6c0b3; }
.solo-character-home .solo-entry-rooms { display: flex; gap: 6px; }
.solo-character-home .solo-entry-rooms button { flex: 1; padding: 8px; min-width: 0; text-align: left; min-height: 48px; border-radius: 4px; }
.solo-entry-rooms strong { display: block; font-size: 11px; }
.solo-entry-rooms small { display: block; font-size: 9px; color: #8cae9e; }
.solo-home-empty { font-size: 12px; color: #9db8aa; }
.solo-home-version { position: absolute; z-index: 2; bottom: 12px; right: 4%; color: #769a92; font-size: 10px; }
@media (pointer: coarse), (max-width: 700px) {
 .solo-home-header { top: max(8px,env(safe-area-inset-top)); left: max(12px,env(safe-area-inset-left)); right: max(12px,env(safe-area-inset-right)); }
 .solo-home-header h1 { font-size: 20px; }
 .solo-home-header small { display: none; }
 .solo-home-preview { left: 2%; width: 43%; top: 15%; bottom: 5%; }
 .solo-home-preview h2 { font-size: 20px; margin-top: 4px; }
 .solo-home-preview p { font-size: 11px; margin-bottom: 6px; }
 .solo-character-home [data-start] { min-height: 44px; font-size: 14px; }
 .solo-home-roster { top: 17%; bottom: 5%; right: 2%; width: 49%; padding: 10px; border-radius: 7px; }
 .solo-character-home .solo-entry-heroes { max-height: 46%; }
 .solo-character-home .solo-entry-hero { min-height: 48px; padding: 4px 6px; gap: 6px; }
 .solo-entry-hero strong { font-size: 14px; }
 .solo-character-home .solo-entry-hero img { width: 30px; height: 32px; }
 .solo-character-home .solo-character-creation :is(input,select) { font-size: 16px; }
 .solo-home-version { display: none; }
 .solo-home-roster-heading { margin-bottom: 6px; }
 .solo-home-roster-heading h2 { font-size: 11px; }
 .solo-home-servers { padding-top: 6px; }
 .solo-character-home .solo-entry-rooms button { padding: 6px; }
}
@media (pointer: coarse) and (max-height: 350px) {
 .solo-home-preview h2 { font-size: 18px; }
 .solo-home-preview [data-server-status] { margin-top: 3px; }
 .solo-home-roster { top: 17%; bottom: 3%; }
 .solo-character-home .solo-entry-heroes { max-height: 37%; }
}
.solo-character-home [hidden] { display: none !important; }
.solo-home-create-button { flex-shrink: 0; width: 100%; min-height: 40px; margin: 8px 0; }
.solo-character-home .solo-entry-hero img { border-radius: 5px; object-fit: contain; }
.solo-character-home .solo-creation-screen { position: absolute; z-index: 2; inset: 12% 4% 4%; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr minmax(300px,42%); grid-template-rows: 40px minmax(0,1fr); gap: 12px 5%; background: transparent; border: 0; }
.solo-creation-screen [data-back] { grid-column: 1 / -1; justify-self: start; }
.solo-creation-screen figure { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; margin: 0; }
.solo-creation-screen figure img { width: min(460px,95%); max-height: 75%; min-height: 0; object-fit: contain; filter: drop-shadow(0 18px 16px #0006); }
.solo-creation-screen figcaption { text-align: center; }
.solo-creation-screen h2 { color: #ffcd50; margin: 6px 0; }
.solo-creation-screen figcaption p { color: #c5d6ca; font-size: 13px; }
.solo-character-home .solo-creation-screen form { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 20px; overflow-y: auto; min-height: 0; background: #0c252bdc; border: 1px solid #65867b; border-radius: 8px; }
.solo-character-home .solo-class-select { display: none; }
.solo-class-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.solo-character-home .solo-class-options button { display: flex; align-items: center; gap: 8px; min-height: 48px; width: 100%; padding: 5px; text-align: left; font-size: 12px; background: #152d32; }
.solo-class-options img { width: 36px; height: 36px; object-fit: contain; border-radius: 4px; }
.solo-character-home .solo-class-options button[aria-pressed=true] { border-color: #ffcf58; background: #334239; box-shadow: inset 0 0 0 1px #ffcf58; }
.solo-character-home .solo-creation-screen button[type=submit] { min-height: 44px; background: #f8c646; color: #18232b; font-weight: 900; }
.solo-creation-screen [role=status] { color: #ffb9b9; margin: 0; }
.solo-status-icon { overflow: hidden; border-radius: 3px; border-color: #73de86; }
.solo-status-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.solo-status-icon .solo-status-duration { position: relative; z-index: 1; color: #ffe790; font-size: .72em; line-height: 1; text-shadow: 0 1px 2px #000, 1px 0 2px #000, -1px 0 2px #000; }
.solo-rpg .solo-status-icon small { z-index: 2; right: 1px; bottom: 0; line-height: 1; text-shadow: 0 1px 2px #000, 1px 0 2px #000; }
@media (max-width:900px), (max-height:600px) {
 .solo-character-home .solo-creation-screen { inset: 17% 2% 3%; grid-template-columns: minmax(0,40%) minmax(0,1fr); grid-template-rows: 32px minmax(0,1fr); gap: 4px 3%; }
 .solo-character-home .solo-creation-screen form { padding: 10px; gap: 8px; }
 .solo-creation-screen h2 { font-size: 18px; }
 .solo-creation-screen figcaption p { font-size: 10px; }
 .solo-character-home .solo-class-options button { min-height: 40px; font-size: 10px; gap: 4px; }
 .solo-class-options img { width: 28px; height: 28px; }
 .solo-class-options { gap: 4px; }
}
@media (max-width:480px) and (orientation:portrait) {
 .solo-character-home .solo-creation-screen { grid-template-columns: 1fr; }
 .solo-creation-screen figure { display: none; }
}
.solo-character-home .solo-creation-screen .solo-class-select { display: none; }
.solo-character-home .solo-creation-screen [data-back] { width: auto; min-height: 32px; padding: 5px 12px; background: #102c26aa; border-color: #6c8a7455; font-size: 12px; }
/* Combat HUD: shared tracker, centered chat, desktop bar and touch skill wheel. */
.solo-mobile-attack { display: none; }
.solo-rpg .solo-unit-frames { left: auto; right: 12px; top: 52px; flex-direction: column; max-width: calc(100% - 24px); }
.solo-rpg .solo-minimap { right: auto; left: 12px; top: 12px; }
.solo-rpg .solo-quest-tracker { right: 12px; bottom: auto; border-radius: 5px; }
.solo-tracker-tabs { display: flex; flex-shrink: 0; }
.solo-tracker-tabs button { width: 50%; min-height: 32px; background: #142d32; color: #c4d8cb; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: 12px; cursor: pointer; }
.solo-tracker-tabs button[aria-selected=true] { color: #ffce58; border-bottom-color: #ffce58; background: #28413b; }
.solo-rpg .solo-party-frames { position: static; padding: 6px; overflow-y: auto; min-height: 0; grid-template-columns: 1fr; }
.solo-party-empty { font-size: 11px; margin: 8px; }
.solo-rpg .solo-party-frames button { min-height: 40px; }
.solo-tracker-open { flex-shrink: 0; min-height: 28px; font-size: 10px; color: #bcd2c6; background: #18312a; border: 0; cursor: pointer; }
.solo-quest-tracker [hidden] { display: none !important; }
.solo-rpg .solo-chat-preview { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); width: min(340px,calc(100% - 24px)); box-sizing: border-box; }
.solo-rpg .solo-chat-preview.collapsed { width: 112px; padding: 2px 6px; border-radius: 5px; }
.solo-rpg .solo-chat-preview.collapsed .solo-chat-preview-log { display: none; }
.solo-chat-toggle { min-height: 30px; width: 100%; cursor: pointer; }
.solo-bar-skill-tooltip h3 { margin: 0 0 8px; color: #ffcd50; font-size: 15px; }
.solo-bar-skill-tooltip p { font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
@media (pointer: fine) {
 .solo-rpg .solo-unit-frames { left: 12px; right: auto; top: 12px; flex-direction: row; }
 .solo-rpg .solo-minimap { left: auto; right: 12px; top: 54px; }
 .solo-rpg .solo-quest-tracker { left: 12px; right: auto; }
 .solo-rpg .solo-skill-bar { bottom: 66px; padding: 5px; }
 .solo-rpg .solo-skills { gap: 5px; }
 .solo-rpg .solo-skills button { width: 60px; height: 60px; min-width: 60px; flex-basis: 60px; border-width: 2px; }
 .solo-rpg .solo-skills kbd { font-size: 11px; }
 .solo-rpg .solo-skill-count { font-size: 12px; }
 .solo-rpg .solo-chat-preview { left: 12px; right: auto; transform: none; }
 .solo-rpg .solo-chat-preview:not(.collapsed) { bottom: 20px; }
}
@media (pointer: coarse) {
 .solo-rpg .solo-unit-frames { top: max(8px,env(safe-area-inset-top)); right: calc(58px + env(safe-area-inset-right)); left: auto; width: 170px; max-width: calc(100% - 80px); flex-direction: column; gap: 4px; }
 .solo-rpg .solo-player-frame { width: 170px; padding: 2px; gap: 3px; flex: none; border-width: 1px; }
 .solo-rpg .solo-player-frame > img { width: 22px; height: 22px; }
 .solo-rpg .solo-player-frame .solo-unit-health { height: 17px; }
 .solo-rpg .solo-player-frame .solo-unit-health strong { font-size: 10px; line-height: 17px; max-width: calc(100% - 54px); left: 3px; }
 .solo-rpg .solo-player-frame .solo-unit-health span { font-size: 8px; line-height: 17px; padding-right: 2px; }
 .solo-rpg .solo-player-frame .solo-unit-mana { height: 10px; }
 .solo-rpg .solo-player-frame .solo-unit-mana :is(small,span) { font-size: 7px; line-height: 10px; }
 .solo-rpg .solo-minimap { left: 8px; top: 8px; }
 .solo-rpg .solo-quest-tracker { right: calc(58px + env(safe-area-inset-right)); max-height: 100px; }
 .solo-tracker-tabs button { min-height: 28px; font-size: 10px; }
 .solo-quest-summary-row small, .solo-quest-summary-row progress { display: none; }
 .solo-rpg .solo-skill-bar { width: 174px; height: 174px; padding: 0; background: transparent; border: 0; bottom: calc(24px + env(safe-area-inset-bottom)); right: max(8px,env(safe-area-inset-right)); left: auto; transform: none; }
 .solo-rpg .solo-skills { display: block; position: absolute; inset: 0; }
 .solo-rpg .solo-skills button { position: absolute; width: 42px; height: 42px; min-width: 42px; padding: 2px; border-radius: 50%; border: 2px solid #92a5a0; background: #16292de6; box-shadow: 0 2px 5px #0009; overflow: hidden; touch-action: manipulation; }
 .solo-rpg .solo-skills img { border-radius: 50%; }
 .solo-rpg .solo-skills button:nth-child(1) { left: 9px; top: 69px; }
 .solo-rpg .solo-skills button:nth-child(2) { left: 27px; top: 27px; }
 .solo-rpg .solo-skills button:nth-child(3) { left: 69px; top: 9px; }
 .solo-rpg .solo-skills button:nth-child(4) { left: 111px; top: 27px; }
 .solo-rpg .solo-skills button:nth-child(5) { left: 69px; top: 129px; }
 .solo-rpg .solo-skills button:nth-child(6) { left: 27px; top: 111px; }
 .solo-rpg .solo-mobile-attack { display: block; position: absolute; left: 58px; top: 58px; width: 70px; height: 70px; padding: 3px; border: 3px solid #d1b758; border-radius: 50%; background: #263326; box-shadow: 0 3px 8px #0009; overflow: hidden; cursor: pointer; }
 .solo-mobile-attack img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
 .solo-mobile-attack span { position: absolute; bottom: 6px; left: 0; right: 0; font-size: 10px; font-weight: 900; color: white; text-shadow: 0 1px 3px #000; }
 .solo-rpg .solo-player-buffs { left: auto; right: 0; bottom: calc(100% + 3px); max-width: 174px; }
 .solo-rpg .solo-chat-preview:not(.collapsed) { bottom: 64px; width: min(300px,calc(100% - 210px)); }
}
.solo-rpg .solo-player-frame { flex: none; }
@media (pointer: coarse) {
 .solo-rpg .solo-wave-status { left: 110px; top: 8px; transform: none; width: 104px; padding: 5px; box-sizing: border-box; font-size: 10px; }
 .solo-rpg .solo-wave-status small { display: none; }
}
@media (pointer: coarse) and (max-height:350px) {
 .solo-rpg .solo-skill-bar { width: 144px; height: 144px; }
 .solo-rpg .solo-skills button { width: 36px; height: 36px; min-width: 36px; }
 .solo-rpg .solo-skills button:nth-child(1) { left: 4px; top: 54px; }
 .solo-rpg .solo-skills button:nth-child(2) { left: 18px; top: 17px; }
 .solo-rpg .solo-skills button:nth-child(3) { left: 54px; top: 4px; }
 .solo-rpg .solo-skills button:nth-child(4) { left: 92px; top: 17px; }
 .solo-rpg .solo-skills button:nth-child(5) { left: 54px; top: 104px; }
 .solo-rpg .solo-skills button:nth-child(6) { left: 18px; top: 92px; }
 .solo-rpg .solo-mobile-attack { left: 43px; top: 43px; width: 58px; height: 58px; }
 .solo-rpg .solo-tracker-open { display: none; }
}
@media (pointer: coarse) {
 .solo-rpg .solo-player-buffs { right: -8px; max-width: 56px; }
}
.solo-mobile-target-cycle { display: none; }
@media (pointer: coarse) {
 .solo-rpg .solo-unit-frames { left: max(8px,env(safe-area-inset-left)); right: auto; width: max-content; max-width: calc(100% - 130px); flex-direction: row; gap: 6px; }
 .solo-rpg .solo-player-frame { width: 164px; flex: 0 1 164px; }
 .solo-rpg .solo-minimap { left: auto; right: calc(42px + env(safe-area-inset-right)); top: max(8px,env(safe-area-inset-top)); }
 .solo-rpg .solo-quest-tracker { left: max(8px,env(safe-area-inset-left)); right: auto; }
 .solo-rpg .solo-mobile-stick { left: max(12px,env(safe-area-inset-left)); bottom: calc(22px + env(safe-area-inset-bottom)); }
 .solo-menu-gear { width: 28px; height: 28px; padding: 4px; border-width: 1px; border-radius: 4px; }
 .solo-menu-gear img { width: 18px; height: 18px; }
 .solo-rpg .solo-menu-dock .solo-bottom-menu { top: 34px; }
 .solo-rpg .solo-wave-status { top: calc(96px + env(safe-area-inset-top)); left: auto; right: calc(42px + env(safe-area-inset-right)); transform: none; width: 86px; padding: 3px 4px; gap: 1px; border-radius: 4px; font-size: 9px; line-height: 12px; }
 .solo-rpg .solo-wave-status span { font-size: 8px; line-height: 10px; }
 .solo-rpg .solo-wave-status button { min-height: 24px; padding: 2px; font-size: 9px; }
 .solo-rpg .solo-skill-bar, .solo-rpg .solo-skills button, .solo-rpg .solo-mobile-attack { box-shadow: none; filter: none; }
 .solo-rpg .solo-mobile-target-cycle { display: grid; place-content: center; position: absolute; left: 136px; top: 76px; width: 34px; height: 34px; padding: 0; border: 1px solid #94aaa3; border-radius: 50%; background: #183132; color: #ffdd70; cursor: pointer; touch-action: manipulation; }
 .solo-mobile-target-cycle span { font-size: 19px; line-height: 17px; }
 .solo-mobile-target-cycle small { font-size: 8px; line-height: 10px; color: white; }
 .solo-rpg .solo-skill-list { width: min(480px,calc(100% - 16px - env(safe-area-inset-left) - env(safe-area-inset-right))); max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 8px; border-radius: 6px; gap: 4px; }
 .solo-rpg .solo-skill-list-heading { margin-bottom: 4px; gap: 8px; flex-shrink: 0; }
 .solo-rpg .solo-skill-list h2 { font-size: 16px; margin: 0; }
 .solo-rpg .solo-skill-list-heading button { min-width: 32px; min-height: 32px; width: 32px; height: 32px; padding: 0; font-size: 20px; }
 .solo-rpg .solo-skill-list-heading small { font-size: 9px; }
 .solo-rpg .solo-skill-cards { grid-template-columns: repeat(auto-fill,44px); gap: 6px; }
 .solo-rpg .solo-skill-card { width: 44px; height: 44px; padding: 3px; }
 .solo-rpg .solo-skill-card > img { width: 36px; height: 36px; }
 .solo-rpg .solo-character-content { gap: 6px; }
 .solo-rpg .solo-character-stage { grid-template-columns: 50px minmax(0,1fr) 50px; gap: 5px; }
 .solo-rpg .solo-character-equipment { grid-template-rows: repeat(4,minmax(34px,1fr)); gap: 3px; }
 .solo-rpg .solo-character-equipment button { min-height: 34px; padding: 2px; }
 .solo-rpg .solo-character-equipment small { font-size: 8px; }
 .solo-rpg .solo-character-identity { padding: 4px; }
 .solo-rpg .solo-character-identity h3 { font-size: 15px; margin: 2px; }
 .solo-rpg .solo-character-identity small { font-size: 9px; }
 .solo-rpg .solo-character-portrait { height: 90px; }
 .solo-rpg .solo-character-portrait img { width: 130px; height: 100px; }
 .solo-rpg .solo-character-status-panel { padding: 6px; }
 .solo-rpg .solo-character-resources { gap: 5px; }
 .solo-rpg .solo-character-attributes { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin: 6px 0; }
 .solo-rpg .solo-character-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 8px; }
 .solo-rpg .solo-character-stats > div { padding: 4px 0; gap: 3px; }
 .solo-rpg .solo-character-stats dt { font-size: 9px; }
 .solo-rpg .solo-character-stats dd { font-size: 10px; }
 .solo-rpg .solo-talent-node { min-height: 68px; padding: 6px; gap: 3px; font-size: 11px; }
 .solo-rpg .solo-talent-node p { font-size: 10px; margin: 3px 0; }
 .solo-rpg .solo-talent-rule { margin: 2px 0; font-size: 10px; }
 .solo-rpg .solo-quest-card { padding: 6px; }
 .solo-rpg .solo-quest-card h3 { font-size: 12px; }
 .solo-rpg .solo-bag-panel { width: 240px; max-height: calc(100dvh - 16px); }
}
@media (pointer: coarse) and (max-height:350px) {
 .solo-rpg .solo-mobile-target-cycle { left: 108px; top: 56px; width: 32px; height: 32px; }
}
/* Compact account forms on touch devices. */
@media (pointer: coarse) {
 .login-screen { padding: max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); gap: 6px; }
 .login-brand h1 { font-size: 27px; letter-spacing: -1px; margin: 0; line-height: 1.1; }
 .login-brand :is(small,span), .login-version, .login-panel footer { display: none; }
 .login-panel { width: min(340px,100%); padding: 10px; border-radius: 6px; box-shadow: none; flex-shrink: 0; }
 .login-tabs { gap: 5px; margin-bottom: 8px; }
 .login-tabs button { min-height: 32px; padding: 5px 8px; font-size: 12px; }
 .login-panel form { display: grid; gap: 6px; }
 .login-panel form > header { display: none; }
 .login-panel label { font-size: 10px; margin: 0; gap: 3px; }
 .login-panel input { min-height: 34px; height: 34px; padding: 5px 8px; font-size: 16px; }
 .login-panel input[type=checkbox] { height: 18px; flex-shrink: 0; padding: 0; }
 .login-panel label.register-terms-field { gap: 6px; font-size: 10px; line-height: 1.3; }
 .login-submit { min-height: 34px; padding: 6px 10px; font-size: 12px; }
 .login-panel .auth-link { margin: 0; padding: 4px 0; font-size: 10px; text-align: left; }
 .login-panel .auth-feedback { margin: 0; min-height: 0; font-size: 10px; line-height: 1.3; }
 .login-panel .auth-feedback:empty { display: none; }
}
@media (pointer: coarse) and (orientation: landscape) {
 .login-panel { width: min(420px,100%); }
 .login-panel form { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .login-panel form > :is(header,.register-terms-field,.auth-link,.auth-feedback,.login-submit) { grid-column: 1 / -1; }
}
@media (pointer: coarse) and (max-height:260px) {
 .login-screen { justify-content: flex-start; }
 .login-brand { display: none; }
}
.auth-mobile-title { display: none; }
@media (pointer: coarse), (max-width:900px) and (hover:none) {
 #login-screen .login-brand, #login-screen .login-panel form > header, #login-screen .login-panel footer, #login-screen .login-version, #auth-form .auth-field-label { display: none; }
 .login-panel .auth-mobile-title { display: block; margin: 0 0 8px; color: #ffd05d; font-size: 18px; line-height: 1.2; text-align: center; }
 #login-screen .login-panel { width: min(360px,calc(100% - 16px)); padding: 10px; }
 #auth-form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
 #auth-form > :is(header,.register-terms-field,.auth-link,.auth-feedback,.login-submit) { grid-column: 1 / -1; }
 #auth-form label { gap: 0; }
 #auth-form[data-auth-mode=register] #back-to-login-link { display: none; }
}
.solo-rpg .solo-settings-panel { width: min(360px,calc(100% - 16px)); }
.solo-settings-content { display: grid; gap: 14px; min-height: 0; overflow-y: auto; font-size: 13px; }
.solo-settings-content label { display: grid; gap: 7px; }
.solo-settings-content output { color: #ffcf58; }
.solo-settings-content input { width: 100%; accent-color: #ffcf58; }
.solo-settings-content select { width: 100%; min-height: 36px; padding: 6px; background: #173039; color: #e5eee7; border: 1px solid #66877b; border-radius: 4px; }
.solo-settings-content [data-logout] { background: #743d3d; border-color: #b87575; }
.solo-settings-content p { margin: 0; font-size: 11px; color: #ffbdad; }
.solo-settings-content p:empty { display: none; }
@media (pointer: coarse) { .solo-settings-content { gap: 8px; font-size: 12px; } .solo-settings-content label { gap: 4px; } }
.solo-rpg .solo-party-frames button { grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 7px; }
.solo-party-class-icon { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; border: 1px solid #668a77; }
.solo-party-member-info { display: grid; gap: 2px; min-width: 0; }
.solo-party-member-info progress { display: block; }
@media (pointer: coarse) {
 .solo-rpg .solo-party-frames button { grid-template-columns: 24px minmax(0,1fr); gap: 5px; }
 .solo-party-class-icon { width: 24px; height: 24px; }
}

/* Skill progression: readable rows and five rank markers. */
.solo-rpg .solo-skill-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.solo-rpg .solo-skill-card { display:flex; gap:8px; align-items:center; width:auto; height:auto; min-height:68px; padding:6px; border-radius:3px; background:#17232e; overflow:visible; }
.solo-rpg .solo-skill-card > img { flex:none; width:44px; height:44px; border:2px solid #567b80; border-radius:3px; object-fit:contain; }
.solo-skill-summary { min-width:0; flex:1; }
.solo-skill-summary h3 { color:#fac744; font-size:13px; margin:0 0 3px; line-height:1.15; }
.solo-skill-summary small { display:block; color:#92b9bd; font-size:11px; line-height:1.2; }
.solo-skill-ranks { display:flex; gap:3px; align-items:center; margin-top:4px; }
.solo-skill-ranks i { width:15px; height:10px; border:2px solid #35505b; border-radius:2px; box-sizing:border-box; }
.solo-skill-ranks i.filled { background:#739da5; border-color:#739da5; }
.solo-rpg .solo-skill-ranks button { margin-left:auto; padding:0; min-height:20px; width:22px; height:20px; border-radius:3px; color:#12251b; background:#53db73; border:0; font-weight:900; }
.solo-skill-ranks button:disabled { background:#253a47; color:#8ba2a9; cursor:default; }
.solo-skill-summary .solo-skill-requirement { margin-top:3px; font-size:9px; }
.solo-skill-locked .solo-skill-summary { opacity:.5; }
@media(max-width:900px), (pointer:coarse) {
 .solo-rpg .solo-skill-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .solo-rpg .solo-skill-card { min-height:70px; gap:5px; padding:4px; }
 .solo-rpg .solo-skill-card > img { width:32px; height:32px; }
 .solo-skill-summary h3 { font-size:11px; }
 .solo-skill-summary small { font-size:9px; }
 .solo-skill-summary .solo-skill-requirement { display:none; }
 .solo-skill-ranks i { width:12px; height:9px; }
 .solo-rpg .solo-skill-ranks button { min-height:24px; height:24px; width:24px; }
}
@media(max-width:370px) { .solo-rpg .solo-skill-cards { grid-template-columns:1fr; } }

.solo-target-menu { position:fixed; z-index:30; width:190px; padding:5px; border:1px solid #708b87; border-radius:5px; background:#11242bf5; color:#edf4ef; box-shadow:0 5px 16px #0007; }
.solo-target-menu[hidden], .solo-loot-preview[hidden] { display:none; }
.solo-target-menu > strong { display:block; padding:5px 7px 8px; color:#ffd05d; overflow-wrap:anywhere; font-size:12px; border-bottom:1px solid #37535a; }
.solo-rpg .solo-target-menu button { display:block; width:100%; min-height:31px; padding:6px 7px; text-align:left; font-size:12px; color:#edf4ef; background:transparent; border:0; border-radius:3px; }
.solo-rpg .solo-target-menu button:hover, .solo-rpg .solo-target-menu button:focus-visible { background:#37535a; outline:1px solid #f5cf67; }
.solo-rpg .solo-target-menu button:disabled { opacity:.45; outline:0; cursor:default; }
.solo-rpg .solo-inspect-target { min-height:20px; height:20px; min-width:24px; padding:0 6px; font-size:17px; line-height:16px; }
.solo-rpg .solo-loot-preview { width:min(520px,calc(100% - 24px)); }
.solo-loot-preview > p { color:#b6ced1; font-size:12px; margin:0 0 12px; }
.solo-loot-preview-items { min-height:0; overflow-y:auto; display:grid; gap:7px; }
.solo-loot-preview-items article { display:flex; align-items:center; gap:9px; padding:6px; background:#172c35; border:1px solid #435d65; border-radius:4px; }
.solo-loot-preview-items img { width:34px; height:34px; object-fit:contain; border:1px solid #92a9aa; border-radius:3px; }
.solo-loot-preview-items span { flex:1; font-size:12px; }
.solo-loot-preview-items strong { font-size:12px; color:#f7ce60; }
.solo-loot-preview-items [data-rarity=rare] img { border-color:#5f9dff; }
.solo-loot-preview-items [data-rarity=epic] img { border-color:#c17bff; }
.solo-loot-preview-items [data-rarity=legendary] img { border-color:#ffa83d; }
.solo-duel-invites { top:37%; }
.solo-duel-invites section:has(button) { border-color:#c18ef3; }
.solo-duel-invites section:not(:has(button)) { padding:7px; pointer-events:none; }
@media(max-width:900px), (pointer:coarse) {
 .solo-loot-preview-items { grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
 .solo-loot-preview-items article { padding:4px; gap:5px; }
 .solo-loot-preview-items img { width:26px; height:26px; }
 .solo-loot-preview-items span, .solo-loot-preview-items strong { font-size:10px; }
 .solo-loot-preview > p { font-size:10px; margin-bottom:6px; }
}

.solo-duel-invites:has(section:not(:has(button))) { top:64px; width:max-content; max-width:calc(100% - 24px); pointer-events:none; }

.solo-rpg .solo-item-tooltip { width:264px; max-width:calc(100vw - 12px); max-height:calc(100dvh - 12px); overflow-y:auto; padding:11px; border:2px solid var(--item-rarity,#c0c8d2); border-radius:3px; background:#10151ff5; color:#e5eff5; font-size:12px; line-height:1.4; }
.solo-item-tooltip .solo-item-title { color:var(--item-rarity,#c0c8d2); font-size:17px; line-height:1.2; }
.solo-item-tooltip .solo-item-power { color:var(--item-rarity,#c0c8d2); font-weight:700; margin:6px 0 10px; }
.solo-item-tooltip .solo-item-stat { color:#5fe17a; }
.solo-item-tooltip .solo-item-description { margin:10px 0 4px; color:#83adbb; line-height:1.4; }
.solo-item-tooltip .solo-item-tooltip-hint { margin:10px 0 0; color:#e1c779; font-size:10px; }
.solo-merchant-npc { position:absolute; z-index:3; right:12px; bottom:28px; width:76px; height:86px; padding:0; border:0; background:transparent; color:#ffd36b; cursor:pointer; touch-action:manipulation; }
.solo-merchant-npc img { display:block; width:76px; height:70px; object-fit:contain; transform:scale(1.6); transform-origin:center 70%; pointer-events:none; }
.solo-merchant-npc span { display:block; font-size:11px; font-weight:700; text-shadow:0 1px 3px #000; }
.solo-merchant-npc:focus-visible { outline:2px solid #ffd36b; border-radius:6px; }
.solo-rpg .solo-merchant-panel { width:min(480px,calc(100% - 24px)); max-height:calc(100% - 24px); padding:12px; gap:8px; }
.solo-merchant-wallet { color:#e9cf7a; font-size:12px; }
.solo-merchant-wallet strong { color:#ffdc6b; }
.solo-merchant-feedback { flex-shrink:0; min-height:14px; margin:0; font-size:11px; color:#bbd9c3; }
.solo-merchant-items { min-height:0; overflow-y:auto; display:grid; gap:6px; touch-action:pan-y; }
.solo-merchant-item { display:grid; grid-template-columns:32px minmax(0,1fr); gap:4px 8px; align-items:center; padding:7px; border:1px solid var(--item-rarity,#6a8b80); border-radius:4px; background:#0d1e24; }
.solo-merchant-item > img { width:32px; height:32px; object-fit:contain; }
.solo-merchant-item strong { color:var(--item-rarity,#d9e7df); display:block; font-size:12px; overflow-wrap:anywhere; }
.solo-merchant-item small { display:block; color:#a9c4ba; font-size:10px; margin-top:3px; }
.solo-merchant-actions { grid-column:1 / -1; display:flex; gap:6px; justify-content:flex-end; }
.solo-merchant-actions input { box-sizing:border-box; width:54px; min-width:0; min-height:30px; padding:4px; color:#eaf3ed; background:#203a41; border:1px solid #66897c; border-radius:3px; font-size:12px; }
.solo-merchant-actions button { min-height:30px; padding:4px 12px; border:1px solid #9a884f; border-radius:3px; background:#4c4425; color:#ffdf7e; font-size:11px; cursor:pointer; }
.solo-merchant-actions button:disabled { opacity:.5; cursor:default; }
.solo-merchant-empty { color:#afc8bb; font-size:12px; }
@media (max-width:900px), (pointer:coarse) {
 .solo-merchant-npc { left:132px; right:auto; bottom:24px; width:44px; height:56px; }
 .solo-merchant-npc img { width:44px; height:44px; }
 .solo-merchant-npc span { font-size:8px; }
 .solo-rpg .solo-merchant-panel { width:min(400px,calc(100% - 16px)); max-height:calc(100% - 16px); padding:8px; gap:5px; }
 .solo-merchant-item { padding:5px; grid-template-columns:26px minmax(0,1fr); }
 .solo-merchant-item > img { width:26px; height:26px; }
 .solo-merchant-actions { grid-column:2; }
 .solo-merchant-item strong { font-size:11px; }
 .solo-merchant-actions input { width:46px; font-size:16px; }
}
.solo-item-compare-section { border-top:1px solid #46616b; padding-top:6px; margin-top:9px; }
.solo-rpg .solo-bag-slot[data-rarity], .solo-rpg [data-equipment-slot].solo-item-equipped { border-color:var(--item-rarity,#c0c8d2); }
.solo-rpg .solo-bag-slot[data-rarity] > small, .solo-rpg .solo-item-equipped > strong { color:var(--item-rarity,#c0c8d2); }
.solo-character-power { display:inline-flex; gap:5px; align-items:center; margin-top:6px; padding:3px 8px; border:1px solid #58626d; border-radius:4px; background:#15232a; color:#bed0d8; font-size:12px; }
.solo-character-power strong { color:#ffd260; font-size:14px; }
@media(max-width:900px), (pointer:coarse) {
 .solo-rpg .solo-item-tooltip { width:236px; padding:8px; font-size:11px; line-height:1.25; }
 .solo-item-tooltip .solo-item-title { font-size:14px; }
 .solo-item-tooltip .solo-item-description { line-height:1.25; }
 .solo-character-power { margin-top:3px; padding:2px 5px; font-size:9px; }
 .solo-character-power strong { font-size:10px; }
}

/* Compact roll and mobile controls. */
.solo-rpg .solo-loot-roll { display:flex; align-items:center; width:max-content; gap:4px; padding:4px; }
.solo-rpg .solo-loot-roll[hidden] { display:none; }
.solo-rpg .solo-roll-item { position:relative; display:grid; place-items:center; width:34px; height:34px; padding:1px; border:1px solid var(--item-rarity); border-radius:3px; background:#101d25; }
.solo-roll-item img { width:30px; height:30px; object-fit:contain; pointer-events:none; }
.solo-rpg .solo-roll-item .solo-roll-timer { position:absolute; bottom:0; right:0; padding:0 2px; background:#08151bd9; color:#fff; font-size:8px; line-height:10px; pointer-events:none; }
.solo-rpg .solo-roll-actions { display:flex; gap:3px; }
.solo-rpg .solo-roll-actions button { flex:none; width:26px; height:28px; min-height:28px; padding:0; font-size:20px; line-height:24px; }
.solo-roll-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.solo-item-roll-status { white-space:pre-line; font-size:10px; color:#e1c779; }
.solo-rpg .solo-tracker-tabs button { min-height:24px; padding:3px 6px; font-size:11px; }
.solo-rpg .solo-merchant-npc { display:grid; justify-items:center; align-content:center; width:52px; height:60px; min-height:0; padding:0; background:transparent; border:0; border-radius:4px; box-shadow:none; }
.solo-rpg .solo-merchant-npc img { width:52px; height:46px; transform:none; object-fit:contain; }
.solo-rpg .solo-merchant-npc span { font-size:9px; line-height:12px; }
.solo-rpg .solo-merchant-npc:hover:not(:disabled) { background:transparent; box-shadow:none; }
.solo-rpg .solo-settings-panel { z-index:13; }
@media (pointer:coarse) {
 .solo-rpg .solo-settings-content { gap:6px; font-size:11px; }
 .solo-rpg .solo-settings-content label { grid-template-columns:1fr auto; align-items:center; gap:3px; }
 .solo-rpg .solo-settings-content input { grid-column:1 / -1; }
 .solo-rpg .solo-settings-content select { width:120px; min-height:28px; padding:3px; }
 .solo-rpg .solo-settings-content > button { min-height:28px; padding:4px 10px; font-size:11px; }
 .solo-rpg .solo-loot-roll { bottom:calc(64px + env(safe-area-inset-bottom)); }
 .solo-rpg .solo-tracker-tabs button { min-height:20px; padding:2px 6px; font-size:9px; }
 .solo-rpg .solo-menu-dock { right:auto; bottom:auto; width:28px; height:28px; }
 .solo-rpg .solo-menu-gear { box-sizing:border-box; display:grid; place-items:center; width:28px; height:28px; min-height:28px; padding:4px; margin:0; background:#132c34; border:1px solid #648477; border-radius:4px; box-shadow:none; }
 .solo-rpg .solo-menu-gear img { width:18px; height:18px; display:block; }
 .solo-rpg .solo-menu-dock .solo-bottom-menu { top:auto; bottom:34px; right:0; max-height:calc(100dvh - 60px); overflow-y:auto; box-sizing:border-box; }
 .solo-rpg .solo-chat-preview.collapsed { width:96px; }
 .solo-rpg .solo-merchant-npc { left:108px; right:auto; bottom:24px; width:40px; height:48px; }
 .solo-rpg .solo-merchant-npc img { width:40px; height:36px; }
 .solo-rpg .solo-merchant-npc span { font-size:8px; line-height:10px; }
 .solo-rpg .solo-mobile-stick { width:84px; height:84px; box-sizing:border-box; background:#08151040; border:1px solid #8ba98c55; }
 .solo-rpg .solo-stick-knob { width:32px; height:32px; box-sizing:border-box; border:1px solid #f2cf5999; background:#55756066; }
 .solo-rpg .solo-skill-bar { width:188px; height:188px; }
 .solo-rpg .solo-skills button:nth-child(1) { left:0; top:73px; }
 .solo-rpg .solo-skills button:nth-child(2) { left:22px; top:22px; }
 .solo-rpg .solo-skills button:nth-child(3) { left:73px; top:0; }
 .solo-rpg .solo-skills button:nth-child(4) { left:124px; top:22px; }
 .solo-rpg .solo-skills button:nth-child(5) { left:73px; top:146px; }
 .solo-rpg .solo-skills button:nth-child(6) { left:22px; top:124px; }
 .solo-rpg .solo-mobile-attack { left:59px; top:59px; }
 .solo-rpg .solo-mobile-target-cycle { left:150px; top:77px; }
}
@media (pointer:coarse) and (min-height:351px) and (max-height:375px) {
 .solo-rpg .solo-minimap { width:86px; }
 .solo-rpg .solo-minimap > small { display:none; }
}
@media (pointer:coarse) and (max-height:350px) {
 .solo-rpg .solo-skill-bar { width:164px; height:164px; }
 .solo-rpg .solo-skills button:nth-child(1) { left:0; top:64px; }
 .solo-rpg .solo-skills button:nth-child(2) { left:18px; top:18px; }
 .solo-rpg .solo-skills button:nth-child(3) { left:64px; top:0; }
 .solo-rpg .solo-skills button:nth-child(4) { left:110px; top:18px; }
 .solo-rpg .solo-skills button:nth-child(5) { left:64px; top:128px; }
 .solo-rpg .solo-skills button:nth-child(6) { left:18px; top:110px; }
 .solo-rpg .solo-mobile-attack { left:53px; top:53px; }
 .solo-rpg .solo-mobile-target-cycle { left:130px; top:66px; width:30px; height:30px; }
}
.solo-rpg .solo-quick-emotes { position:absolute; right:calc(100% + 6px); bottom:0; display:flex; gap:4px; width:60px; }
.solo-rpg .solo-chat-preview:not(.collapsed) .solo-quick-emotes { top:0; bottom:auto; }
.solo-rpg .solo-quick-emotes button { position:relative; display:grid; place-items:center; box-sizing:border-box; width:28px; height:28px; min-height:28px; padding:0; margin:0; border:1px solid #7d9b89; border-radius:5px; background:#173424ed; color:#fff; font-size:17px; line-height:1; box-shadow:none; cursor:pointer; }
.solo-rpg .solo-quick-emotes button:hover:not(:disabled), .solo-rpg .solo-quick-emotes button:focus-visible { border-color:#f2cf59; outline:1px solid #f2cf59; }
.solo-rpg .solo-quick-emotes button:disabled { cursor:default; }
.solo-rpg .solo-quick-emotes button:disabled > span:first-child { opacity:.4; }
.solo-rpg .solo-emote-cooldown { position:absolute; inset:0; display:grid; place-items:center; font-size:13px; font-weight:900; text-shadow:0 1px 3px #000; pointer-events:none; }
@media (pointer:fine) { .solo-rpg .solo-chat-preview { left:80px; max-width:calc(100% - 94px); } }
@media (pointer:coarse) { .solo-rpg .solo-merchant-npc { bottom:calc(58px + env(safe-area-inset-bottom)); } }
@media (pointer:coarse) and (max-width:400px) and (orientation:portrait) {
 .solo-rpg .solo-chat-preview.collapsed { bottom:calc(216px + env(safe-area-inset-bottom)); }
}

.solo-rpg .solo-trade-panel { width:min(460px,calc(100% - 32px)); z-index:15; gap:8px; }
.solo-trade-panel .solo-skill-list-heading h2 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; font-size:18px; }
.solo-trade-body { min-height:0; overflow-y:auto; touch-action:pan-y; }
.solo-trade-offers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.solo-trade-offers > section { min-width:0; padding:6px; border:1px solid #54726c; border-radius:4px; background:#10242c; }
.solo-trade-offers > section > strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:#f7d36b; margin-bottom:5px; }
.solo-trade-slots { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
.solo-trade-slots article, .solo-rpg .solo-trade-bag button { position:relative; height:38px; min-height:38px; min-width:0; padding:2px; border:1px solid #54726c; border-radius:3px; background:#0c1a20; }
.solo-trade-slots img, .solo-trade-bag img { display:block; width:100%; height:100%; object-fit:contain; }
.solo-trade-slots b, .solo-trade-bag b { position:absolute; right:2px; bottom:0; color:#fff; font-size:10px; text-shadow:0 1px 2px #000; pointer-events:none; }
.solo-rpg .solo-trade-slots button { position:absolute; right:-3px; top:-5px; width:18px; height:18px; min-height:18px; padding:0; border:1px solid #97aaa0; border-radius:50%; background:#203c39; color:#fff; font-size:14px; line-height:16px; }
.solo-trade-gold { display:flex; align-items:center; gap:4px; font-size:11px; margin-top:6px; }
.solo-trade-gold input { width:100%; min-width:0; height:26px; padding:2px 5px; border:1px solid #66877b; border-radius:3px; background:#152b32; color:#fff; }
.solo-trade-picker { margin-top:8px; }
.solo-trade-picker > strong { display:block; font-size:11px; margin-bottom:4px; color:#adc7be; }
.solo-trade-bag { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:4px; max-height:90px; overflow-y:auto; padding:2px; }
.solo-trade-status { margin:0; font-size:11px; color:#edce81; flex-shrink:0; }
.solo-trade-actions { display:flex; gap:6px; flex-shrink:0; }
.solo-rpg .solo-trade-actions button { flex:1; min-height:32px; padding:4px 8px; font-size:12px; }
.solo-trade-invite { position:absolute; z-index:16; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; grid-template-columns:1fr auto; gap:6px; width:250px; max-width:calc(100% - 24px); padding:9px; border:1px solid #9bb78b; border-radius:5px; background:#132b2af5; color:#e8f3e6; font-size:12px; }
.solo-trade-invite strong { min-width:0; overflow-wrap:anywhere; }
.solo-trade-invite > div { grid-column:1/-1; display:flex; gap:5px; }
.solo-rpg .solo-trade-invite button { flex:1; min-height:28px; padding:4px; font-size:11px; }

/* Touch panels leave the world visible; their contents scroll independently. */
@media (pointer:coarse) {
 .solo-rpg .solo-skill-list { width:min(360px,calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); max-height:min(72dvh,calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); min-height:0; padding:6px; gap:4px; border-width:1px; border-radius:5px; box-shadow:0 6px 18px #0006; overflow:hidden; }
 .solo-rpg .solo-skill-list-heading { padding-bottom:4px; margin-bottom:2px; gap:5px; }
 .solo-rpg .solo-skill-list h2 { font-size:14px; line-height:18px; }
 .solo-rpg .solo-skill-list-heading small { display:none; }
 .solo-rpg .solo-skill-list-heading button { min-width:26px; min-height:26px; width:26px; height:26px; font-size:18px; }
 .solo-rpg :is(.solo-character-content,.solo-social-content,.solo-talent-tiers,.solo-skill-cards,.solo-quest-list,.solo-room-content,.solo-merchant-items,.solo-loot-preview-items,.solo-settings-content) { min-height:0; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; }
 .solo-rpg .solo-skill-card { min-height:54px; gap:4px; padding:3px; }
 .solo-rpg .solo-skill-card > img { width:28px; height:28px; }
 .solo-rpg .solo-skill-summary h3 { font-size:10px; }
 .solo-rpg .solo-skill-ranks { gap:2px; margin-top:3px; }
 .solo-rpg .solo-skill-ranks i { width:10px; height:8px; border-width:1px; }
 .solo-rpg .solo-talent-node { min-height:54px; padding:4px; font-size:10px; }
 .solo-rpg .solo-talent-node p { font-size:9px; line-height:1.25; margin:2px 0; }
 .solo-rpg .solo-talent-tier { gap:4px 6px; padding-bottom:8px; }
 .solo-rpg .solo-talent-feedback { font-size:10px; min-height:0; margin:2px 0; }
 .solo-rpg .solo-build-reset { min-height:26px; padding:3px 8px; margin-top:2px; font-size:10px; }
 .solo-rpg .solo-talent-path-headings { gap:6px; padding-bottom:3px; font-size:11px; }
 .solo-rpg .solo-social-content h3 { margin:7px 0 4px; font-size:12px; }
 .solo-rpg .solo-social-content li { padding:4px; gap:4px; margin-bottom:4px; font-size:10px; }
 .solo-rpg .solo-social-content :is(button,input,select) { min-height:28px; padding:4px 6px; font-size:10px; }
 .solo-rpg .solo-social-content > small { display:none; }
 .solo-rpg .solo-room-content > p { font-size:10px; margin:4px 0; }
 .solo-rpg .solo-room-players { margin:5px 0; gap:3px; }
 .solo-rpg .solo-room-players li { padding:4px 6px; font-size:10px; }
 .solo-rpg :is(.solo-server-options,.solo-room-actions) button { min-height:28px; padding:4px 6px; font-size:11px; }
 .solo-rpg .solo-quest-list { gap:5px; }
 .solo-rpg .solo-quest-card { padding:5px; }
 .solo-rpg .solo-quest-card p { margin:3px 0; font-size:10px; }
 .solo-rpg .solo-quest-card small { font-size:9px; }
 .solo-rpg .solo-quest-card button { min-height:28px; font-size:10px; }
 .solo-rpg .solo-character-stage { grid-template-columns:42px minmax(0,1fr) 42px; gap:4px; }
 .solo-rpg .solo-character-equipment button { min-height:28px; }
 .solo-rpg .solo-character-equipment small { display:block; max-width:100%; font-size:7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
 .solo-rpg .solo-character-equipment strong { display:none; }
 .solo-rpg .solo-character-portrait { height:72px; }
 .solo-rpg .solo-character-portrait img { width:104px; height:80px; }
 .solo-rpg .solo-character-identity h3 { font-size:13px; }
 .solo-rpg .solo-character-status-panel { padding:4px; }
 .solo-rpg .solo-character-stats > div { padding:3px 0; }
 .solo-rpg .solo-bag-panel { width:200px; max-height:72dvh; padding:5px; }
 .solo-rpg .solo-bag-panel .solo-bag-slots { min-height:0; overflow-y:auto; grid-auto-rows:32px; gap:3px; }
 .solo-rpg .solo-bag-panel .solo-bag-slot { height:32px; min-height:32px; padding:2px; border-width:1px; }
 .solo-rpg .solo-bag-panel .solo-bag-slot img { width:25px; height:25px; }
 .solo-rpg .solo-bag-panel .solo-bag-heading button { width:24px; height:24px; min-height:24px; padding:0; }
 .solo-rpg .solo-item-tooltip, .solo-rpg .solo-skill-tooltip { width:210px; max-height:48dvh; overflow-y:auto; padding:6px; font-size:10px; line-height:1.25; }
 .solo-rpg .solo-item-tooltip .solo-item-title, .solo-rpg .solo-bar-skill-tooltip h3 { font-size:12px; }
 .solo-rpg .solo-item-tooltip p, .solo-rpg .solo-bar-skill-tooltip p { margin:4px 0; font-size:10px; line-height:1.25; }
 .solo-rpg .solo-target-menu { width:164px; padding:4px; }
 .solo-rpg .solo-target-menu button { min-height:27px; padding:4px 6px; font-size:11px; }
 .solo-rpg .solo-trade-panel { width:min(340px,calc(100% - 32px)); gap:4px; }
 .solo-trade-offers { gap:5px; }
 .solo-trade-offers > section { padding:4px; }
 .solo-trade-offers > section > strong { font-size:10px; margin-bottom:4px; }
 .solo-trade-slots { gap:3px; }
 .solo-trade-slots article, .solo-rpg .solo-trade-bag button { height:28px; min-height:28px; }
 .solo-rpg .solo-trade-slots button { width:19px; height:19px; min-height:19px; }
 .solo-trade-gold { font-size:10px; margin-top:4px; }
 .solo-trade-gold input { height:24px; }
 .solo-trade-picker { margin-top:5px; }
 .solo-trade-picker > strong { font-size:10px; }
 .solo-trade-bag { max-height:58px; gap:3px; }
 .solo-trade-status { font-size:10px; line-height:12px; }
 .solo-rpg .solo-trade-actions button { min-height:27px; padding:3px 5px; font-size:11px; }
 .solo-trade-invite { width:220px; padding:6px; font-size:11px; }
}
@media (pointer:coarse) and (orientation:portrait) {
 .solo-rpg .solo-skill-list { width:min(330px,calc(100% - 32px)); max-height:min(480px,68dvh); }
 .solo-rpg .solo-trade-panel { width:min(300px,calc(100% - 32px)); }
}
