@font-face {
  font-family: Rodin;
  src: url('./assets/rodin.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --scale: 1;
  --top: #0c101a;
  --bottom: #1b2338;
  --light: #8290b5;
  --text: #f4f5fa;
  --muted: #c1c6d5;
  --duration: 340ms;
  --ease: cubic-bezier(.22,.72,.18,1);
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: linear-gradient(var(--top),var(--bottom)); color: var(--text); font-family: Rodin, Arial, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .3; cursor: default; }
.waves { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.xmb, .dialog-stage { position: absolute; width: var(--stage-width,1280px); height: 720px; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(var(--scale)); transform-origin: center; }
.xmb { outline: none; touch-action: none; overflow: clip; }
.status { position: absolute; right: 0; top: 49px; height: 39px; min-width: 309px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 72px 0 22px; border: 1px solid #e1e5fa26; border-right: 0; border-radius: 4px 0 0 4px; background: linear-gradient(180deg,#eff3ff10,#ffffff02); box-shadow: inset 0 1px 2px #f3f7ff12,0 0 2px #0003; text-shadow: 1px 2px 3px #0007; }
.clock { white-space: nowrap; font-family: Rodin, Arial, sans-serif; font-size: 19px; line-height: 1; letter-spacing: .15px; }
.clock-icon { width: 22px; height: 22px; filter: drop-shadow(1px 2px 2px #0008); }
.playing { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; opacity: .75; }
.playing:empty { display: none; }
.categories { position: absolute; left: 0; top: 0; width: 1280px; height: 275px; transition: transform var(--duration) var(--ease), opacity .25s; }
.category { position: absolute; left: 0; top: 126px; display: flex; flex-direction: column; align-items: center; width: 128px; height: 134px; margin: 0; padding: 0; background: none; border: 0; outline: none; cursor: pointer; }
.category img { display: block; width: 128px; height: 128px; object-fit: contain; transform: scale(.64); opacity: .48; filter: drop-shadow(0 0 1px #f0f3ff55); transition: transform var(--duration) var(--ease), opacity .25s, filter .25s; pointer-events: none; }
.category span { position: absolute; top: 101px; width: 210px; text-align: center; font-size: 16px; line-height: 28px; text-shadow: 1px 2px 3px #0008; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.category.is-selected img { opacity: .93; transform: scale(.95); filter: drop-shadow(0 0 2px #fff8) drop-shadow(1px 2px 2px #0002); }
.category.is-selected span { opacity: 1; }
.category:hover img, .category:focus-visible img { opacity: 1; filter: drop-shadow(0 0 5px #e7eaffaa); }
.category:active img { transform: scale(.88); }
.category.is-selected:active img { transform: scale(.95); }
.columns { position: absolute; inset: 0; pointer-events: none; transition: transform var(--duration) var(--ease), opacity .25s; }
.column { position: absolute; left: 377px; top: 0; opacity: 0; transition: opacity .17s, transform var(--duration) var(--ease); pointer-events: none; }
.column.is-selected { opacity: 1; pointer-events: auto; }
.item { position: absolute; left: -64px; top: -27px; height: 54px; width: 780px; padding: 0; background: none; border: 0; outline: none; text-align: left; cursor: pointer; transition: transform var(--duration) var(--ease), opacity .25s; }
.item img { position: absolute; top: 50%; left: 0; width: 128px; height: 128px; object-fit: contain; transform: translateY(-50%) scale(.5); opacity: .53; filter: drop-shadow(0 0 1px #c6d0ff77); transition: opacity .22s, transform var(--duration) var(--ease), filter .2s; pointer-events: none; }
.item-copy { position: absolute; left: 140px; top: 50%; transform: translateY(-13px); opacity: 0; transition: opacity .22s, transform .22s; pointer-events: none; }
.item-title { display: block; max-width: 740px; font-size: 18px; line-height: 30px; white-space: nowrap; text-shadow: 1px 2px 3px #0007; }
.item-detail { display: block; font-size: 14px; line-height: 20px; opacity: .8; }
.item-detail:empty { display: none; }
.column.has-labels .item-copy { opacity: .43; }
.column.has-labels .item-detail { display: none; }
.item.is-selected { top: -54px; height: 108px; z-index: 2; }
.item.is-selected img { transform: translateY(-50%) scale(1.18); opacity: .91; filter: drop-shadow(0 0 2px #fff9) drop-shadow(1px 3px 3px #0002); }
.item.is-selected .item-copy { opacity: 1; transform: translateY(-18px); }
.item.is-selected .item-title { font-size: 23px; line-height: 33px; text-shadow: 0 0 8px #e8efff60,1px 2px 3px #0009; }
.column .item.is-selected .item-detail { display: block; }
.item:hover img, .item:focus-visible img { opacity: 1; filter: drop-shadow(0 0 5px #fff9); }
.item:active img { filter: drop-shadow(0 0 8px #fff); }
.item.is-playing .item-title::after { content: ''; display: inline-block; width: 23px; height: 23px; margin-left: 10px; vertical-align: middle; background: url('./assets/icons/music.png') center/contain no-repeat; }
.options-hint { position: absolute; right: 80px; bottom: 35px; display: inline-flex; align-items: center; gap: 9px; border: 0; padding: 5px 0; background: none; font-size: 13px; text-shadow: 1px 2px 2px #0008; opacity: .6; cursor: pointer; transition: opacity .2s; }
.options-hint svg { width: 18px; height: 18px; }
.options-hint:hover, .options-hint:focus-visible { opacity: 1; outline: none; }
.options-hint:active { opacity: .8; }
body:has(.dialog[open]:not(.context)) .categories, body:has(.dialog[open]:not(.context)) .columns, body:has(.dialog[open]) .options-hint { opacity: 0; pointer-events: none; }
.dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden; }
.dialog::backdrop { background: #04081555; }
.dialog-stage { animation: enter .27s var(--ease) both; }
.dialog-header { position: absolute; top: 156px; left: 166px; display: flex; align-items: center; gap: 25px; min-height: 86px; }
.dialog-icon { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 0 2px #fff5); }
.dialog-header h1 { margin: 0; font-size: 23px; line-height: 35px; font-weight: 400; text-shadow: 1px 2px 4px #0007; }
.dialog-rule { position: absolute; top: 249px; left: 276px; width: 853px; height: 1px; background: linear-gradient(90deg,#fff8,#fff0); }
.dialog-body { position: absolute; left: 374px; top: 278px; width: 693px; max-height: 315px; overflow-x: visible; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffffff55 transparent; }
.dialog-list { display: grid; gap: 3px; margin: 0; padding: 3px 25px 8px; }
.dialog-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 43px; border: 0; padding: 6px 19px; background: transparent; font-size: 18px; text-align: left; color: #eff1f9a6; cursor: pointer; outline: none; text-shadow: 1px 2px 3px #0008; transition: color .15s, background .15s; }
.dialog-row.is-selected, .dialog-row:focus-visible { color: #fff; background: linear-gradient(90deg,#ffffff00,#ffffff0d 12%,#ffffff08 70%,#ffffff00); text-shadow: 0 0 8px #ffffff55,1px 2px 3px #0008; }
.dialog-row.is-selected::before { content: ''; position: absolute; left: -8px; top: calc(50% - 5px); width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.dialog-row:hover { color: #fff; }
.dialog-row:active { background: #ffffff15; }
.row-value { font-size: 15px; opacity: .8; text-align: right; white-space: nowrap; }
.dialog-message { margin: 27px 25px; font-size: 20px; line-height: 1.7; text-shadow: 1px 2px 4px #0007; }
.dialog-fields { margin: 10px 25px; }
.dialog-field { display: flex; gap: 15px; padding: 12px 0; font-size: 17px; line-height: 26px; }
.dialog-field dt { flex: 1; color: var(--muted); }
.dialog-field dd { flex: 1; margin: 0; }
.dialog-footer { position: absolute; left: 409px; top: 630px; display: flex; align-items: center; gap: 30px; }
.dialog-footer button { display: flex; align-items: center; gap: 10px; padding: 5px 0; border: 0; background: none; color: #ecedf6; font-size: 16px; cursor: pointer; outline: none; text-shadow: 1px 2px 3px #0008; }
.dialog-footer svg { width: 20px; height: 20px; }
.dialog-footer button:hover, .dialog-footer button:focus-visible { filter: drop-shadow(0 0 4px #fff8); }
.dialog-footer button:active { opacity: .65; }
.dialog.message-only .confirm { display: none; }
.palette { display: grid; grid-template-columns: repeat(7, 59px); gap: 20px; padding: 30px 25px; }
.swatch { position: relative; width: 59px; height: 38px; border: 2px solid #ffffff33; border-radius: 2px; background: var(--swatch); box-shadow: inset 0 1px 2px #fff3,0 2px 5px #0003; outline: none; cursor: pointer; transition: transform .18s, border-color .18s; }
.swatch:hover { border-color: #fff9; }
.swatch.is-selected, .swatch:focus-visible { border-color: #fff; transform: scale(1.14); }
.swatch:active { transform: scale(.98); }
.swatch[aria-checked="true"]::after { content: ''; position: absolute; left: 23px; top: 9px; width: 6px; height: 12px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); filter: drop-shadow(0 1px 2px #000); }
.palette-caption { margin: 0 25px; min-height: 30px; font-size: 18px; }
.name-form { margin: 24px 25px; display: flex; align-items: center; gap: 25px; }
.name-form input { min-width: 0; width: 420px; border: 1px solid #d4dcee7a; border-radius: 1px; padding: 11px 13px; background: #07101c65; color: #fff; font-size: 21px; outline: none; }
.name-form input:focus { border-color: #fff; box-shadow: 0 0 8px #fff2; }
.name-form button { border: 1px solid #ffffff55; background: #ffffff13; padding: 10px 20px; font-size: 18px; border-radius: 2px; cursor: pointer; }
.media-view { position: fixed; inset: 0; display: grid; place-items: center; background: #07080ae8; }
.media-view img, .media-view video { max-width: 1040px; max-height: 530px; object-fit: contain; }
.dialog.media .dialog-stage { z-index: 1; }
.dialog.media .dialog-header, .dialog.media .dialog-rule { display: none; }
.dialog.media .dialog-body { inset: 0; width: 100%; height: 100%; max-height: none; overflow: hidden; }
.dialog.media .dialog-footer { top: 654px; }
.dialog.context::backdrop { background: linear-gradient(90deg,transparent 45%,#080c1b2e 66%,#111729e8 91%); }
.dialog.context .dialog-header, .dialog.context .dialog-rule { display: none; }
.dialog.context .dialog-body { left: 950px; top: 285px; width: 270px; }
.dialog.context .dialog-footer { left: 993px; }
.dialog.context .confirm { display: none; }
.dialog.context .dialog-stage { animation-name: context-enter; }
.power-screen { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: #000; animation: power-off .7s ease both; }
.power-screen[hidden] { display: none; }
.power-screen button { width: 80px; height: 80px; padding: 23px; background: none; border: 0; color: #a4b9b06b; cursor: pointer; outline: none; }
.power-screen button:hover, .power-screen button:focus-visible { color: #cadfd4; }
@keyframes enter { from { opacity: 0; translate: 35px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes context-enter { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes power-off { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; }
  *, *::before, *::after { transition-duration: 0ms; animation-duration: 0ms; }
}

@media (max-width:600px) and (orientation:portrait) {
  .status { right: 0; padding-right: 35px; min-width: 270px; }
  .item { width: 550px; }
  .item-copy { left: 133px; }
  .item-title { max-width: 450px; white-space: normal; }
  .item.is-selected .item-title { font-size: 20px; line-height: 29px; }
  .options-hint { right: 40px; }
  .dialog-header { left: 65px; gap: 15px; }
  .dialog-header h1 { max-width: 515px; font-size: 22px; }
  .dialog-rule { left: 166px; width: 540px; }
  .dialog-body { left: 138px; width: 579px; }
  .dialog-footer { left: 177px; }
  .dialog.context .dialog-body { left: 421px; }
  .dialog.context .dialog-footer { left: 463px; }
  .media-view img,.media-view video { max-width: 680px; }
}

.category[data-category="8"] img { opacity: .88; }

.column.has-labels .item.is-selected img { transform: translateY(-50%) scale(1); }

.dialog { opacity: 0; transition: opacity .18s, overlay .18s allow-discrete, display .18s allow-discrete; }
.dialog[open] { opacity: 1; }
.dialog::backdrop { opacity: 0; transition: opacity .18s, overlay .18s allow-discrete, display .18s allow-discrete; }
.dialog[open]::backdrop { opacity: 1; }
@starting-style { .dialog[open], .dialog[open]::backdrop { opacity: 0; } }
@media (prefers-reduced-motion:reduce) { .dialog,.dialog::backdrop { transition-duration: 0ms; } }

.item img.preview { width: 150px; height: 112px; left: -11px; opacity: 1; filter: none; }
