@font-face { font-family: AmuPixel; src: url('./assets/fonts/amu-pixel-latin.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root { --ink: #202020; --muted: #666c78; --line: #abb8cd; --blue: #005adb; --font: AmuPixel, 'Courier New', monospace; }
* { box-sizing: border-box; }
html { background: #fff; color: var(--ink); scroll-padding-top: calc(var(--header-height, 100px) + 12px); }
body { margin: 0; padding: 14px 25px 0; font: 19px/1.5 var(--font); }
body.readable { --font: 'Courier New', monospace; font-size: 18px; }
a { color: var(--blue); text-underline-offset: 4px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, textarea, dialog { border-radius: 0; }
input, textarea { min-width: 0; background: #fff; border: 1px solid var(--line); }
button { background: #fff; }
:focus-visible { outline: 2px solid #404040; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 30; background: #fff; padding: 12px; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 18; background: #fff; min-height: 78px; display: grid; grid-template-columns: 370px minmax(250px, 1fr) 270px; align-items: start; gap: 40px; }
.brand-group { display: flex; align-items: center; gap: 24px; height: 66px; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 32px; line-height: 1; padding: 8px 8px 8px 5px; }
.mascot { width: 220px; height: 74px; flex-shrink: 0; margin-top: -7px; pointer-events: none; }
html.pupil-tracking, html.pupil-tracking * { cursor: none !important; }
.eyes { width: 100%; height: 100%; overflow: visible; }
.sclera { fill: #f5edce; stroke: #242620; stroke-width: 2.2; stroke-linejoin: round; }
.pupil { fill: #202020; }
.lashes { fill: none; stroke: #252820; stroke-width: 2; }
.search-form { display: flex; align-items: center; gap: 24px; padding-top: 5px; }
.search-input-wrap { flex: 1; position: relative; }
#search { width: 100%; height: 52px; padding: 8px 40px 8px 14px; appearance: none; }
#search::-webkit-search-cancel-button { appearance: none; }
::placeholder { color: #7c8da7; opacity: 1; }
.clear-search { border: 0; position: absolute; inset: 0 0 0 auto; width: 40px; font-size: 30px; }
nav { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 9px 8px 0 0; }
nav a, .text-button { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.text-button { border: 0; padding: 5px 0; background: #fff; }
#account-open { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { outline: none; }
.song-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 14px; margin-top: 60px; }
.song-box { border: 1px solid var(--line); padding: 22px 26px; min-height: 269px; background: #fff; }
.song-title { display: table; font-size: 30px; line-height: 1.35; margin-bottom: 10px; }
.artist-link { font-size: 20px; }
.song-title, .artist-link { overflow-wrap: anywhere; }
.song-box:has(a:focus-visible) { border-color: #404040; }
.empty-state { margin: 60px 0; font-size: 27px; }
.catalogue-pages { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; }
.site-footer { text-align: right; color: #536078; font-size: 17px; padding: 16px 0 10px; }
.policy-page { max-width: 760px; margin: 32px auto 80px; overflow-wrap: anywhere; }
.policy-page h2 { margin-top: 40px; }
.policy-page p { margin: 20px 0; }
.room { display: grid; grid-template-columns: minmax(300px, .36fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; min-height: calc(100svh - 135px); }
.music-pane, .chat-pane { border: 1px solid var(--line); padding: 30px 25px; min-width: 0; background: #fff; }
.music-pane { display: flex; flex-direction: column; }
.metadata-label { margin: 0 0 4px; color: #626975; }
.metadata-block { margin: 0 0 28px; }
.metadata-block .song-title { margin: 0; }
.leader { margin-top: 38px; }
.player-section { margin-top: auto; padding-top: 100px; }
.player-mount { min-width: 200px; }
.player-mount iframe { display: block; border: 0; width: 100%; min-height: 200px; margin-bottom: 24px; }
.player-controls { display: flex; justify-content: space-around; align-items: center; gap: 16px; }
.icon-button { border: 0; width: 52px; height: 52px; display: grid; place-items: center; padding: 8px; }
.icon-button svg { width: 32px; height: 32px; fill: currentColor; }
.icon-button:hover { color: #005adb; }
.icon-button:disabled { color: #727781; }
.player-links { display: flex; gap: 30px; margin-top: 20px; }
.room-links { margin-top: 94px; }
.room-links .text-button { display: block; }
.chat-pane { display: flex; flex-direction: column; padding: 25px 26px 30px; }
.room-title { font-size: 32px; font-weight: 400; margin: 0; }
.messages { display: flex; flex-direction: column; gap: 26px; margin: 72px 0 80px; }
.message { margin: 0; line-height: 1.65; overflow-wrap: anywhere; position: relative; transform-origin: center; transition: transform 120ms ease-out; }
.message.is-highlighted::before { content: '['; position: absolute; left: -16px; color: #202020; }
.message.is-highlighted::after { content: ']'; position: absolute; right: -12px; color: #202020; }
.message-prefix { white-space: nowrap; margin-right: 3px; }
.username { display: inline; border: 0; padding: 0; background: none; color: inherit; text-decoration: none; font: inherit; cursor: grab; touch-action: pan-y; }
.username:active { cursor: grabbing; }
.username + .username { margin-left: 9px; }
.message-body { margin-left: 10px; }
.composer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.composer.drag-over { outline: 2px dashed #536078; outline-offset: 6px; }
.reply-context { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 10px; }
.composer-row { display: flex; gap: 12px; align-items: center; }
.composer-label { white-space: nowrap; }
textarea { resize: vertical; width: 100%; min-height: 82px; padding: 10px 14px; line-height: 1.25; }
.square-button { border: 1px solid var(--line); padding: 12px 20px; min-height: 54px; }
.composer-hint { font-size: 19px; color: var(--muted); margin: 8px 0 0; }
.composer-hint:empty { display: none; }
.status { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); padding: 12px 18px; font-size: 22px; z-index: 25; }
.status:empty { display: none; }
.message-menu { position: fixed; z-index: 20; min-width: 205px; padding: 12px 16px; border: 1px solid #404040; background: #fff; }
.message-menu button { display: block; padding: 9px 2px; border: 0; text-align: left; width: 100%; font-size: 23px; }
.message-menu button:disabled { color: #717171; }
.message-menu button:hover:not(:disabled) { text-decoration: underline; }
dialog { background: #fff; color: var(--ink); border: 1px solid #404040; padding: 24px; width: min(540px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow-y: auto; }
dialog::backdrop { background: rgb(255 255 255 / .9); }
.dialog-heading { display: flex; justify-content: space-between; gap: 28px; align-items: start; margin-bottom: 28px; }
h2 { font-size: 32px; font-weight: 400; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
fieldset label { margin-right: 25px; }
legend { margin-bottom: 10px; }
.setting-line { display: block; margin: 16px 0; }
.settings-note { font-size: 21px; color: var(--muted); line-height: 1.4; }
.dialog-actions { display: flex; align-items: center; gap: 24px; margin-top: 16px; }
#embed-url { display: block; width: 100%; margin-top: 14px; padding: 10px; }
.form-error { color: #a32626; font-size: 22px; }
.age-gate { min-height: 450px; display: grid; align-content: center; justify-items: start; max-width: 470px; padding: 25px 0; }
.age-gate form { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.date-picker { position: relative; margin: 14px 0; }
.date-field { display: flex; border: 1px solid var(--line); }
.date-field input { flex: 1; width: 100%; border: 0; padding: 12px 16px; }
.date-toggle { display: grid; place-items: center; flex: 0 0 54px; border: 0; padding: 12px; }
.date-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: miter; }
.date-calendar { position: absolute; top: calc(100% + 8px); left: 0; z-index: 15; width: min(100%, 380px); border: 1px solid var(--line); background: #fff; padding: 12px; font-size: 19px; }
.calendar-header { display: grid; grid-template-columns: 36px minmax(0, 1fr) 74px 36px; align-items: center; gap: 6px; margin-bottom: 14px; }
.calendar-header select, .calendar-header input { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 0; background: #fff; height: 40px; width: 100%; padding: 4px 6px; }
.calendar-header input { appearance: textfield; }
.calendar-header input::-webkit-inner-spin-button, .calendar-header input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.calendar-arrow { font-size: 30px; line-height: 1; height: 40px; border: 0; padding: 0; }
.calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.calendar-week [role=columnheader] { padding: 6px 0 12px; color: var(--muted); }
.calendar-day { border: 1px solid transparent; width: 100%; min-height: 42px; padding: 5px 0; }
.calendar-day:hover:not(:disabled) { border-color: var(--line); color: var(--blue); }
.calendar-day.outside-month, .calendar-arrow:disabled { color: var(--muted); }
.calendar-day:disabled { color: #9299a5; }
.calendar-day[aria-current=date] { text-decoration: underline; text-underline-offset: 5px; }
.calendar-day.selected-day { border-color: var(--ink); color: var(--blue); }
.date-calendar :focus-visible { outline-offset: 1px; }
.calendar-actions { display: flex; justify-content: space-between; margin-top: 12px; }
.calendar-actions button { min-height: 40px; padding: 4px 6px; color: var(--blue); }
.account-tabs { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.account-tabs [aria-current] { color: var(--blue); }
.account-form > label { display: block; margin-top: 18px; }
.account-form > input { width: 100%; padding: 10px 14px; margin: 8px 0; }
.account-form .date-calendar { position: relative; top: auto; margin-top: 8px; }
.recovery-codes { min-height: 280px; margin-bottom: 20px; }
.account-dialog > .text-button { display: block; margin: 12px 0; text-align: left; }
.management-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.management-label { display: block; margin-top: 18px; }
.management-form > input, .management-form > select, .management-dialog > input, .management-dialog > select { display: block; width: 100%; padding: 10px 12px; margin: 8px 0; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 0; }
.management-form .text-button + .text-button { margin-left: 24px; }
.room-links { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.rows .room { grid-template-columns: 1fr; }
.rows .music-pane { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rows .leader { margin: 0; }
.rows .player-section, .rows .room-links { margin: 0; padding: 0; }
.readable .song-title { font-size: 28px; }
.readable .artist-link { font-size: 20px; }
.readable .room-title { font-size: 28px; }
@media (min-width: 1600px) { .song-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1150px) { .site-header { grid-template-columns: 270px minmax(0, 1fr) 270px; gap: 20px; } .brand-group { gap: 10px; } .mascot { width: 175px; height: 65px; } nav { gap: 20px; } .search-form { gap: 12px; } .song-title { font-size: 32px; } .room { grid-template-columns: 310px minmax(0, 1fr); } }
@media (max-width: 800px) { body { padding: 12px 16px 0; font-size: 23px; } .site-header { grid-template-columns: 1fr auto; gap: 15px; } .brand-group { height: 60px; } .search-form { grid-column: 1 / -1; grid-row: 2; } .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 34px; } .song-box { min-height: 215px; padding: 20px; } .song-title { font-size: 30px; } .artist-link { font-size: 23px; } .room { grid-template-columns: 1fr; margin-top: 25px; } .music-pane, .rows .music-pane { display: block; padding: 20px; } .metadata-block { display: inline-block; margin: 0 22px 18px 0; } .leader { margin-top: 8px; } .player-section { padding-top: 20px; } .player-controls { max-width: 350px; justify-content: space-between; } .room-links { margin-top: 15px; display: flex; gap: 25px; } .player-links { margin-top: 10px; } .chat-pane { min-height: 600px; padding: 22px 20px; } .messages { margin: 42px 0 55px; gap: 23px; } .room-title { font-size: 32px; } }
@media (max-width: 450px) { .brand-group { gap: 3px; } .mascot { width: 125px; height: 50px; } .wordmark { font-size: 34px; } nav { gap: 14px; font-size: 22px; } .song-grid { grid-template-columns: 1fr; } .song-box { min-height: 210px; } .search-form label { font-size: 23px; } #search { font-size: 23px; } .composer-row { flex-wrap: wrap; } textarea { flex-basis: calc(100% - 65px); } .composer-row .square-button { margin-left: auto; } }
@media (max-width: 600px) { .site-header { grid-template-columns: minmax(0, 1fr); } nav { grid-row: 2; justify-content: flex-start; gap: 20px; } #account-open { max-width: 80px; } .search-form { grid-row: 3; } .search-input-wrap { min-width: 0; } }
@media (max-width: 450px) { .account-dialog { padding: 16px; width: calc(100vw - 24px); } .account-dialog .calendar-header { grid-template-columns: 36px minmax(0, 1fr) 36px; } .account-dialog .calendar-header select { grid-column: 2; grid-row: 1; } .account-dialog .calendar-header input { grid-column: 2; grid-row: 2; } .account-dialog .calendar-header button:last-child { grid-column: 3; grid-row: 1; } }
@media (max-width: 360px) { .calendar-header { grid-template-columns: 32px minmax(0, 1fr) 66px 32px; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation: none !important; } }

/* Inset borders keep the grid, input text and hit targets stationary. Messages
   grow as complete plain lines, leaving their neighbours in place. */
@media (hover: hover) and (pointer: fine) {
  .song-box:hover, .music-pane:hover, .chat-pane:hover:not(:has(.message:hover)),
  input:not([type=checkbox]):not([type=radio]):hover, textarea:hover, select:hover,
  .square-button:hover:not(:disabled), .date-field:hover, .date-calendar:hover,
  .message-menu:hover, dialog:hover {
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .date-field input:hover { box-shadow: none; }
  .message:hover { transform: scale(1.025); }
}
body.still .message { transition: none; }
@media (prefers-reduced-motion: reduce) { .message:hover { transform: none; } }
@media (forced-colors: active) {
  .song-box:hover, .music-pane:hover, .chat-pane:hover:not(:has(.message:hover)) {
    outline: 1px solid CanvasText; outline-offset: -2px;
  }
}
