:root { --shell-top: 72px; --shell-bottom: 48px; }
.site-nav [hidden] { display: none !important; }
body { font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.site-header, .site-footer { position: fixed; left: 0; right: 0; z-index: 10; background: rgba(13, 18, 24, .94); backdrop-filter: blur(18px); color: #83909c; }
.site-header { top: 0; height: var(--shell-top); border-bottom: 1px solid #26323d; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); height: 100%; padding: 0 clamp(20px, 4vw, 64px); }
.site-nav a, .account-button { color: #a2adb7; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a { display: grid; align-items: center; height: 100%; border-bottom: 2px solid transparent; }
.site-nav a[aria-current] { color: #f4b942; border-color: #f4b942; }
.site-nav a:hover, .site-footer a:hover { color: #f4b942; }
.account-button { margin-left: auto; padding: 9px 21px; border: 1px solid #35434f; border-radius: 8px; background: #161f28; color: #f3f6f8; cursor: pointer; }
.account-button:hover { border-color: #f4b942; }
.site-footer { bottom: 0; height: var(--shell-bottom); display: flex; align-items: center; gap: 24px; padding: 0 clamp(20px, 4vw, 64px); padding-right: 96px; border-top: 1px solid #26323d; font-size: 11px; }
.site-footer a { color: #a2adb7; text-decoration: none; }
.viewport { position: fixed; top: var(--shell-top); bottom: var(--shell-bottom); height: auto; }
.page-position { z-index: 11; bottom: 18px; right: 20px; }
.page, .sound-page { padding-top: clamp(24px, 4vh, 48px); padding-bottom: 24px; overflow-y: auto; overscroll-behavior: contain; }
.intro-page { min-height: 0; }
.intro-page .intro { margin-block: auto; }
.manual-page h2 { color: #f3f6f8; margin: 0; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.05em; }
.manual-contact { display: inline-block; margin-top: 28px; color: #f4b942; text-underline-offset: 5px; }
.login-dialog { color-scheme: dark; width: min(440px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 40px 36px 28px; border: 1px solid #35434f; border-radius: 18px; background: #121920; color: #f3f6f8; box-shadow: 0 24px 100px #0009; }
.login-dialog::backdrop { background: #03070bcc; backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; color: #a2adb7; font-size: 28px; cursor: pointer; }
.login-kicker { margin: 0 0 14px; color: #f4b942; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.login-dialog h2 { margin: 0 0 12px; font-size: 32px; letter-spacing: -.04em; }
#login-description { margin: 0 0 28px; color: #a2adb7; font-size: 14px; line-height: 1.7; }
#login-form { display: flex; flex-direction: column; gap: 10px; }
#login-form label { font-size: 12px; color: #c1cbd3; }
#login-form input { width: 100%; min-height: 46px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid #35434f; border-radius: 8px; background: #0d1218; color: #f3f6f8; font: inherit; font-size: 14px; }
.login-notice { margin: 2px 0 8px; color: #a2adb7; font-size: 12px; line-height: 1.65; }
.login-submit { min-height: 46px; border: 0; border-radius: 8px; background: #f4b942; color: #15191e; font: inherit; font-weight: 700; cursor: pointer; }
.login-submit:hover { background: #ffca60; }
.login-dialog [hidden] { display: none !important; }
#login-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#login-form fieldset label { display: block; margin-bottom: 10px; }
#login-form .field-hint { margin: 0 0 12px; line-height: 1.6; }
.auth-secondary { display: block; width: 100%; min-height: 44px; margin-top: 12px; padding: 10px 12px; border: 1px solid #35434f; border-radius: 8px; background: transparent; color: #f4b942; font: inherit; font-size: 12px; cursor: pointer; }
.auth-secondary:hover { background: #161f28; border-color: #f4b942; }
.login-dialog button:disabled { opacity: .55; cursor: wait; }
.login-privacy { display: block; margin-top: 24px; text-align: center; color: #83909c; font-size: 11px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #f4b942; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 680px) {
  .site-nav.has-admin { gap: 12px; padding-inline: 12px; }
  .site-nav.has-admin .account-button { padding-inline: 10px; }
  :root { --shell-top: 60px; }
  .site-nav { gap: 22px; padding-inline: 18px; }
  .site-nav a, .account-button { font-size: 13px; }
  .account-button { padding: 8px 14px; }
  .site-footer { padding-left: 18px; gap: 16px; font-size: 10px; }
  .page-position { bottom: 18px; right: 18px; }
  .login-dialog { padding: 36px 24px 24px; }
}
@media (max-height: 700px) {
  .sound-page { display: block; }
  .sound-heading { margin-bottom: 24px; }
}

.intro__description { word-break: keep-all; }
.field-hint { color: #83909c; font-size: 10px; }
.account-dialog { width: min(720px, calc(100% - 32px)); }
.account-email { color: #c1cbd3; font-size: 14px; overflow-wrap: anywhere; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 18px; }
.download-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid #35434f; border-radius: 12px; background: #0d1218; }
.download-card h3 { margin: 0; font-size: 18px; }
.download-card > p:not(.login-kicker) { flex: 1; color: #a2adb7; font-size: 13px; line-height: 1.7; word-break: keep-all; }
.download-card button, .logout-button { min-height: 42px; border: 1px solid #35434f; border-radius: 8px; background: #161f28; color: #a2adb7; font: inherit; font-size: 12px; }
.download-card button:disabled { cursor: not-allowed; color: #83909c; }
.logout-button { padding: 0 20px; margin-top: 16px; cursor: pointer; }
.logout-button:hover { color: #f4b942; border-color: #f4b942; }
@media (max-width: 540px) { .download-grid { grid-template-columns: 1fr; } }
