/* Transparent artwork and a local glow let the page background continue through the header. */
.welcome-scene {
    --welcome-glow:#6d7c61;
    --welcome-ink:var(--ui-fg);
    color:var(--welcome-ink);
    background:transparent;
}
[data-theme="midnight"] .welcome-scene { --welcome-glow:#6c7b91; }
[data-theme="classic"] .welcome-scene { --welcome-glow:#fffdf7; }
.welcome-scene-inner {
    position:relative;
    display:grid;
    grid-template-columns:minmax(180px,.8fr) minmax(0,1.4fr);
    align-items:center;
    gap:24px;
    height:244px;
    padding-block:20px;
}
/* The glow shares the image's grid cell, so it follows the mobile layout without a hard edge. */
.welcome-scene-inner::before {
    content:"";
    position:absolute;
    grid-area:1 / 2;
    inset:-24px 0;
    pointer-events:none;
    background:radial-gradient(ellipse,
        color-mix(in srgb,var(--welcome-glow),transparent 18%),
        color-mix(in srgb,var(--welcome-glow),transparent 54%) 36%,
        transparent 72%);
}
.welcome-scene--start .welcome-scene-inner { max-width:1120px; }
.welcome-scene--training .welcome-scene-inner { max-width:1040px; }
.welcome-scene-copy { min-width:0; }
.welcome-scene-image {
    position:relative;
    display:block;
    width:100%;
    height:204px;
    min-width:0;
    object-fit:contain;
    user-select:none;
}
.welcome-display { position:relative; z-index:25; width:fit-content; }
.welcome-display > summary {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:44px;
    min-height:44px;
    padding:8px 12px;
    list-style:none;
    border:1px solid color-mix(in srgb,var(--welcome-ink),transparent 65%);
    border-radius:8px;
    font-size:13px;
    cursor:pointer;
}
.welcome-display > summary::-webkit-details-marker { display:none; }
.welcome-display > summary:hover,.welcome-display[open] > summary { background:color-mix(in srgb,var(--welcome-ink),transparent 95%); }
.welcome-display > summary:focus-visible { outline-color:var(--welcome-ink); }
.welcome-display > summary .icon { width:18px; height:18px; }
.welcome-display-options {
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    display:grid;
    gap:12px;
    width:320px;
    max-width:calc(100vw - 36px);
    padding:12px;
    color:var(--ui-fg);
    background:var(--ui-panel);
    border:var(--line);
    border-radius:12px;
    box-shadow:var(--shadow);
}
.welcome-display-options .appearance { width:100%; padding:0; border:0; gap:4px; }
.welcome-display-options .appearance-label { display:none; }
.welcome-display-options .appearance button { flex:1; min-width:0; padding-inline:8px; }
.welcome-display-options .sound-settings { width:100%; }
.welcome-display-options .sound-settings > summary { min-height:44px; justify-content:flex-start; }
.welcome-display-options .sound-options { position:static; width:100%; max-width:none; margin-top:8px; box-shadow:none; }
.category-view #main > .page-section { padding-top:24px; }
.category-description { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; margin-bottom:24px; }
.category-description p,.profile-identity { color:var(--ui-muted); font-size:14px; }
.profile-identity { overflow-wrap:anywhere; margin-bottom:20px; }
@media(max-width:639px) {
    .welcome-scene-inner {
        height:160px;
        grid-template-columns:minmax(0,1fr);
        grid-template-rows:28px 116px;
        gap:4px;
        padding-block:8px 4px;
    }
    .welcome-scene-inner::before { grid-area:2 / 1; inset:-14px 0; }
    .welcome-scene-image { height:116px; }
    .welcome-display { position:absolute; top:0; right:0; margin:0; }
    .welcome-display > summary { width:44px; padding:10px; border-color:transparent; }
    .welcome-display > summary > span { display:none; }
    .welcome-display-options { right:0; left:auto; }
    .category-view #main > .page-section,.category-view #main > .start-page { padding-top:20px; }
    .category-description { margin-bottom:20px; }
}
