/* 이미지가 아닌 문서 흐름이 메뉴 크기와 순서를 결정한다. */
#title-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: var(--app-height, 100dvh);
    display: flex;
    justify-content: center;
    background: #10121b;
    z-index: var(--layer-title);
}
:root[data-installed-app='true'] #title-screen {
    height: 100%;
}
.title-container-wrapper {
    position: relative;
    width: min(100%, 460px);
    height: 100%;
    isolation: isolate;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.title-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    pointer-events: none;
    z-index: -1;
}
.title-buttons-overlay {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding: max(16px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(10, 12, 22, 0.25), rgba(10, 12, 22, 0.9));
}
.title-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}
.title-gold-display,
.title-data-selector {
    color: var(--gold);
    background: #171920;
    border: 1px solid #78603a;
    border-radius: 10px;
    padding: 10px;
    min-height: 44px;
    font: inherit;
    font-size: 14px;
}
.title-gold-display {
    flex-shrink: 0;
}
.title-data-selector {
    min-width: 0;
    width: 100%;
}
.title-header {
    width: 100%;
    height: clamp(110px, 24vh, 190px);
    object-fit: contain;
    margin-top: 4px;
    pointer-events: none;
}
.title-modes {
    display: grid;
    gap: 12px;
    margin-top: auto;
}
.title-btn-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 70px;
    padding: 12px;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #fff3da;
    background: linear-gradient(135deg, #4c3424, #241f29);
    border: 1px solid #b99552;
    border-radius: 14px;
    box-shadow: 0 3px 12px #0006;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.title-btn-area small {
    font-size: 12px;
    color: #e0d5c5;
    font-weight: 400;
}
.title-btn-area:hover {
    background: #513b2c;
}
.title-btn-area:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
.title-utilities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.title-utilities .title-btn-area {
    padding: 10px 4px;
    font-size: 22px;
}
.title-utilities span {
    font-size: 13px;
}
