/* Rossonian Lounge: shares tokens and cards with style.css */
#views {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 32px);
}
#views button { background: rgba(19, 26, 48, .82); color: var(--stock); border: 1px solid rgba(213, 200, 179, .45); padding: 7px 12px; font-size: 15px; }
#views button[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
#views[hidden], #legend[hidden], #tip[hidden] { display: none; }

#legend {
  position: fixed; right: 16px; bottom: 56px; z-index: 2; background: rgba(19, 26, 48, .88);
  padding: 12px 14px; font-size: 15px; max-width: 260px;
}
#legend ul { list-style: none; margin: 10px 0 0; padding: 0; display: none; }
#legend.on ul { display: block; }
#legend li { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.switch input { width: 18px; height: 18px; accent-color: var(--green); }
.sw { width: 14px; height: 14px; display: inline-block; flex: none; }
.sw.photo { background: #4e8b45; }
.sw.record { background: #f0b23c; }
.sw.guess { background: repeating-linear-gradient(45deg, #8a8f9e 0 3px, transparent 3px 6px); border: 1px solid #8a8f9e; }

#tip {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 2;
  background: var(--stock); color: var(--ink); padding: 8px 14px; font-size: 15px; max-width: min(460px, calc(100% - 32px));
  border-left: 5px solid var(--green); pointer-events: none;
}
#tip.record { border-left-color: var(--amber); }
#tip.guess { border-left-color: #8a8f9e; }

#gb img { width: 100%; margin: 4px 0 12px; border: 1px solid rgba(29, 26, 22, .2); }
#gb { max-height: calc(100vh - 32px); overflow-y: auto; }
footer { flex-wrap: wrap; }
@media (max-width: 720px) {
  #legend { left: 16px; right: auto; bottom: 70px; }
  footer span { display: none; }
  #views { gap: 4px; }
  #views button { padding: 5px 8px; font-size: 13px; }
}

#views #leave { background: var(--esso); border-color: var(--esso); color: #fff; }
#epilogue { position: fixed; inset: 0; z-index: 6; background: rgba(13, 11, 10, .94); display: grid; place-items: center; padding: 24px 16px 70px; overflow-y: auto; }
#epilogue[hidden], .ep-frame[hidden] { display: none; }
.ep-frame { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 380px); gap: 40px; align-items: center; max-width: 900px; animation: epin .9s cubic-bezier(.3,.6,.2,1) both; }
@keyframes epin { from { opacity: 0; transform: translateY(18px) rotate(-1deg); } }
.ep-frame figure { margin: 0; background: var(--stock); padding: 12px; box-shadow: 0 30px 70px rgba(0,0,0,.6); transform: rotate(-1.4deg); }
.ep-frame figure img { width: 100%; display: block; }
.ep-text { color: var(--stock); font-size: 20px; line-height: 1.55; }
.ep-text .year { color: var(--amber); font-style: italic; margin: 0 0 8px; }
.ep-text h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.05; margin: 0 0 16px; }
.ep-text.wide { grid-column: 1 / -1; max-width: 640px; }
.ep-text a.enter { display: inline-block; background: var(--green); color: var(--stock); padding: 12px 22px; font-weight: 700; text-decoration: none; margin-right: 12px; }
.ep-text a.ghost { color: var(--stock); }
#epnext { position: fixed; right: 24px; bottom: 64px; background: var(--stock); color: var(--ink); border: 0; padding: 12px 20px; font-size: 18px; font-weight: 700; }
#epnext[hidden] { display: none; }
@media (max-width: 760px) { .ep-frame { grid-template-columns: 1fr; gap: 18px; } .ep-frame figure { max-width: 420px; } }
@media (prefers-reduced-motion: reduce) { .ep-frame { animation: none; } }

#menu { max-height: calc(100vh - 32px); overflow-y: auto; }
#menu[hidden] { display: none; }
.menu-sheet { background: #e9c98a; color: #2a1a10; padding: 18px 20px; margin: 6px 0 14px; border: 1px solid rgba(42, 26, 16, .3); box-shadow: inset 0 0 40px rgba(120, 80, 30, .18); }
.menu-sheet .spec { text-align: center; border: 2px solid #2a1a10; padding: 10px; margin: 0 0 12px; font-size: 17px; }
.menu-sheet .spec b { font-size: 22px; font-weight: 900; }
.menu-sheet h3 { font-style: italic; font-weight: 600; font-size: 20px; margin: 12px 0 4px; }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; }
.menu-sheet li { display: flex; gap: 6px; font-size: 16px; line-height: 1.5; }
.menu-sheet li span:first-child { flex: 1; overflow: hidden; white-space: nowrap; }
.menu-sheet li span:first-child::after { content: " ........................................................................"; color: rgba(42, 26, 16, .45); }

#dial[hidden], #weltonui[hidden] { display: none; }
#dial { max-height: calc(100vh - 32px); overflow-y: auto; text-align: left; }
#dialsvg { width: min(300px, 70vw); display: block; margin: 8px auto; }
.dialed { text-align: center; font: 900 30px Rokkitt, Georgia, serif; letter-spacing: 4px; margin: 4px 0; }
#dialnote { text-align: center; min-height: 1.4em; font-style: italic; }
#weltonui { position: fixed; left: 16px; top: 16px; z-index: 3; max-width: 360px; background: rgba(19, 26, 48, .86); color: var(--stock); padding: 14px 16px; }
#weltonui .year { color: var(--amber); font-style: italic; margin: 0 0 4px; }
#weltonui p { margin: 0 0 10px; }
#weltonui .blocks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
#weltonui button { background: transparent; color: var(--stock); border: 1px solid rgba(213, 200, 179, .45); padding: 6px 10px; font: inherit; cursor: pointer; }
#weltonui #back { background: var(--green); border-color: var(--green); }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 5; transition: opacity .6s; }
#fade.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #wheel, #fade { transition: none; } }

#pianoui[hidden], #pdemo[hidden], #bassui[hidden] { display: none; }
#pianoui { position: fixed; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 3; width: min(640px, calc(100% - 32px)); background: rgba(19, 26, 48, .9); color: var(--stock); padding: 14px 18px; }
#pianoui h2 { margin: 6px 0 4px; font-size: 24px; }
#pianoui p { margin: 0 0 8px; line-height: 1.45; }
#pstatus { color: var(--amber); font-style: italic; min-height: 1.4em; }
.ptabs { display: flex; flex-wrap: wrap; gap: 6px; }
#pianoui button { background: transparent; color: var(--stock); border: 1px solid rgba(213, 200, 179, .45); padding: 6px 10px; font: inherit; cursor: pointer; }
#pianoui button[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
#pianoui #pdemo { background: var(--amber); color: var(--ink); border-color: var(--amber); font-weight: 700; }

#bassui { position: fixed; right: 16px; top: 16px; z-index: 3; width: min(420px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: rgba(19, 26, 48, .9); color: var(--stock); padding: 14px 18px; }
#bassui h2 { margin: 0 0 6px; font-size: 24px; }
#bassui p { margin: 0 0 8px; line-height: 1.45; }
#bstatus { color: var(--amber); font-style: italic; min-height: 1.4em; }
#bassui button { background: transparent; color: var(--stock); border: 1px solid rgba(213, 200, 179, .45); padding: 6px 10px; font: inherit; cursor: pointer; margin: 0 4px 6px 0; }
#bassui #bdemo { background: var(--amber); color: var(--ink); border-color: var(--amber); font-weight: 700; }
@media (max-width: 720px) { #bassui { top: auto; bottom: 52px; right: 16px; left: 16px; width: auto; max-height: 45vh; } }

#bassui a, #pianoui a { color: var(--amber); }

#dialsvg { width: min(320px, 72vw); display: block; margin: 8px auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
#dialsvg .dg { fill: #1d1a16; font: 900 11px Rokkitt, Georgia, serif; }
#dialsvg .lt { fill: #1d1a16; font: 600 5.5px Rokkitt, Georgia, serif; letter-spacing: .6px; }
#dialsvg .hole { fill: rgba(0,0,0,.001); stroke: rgba(255,255,255,.22); stroke-width: 1.2; cursor: pointer; }
#dialsvg .hole:hover, #dialsvg .hole:focus { fill: rgba(240,178,60,.22); stroke: #f0b23c; outline: none; }
#dialsvg .cardsm { fill: #7a1820; font: 700 5.6px Rokkitt, Georgia, serif; letter-spacing: .8px; }
#dialsvg .cardbig { fill: #1d1a16; font: 900 13px Rokkitt, Georgia, serif; }
