:root { --page-bg: #c4a4da; --panel-bg: #9e7eb5; --panel-header: #7f5d99; --panel-border: #4c2365; --text-color: #fff; --text-muted: #f1e5f7; --text-placeholder: #d9c7e4; --accent: #f5dff6; color-scheme: light; background: var(--page-bg); }
:root[data-color-scheme="light"] { --page-bg: #f6f0fb; --panel-bg: #fff; --text-color: #4c2365; --text-muted: #684a7a; --text-placeholder: #7f5d99; --accent: #4c2365; }
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.design { position: relative; width: min(100vw, calc(100svh * 16 / 9)); aspect-ratio: 16 / 9; flex: none; isolation: isolate; }
.portrait-window {
  position: absolute;
  left: 39.2708333333%; /* 754 / 1920 */
  top: 22.2222222222%; /* 240 / 1080 */
  width: 21.5104166667%; /* 413 / 1920 */
  height: 35.0925925926%; /* 379 / 1080 */
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
  opacity: 0;
}
.portrait-window.ready { opacity: 1; }
.portrait-background { position: absolute; inset: 0; background: #9e7eb5; }
.portrait-background::before {
  content: ""; position: absolute; inset: 7.6517150396% 0 0;
  background: linear-gradient(to right, rgba(0,0,0,.12), rgba(0,0,0,.086) 1.45%, rgba(0,0,0,.067) 2.66%, rgba(0,0,0,.036) 5.08%, rgba(0,0,0,.012) 7.5%, transparent 10.65%, transparent 89.35%, rgba(0,0,0,.012) 92.5%, rgba(0,0,0,.036) 94.92%, rgba(0,0,0,.067) 97.34%, rgba(0,0,0,.086) 98.55%, rgba(0,0,0,.12)),
              linear-gradient(to top, rgba(0,0,0,.13), rgba(0,0,0,.08) 2.5%, rgba(0,0,0,.04) 5%, rgba(0,0,0,.02) 8%, transparent 16%);
}
.portrait-background::after { content: ""; position: absolute; inset: 0 0 auto; height: 7.6517150396%; background: #7f5d99; }
#character { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen-reader-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@font-face { font-family: 'Gloria Hallelujah'; font-style: normal; font-weight: 400; font-display: swap; src: url('./assets/GloriaHallelujah-Regular.ttf') format('truetype'); }
body { font-family: 'Gloria Hallelujah', cursive; color: var(--text-color); }
.design { container-type: inline-size; }
.site-title { position: absolute; left: 32%; top: 4%; width: 36%; height: 9.8%; margin: 0; background: var(--page-bg); text-align: center; font-size: 2.5cqw; font-weight: 400; line-height: 1.85; white-space: nowrap; }
.box { position: absolute; border-radius: 0; background-color: var(--panel-border); box-shadow: 0 .729167cqw .260417cqw rgba(48,28,62,.32); transition: box-shadow .3s; }
.box-content { position: relative; width: 100%; height: 100%; border-radius: inherit; background-color: var(--panel-bg); box-shadow: inset 0 0 .8cqw #0002; transform: scale(1); transition: transform .2s; }
.box-content::after { content: ''; position: absolute; inset: 0; border: .260417cqw solid var(--panel-border); border-radius: inherit; pointer-events: none; z-index: 4; }
.box h2 { margin: 0; height: 5.3125cqw; padding-top: .55cqw; border-radius: 0; background: var(--panel-header); color: #fff; font-size: 1.875cqw; line-height: 2.2; font-weight: 400; text-align: center; }
p { margin: 0; }
.about { left: 7.4479167%; top: 15.462963%; width: 30.1041667%; height: 42.2222222%; }
.about-copy { padding: .65cqw 1.2cqw 0; font-size: .78125cqw; line-height: 1.6; text-align: center; overflow-wrap: break-word; user-select: text; cursor: text; }
.welcome { left: 38.9583333%; top: 15.462963%; width: 22.0833333%; height: 42.2222222%; }
.welcome > .box-content { overflow: hidden; }
.welcome .portrait-window { left: 1.4150943%; top: 16.0087719%; width: 97.4056604%; height: 83.1140351%; }
.navigation { left: 62.4479167%; top: 15.462963%; width: 5.625%; height: 42.2222222%; }
.navigation > .box-content { overflow: visible; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 1.041667cqw .208333cqw; background-color: #9e7eb5; }
.navigation:focus-within { z-index: 10; }
.navigation-button { position: relative; z-index: 5; display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto; width: 5.208333cqw; height: 5.208333cqw; max-height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; -webkit-appearance: none; appearance: none; background-color: rgba(127, 93, 153, 0); box-shadow: none; color: #fff; font: inherit; cursor: pointer; overflow: hidden; transition: width .3s, border-radius .3s, transform .3s, background-color .4s, box-shadow .4s; }
.navigation-button[href] { text-decoration: none; }
.navigation-sign { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 5.208333cqw; height: 100%; pointer-events: none; }
.navigation-sign img { display: block; flex: 0 0 auto; width: 3.333333cqw; height: 3.333333cqw; object-fit: contain; pointer-events: none; }
.navigation-caption { position: absolute; right: 0; display: flex; align-items: center; justify-content: center; width: 0; height: 100%; padding-right: 0; font-size: .9375cqw; font-weight: 600; white-space: nowrap; overflow: hidden; opacity: 0; pointer-events: none; transition: width .3s, opacity .3s, padding-right .3s; }
.navigation-button:focus-visible { width: 14.583333cqw; border-radius: 2.604167cqw; background-color: #7F5D99; box-shadow: .104167cqw .104167cqw .520833cqw rgba(0, 0, 0, .199); }
.navigation-button:focus-visible .navigation-caption { width: 70%; padding-right: .520833cqw; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .navigation-button:hover { width: 14.583333cqw; border-radius: 2.604167cqw; background-color: #7F5D99; box-shadow: .104167cqw .104167cqw .520833cqw rgba(0, 0, 0, .199); }
  .navigation-button:hover .navigation-caption { width: 70%; padding-right: .520833cqw; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .navigation-button, .navigation-caption { transition: none; }
}
.navigation-button:focus-visible { outline: .104167cqw solid #f5dff6; outline-offset: .104167cqw; }
.navigation-button:active { transform: translate(.104167cqw, .104167cqw); }
.chat { left: 69.4270833%; top: 15.462963%; width: 23.1770833%; height: 68.9814815%; }
.chat-messages { position: absolute; inset: 0 .3125cqw 14.5% 0; padding: 2.65cqw 1.45cqw 0; font-size: .8333333cqw; line-height: 1.8; overflow-y: auto; overflow-wrap: anywhere; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #4c2365 transparent; border-radius: inherit; }
.chat-messages p { margin-bottom: 1.85cqw; }
.user-one { color: #000; }.user-two { color: #ff1515; }.user-three { color: #00dc78; }.user-four { color: #24632a; }
.chat-input { position: absolute; left: 6.292135%; right: 6.292135%; bottom: 3.624161%; height: 9.261745%; display: grid; grid-template-columns: 25% minmax(0,1fr) 12%; grid-template-rows: minmax(0,1fr); gap: .416667cqw; align-items: center; }
.chat-field { position: relative; display: block; min-width: 0; min-height: 0; height: 100%; }
.chat-field input { position: relative; z-index: 2; min-width: 0; min-height: 0; width: 100%; height: 100%; padding: 1.041667cqw .520833cqw .520833cqw; border: 0; -webkit-appearance: none; appearance: none; background: transparent; color: #fff; font: inherit; font-size: .677083cqw; line-height: 1.4; border-radius: .208333cqw; outline: none; }
.chat-field-label { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; padding: 1.041667cqw .520833cqw .520833cqw; color: var(--text-placeholder); font-size: .677083cqw; line-height: 1.4; white-space: nowrap; pointer-events: none; transition: transform .5s, color .5s, font-size .5s; }
.chat-field i { position: absolute; z-index: 1; left: 0; bottom: 0; width: 100%; height: .104167cqw; border-radius: .208333cqw; background: #4C2365; pointer-events: none; transition: height .5s, background-color .5s; }
.chat-field input:is(:focus, :not(:placeholder-shown)) ~ .chat-field-label,
.chat-input.is-cooling .chat-field-label { color: var(--accent); transform: translate(-.520833cqw, -1.40625cqw); font-size: .520833cqw; }
.chat-field input:is(:focus, :not(:placeholder-shown)) ~ i,
.chat-input.is-cooling .chat-field i { height: 2.291667cqw; }
.chat-input input:focus-visible { box-shadow: inset 0 -.104167cqw #f5dff6; }
.chat-send { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: .416667cqw; background: transparent; color: white; cursor: pointer; }
.chat-send img { width: 1.5625cqw; height: 1.5625cqw; object-fit: contain; filter: brightness(0) invert(1); pointer-events: none; }
.chat-send:focus-visible, .chat-messages:focus-visible { outline: .104167cqw solid var(--accent); outline-offset: -.104167cqw; }
.chat-send:active:not(:disabled) { opacity: .65; }
.chat-input.is-cooling .chat-field i { background: #897e93; }
.chat-input input:disabled { color: #d4cdd9; cursor: not-allowed; }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }
:root[data-color-scheme="light"] .chat-send { background-color: var(--panel-header); }
.chat-wait { position: absolute; z-index: 2; left: 0; bottom: 0; display: flex; align-items: center; width: 100%; min-height: 2.291667cqw; padding: .3125cqw .520833cqw; font-size: .572917cqw; line-height: 1.5; color: #eee9f0; }
.chat-input [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .chat-field-label, .chat-field i { transition: none; }
}
.music { left: 7.4479167%; top: 59.7222222%; width: 23.1770833%; height: 24.7222222%; }
.settings-button { position: absolute; left: 7.4479167%; top: 87.5%; width: 7.03125%; height: 3.796296%; padding: 0; border: .104167cqw solid var(--panel-border); border-radius: .260417cqw; background: var(--panel-header); color: #fff; font: inherit; font-size: .9375cqw; line-height: 1; cursor: pointer; box-shadow: 0 .260417cqw 0 var(--panel-border); transition: transform .1s ease, box-shadow .1s ease; -webkit-tap-highlight-color: transparent; }
.settings-button:active { transform: translateY(.260417cqw); box-shadow: 0 0 0 var(--panel-border); }
.settings-button:focus-visible { outline: .104167cqw solid var(--accent); outline-offset: .260417cqw; }
@media (prefers-reduced-motion: reduce) { .settings-button { transition: none; } }
.music-controls { position: absolute; left: 6.9%; top: 39.325843%; width: 67.4%; height: 32.958801%; }
.music-button {
  position: absolute; top: 0; width: 24.864865%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: .416667cqw; background: transparent;
  color: var(--text-color); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, opacity 120ms ease;
}
.music-previous { left: 0; }
.music-play { left: 50%; margin-left: -15.4054055%; width: 30.810811%; user-select: none; }
.music-next { right: 0; }
.music-button svg { display: block; width: 2.395833cqw; height: 2.291667cqw; fill: currentColor; pointer-events: none; }
.music-play svg { position: absolute; width: 2.34375cqw; height: 2.34375cqw; max-width: 100%; transform: scale(1); transform-origin: center; }
.music-skip-icon { transform-origin: center; }
.music-button svg.is-animating { animation: music-icon-fill .3s ease; }
.music-play .music-pause-icon { display: none; }
.music[data-playback-state="playing"] .music-play-icon { display: none; }
.music[data-playback-state="playing"] .music-pause-icon { display: block; }
@keyframes music-icon-fill {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.music-button:focus-visible { outline: .104167cqw solid var(--accent); outline-offset: .104167cqw; }
.music-button:active, .music-button.is-pressed { transform: scale(.94); opacity: .72; }
@media (prefers-reduced-motion: reduce) {
  .music-button, .music-volume .volume { transition: none; }
  .music-button svg.is-animating { animation: none; }
  .music-button:active, .music-button.is-pressed { transform: none; }
}
.now-playing { position: absolute; top: 83.5%; left: 0; width: 81.2%; padding: 0 6%; overflow: hidden; font-size: .7291667cqw; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
/* Vertical volume level: a rotated range input whose zero-size thumb casts the fill as a shadow. */
.music-volume {
  --slider-length: 5.2cqw; --slider-thickness: 1.041667cqw;
  --slider-bg: rgba(76, 35, 101, .28); --slider-border-radius: .260417cqw;
  --level-color: var(--panel-border); --icon-color: var(--text-color); --icon-size: 1.041667cqw;
  position: absolute; left: 80%; top: 42.8%; width: 15%; height: 37.4%; cursor: pointer;
}
.music-volume .level {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  position: absolute; left: 74.7%; top: 50%; width: var(--slider-length); height: var(--slider-thickness); margin: 0;
  background: var(--slider-bg); overflow: hidden; border-radius: var(--slider-border-radius); cursor: inherit;
  transform: translate(-50%, -50%) rotate(270deg);
}
.music-volume .level::-webkit-slider-thumb {
  -webkit-appearance: none; width: 0; height: 0;
  box-shadow: -10cqw 0 .1cqw 10cqw var(--level-color);
}
.music-volume .level::-moz-range-thumb {
  width: 0; height: 0; border: none; border-radius: 0;
  box-shadow: -10cqw 0 .1cqw 10cqw var(--level-color);
}
.music-volume .level::-moz-range-track { background: transparent; }
.music-volume .level:focus-visible { outline: .104167cqw solid var(--accent); outline-offset: .104167cqw; }
.music-volume .volume {
  position: absolute; left: 29%; top: 50%; width: var(--icon-size); height: var(--icon-size);
  color: var(--icon-color); pointer-events: none; transform: translate(-50%, -50%); transition-duration: .5s;
}
.music-volume .level:hover ~ .volume { opacity: .6; }
.music-volume.is-muted .volume { opacity: .35; }
.music-waveform {
  position: absolute; left: 10%; top: 74.531835%; width: 61.2%; height: 1.145833cqw;
  display: flex; align-items: center; justify-content: center; gap: .208333cqw;
  overflow: hidden; pointer-events: none; opacity: 0;
}
.music-waveform span {
  flex: 0 0 .208333cqw; height: 100%; border-radius: .104167cqw; background: var(--accent);
  transform: scaleY(.15); transform-origin: center;
}
.music[data-playback-state="playing"] .music-waveform { opacity: .8; }
.music[data-playback-state="playing"] .music-waveform span {
  animation: music-wave var(--wave-duration) ease-in-out var(--wave-delay) infinite;
}
@keyframes music-wave {
  0%, 100% { transform: scaleY(.15); }
  45% { transform: scaleY(var(--wave-peak)); }
}
@media (prefers-reduced-motion: reduce) {
  .music[data-playback-state="playing"] .music-waveform span { animation: none; transform: scaleY(var(--wave-peak)); }
}
.updates { left: 31.9270833%; top: 59.7222222%; width: 36.1458333%; height: 24.7222222%; }
.updates > .box-content { display: flex; flex-direction: column; }
.updates h2 { flex: 0 0 3.75cqw; height: 3.75cqw; font-size: 1.5625cqw; line-height: 2; }
.updates .posts-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  margin: .3125cqw .416667cqw .416667cqw; padding: 0 .625cqw;
  border-radius: 0 0 .625cqw .625cqw; overscroll-behavior-y: contain;
  scrollbar-width: thin; scrollbar-color: #4c2365 transparent;
}
.updates .posts-scroll:focus-visible { outline: .104167cqw solid var(--accent); outline-offset: -.104167cqw; }
.updates .posts-scroll::-webkit-scrollbar { width: .3125cqw; }
.updates .posts-scroll::-webkit-scrollbar-thumb { background: #4c2365; border-radius: .3125cqw; }
.updates .posts-list { list-style: none; margin: 0; padding: 0; }
.updates .post-item {
  display: grid; grid-template-columns: 1.666667cqw minmax(0, 1fr); gap: .625cqw;
  padding: .65cqw .3125cqw; border-bottom: .052083cqw solid rgba(255,255,255,.22);
}
.updates .post-item:last-child { border-bottom: 0; }
.updates .post-number {
  width: 1.666667cqw; height: 1.666667cqw; margin-top: .208333cqw;
  border: .052083cqw solid rgba(255,255,255,.35); border-radius: .416667cqw;
  background: rgba(76,35,101,.12); color: var(--accent);
  font-size: .729167cqw; line-height: 1.666667cqw; text-align: center;
}
.updates .post-item h3 { margin: 0; font-size: .9375cqw; line-height: 1.8; font-weight: 400; }
.updates .post-item p { margin: 0; font-size: .729167cqw; line-height: 1.8; color: var(--text-muted); }
@media (hover: hover) and (pointer: fine) {
  .box:hover { box-shadow: 0 0 100px 20px rgba(196, 164, 218, 0.85); z-index: 10; }
  .box:not(.navigation):hover > .box-content { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  .box, .box-content { transition: none; }
  .box:hover > .box-content { transform: none; }
}

.design { filter: blur(0); }
.design:focus { outline: none; }
.welcome-pending .design { filter: blur(10px); pointer-events: none; }
.welcome-entering .design { transition: filter .65s ease; }
.welcome-dialog {
  width: min(540px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain;
  border: 8px solid var(--panel-border); border-radius: 0;
  background: var(--panel-bg); color: var(--text-color); font: inherit;
  box-shadow: inset 0 0 30px #0002, 0 14px 30px #301c3e55;
  transform: translateY(0); opacity: 1;
  transition: transform .65s cubic-bezier(.55, 0, .9, .45), opacity .65s ease;
}
.welcome-dialog::backdrop { background: rgba(48, 28, 62, .2); transition: background-color .65s ease; }
.welcome-dialog.is-leaving { transform: translateY(-100svh); opacity: 0; }
.welcome-dialog.is-leaving::backdrop { background-color: transparent; }
.welcome-dialog-header { position: relative; padding: 24px 20px; background: var(--panel-header); color: #fff; text-align: center; }
.welcome-close {
  position: absolute; top: 50%; right: 16px; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px;
  background: transparent; color: #fff; cursor: pointer; transition: transform .1s ease, opacity .1s ease;
}
.welcome-close[hidden] { display: none; }
.welcome-close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.welcome-close:hover { opacity: .75; }
.welcome-close:active { transform: scale(.9); }
.welcome-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.welcome-dialog-header h2 { margin: 0; font-size: clamp(32px, 5vw, 46px); font-weight: 400; line-height: 1.4; }
.welcome-dialog-header h2:focus { outline: none; }
.welcome-settings { display: grid; gap: 36px; padding: 36px 40px 40px; }
.welcome-settings > p { margin: 0; font-size: 18px; line-height: 1.8; text-align: center; }
.welcome-options { display: grid; gap: 28px; width: min(100%, 340px); margin: 0 auto; }
.welcome-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; font-size: 20px; line-height: 1.5; }
label.welcome-setting { cursor: pointer; }
.welcome-switch {
  --input-focus: var(--panel-border); --bg-color: #fff; --main-color: var(--panel-border);
  position: relative; display: flex; flex: 0 0 50px; justify-content: center; align-items: center;
  width: 50px; height: 20px; margin: 0 8px 0 0;
}
.welcome-toggle, .welcome-theme-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.welcome-slider { position: absolute; inset: 0; border: 2px solid var(--main-color); border-radius: 5px; box-shadow: 4px 4px var(--main-color); background-color: var(--page-bg); cursor: pointer; transition: background-color .3s; }
.welcome-slider::before { position: absolute; content: ''; height: 20px; width: 20px; left: -2px; bottom: 2px; border: 2px solid var(--main-color); border-radius: 5px; background-color: var(--bg-color); box-shadow: 0 3px 0 var(--main-color); transition: transform .3s; }
.welcome-toggle:not(:checked) + .welcome-slider { --main-color: #b83242; background-color: #d94b5b; }
.welcome-toggle:checked + .welcome-slider { background-color: var(--input-focus); }
.welcome-toggle:checked + .welcome-slider::before { transform: translateX(30px); }
.welcome-toggle:focus-visible + .welcome-slider { outline: 2px solid var(--accent); outline-offset: 6px; }
.welcome-theme-options { display: flex; align-items: center; gap: 10px; }
.welcome-theme-choice { position: relative; display: grid; place-items: center; width: 28px; height: 32px; cursor: pointer; }
.welcome-swatch { display: block; width: 26px; height: 26px; border: 1px solid var(--panel-border); border-radius: 50%; }
.welcome-swatch-purple { background: #7f5d99; }
.welcome-swatch-light { background: #fff; }
.welcome-theme-choice input:checked + .welcome-swatch { border-width: 2px; box-shadow: 0 4px 0 var(--panel-border); transform: translateY(-2px); }
.welcome-theme-choice input:focus-visible + .welcome-swatch { outline: 2px solid var(--accent); outline-offset: 4px; }
.welcome-confirm { justify-self: center; min-width: 150px; border: 1px solid var(--panel-border); outline: none; background-color: var(--panel-header); padding: 10px 28px; font: inherit; font-size: 18px; font-weight: 700; color: #fff; border-radius: 5px; cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; box-shadow: 0 5px 0 var(--panel-border); }
.welcome-confirm:active { transform: translateY(5px); box-shadow: 0 0 0 var(--panel-border); }
.welcome-confirm:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
.welcome-confirm:disabled { cursor: default; }
@media (max-width: 480px), (max-height: 620px) {
  .welcome-dialog { border-width: 5px; }
  .welcome-dialog-header { padding: 18px 16px; }
  .welcome-close { right: 8px; }
  .welcome-settings { padding: 24px 22px 28px; gap: 24px; }
  .welcome-settings > p { font-size: 16px; }
  .welcome-options { gap: 22px; }
  .welcome-setting { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-entering .design, .welcome-dialog, .welcome-dialog::backdrop,
  .welcome-slider, .welcome-slider::before, .welcome-confirm, .welcome-close { transition: none; }
}

.chat-status { position: absolute; left: 1.45cqw; right: 1.45cqw; bottom: 15%; margin: 0; font-size: .65cqw; line-height: 1.4; }
.chat-messages { bottom: 19%; }
