/* 설정 창(site-settings.js) – 홈 글자색(시간대별)과 상관없이 늘 읽히도록 창 자체 색을 쓴다 */
.settings-panel { --st-surface: #f7fafcfa; --st-ink: #233e50; --st-muted: #5b7282; --st-line: #d3dfe6; --st-on: #ffffff; }
body[data-theme=dark] .settings-panel { --st-surface: #172937fa; --st-ink: #e0ebf2; --st-muted: #a8bbc9; --st-line: #354a5c; --st-on: #2b4356; }
.settings-button svg { display: block; }
.settings-panel { position: fixed; z-index: 300; width: min(288px, calc(100vw - 24px)); box-sizing: border-box; padding: 16px 16px 14px; border: 1px solid var(--st-line); border-radius: var(--r-lg);
  background: var(--st-surface); color: var(--st-ink); box-shadow: 0 12px 32px rgb(var(--c-navy-rgb) / 0.16); font-family: var(--font-sans); text-align: left; }
.settings-panel[hidden] { display: none; }
.settings-title { margin: 0 0 12px; font-size: var(--fs-14); font-weight: 700; letter-spacing: -.02em; }
.settings-group + .settings-group { margin-top: 14px; }
.settings-label { margin: 0 0 6px; font-size: var(--fs-12); font-weight: 500; color: var(--st-muted); }
.settings-options { display: flex; gap: 4px; padding: 3px; border-radius: var(--r-md); background: color-mix(in srgb, var(--st-line) 45%, transparent); }
.settings-options button { flex: 1 1 0; min-width: 0; height: 30px; padding: 0 4px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--st-muted);
  font: 500 12.5px/1 'Noto Sans KR', sans-serif; letter-spacing: -.03em; cursor: pointer; white-space: nowrap; }
.settings-options button:hover { color: var(--st-ink); }
.settings-options button.is-on { background: var(--st-on); color: var(--st-ink); font-weight: 700; box-shadow: 0 1px 3px rgb(var(--c-navy-rgb) / 0.16); }
.settings-options button:focus-visible { outline: 2px solid #408c95; outline-offset: 1px; }
.settings-note { margin: 6px 2px 0; font-size: var(--fs-11); color: var(--st-muted); }
/* 홈 움직임 끄기: 움직이는 그림 대신 같은 시간대의 정지 그림 */
.seaside-wallpaper.is-still .seaside-canvas { visibility: hidden; }
.seaside-wallpaper.is-ready.is-still .seaside-still { display: block; }
/* 글자 크기(배율): 홈 배경 그림·큰 제목·게임 화면은 그대로 두고 내용만 키운다(화면 높이를 쓰는 틀은 키우지 않음) */
html[data-text-scale]:not([data-text-scale="1"]) .main-with-nav > section:not(#hero):not(#game-shell),
html[data-text-scale]:not([data-text-scale="1"]) #hero > :not(.seaside-wallpaper):not(.home-content),
html[data-text-scale]:not([data-text-scale="1"]) #hero > .home-content > :not(.home-title),
html[data-text-scale]:not([data-text-scale="1"]) :is(.note-dialog, .song-random-dialog, .policy-dialog, .editor-modal > *) { zoom: var(--site-text-scale, 1); }
/* 캘린더 구독 */
.settings-subscribe { padding-top: 14px; border-top: 1px solid var(--st-line); }
.settings-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.settings-links :is(a, button) { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 8px; border: 1px solid var(--st-line); border-radius: var(--r-md);
  background: transparent; color: var(--st-ink); font: 600 12.5px/1 'Noto Sans KR', sans-serif; letter-spacing: -.03em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.settings-links :is(a, button):hover { background: color-mix(in srgb, var(--st-line) 45%, transparent); }
.settings-links button { grid-column: 1 / -1; }
