/* One illuminated window, a wordmark and the existing ways to play. */
:root[data-theme] body #screen-menu .title-scene {
    position: relative; display: flex; align-items: center; justify-content: flex-start;
    min-height: 100svh; padding: 56px clamp(32px, 7vw, 140px);
    overflow: hidden; background: #061714;
}
:root[data-theme] body #screen-menu .title-tableau {
    position: absolute; top: 0; right: 0; width: 150svh; height: 100svh;
    pointer-events: none; isolation: isolate;
}
:root[data-theme] body #screen-menu .title-window-art { position: absolute; inset: 0; z-index: 0; }
:root[data-theme] body #screen-menu .title-window-art img {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
    content: normal; transform: none; object-fit: contain; filter: none;
}
:root[data-theme] body #screen-menu .title-tableau::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, #061714, #06171444 18%, transparent 38%),
        linear-gradient(0deg, #061714, transparent 12%);
}
:root[data-theme] body #screen-menu .title-light {
    position: absolute; inset: 0; width: 100%; height: 100%;
    mix-blend-mode: screen; opacity: .42; transition: opacity 350ms ease;
}
:root[data-theme] body #screen-menu .title-scene:has(#daily-button:is(:hover, :focus-visible)) .title-light { opacity: .95; }
:root[data-theme] body #screen-menu .title-scene:has(#daily-button:active) .title-light { opacity: 1; }
:root[data-theme] body #screen-menu .title-content {
    position: relative; z-index: 1; width: min(390px, 100%); margin: 0; text-align: center;
}
:root[data-theme] body #screen-menu .title-content h1.wordmark {
    margin: 0 0 28px; font: 700 clamp(3.4rem, 5.1vw, 4.5rem)/1 'Cinzel', Georgia, serif;
    letter-spacing: .01em; text-align: center; color: #e9dcae;
    text-shadow: 0 2px 0 #4b3d23, 0 4px 0 #161e16, 0 8px 16px #0009;
}
:root[data-theme] body #screen-menu .wordmark > span:first-child {
    display: block; font: inherit; font-size: 1.22em; line-height: 1.05;
    text-transform: uppercase; letter-spacing: .015em;
    color: #f3dfaa; background: linear-gradient(#fff1cd, #dfc282 52%, #a88b52 54%, #eddaac);
    background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: none; filter: drop-shadow(0 2px 0 #3b3120) drop-shadow(0 4px 0 #111b14);
}
:root[data-theme] body #screen-menu .wordmark > span:last-child {
    display: block; margin-top: 8px; padding: 0; font: 600 .29em/1.3 'Cinzel', Georgia, serif;
    color: #f1e4bf; letter-spacing: .22em; text-transform: uppercase; background: none;
}
:root[data-theme] body #screen-menu .title-actions { width: min(294px, 100%); margin: 0 auto; }
:root[data-theme] body #screen-menu .title-actions #daily-button {
    position: relative; min-height: 64px; padding: 14px 24px; border: 2px solid #c6aa69;
    border-radius: 5px 5px 12px 12px; color: #fff0c9;
    background: linear-gradient(135deg, #95b78440, transparent 32%), linear-gradient(#347458, #154f3d 53%, #103e32);
    box-shadow: inset 0 2px 0 #f2df9d55, inset 0 0 0 3px #092c2366, 0 3px 0 #6b5631, 0 8px 16px #0007;
    font: 600 1.25rem/1.2 var(--font-display, Georgia, serif); letter-spacing: .03em;
    transition: transform 100ms ease, box-shadow 100ms ease, background 180ms ease;
}
:root[data-theme] body #screen-menu .title-actions #daily-button:hover {
    background: linear-gradient(135deg, #c5dca653, transparent 40%), linear-gradient(#438362, #205e46 53%, #164c39);
}
:root[data-theme] body #screen-menu .title-actions #daily-button:active {
    transform: translateY(3px); box-shadow: inset 0 2px 5px #061b1466, inset 0 0 0 3px #092c2366, 0 1px 0 #6b5631;
}
:root[data-theme] body #screen-menu .title-links { width: min(330px, 100%); margin: 14px auto 0; gap: 14px; }
:root[data-theme] body #screen-menu .title-links button {
    min-height: 44px; padding: 8px 12px; color: #dfd6b4; border: 0; border-radius: 0;
    background: none; box-shadow: none; font-size: .88rem; text-shadow: 0 2px 4px #0009;
}
:root[data-theme] body #screen-menu .title-links button:hover { color: #fff0bd; background: none; box-shadow: none; }
:root[data-theme] body #screen-menu .music-credit { min-height: 44px; margin-top: 8px; color: #bcbca4; }
:root[data-theme] body #screen-menu :is(button, .music-credit):focus-visible { outline: 3px solid #e5c777; outline-offset: 4px; }
@media (max-width: 700px), (max-width: 900px) and (orientation: portrait) {
    :root[data-theme] body #screen-menu .title-scene { align-items: flex-end; justify-content: center; padding: 48px 24px max(22px, env(safe-area-inset-bottom)); }
    :root[data-theme] body #screen-menu .title-tableau {
        right: auto; left: 50%; width: 100svh; height: calc(100svh * 2 / 3); transform: translateX(-62.6%);
    }
    :root[data-theme] body #screen-menu .title-tableau::after {
        background: linear-gradient(90deg, #061714, transparent 14% 88%, #061714),
            linear-gradient(0deg, #061714, #06171444 8%, transparent 22%);
    }
    :root[data-theme] body #screen-menu .title-content h1.wordmark { margin-bottom: 20px; font-size: clamp(2.8rem, 13.5vw, 3.6rem); }
    :root[data-theme] body #screen-menu .title-actions #daily-button { min-height: 60px; }
}
@media (max-height: 680px) and (max-width: 700px) {
    :root[data-theme] body #screen-menu .title-tableau { width: 88svh; height: calc(88svh * 2 / 3); }
    :root[data-theme] body #screen-menu .title-content h1.wordmark { font-size: 2.8rem; margin-bottom: 16px; }
    :root[data-theme] body #screen-menu .title-scene { padding-bottom: 12px; }
}
@media (max-height: 500px) and (orientation: landscape) {
    :root[data-theme] body #screen-menu .title-scene { align-items: center; justify-content: flex-start; padding: 36px 5vw; }
    :root[data-theme] body #screen-menu .title-tableau { left: auto; right: 0; width: 150svh; height: 100svh; transform: none; }
    :root[data-theme] body #screen-menu .title-content { width: min(320px, 46vw); }
    :root[data-theme] body #screen-menu .title-content h1.wordmark { font-size: 2.9rem; margin-bottom: 18px; }
    :root[data-theme] body #screen-menu .title-actions #daily-button { min-height: 52px; }
    :root[data-theme] body #screen-menu .title-links { margin-top: 8px; }
    :root[data-theme] body #screen-menu .music-credit { margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
    #screen-menu.active .title-light-glass { animation: title-daylight 8s ease-in-out infinite alternate; }
    #screen-menu.active .title-tableau { animation: title-window-arrive 900ms ease-out both; }
}
@keyframes title-daylight { from { opacity: .65; } to { opacity: 1; } }
@keyframes title-window-arrive { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    #screen-menu :is(.title-light, .title-actions #daily-button) { transition: none; }
}

