/* Anima's ring room. System fonts only, nothing external. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.ring-page {
  background: radial-gradient(900px 640px at 50% 52%, #12102a 0%, #07070f 58%, #030308 100%);
  color: #ddd6ee; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: #b9a6d8; }
:where(a, [tabindex]):focus-visible { outline: 2px solid #f4e3b5; outline-offset: 3px; }

.room { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem 1rem 4.5rem; }
.room-name { position: absolute; top: 1rem; left: 1.2rem; margin: 0; font-weight: normal; font-size: .95rem; letter-spacing: .3em; text-transform: lowercase; color: #6f6888; }

.ring { position: relative; width: min(86vw, 74vh, 620px); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: crosshair; }
.ring:focus-visible { outline: 1px dashed #6f6888; outline-offset: 6px; }
#ring-canvas { position: absolute; inset: -12%; width: 124%; height: 124%; display: block; }
.center { position: absolute; inset: 24%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.now-line { margin: 0; font-style: italic; color: #f1ecfa; font-size: clamp(.95rem, 2.4vmin, 1.25rem); line-height: 1.4; opacity: 0; transition: opacity 1.6s ease; }
.now-expl { margin: .6rem 0 0; color: #a79fbe; font-size: clamp(.78rem, 1.8vmin, .95rem); line-height: 1.45; opacity: 0; transition: opacity 2.2s ease .5s; }
.center.shown .now-line, .center.shown .now-expl { opacity: 1; }

.whisper { min-height: 1.3em; margin: 1.2rem 0 0; font-size: .85rem; color: #6f6888; font-style: italic; text-align: center; }
.secret { margin: .4rem 0 0; font-size: .9rem; animation: surface 3s ease both; }
.secret a { color: #c9b4ee; text-decoration: none; border-bottom: 1px dotted #6f6888; }
.secret a:hover { color: #fff; }
@keyframes surface { from { opacity: 0; } to { opacity: .85; } }

.edge { position: absolute; left: 0; right: 0; bottom: .8rem; }
.edge ul { list-style: none; margin: 0; padding: 0 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.1rem;
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: .74rem; letter-spacing: .08em; }
.edge a { color: #6f6888; text-decoration: none; }
.edge a:hover, .edge a:focus-visible { color: #d8ccef; }
.edge .hub a { color: #4f8f74; }

/* the plain list: the whole page without JavaScript, and for screen readers with it */
.plain-list { max-width: 40rem; margin: 2rem auto 0; }
.plain-list h2 { font-weight: normal; color: #5fd3a0; font-size: 1.1rem; }
.plain-list li { margin: 0 0 .9rem; }
.plain-list .ax-line { margin: 0; font-style: italic; color: #fff; }
.plain-list .ax-expl { margin: .2rem 0 0; color: #b2abc6; }
.has-js .plain-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
html:not(.has-js) .ring, .js-only { display: none; }
.has-js .js-only { display: block; }
.has-js .no-js-only { display: none; }
html:not(.has-js) .room { justify-content: flex-start; padding-top: 3rem; }
html:not(.has-js) .edge { position: static; margin-top: 2rem; }

@media (max-width: 560px) { .room-name { top: .7rem; } .edge ul { font-size: .7rem; } }
@media (prefers-reduced-motion: reduce) {
  .now-line, .now-expl { transition: none; }
  .secret { animation: none; opacity: .85; }
}
