.ways-section{margin:0 0 2rem;color:#18354b}
.ways-section h2,.ways-dialog h2,.ways-panel h2,#night-room h2{font:normal clamp(1.55rem,3vw,2.15rem)/1.1 Georgia,serif;letter-spacing:-.035em;margin:0}
.ways-section h2{margin:0 0 1rem}
.ways-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
.way{display:flex;align-items:center;gap:.8rem;border:1px solid #b6b0a1;border-radius:.65rem;background:#faf6ec;padding:.52rem;color:#18354b;text-decoration:none}
.way:hover,.way:focus-visible{background:#fffaf0;border-color:#656b5f;outline-color:#795c2b}
.way img{width:clamp(4.1rem,6vw,5rem);height:4.15rem;object-fit:cover;border-radius:.35rem;flex:none}
.way>span{min-width:0;display:grid;gap:.17rem}
.way strong{color:#182f45;font:600 1.02rem/1.17 Georgia,serif}
.way span span{color:#3a4e55;font:normal .84rem/1.36 var(--ui)}
.seated .ways-section,.in-ritual .places,.in-ritual .attention-invite,.in-ritual #sitbar,.in-ritual #view-controls{display:none}
.in-ritual .seat-items{pointer-events:none}.in-ritual .seat-items button{pointer-events:none}
#ways-dialog,#share-sit-dialog{margin:auto;padding:clamp(1rem,3.3vw,1.8rem);background:#fbf6e9;color:#193448;border:1px solid #9e9d91;border-radius:.85rem;width:min(34rem,calc(100% - 1.5rem));max-width:100%;max-height:87svh;overflow:auto;color-scheme:light;box-shadow:0 16px 85px #101a2380}
#ways-dialog::backdrop,#share-sit-dialog::backdrop{background:#12212acc}
#share-sit-content .share-sit-image{width:100%;height:clamp(8rem,28vw,12.5rem);object-fit:cover;border-radius:.55rem;margin-top:.9rem;display:block}
#share-sit-content input{width:100%;min-width:0;min-height:44px;padding:.5rem .7rem;border:1px solid #8d9e9f;border-radius:.4rem;background:#fffdf7;color:#193448}
#share-sit-content .ways-actions{margin-top:1rem}
#share-sit-content [role=status]{margin-bottom:0}
.ways-head,.ways-session-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.65rem}
.ways-dialog .ways-close{flex:none;min-width:44px;font-size:1.35rem;line-height:1;padding:0}
.ways-dialog button,.ways-panel button,#night-room button{min-height:44px;border:1px solid transparent;border-radius:1.6rem;padding:.53rem .95rem;background:#24475b;color:#fffdf5;font:600 .9rem/1.25 var(--ui);cursor:pointer}
.ways-dialog button:hover,.ways-dialog button:focus-visible{background:#152f40}
.ways-dialog button.secondary,.ways-dialog button.ways-close{background:#f3eddf;color:#193448;border-color:#a7aca2}
.ways-dialog button.text-button{background:transparent;text-decoration:underline;color:#234256}
.ways-dialog button:disabled,.ways-panel button:disabled{opacity:.6}
.ways-dialog :is(input,select,a,button):focus-visible,.way:focus-visible{outline:3px solid #93662b;outline-offset:2px}
.ways-summary,.ways-body p,#night-content p{margin:.7rem 0 .95rem;line-height:1.5}
.ways-body h3{margin:1rem 0 .3rem;color:#18354b;font:600 1.16rem/1.25 Georgia,serif}
.ways-body a{color:#204f66;text-decoration:underline}
.ways-body audio{display:block;width:100%;max-width:100%;margin:1rem 0}
.recording audio:not([controls]){display:none}
.recording-time{color:#3a4e55;font-variant-numeric:tabular-nums;white-space:nowrap}
.recording input[type="range"]{display:block;width:100%;margin:.4rem 0;min-height:32px;accent-color:#24475b}
.recording [role="status"]:empty{display:none}
.listening-start{margin:1rem 0 1.25rem}
.listening-phase{font-weight:650}
.listening-practice audio{display:none}
.listening-practice .ways-field{max-width:14rem;margin-top:1rem}
.listening-practice .ways-field input[type="range"]{padding:0;accent-color:#638679}
.listening-status:empty{display:none}
#settings.sound-settings .dialog-body>:not(#seat-sounds){display:none}
#settings.sound-settings #seat-sounds>.field:first-child{margin-top:0}
#ways-dialog.listening-dark{background:#0c1516;color:#dae4db;border-color:#3a504d;color-scheme:dark;box-shadow:none}
#ways-dialog.listening-dark::backdrop{background:#0c1516}
#ways-dialog.listening-dark :is(h2,h3){color:#e6e9db}
#ways-dialog.listening-dark .ways-summary{display:none}
#ways-dialog.listening-dark .listening-practice a{color:#b2d7c9}
#ways-dialog.listening-dark button{background:#325554}
#ways-dialog.listening-dark button.secondary,#ways-dialog.listening-dark button.ways-close{background:#182a2a;color:#e3e8de;border-color:#67827c}
#ways-dialog.listening-dark .ways-field input[type="range"]{background:#182a2a}
#ways-dialog.live-window-dialog{width:min(55rem,calc(100% - 1.5rem))}
.live-window-view{margin:1rem 0}
.live-window-view iframe{display:block;width:100%;aspect-ratio:16/9;max-height:52svh;background:#101d18;border:0;border-radius:.5rem}
#room-tv{margin:auto;width:min(36rem,calc(100% - 1.5rem));max-width:100%;max-height:90svh;overflow:auto;padding:clamp(1rem,3vw,1.6rem);background:#fbf6e9;color:#193448;border:1px solid #9e9d91;border-radius:.85rem;color-scheme:light}
#room-tv::backdrop{background:#12212acc}
#room-tv p{line-height:1.55;margin:.65rem 0}
.tv-code{margin:.85rem 0}
.tv-code canvas{display:block;width:min(14rem,100%);height:auto;background:#fff;image-rendering:pixelated}
#room-tv.tv-showing{width:100%;height:100%;max-height:none;max-width:none;inset:0;padding:0;border:0;border-radius:0;background:#12231c;color:#fffdf5}
#room-tv.tv-showing::backdrop{background:#12231c}
#room-tv.tv-showing .ways-head{position:absolute;z-index:2;top:max(1rem,env(safe-area-inset-top));right:max(1rem,env(safe-area-inset-right))}
#room-tv.tv-showing h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#room-tv.tv-showing .ways-head button{background:#102a22e8;color:#fffdf5;border-color:#e0ede0}
.tv-display,.tv-display img{position:absolute;inset:0;width:100%;height:100%}
.tv-display img{object-fit:cover}
.tv-timer,.tv-credit,.tv-display [role="status"]:not(:empty),.tv-display .tv-enable-sound{position:absolute;background:#102a22e8;color:#fffdf5;border-radius:.65rem;padding:.45rem .8rem}
.tv-timer{top:1rem;left:1rem;font-variant-numeric:tabular-nums}
.tv-credit{bottom:.4rem;left:1rem;max-width:80%}
.tv-credit a{color:inherit;text-decoration:underline}
.tv-display [role="status"]:not(:empty){bottom:3rem;left:1rem;max-width:80%}
.tv-display .tv-enable-sound{bottom:1rem;right:1rem}
.ways-field{display:grid;gap:.2rem;margin:.7rem 0;color:inherit;font-weight:600}
.ways-field input,.ways-field select{min-width:0;width:100%;margin:0;min-height:44px;padding:.52rem .64rem;border:1px solid #899690;border-radius:.35rem;background:#fffdf7;color:#193448;font-size:1rem}
.ways-check{display:flex;align-items:center;gap:.55rem;margin:.8rem 0 1rem;font-size:.93rem}
.ways-check input{width:1.1rem;height:1.1rem;margin:0}
.ways-actions,.seat-row{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.seat-row{padding:.7rem 0;border-top:1px solid #c6c5b7}
.seat-row>div{min-width:8rem;flex:1}
.seat-row p,.ways-status{margin:.2rem 0;font-size:.85rem;line-height:1.35}
.closing-seat{margin:1rem 0 1.3rem;padding:1rem 1.2rem;scroll-margin:5rem 0 1rem;border:1px solid #cbd8dc;border-radius:.85rem;background:#f5f8f5;color:#193448}
.closing-seat h2{margin:0;font:normal 1.45rem/1.2 Georgia,serif}
.closing-seat .closing{margin:.35rem 0 .8rem;padding:0;color:#39545f}
.closing-seat-save{min-height:44px;padding:.52rem 1rem;border:1px solid #235059;border-radius:2rem;background:#235059;color:#fff;font-weight:600}
.closing-seat-save:hover{background:#193e48}
.ways-status:not(:empty){margin-top:.8rem}
.ways-panel{position:absolute;z-index:5;left:clamp(.65rem,3vw,2.5rem);bottom:clamp(.8rem,3vw,2.5rem);padding:1rem 1.2rem;max-width:min(33rem,calc(100% - 1.3rem));max-height:calc(100% - 6rem);overflow:auto;background:#112823ef;color:#fff9e6;border:1px solid #d5d4b680;border-radius:.75rem;box-shadow:0 10px 38px #14231c50}
.ways-panel h2{font-size:clamp(1.2rem,2.5vw,1.7rem);color:#fff8e2}
.ways-panel p{font-size:1rem;line-height:1.5;margin:.75rem 0}.ways-panel p:empty{display:none}
.ways-panel small{display:block}.ways-panel small:empty{display:none}
.ways-session-head span{font-variant-numeric:tabular-nums;white-space:nowrap;color:#f0ddb3}
.ways-panel button{background:#efdbad;color:#182a26}
.ways-panel button.secondary{background:#193731;color:#f5efdd;border-color:#899e89}
.ways-panel .ways-actions{margin-top:.65rem}
#night-room{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:clamp(1rem,5vw,4rem);border:0;background:#0c1012;color:#a6a59a;color-scheme:dark}
#night-room::backdrop{background:#0c1012}
.night-inner{width:min(28rem,100%);margin:clamp(1.5rem,15vh,8rem) auto 1rem}
#night-room h2{color:#b8b4a5}
#night-room button,#night-room select{background:#1a2020;color:#b0ada0;border:1px solid #56594c}
#night-room button{margin:.4rem .4rem .4rem 0}
#night-room :focus-visible{outline-color:#92927e}
@media(max-width:850px){.ways-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.ways-grid{grid-template-columns:minmax(0,1fr)}.way img{width:4.5rem;height:3.75rem}.ways-panel{padding:.85rem}.ways-dialog h2{align-self:center}}

#ways-dialog.listening-scene {
  box-sizing:border-box;
  width:100%;
  max-width:none;
  height:100%;
  max-height:100%;
  margin:0;
  border:0;
  border-radius:0;
  padding:0;
  isolation:isolate;
  color:#fffaf1;
  background:#101e1b;
}
#ways-dialog.listening-scene .ways-head {
  position:sticky;
  top:0;
  z-index:2;
  padding:calc(.6rem + env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) .6rem max(1rem,env(safe-area-inset-left));
  align-items:center;
  background:#142621;
}
#ways-dialog.listening-scene .ways-head h2 {font-size:clamp(1.2rem,3.7vw,1.9rem);color:inherit;}
#ways-dialog.listening-scene .ways-summary {display:none;}
#ways-dialog.listening-scene .ways-body {
  min-height:calc(100dvh - 4.4rem - env(safe-area-inset-top));
  box-sizing:border-box;
  display:flex;
  align-items:flex-end;
  padding:1rem max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));
}
.listening-landscape {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-1;
}
.listening-landscape[hidden] {display:none;}
#ways-dialog.listening-scene .listening-practice {
  width:min(100%,30rem);
  padding:clamp(.85rem,2.3vw,1.25rem);
  border:1px solid #a1b3a78c;
  border-radius:.75rem;
  color:#fffaf1;
  background:#142621f5;
}
#ways-dialog.listening-scene .listening-practice h3 {color:inherit;margin-top:0;}
#ways-dialog.listening-scene .listening-practice p {margin:.45rem 0 .6rem;}
#ways-dialog.listening-scene .listening-setting,
#ways-dialog.listening-scene .recording-time {color:#d3e2d5;}
#ways-dialog.listening-scene .listening-practice a {color:#c6eae0;}
#ways-dialog.listening-scene .listening-practice .ways-actions {margin:.65rem 0;}

.way img.way-object {object-fit:contain;padding:.4rem;background:#ebe4d5;}
.mala-beads {display:block;width:7rem;height:6rem;object-fit:contain;margin:.75rem 0;}
.mala-phrase {overflow-wrap:anywhere;font-size:1.35rem;}
.mala-count,.candle-time {font-variant-numeric:tabular-nums;}
.mala-count {font-size:1.2rem;font-weight:650;}
.mala-progress {display:block;width:100%;margin:.55rem 0 1rem;accent-color:#356c5c;}
#ways-dialog.candle-gazing .ways-body {display:grid;place-items:center;}
#ways-dialog.candle-gazing .ways-head {background:#111f1d;}
.candle-practice {width:min(100%,35rem);text-align:center;}
.candle-practice .ways-actions {justify-content:center;}
.candle-target {
  --gazing-base:clamp(7rem,36vmin,13rem);
  display:grid;
  place-items:center;
  grid-template:minmax(0,1fr) / minmax(0,1fr);
  height:clamp(8rem,53svh,26rem);
  overflow:hidden;
}
.candle-target[hidden],.gazing-size-field[hidden] {display:none;}
.candle-target img {
  display:block;
  width:min(100%,calc(var(--gazing-base) * var(--gazing-scale,1)));
  height:auto;
  max-height:100%;
  object-fit:contain;
}
.gazing-point {
  width:calc(.85rem * var(--gazing-scale,1));
  aspect-ratio:1;
  border-radius:50%;
  background:#e4cb98;
}
.gazing-size-field {grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:.65rem;}
.gazing-size-field input {grid-column:1 / -1;grid-row:2;accent-color:#bb9a66;padding:0;}
.gazing-size-value {font-variant-numeric:tabular-nums;}
.candle-practice .gazing-size-field {max-width:16rem;margin:.45rem auto .75rem;text-align:start;}

.daily-counter {
  margin:1.1rem 0;
  padding:1rem;
  border:1px solid #b7c3b4;
  border-radius:.75rem;
  background:#eaf0e4;
  text-align:center;
}
.daily-counter .daily-count-number {
  margin:0;
  color:#23463b;
  font:600 clamp(3.4rem,11vw,6rem)/1 Georgia,serif;
  font-variant-numeric:tabular-nums;
}
.daily-counter .daily-count-label {margin:.35rem 0;color:#284b40;font-weight:650;}
.daily-countdown {font-variant-numeric:tabular-nums;font-weight:650;}
#ways-dialog.labyrinth-open {width:min(34rem,calc(100% - 1rem));}
.finger-labyrinth {
  display:block;
  width:min(100%,26rem);
  height:auto;
  margin:0 auto;
  border:1px solid #507165;
  border-radius:1rem;
  background:radial-gradient(circle at 50% 40%,#243e35,#152921 75%);
  cursor:crosshair;
  touch-action:none;
}
.finger-labyrinth[hidden] {display:none;}
.finger-labyrinth:focus-visible {outline:3px solid #8b692f;outline-offset:3px;}
.labyrinth-cue {min-height:2.6em;}
.changing-scene-image,.changing-scene-light {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:-1;
}
.changing-scene-image {object-fit:cover;}
.changing-scene-light {
  background:radial-gradient(ellipse at var(--scene-light-x,18%) 24%, var(--scene-light-color,#f8bd715c), transparent 65%);
  mix-blend-mode:screen;
  pointer-events:none;
}
.changing-scene-time {font-variant-numeric:tabular-nums;}

.ways-heading-row { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.3rem 1rem; }
.ways-heading-row a { color:inherit; font-size:.91rem; text-underline-offset:.2em; }