/* The selected rose is mounted behind a cut opening in continuous masonry. */
:root[data-theme][data-title-study="D"] body #screen-menu .title-scene{
 background-color:#061714;
 background-image:linear-gradient(#0617148a,#0617148a),url('assets/gallery/materials/stone.webp');
 background-size:auto,70svh 70svh;
 background-position:0 0,calc(100vw - 150svh) 0;
}
:root[data-theme][data-title-study="D"] body #screen-menu .title-tableau::after{display:none}
:root[data-theme][data-title-study="D"] body #screen-menu .title-content{
 padding:24px 16px 12px;background:radial-gradient(ellipse,#04120fd9,transparent 72%);
}
:root[data-theme][data-title-study="D"] body #screen-menu .title-links button{
 color:#f2e8c9;background:#071b16ed;border:1px solid #b9b48a66;border-radius:4px;
}
:root[data-theme][data-title-study="D"] body #screen-menu .music-credit{color:#e3ddc5;text-shadow:0 1px 3px #000}
@media(max-width:700px),(max-width:900px) and (orientation:portrait){
 :root[data-theme][data-title-study="D"] body #screen-menu .title-scene{
  --title-masonry-width:min(92svh,calc((100vw - 32px) * 1.666667));
  background-size:auto,calc(var(--title-masonry-width) * .466666667) calc(var(--title-masonry-width) * .466666667);
  background-position:0 0,calc(50vw - var(--title-masonry-width) * .627777778) 24px;
 }
 :root[data-theme][data-title-study="D"] body #screen-menu .title-tableau{
  top:24px;left:50%;right:auto;width:var(--title-masonry-width);height:calc(var(--title-masonry-width) * .666666667);transform:translateX(-62.7777778%);
 }
 :root[data-theme][data-title-study="D"] body #screen-menu .title-content{padding-top:14px}
}
@media(max-height:500px) and (orientation:landscape){
 :root[data-theme][data-title-study="D"] body #screen-menu .title-tableau{top:0;left:auto;right:0;width:150svh;height:100svh;transform:none}
 :root[data-theme][data-title-study="D"] body #screen-menu .title-scene{background-size:auto,70svh 70svh;background-position:0 0,calc(100vw - 150svh) 0}
}
