/* The public page. The console's tokens (console.css) carry the identity:
   jade and celadon on the void, Texturina throughout. The night sky behind
   the high seat is the one loud thing; everything else stays quiet. */
html, body { height: auto; overflow: auto; overflow-x: hidden; }
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { font-size: 16.5px; line-height: 1.65; background-color: var(--void); }
a { color: var(--celadon); }

/* ---- the seat ---- */
.seat { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background: #04030c; isolation: isolate; }
.seat .sky-cv { position: absolute; inset: 0; z-index: -1; }
.seat-in { width: min(560px, 100% - 40px); padding: 9vh 0 7vh; }
.seat h1 { font-weight: 300; font-size: clamp(46px, 11vw, 92px); line-height: .95; letter-spacing: .01em;
  margin: 0 0 18px; color: #e6e1f4; text-shadow: 0 0 40px rgba(150,120,255,.35); }
.seat-sub { font-size: 18px; color: rgba(225,222,240,.78); max-width: 34em; margin: 0 0 34px; font-style: italic; }

.cast { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px;
  background: rgba(8,8,22,.62); border: 1px solid rgba(150,130,230,.22); border-radius: 3px;
  padding: 22px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cast label { display: grid; gap: 6px; font-size: 14px; color: var(--celadon); }
.cast label span { color: var(--ivory-dim); font-size: 13px; font-style: italic; }
.cast .f-name, .cast .f-place, .cast .hint, .cast .btn-cast, .cast .err { grid-column: 1 / -1; }
.cast input { font: inherit; font-size: 16px; color: var(--ivory); background: rgba(2,2,10,.7);
  border: 1px solid rgba(156,180,166,.25); border-radius: 2px; padding: 11px 12px; width: 100%; color-scheme: dark; }
.cast input:focus { outline: 1px solid var(--jade); border-color: var(--jade); }
.f-place { position: relative; }
#placeList { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin: 4px 0 0; padding: 4px 0;
  list-style: none; background: #0b0d18; border: 1px solid rgba(150,130,230,.3); max-height: 300px; overflow-y: auto; }
#placeList li { padding: 9px 12px; cursor: pointer; color: var(--ivory); font-size: 15px; }
#placeList li span { color: var(--ivory-dim); font-size: 13.5px; }
#placeList li.on, #placeList li:hover { background: rgba(95,156,134,.18); }
#placeList li.none { cursor: default; color: var(--ivory-dim); font-style: italic; }
.hint { margin: 0; font-size: 13.5px; color: var(--ivory-dim); }
.btn-cast, .btn-buy { font: inherit; font-size: 17px; letter-spacing: .02em; cursor: pointer; border-radius: 2px;
  padding: 13px 18px; border: 1px solid var(--jade); background: var(--jade-deep); color: #eef3ef; }
.btn-cast:hover, .btn-buy:hover { background: var(--jade); }
.btn-cast:disabled, .btn-buy:disabled { opacity: .6; cursor: wait; }
.err { margin: 0; min-height: 1em; color: #e0a090; font-size: 14.5px; }

/* ---- results ---- */
main { width: min(980px, 100% - 32px); margin: 0 auto; padding: 40px 0 20px; }
.blk { padding: 46px 0; border-top: 1px solid var(--rule); }
.blk h2 { font-weight: 400; font-size: 30px; color: var(--celadon); margin: 0 0 6px; }
.meta { color: var(--ivory-dim); margin: 0 0 20px; }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#posTable { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
#posTable caption { text-align: left; color: var(--ivory-dim); font-size: 13.5px; font-style: italic; padding-bottom: 8px; }
#posTable th, #posTable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); font-weight: 400; white-space: nowrap; }
#posTable tr:first-of-type th { color: var(--ivory-dim); font-size: 13.5px; }
#posTable th[scope=row] { color: var(--celadon); }
#posTable tr.ang td, #posTable tr.ang th { color: var(--gold); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 34px; }
.fact h3 { font-weight: 400; font-size: 19px; color: var(--ivory); margin: 0 0 10px; }
.fact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.fact dt { color: var(--ivory-dim); } .fact dd { margin: 0; }
.kar { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.kar li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.kar li span { color: var(--ivory-dim); }

.offer { border: 1px solid rgba(184,146,74,.35); border-radius: 3px; padding: 34px clamp(20px, 5vw, 44px); margin: 30px 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(184,146,74,.09), transparent 60%); }
.offer h2 { color: var(--gold); }
.offer p { max-width: 40em; }
.btn-buy { border-color: var(--gold); background: rgba(184,146,74,.22); margin-top: 8px; }
.btn-buy:hover { background: rgba(184,146,74,.4); }
.fine { font-size: 13.5px; color: var(--ivory-dim); }

/* the console's panels were sized for a fixed room; let them breathe on a page */
#armBlk svg { max-width: 100%; height: auto; }
#colourBlk svg { max-width: min(100%, 560px); height: auto; display: block; margin: 0 auto; }
.arm-wrap { max-width: 100%; }

/* ---- the sky now ---- */
.tr-when { color: var(--ivory-dim); margin: 0 0 18px; }
.tr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 30px; align-items: start; }
.tr-stage svg { width: 100%; max-width: 520px; display: block; margin: 0 auto; }
#trSVG text { text-anchor: middle; dominant-baseline: central; font-family: var(--serif); }
.tr-sign { fill: var(--ivory-dim); font-size: 12px; }
.tr-house { fill: rgba(217,212,196,.45); font-size: 8.5px; }
.tr-ring { fill: none; stroke: var(--rule); }
.tr-div { stroke: rgba(156,180,166,.1); }
.tr-asc { stroke: var(--gold); stroke-width: 1.2; }
.tr-natal { fill: var(--celadon); font-size: 14px; }
.tr-glyph { fill: var(--ivory); font-size: 15px; pointer-events: none; }
.tr-rx { fill: #c58a7a; font-size: 7px; pointer-events: none; }
.tr-hit { fill: transparent; cursor: pointer; }
.tr-halo { fill: rgba(95,156,134,.16); stroke: var(--jade); stroke-width: 1; }
.tr-thread { stroke: var(--gold); stroke-width: 1; stroke-opacity: .8; }
.tr-thread.dim, .tr-mov.dim { opacity: .25; }
.tr-mov.sel .tr-glyph { fill: var(--gold); }
.tr-mov:focus-visible { outline: none; } .tr-mov:focus-visible .tr-hit { stroke: var(--gold); }
.tr-c1 { fill: var(--gold); font-size: 13px; } .tr-c2 { fill: var(--ivory-dim); font-size: 7.5px; }
.tr-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.tr-list li { padding: 11px 0 11px 12px; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; cursor: pointer; }
.tr-list li.lit { border-left-color: var(--gold); }
.tr-list li.sel { background: rgba(184,146,74,.08); }
.tr-b { color: var(--celadon); } .tr-b small { color: #c58a7a; font-size: 13px; }
.tr-list .sw, .sw { display: inline-block; width: .75em; height: .75em; margin-right: .3em; vertical-align: -.03em; border-radius: 1px; }
.tr-note { border-left: 2px solid var(--gold); padding-left: 12px; margin-top: 22px; }
@media (max-width: 900px) { .tr-wrap { grid-template-columns: 1fr; } }

/* ---- music ---- */
.music { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  font: inherit; font-size: 14px; color: var(--ivory); background: rgba(8,8,22,.8); cursor: pointer;
  border: 1px solid rgba(150,130,230,.35); border-radius: 20px; padding: 8px 14px; backdrop-filter: blur(6px); }
.music[aria-pressed="true"] { border-color: var(--jade); color: var(--celadon); }

.foot { width: min(980px, 100% - 32px); margin: 0 auto; padding: 30px 0 50px; border-top: 1px solid var(--rule); color: var(--ivory-dim); }
.foot p { margin: 4px 0; }

@media (max-width: 560px) {
  .cast { grid-template-columns: 1fr; padding: 18px; }
  .blk h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
