/* ================================================================
   読書ラウンジ（/lounge/）— lounge.css
   部屋は明るいテーマでも「夜の書斎」の色で統一する（景色の絵とランプの光を主役にするため）
   ================================================================ */
.page-lounge {
  --lg-bg: #120d0a;
  --lg-bg2: #1b1410;
  --lg-card: #221a14;
  --lg-card2: #2b2119;
  --lg-ink: #f6ecdf;
  --lg-ink2: #d9c8b4;
  --lg-muted: #a8957f;
  --lg-line: #3a2e24;
  --lg-amber: #ffb35c;
  --lg-amber2: #ff8a3d;
  --lg-glow: rgba(255, 170, 80, 0.35);
  --lg-mint: #7fe0c2;
  background: var(--lg-bg);
  color: var(--lg-ink);
  color-scheme: dark;
}
.page-lounge .hd {
  background: rgba(18, 13, 10, 0.72);
  border-color: transparent;
  color: var(--lg-ink);
}
.page-lounge .hd .logo,
.page-lounge .hd .nav a {
  color: var(--lg-ink);
}
.page-lounge .ft {
  background: #0c0907;
  color: var(--lg-ink2);
}
.page-lounge a {
  color: var(--lg-amber);
}
.page-lounge .small {
  color: var(--lg-muted);
}
.page-lounge .btn {
  background: var(--lg-card2);
  border-color: var(--lg-line);
  color: var(--lg-ink);
}
.page-lounge .btn.primary {
  background: linear-gradient(120deg, #ff9f43, #ff6b35 55%, #e8436b);
  color: #1b0f08;
  box-shadow: 0 12px 30px -10px rgba(255, 120, 50, 0.7);
}
.page-lounge .btn:disabled {
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}
.page-lounge select,
.page-lounge input[type='number'] {
  background: var(--lg-card2);
  color: var(--lg-ink);
  border: 1.5px solid var(--lg-line);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  max-width: 100%;
}
.page-lounge input[type='range'] {
  accent-color: var(--lg-amber);
}
.page-lounge .faq details {
  background: var(--lg-card);
  border-color: var(--lg-line);
  color: var(--lg-ink);
}
.page-lounge .faq summary {
  color: var(--lg-ink);
}
.page-lounge .faq p {
  color: var(--lg-ink2);
}
.page-lounge .h2 {
  color: var(--lg-ink);
}
.page-lounge .cta {
  background: var(--lg-card);
  border-color: var(--lg-line);
  color: var(--lg-ink);
}

/* ---------- ヒーロー（生きている絵） ---------- */
.lg-hero {
  position: relative;
  min-height: min(92vh, 820px);
  min-height: min(92svh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  margin-top: -66px;
  padding-top: 66px;
}
.lg-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, #3a2a1c, #120d0a 70%);
  overflow: hidden;
}
.lg-paint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease;
  will-change: transform;
}
.mo .lg-hero .lg-paint {
  animation: lg-kb 60s ease-in-out infinite alternate;
}
@keyframes lg-kb {
  from {
    transform: scale(1.04) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, -1%);
  }
}
.lg-paint.is-out {
  opacity: 0;
}
.lg-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 13, 10, 0.55) 0%, rgba(18, 13, 10, 0) 26%, rgba(18, 13, 10, 0) 48%, rgba(18, 13, 10, 0.88) 100%);
  pointer-events: none;
}
.lg-hero-in {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 92px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}
.lg-hero .crumb,
.lg-hero .crumb a {
  color: rgba(255, 240, 225, 0.8);
}
.lg-kicker,
.lg-k {
  font: 800 12px/1 var(--display);
  letter-spacing: 0.32em;
  color: var(--lg-amber);
  margin: 0 0 10px;
}
.lg-hero h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: #fff8ef;
  letter-spacing: 0.04em;
}
.lg-hero h1 small {
  display: block;
  font: 700 clamp(15px, 2vw, 20px) / 1.5 var(--jp);
  letter-spacing: 0.04em;
  margin-top: 12px;
  color: #f3dfc6;
}
.lg-clock {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 6px;
}
.lg-clock b {
  font: 600 clamp(44px, 8vw, 84px) / 1 var(--display);
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: 0.02em;
}
.lg-clock span {
  font-weight: 700;
  color: #f3dfc6;
}
.lg-now {
  margin: 0 0 18px;
  font-weight: 700;
  color: #ffe2bf;
  min-height: 1.6em;
}
.lg-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.lg-cta .btn {
  margin: 0;
}
.page-lounge .btn.lg-ghost {
  background: rgba(20, 14, 10, 0.45);
  border-color: rgba(255, 230, 200, 0.35);
  color: #fff4e6;
  backdrop-filter: blur(8px);
}
.lg-quote {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2 + 20px));
  bottom: 96px;
  max-width: 380px;
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(20, 14, 10, 0.42);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 230, 200, 0.16);
  color: #fff3e3;
  transition: opacity 0.9s;
}
.lg-quote.is-out {
  opacity: 0;
}
.lg-quote blockquote {
  margin: 0 0 6px;
  font: italic 400 16px/1.55 var(--serif);
}
.lg-quote blockquote small {
  display: block;
  font: 400 13px/1.6 var(--jp);
  font-style: normal;
  color: #e9d4b9;
  margin-top: 6px;
}
.lg-quote figcaption {
  font-size: 12px;
  color: #c9b296;
}

/* 部屋のチップ（ヒーローの下に横スクロール） */
.lg-rooms-bar {
  position: relative;
  margin-top: -64px;
  z-index: 2;
}
.lg-rooms {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px max(20px, calc((100vw - 1180px) / 2 + 20px)) 14px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.lg-rooms::-webkit-scrollbar {
  display: none;
}
.lg-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 230, 200, 0.22);
  background: rgba(24, 17, 12, 0.7);
  backdrop-filter: blur(10px);
  color: #fff1df;
  font-weight: 700;
  font-size: 14px;
  scroll-snap-align: start;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.lg-chip img {
  width: 44px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
}
.lg-chip:hover {
  transform: translateY(-2px);
}
.lg-chip[aria-current='true'] {
  border-color: var(--lg-amber);
  background: rgba(80, 45, 18, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 170, 80, 0.2), 0 8px 24px -8px var(--lg-glow);
}

/* ---------- 本文 ---------- */
.lg-page {
  background: radial-gradient(1200px 600px at 80% 0%, rgba(255, 150, 60, 0.07), transparent 60%), var(--lg-bg);
  padding-bottom: 90px;
}
.lg-jump {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 18px !important;
  padding-bottom: 4px !important;
}
.lg-jump a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--lg-card);
  border: 1px solid var(--lg-line);
  color: var(--lg-ink2);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.lg-jump a:hover {
  color: var(--lg-amber);
  border-color: var(--lg-amber);
}
.lg-stats {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.lg-stats li {
  background: linear-gradient(160deg, var(--lg-card2), var(--lg-card));
  border: 1px solid var(--lg-line);
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
}
.lg-stats b {
  display: block;
  font: 800 34px/1.1 var(--display);
  background: linear-gradient(120deg, #ffd08a, #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lg-stats span {
  display: block;
  font-weight: 800;
  font-size: 14px;
}
.lg-stats small {
  color: var(--lg-muted);
  font-size: 12px;
}
.lg-h {
  max-width: 760px;
  margin: 0 0 22px;
}
.lg-h h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 10px;
  color: var(--lg-ink);
}
.lg-h h2 small {
  font: 700 15px var(--jp);
  color: var(--lg-muted);
  margin-left: 6px;
}
.lg-h p:not(.lg-k) {
  color: var(--lg-ink2);
  margin: 0;
}
.page-lounge .sec {
  margin: 64px 0;
  scroll-margin-top: 80px;
}

/* 部屋カード */
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 14px;
}
.room {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: #fff;
  background: var(--lg-card);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s, box-shadow 0.25s;
}
.room img,
.room-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.room::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 6, 4, 0.88));
}
.room:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(255, 140, 60, 0.35);
}
.room:hover img {
  transform: scale(1.06);
}
.room-t {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
}
.room-t b {
  display: block;
  font: 900 18px/1.3 var(--round);
}
.room-t small {
  color: #f0dcc4;
  font-size: 13px;
}
.room-snd {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 10, 7, 0.6);
  backdrop-filter: blur(6px);
  font-size: 13px;
  letter-spacing: 2px;
}
.room.is-on {
  box-shadow: 0 0 0 3px var(--lg-amber), 0 20px 40px -16px rgba(255, 140, 60, 0.5);
}
.room.is-on .room-snd::before {
  content: '♪ 再生中 ';
  letter-spacing: 0;
  color: var(--lg-amber);
  font-weight: 800;
}

/* ---------- ミキサー（2026-10-25「ごちゃごちゃしすぎ。まとまりあるように」で作り直し：再生中のバー＋グループのタブ＋細かい設定はたたむ） ---------- */
.mx {
  background: linear-gradient(170deg, var(--lg-card), var(--lg-bg2));
  border: 1px solid var(--lg-line);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 30px 60px -40px #000;
}
.mx-now {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 14px;
  border-bottom: 1px solid var(--lg-line);
}
.mx-now-h {
  flex: 0 0 auto;
  font: 800 12px var(--display);
  letter-spacing: 0.15em;
  color: var(--lg-amber);
}
.mx-now-list {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 34px;
  align-items: center;
}
.mx-now-list .small {
  white-space: nowrap;
}
.now-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 170, 80, 0.5);
  background: rgba(255, 170, 80, 0.12);
  color: var(--lg-ink);
  border-radius: 999px;
  padding: 5px 8px 5px 12px;
  font-size: 13px;
  font-weight: 700;
}
.now-chip i {
  font-style: normal;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
}
.mx-now-b {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}
.mx-now-b .btn {
  margin: 0;
  padding: 8px 14px;
  font-size: 14px;
}
.mx-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px 2px 12px;
}
.mx-tabs::-webkit-scrollbar {
  display: none;
}
.mx-tabs button {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 82px;
  padding: 8px 8px 7px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--lg-muted);
  font-weight: 800;
  font-size: 13px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mx-tabs button:hover {
  color: var(--lg-ink);
  background: rgba(255, 255, 255, 0.04);
}
.mx-tabs button[aria-selected='true'] {
  color: var(--lg-ink);
  background: var(--lg-card2);
  border-color: rgba(255, 170, 80, 0.55);
}
.mx-tab-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.2s;
}
.mx-tabs button[aria-selected='true'] .mx-tab-ic {
  transform: scale(1.08);
}
.mx-badge {
  position: absolute;
  top: 4px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--lg-amber);
  color: #1b0f08;
  font: 900 11px/18px var(--jp);
  font-style: normal;
}
.mx-g {
  padding: 4px 2px 2px;
}
.mx-g-sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--lg-muted);
}
.sns {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.sn {
  position: relative;
  background: var(--lg-card2);
  border: 1.5px solid transparent;
  border-radius: 18px;
  padding: 10px 10px 8px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.sn:hover {
  transform: translateY(-2px);
}
.sn-t {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}
.sn-i {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.25s, filter 0.25s;
  filter: saturate(0.85) brightness(0.9);
}
.sn-i.ic-emo {
  display: grid;
  place-items: center;
  font-size: 34px;
  background: var(--lg-card);
}
.sn-n {
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}
.sn-eq {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
  opacity: 0;
}
.sn-eq i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--lg-amber);
  transform-origin: bottom;
}
.sn input {
  display: none;
  width: 100%;
  margin: 8px 0 0;
}
.sn.on {
  border-color: var(--lg-amber);
  background: linear-gradient(170deg, #3d2714, var(--lg-card2));
  box-shadow: 0 12px 26px -16px var(--lg-glow);
}
.sn.on .sn-i {
  transform: scale(1.06);
  filter: none;
  box-shadow: 0 0 22px rgba(255, 170, 80, 0.35);
}
.sn.on input {
  display: block;
}
.sn.on .sn-eq {
  opacity: 1;
}
.mo .sn.on .sn-eq i {
  animation: lg-eq 0.9s ease-in-out infinite alternate;
}
.sn-eq i:nth-child(2) {
  animation-delay: -0.3s !important;
}
.sn-eq i:nth-child(3) {
  animation-delay: -0.6s !important;
}
@keyframes lg-eq {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}
.mx-more {
  margin-top: 14px;
  border-top: 1px solid var(--lg-line);
  padding-top: 4px;
}
.mx-more summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 4px;
  font-weight: 800;
  font-size: 14px;
  color: var(--lg-ink2);
}
.mx-more summary::-webkit-details-marker {
  display: none;
}
.mx-more summary small {
  color: var(--lg-muted);
  font-weight: 600;
  margin-left: 6px;
}
.mx-more-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 4px 4px 8px;
}
.mx-more-in .btn {
  margin: 0;
  padding: 8px 14px;
}
.mx-sw,
.mx-sel {
  font-weight: 700;
  font-size: 14px;
  color: var(--lg-ink2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mx-sel select {
  padding: 5px 8px;
}
.mx-slots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.slot {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--lg-line);
  border-radius: 999px;
  overflow: hidden;
}
.slot .btn {
  border: 0;
  border-radius: 0;
  padding: 7px 12px;
  margin: 0;
}
.slot .btn small {
  font-weight: 600;
  color: var(--lg-muted);
}
.slot.has .btn small {
  color: var(--lg-amber);
}
.slot-save {
  border: 0;
  border-left: 1px solid var(--lg-line);
  background: transparent;
  color: var(--lg-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  align-self: stretch;
}
.slot-save:hover {
  color: var(--lg-amber);
}
.mx .mx-tip {
  margin-top: 12px;
}
.mx .nz-box {
  margin-top: 12px;
}

/* ---------- YouTube ---------- */
.yt-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
  padding-bottom: 2px;
}
.yt-tabs button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--lg-line);
  background: var(--lg-card);
  color: var(--lg-ink2);
  font-weight: 700;
  font-size: 14px;
}
.yt-tabs button[aria-selected='true'] {
  background: var(--lg-amber);
  border-color: var(--lg-amber);
  color: #1b0f08;
}
.yts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  margin-bottom: 12px;
}
.yt {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lg-line);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  background: var(--lg-card);
  color: inherit;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}
.yt:hover {
  transform: translateY(-3px);
  border-color: var(--lg-amber);
}
.yt.is-playing {
  border-color: var(--lg-amber);
  box-shadow: 0 0 0 2px var(--lg-amber);
}
.yt-th {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}
.yt-th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-style: normal;
  font-size: 18px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s;
}
.yt:hover .yt-play {
  transform: scale(1.1);
  background: #ff3b30;
}
.yt-live,
.yt-len {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
}
.yt-live {
  background: #e03131;
}
.yt-b {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
  flex: 1;
}
.yt-b b {
  font: 600 14px/1.4 var(--jp);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-b small {
  color: var(--lg-muted);
  font-size: 12px;
}
.yt-ja {
  font-size: 13px;
  color: var(--lg-ink2);
  line-height: 1.55;
}
.yt-v {
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--lg-amber);
}

/* ---------- ラウンジで読む ---------- */
.pick {
  background: var(--lg-card);
  border: 1px solid var(--lg-line);
  border-radius: 22px;
  padding: 18px;
}
.pick-lv {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.pick-lv button {
  border: 1.5px solid var(--lg-line);
  border-radius: 12px;
  background: var(--lg-card2);
  color: var(--lg-ink);
  font: 900 16px/1.2 var(--display);
  padding: 8px 4px;
  min-width: 0;
}
.pick-lv button small {
  display: block;
  font: 600 10px var(--jp);
  color: var(--lg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick-lv button[aria-pressed='true'] {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 28%, var(--lg-card2));
}
.pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pick-row .btn {
  margin: 0;
}
.pick-res {
  margin-top: 14px;
}
.pcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 12px;
}
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--lg-card2);
  border: 1px solid var(--lg-line);
  border-radius: 16px;
  overflow: hidden;
}
.pcard.is-main {
  grid-column: 1 / -1;
  flex-direction: row;
}
.pcard-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.pcard.is-main .pcard-img {
  flex: 0 0 46%;
  aspect-ratio: auto;
  min-height: 200px;
}
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcard-img .lv {
  position: absolute;
  left: 8px;
  top: 8px;
}
.pcard-b {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pcard-b b {
  font: 600 17px/1.35 var(--serif);
}
.pcard.is-main .pcard-b b {
  font-size: 24px;
}
.pcard-b small {
  color: var(--lg-ink2);
}
.pcard-b .meta {
  font-size: 12px;
  color: var(--lg-muted);
}
.pcard-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.pcard-btns .btn {
  margin: 0;
  padding: 8px 14px;
  font-size: 14px;
}
.pick-recent {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--lg-line);
}
.pick-recent h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
.rlist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rlist button {
  border: 1px solid var(--lg-line);
  background: var(--lg-card2);
  color: var(--lg-ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 14px;
}
.rlist button:hover {
  border-color: var(--lg-amber);
}

/* ---------- タイマー（2026-10-25「安っぽすぎる。本気見せて」で作り直し） ---------- */
.tm {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: start;
}
.tm-main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid rgba(255, 220, 180, 0.16);
  background: #120d0a;
  padding: 16px 18px 18px;
  box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.tm-bg {
  position: absolute;
  inset: -30px;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.2) brightness(0.45);
  transform: scale(1.1);
  transition: background-image 1s;
}
.tm-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(255, 150, 60, 0.12), transparent 60%), linear-gradient(180deg, rgba(12, 8, 5, 0.25), rgba(12, 8, 5, 0.75));
}
.tm.is-break .tm-bg::after {
  background: radial-gradient(ellipse at 30% 40%, rgba(80, 220, 180, 0.12), transparent 60%), linear-gradient(180deg, rgba(5, 12, 10, 0.3), rgba(5, 12, 10, 0.78));
}
.tm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tm-styles {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tm-styles button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: rgba(255, 240, 225, 0.65);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  font-weight: 800;
  font-size: 13px;
}
.tm-styles button[aria-pressed='true'] {
  background: rgba(255, 170, 80, 0.22);
  color: #fff3e3;
}
.tm-st-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.tm-full-b {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: #fff3e3;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
  font-size: 13px;
}
.tm-stage {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1.15fr;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
}
.tm-art-w {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 400px;
  width: 100%;
}
.tm-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tm-info {
  text-align: center;
}
.tm-ph {
  display: inline-block;
  margin: 0 0 6px;
  padding: 4px 14px;
  border-radius: 999px;
  font: 800 12px var(--display);
  letter-spacing: 0.24em;
  color: var(--lg-amber);
  background: rgba(255, 170, 80, 0.12);
  border: 1px solid rgba(255, 170, 80, 0.3);
}
.tm.is-run .tm-ph {
  animation: lg-pulse 2.4s ease-in-out infinite;
}
.tm.is-break .tm-ph {
  color: var(--lg-mint);
  background: rgba(127, 224, 194, 0.12);
  border-color: rgba(127, 224, 194, 0.35);
}
@keyframes lg-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(255, 170, 80, 0.08);
  }
}
.tm-time {
  display: block;
  font: 600 clamp(64px, 9vw, 108px) / 1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: #fff8ef;
  text-shadow: 0 0 40px rgba(255, 170, 80, 0.35), 0 4px 24px rgba(0, 0, 0, 0.6);
  margin: 4px 0 10px;
}
.tm.is-break .tm-time {
  text-shadow: 0 0 40px rgba(110, 214, 189, 0.4), 0 4px 24px rgba(0, 0, 0, 0.6);
}
.tm.is-last .tm-time {
  animation: lg-last 1s ease-in-out infinite;
}
@keyframes lg-last {
  50% {
    color: #ffd08a;
  }
}
.tm-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  margin-bottom: 6px;
}
.tm-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 220, 180, 0.4);
}
.tm-dots i.on {
  background: radial-gradient(circle at 35% 35%, #ffe2a8, #f0a24a);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(255, 170, 80, 0.6);
}
.tm-dots i.now {
  border-color: var(--lg-amber);
}
.tm-dots small {
  color: var(--lg-muted);
  font-size: 12px;
  margin-left: 4px;
}
.tm-intent-show {
  min-height: 1.4em;
  margin: 0 0 12px;
  color: #ffe2bf;
  font-weight: 700;
  font-size: 14px;
}
.tm-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.tm-btns .btn {
  margin: 0;
}
.tm-btns .btn.big {
  min-width: 200px;
  justify-content: center;
}
.tm-ib {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: #fff3e3;
  font-size: 18px;
}
.tm-ib:hover {
  border-color: var(--lg-amber);
}
.tm-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: grid;
  gap: 12px;
}
.tm-modes {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.tm-modes button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff3e3;
  border-radius: 14px;
  padding: 7px 2px;
}
.tm-modes button span {
  font-size: 18px;
}
.tm-modes button b {
  font-size: 13px;
}
.tm-modes button small {
  font-size: 10px;
  color: rgba(255, 240, 225, 0.55);
  white-space: nowrap;
}
.tm-modes button[aria-pressed='true'] {
  border-color: var(--lg-amber);
  background: rgba(255, 170, 80, 0.18);
  box-shadow: 0 0 18px -6px rgba(255, 170, 80, 0.7);
}
.tm-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff3e3;
}
.tm-custom label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tm-intent {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 6px 6px 6px 14px;
  font-weight: 800;
  font-size: 13px;
  color: #ffe2bf;
}
.tm-intent span {
  white-space: nowrap;
}
.tm-intent input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 600 15px var(--jp);
  padding: 6px 4px;
  outline: none;
}
.tm-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  color: rgba(255, 240, 225, 0.75);
}
/* 全画面 */
.tm-main.is-full {
  position: fixed;
  inset: 0;
  z-index: 93;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 24px max(16px, env(safe-area-inset-bottom));
}
.tm-main.is-full .tm-bg {
  filter: blur(6px) saturate(1.15) brightness(0.55);
}
.tm-main.is-full .tm-stage {
  flex: 1;
  grid-template-columns: 1fr 1fr;
}
.tm-main.is-full .tm-art-w {
  max-height: 72vh;
}
.tm-main.is-full .tm-time {
  font-size: clamp(80px, 13vw, 180px);
}
.tm-main.is-full .tm-bottom {
  display: none;
}

/* 記録 */
.tm-stats {
  background: linear-gradient(170deg, var(--lg-card), var(--lg-bg2));
  border: 1px solid var(--lg-line);
  border-radius: 28px;
  padding: 18px;
}
.rk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: radial-gradient(ellipse at 0% 0%, rgba(255, 190, 100, 0.22), transparent 60%), var(--lg-card2);
  border: 1px solid rgba(255, 190, 100, 0.25);
  text-align: left;
  margin: 0 0 12px;
}
.rk-i {
  font-size: 40px;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.25), rgba(0, 0, 0, 0));
  filter: drop-shadow(0 0 10px rgba(255, 190, 100, 0.5));
}
.rk-b {
  flex: 1;
  min-width: 0;
}
.rk-b small {
  display: block;
  color: var(--lg-muted);
  font-size: 12px;
}
.rk-b b {
  display: block;
  font: 900 21px var(--round);
  color: #fff3e3;
  margin: 1px 0 6px;
}
.rk-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 4px;
}
.rk-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd08a, #ff8a3d, #ff6b8b);
  box-shadow: 0 0 10px rgba(255, 150, 80, 0.6);
}
.tm-kpi {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.tm-ring2 {
  position: relative;
  width: 104px;
  height: 104px;
}
.tm-ring2 svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.r-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 7;
}
.r-fg {
  fill: none;
  stroke: var(--lg-amber);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s;
  filter: drop-shadow(0 0 4px var(--lg-glow));
}
.tm.is-goal .r-fg {
  stroke: #ffd43b;
}
.tm-ring2 > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.tm-ring2 b {
  font: 800 30px/1 var(--display);
  color: #fff3e3;
}
.tm-ring2 small {
  font-size: 10px;
  color: var(--lg-muted);
}
.tm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tm-cards div {
  background: var(--lg-card2);
  border-radius: 14px;
  padding: 8px 4px;
  text-align: center;
}
.tm-cards span {
  font-size: 16px;
}
.tm-cards b {
  display: block;
  font: 800 22px/1.1 var(--display);
  color: var(--lg-amber);
}
.tm-cards small {
  font-size: 10px;
  color: var(--lg-muted);
}
.tm-goal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  font-weight: 700;
  font-size: 14px;
}
.tm-goal small {
  color: var(--lg-amber);
  font-weight: 800;
}
.tm-h {
  margin: 16px 0 8px;
  font-size: 14px;
  color: var(--lg-ink2);
}
.tm-h small {
  color: var(--lg-muted);
  font-weight: 600;
}
.tm-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 112px;
}
.tm-week div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
  font-size: 11px;
  color: var(--lg-muted);
}
.tm-week i {
  display: block;
  width: 100%;
  max-width: 30px;
  min-height: 3px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #c98a4a, #6b3d17);
}
.tm-week .is-goal i {
  background: linear-gradient(180deg, #ffd08a, #e0701c);
}
.tm-week .is-today i {
  box-shadow: 0 0 14px var(--lg-glow);
}
.tm-week b {
  color: var(--lg-ink2);
  font-size: 11px;
}
.tm-heat {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
  aspect-ratio: 12 / 7;
}
.tm-heat i {
  border-radius: 3px;
}
.h0,
.tm-heat-lg .h0 {
  background: rgba(255, 255, 255, 0.06);
}
.h1 {
  background: #5a3a1c;
}
.h2 {
  background: #9a5e26;
}
.h3 {
  background: #e08a3c;
}
.h4 {
  background: #ffd08a;
  box-shadow: 0 0 6px rgba(255, 200, 120, 0.6);
}
.tm-heat .fut {
  background: transparent;
}
.tm-heat-lg {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--lg-muted);
}
.tm-heat-lg i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}
.tm-log {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.tm-log li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  background: var(--lg-card2);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
}
.tm-log time {
  color: var(--lg-muted);
  font-variant-numeric: tabular-nums;
}
.tm-log b {
  color: var(--lg-amber);
}
.tm-log span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--lg-ink2);
}
.tm-log .empty {
  display: block;
  color: var(--lg-muted);
}
.md-box .rk {
  margin: 14px 0 4px;
}

/* ---------- 集中アイテム ---------- */
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}
.fcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--lg-line);
  background: linear-gradient(160deg, var(--lg-card2), var(--lg-card));
  color: var(--lg-ink);
  transition: transform 0.2s, border-color 0.2s;
}
.fcard:hover {
  transform: translateY(-3px);
  border-color: var(--lg-amber);
}
.fcard-i {
  font-size: 32px;
  margin-bottom: 4px;
}
.fcard b {
  font: 900 17px var(--round);
}
.fcard small {
  color: var(--lg-ink2);
  font-size: 13px;
  line-height: 1.55;
}
.light-box {
  margin-top: 14px;
  background: var(--lg-card);
  border: 1px solid var(--lg-amber);
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}
.light-box h3 {
  margin: 0;
}
.light-box label,
.dk-pop label {
  display: grid;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- ながめる ---------- */
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: 12px;
}
.vcard {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(150deg, var(--a), var(--b));
  color: #fff;
  transition: transform 0.25s;
}
.vcard:hover {
  transform: translateY(-3px) scale(1.01);
}
.vcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcard-ic {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 56px;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.45));
}
.vcard b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  text-align: left;
  font: 800 15px var(--round);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

/* ---------- 研究 ---------- */
.sci {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 14px;
}
.sci-c {
  background: var(--lg-card);
  border: 1px solid var(--lg-line);
  border-radius: 20px;
  padding: 18px 20px;
}
.sci-c h3 {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 17px;
  margin: 0 0 8px;
}
.sci-c p {
  color: var(--lg-ink2);
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.8;
}
.sci-r {
  font-size: 12px !important;
}
.tips {
  margin-top: 16px;
  background: linear-gradient(160deg, #2e1f12, var(--lg-card));
  border: 1px solid var(--lg-line);
  border-radius: 20px;
  padding: 18px 22px;
}
.tips h3 {
  margin: 0 0 8px;
}
.tips li {
  margin: 6px 0;
  color: var(--lg-ink2);
  line-height: 1.8;
}
.tips b {
  color: var(--lg-ink);
}

/* ---------- 下のバー ---------- */
.lg-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(24, 17, 12, 0.86);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 220, 180, 0.16);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.85);
  color: #fff1df;
  max-width: calc(100vw - 20px);
}
.page-lounge .totop {
  bottom: 86px;
}
.dk-snd {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
}
.dk-snd:hover {
  background: rgba(255, 255, 255, 0.06);
}
.dk-lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.dk-viz {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}
.dk-viz i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--lg-amber);
  transform: scaleY(0.15);
  transform-origin: bottom;
  transition: transform 0.08s;
}
.dk-vol {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}
.dk-vol input {
  width: 90px;
}
.dk-b {
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dk-b:hover {
  background: rgba(255, 170, 80, 0.2);
}
.dk-tm b {
  font: 600 15px var(--display);
  font-variant-numeric: tabular-nums;
}
.dk-tm.is-run {
  background: rgba(255, 170, 80, 0.25);
  color: #ffd9a8;
}
.dk-tm.is-break {
  background: rgba(127, 224, 194, 0.2);
  color: var(--lg-mint);
}
.dk-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 250px;
  background: rgba(30, 22, 16, 0.96);
  border: 1px solid var(--lg-line);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 40px -12px #000;
}
.lg-warm,
.lg-dim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
}
.lg-warm {
  background: #ff8a1e;
  mix-blend-mode: multiply;
}
.lg-dim {
  background: #000;
}

/* YouTube の小さなプレーヤー（YouTube の決まりで 200px 以上の大きさを保つ） */
.lg-yt {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 86;
  width: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0906;
  border: 1px solid var(--lg-line);
  box-shadow: 0 24px 50px -16px #000;
}
.lg-yt.is-left {
  right: auto;
  left: 16px;
}
.lg-yt.is-top {
  bottom: auto;
  top: 76px;
}
.lg-yt-hd {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 12px;
  font-size: 13px;
}
.lg-yt-hd b {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}
.lg-yt-hd button {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.lg-yt-p {
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #000;
}
.lg-yt-p iframe,
.lg-yt-p > div {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.lg-yt-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 8px;
  font-size: 12px;
  color: var(--lg-ink2);
}
.lg-yt-vol input {
  flex: 1;
}

/* ---------- 全画面の重ね物 ---------- */
.lg-ov {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.lg-view {
  background: #000;
  color: #fff;
  z-index: 92;
}
.lg-view .lg-stage {
  z-index: 0;
}
.lg-view .lg-paint {
  animation: lg-kb 80s ease-in-out infinite alternate;
}
.lv-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));
  transition: opacity 0.8s;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 30%, transparent 65%, rgba(0, 0, 0, 0.55));
}
.lg-view.is-idle .lv-ui {
  opacity: 0;
}
.lg-view.is-idle {
  cursor: none;
}
.lv-clock b {
  display: block;
  font: 600 clamp(56px, 12vw, 128px) / 1 var(--display);
  font-variant-numeric: tabular-nums;
}
.lv-clock span {
  font: 600 22px var(--display);
  color: #ffd9a8;
}
.lv-quote {
  margin: 0 auto 0 0;
  max-width: 560px;
}
.lv-quote blockquote {
  margin: 0 0 6px;
  font: italic 400 clamp(17px, 2.2vw, 22px) / 1.55 var(--serif);
}
.lv-quote blockquote small {
  display: block;
  font: 400 14px/1.6 var(--jp);
  font-style: normal;
  color: #f0dcc4;
  margin-top: 6px;
}
.lv-quote figcaption {
  font-size: 13px;
  color: #d9c3a6;
}
.lv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.lv-bar span {
  font-weight: 800;
  min-width: 120px;
  text-align: center;
}
.lv-bar button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 999px;
  height: 42px;
  min-width: 42px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.lg-reader {
  background: var(--lg-bg);
  display: flex;
  flex-direction: column;
  z-index: 80;
}
.rd-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: #1b130e;
  border-bottom: 1px solid var(--lg-line);
}
.rd-bar button,
.rd-bar a {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff1df;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.rd-bar b {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 600 15px var(--serif);
}
.rd-tm {
  font: 600 15px var(--display);
  color: var(--lg-amber);
  font-variant-numeric: tabular-nums;
}
.lg-reader iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--bg);
  padding-bottom: 72px;
}
body.lg-lock {
  overflow: hidden;
}

.lg-modal {
  background: rgba(8, 5, 3, 0.82);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 95;
}
.md-box {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: linear-gradient(160deg, #2b1f15, #1a130e);
  border: 1px solid var(--lg-line);
  border-radius: 26px;
  padding: 26px 22px 22px;
  text-align: center;
  color: var(--lg-ink);
  box-shadow: 0 30px 60px -20px #000;
}
.md-x {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
}
.md-box h3 {
  font-size: 22px;
  margin: 0 0 6px;
}
.md-box p {
  color: var(--lg-ink2);
}
.md-big {
  font: 600 72px/1 var(--display);
  font-variant-numeric: tabular-nums;
  margin: 16px 0;
  color: var(--lg-amber);
}
.md-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 10px 0;
}
.md-row .btn {
  margin: 0;
}
.md-row .btn[aria-pressed='true'] {
  border-color: var(--lg-amber);
  background: rgba(255, 170, 80, 0.2);
}
.md-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
.md-steps i {
  width: 28px;
  height: 5px;
  border-radius: 9px;
  background: var(--lg-line);
}
.md-steps i.on {
  background: var(--lg-amber);
}
/* 呼吸の円 */
.br-orb {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 18px auto;
  display: grid;
  place-items: center;
}
.br-orb::before,
.br-orb i {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.br-orb::before {
  border: 2px dashed rgba(255, 200, 140, 0.25);
}
.br-orb i {
  background: radial-gradient(circle at 40% 35%, #ffe0b0, #ff9f43 45%, #c2410c 100%);
  box-shadow: 0 0 60px rgba(255, 150, 60, 0.55);
  transform: scale(0.45);
  transition-property: transform;
  transition-timing-function: ease-in-out;
}
.br-orb b {
  position: relative;
  font: 900 22px var(--round);
  color: #1b0f08;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.st-card {
  font-size: 54px;
  margin: 6px 0;
}
.five {
  font: 600 140px/1 var(--display);
  color: var(--lg-amber);
  margin: 10px 0;
  text-shadow: 0 0 40px var(--lg-glow);
}
.mo .five.pop {
  animation: lg-pop 0.9s ease-out;
}
@keyframes lg-pop {
  from {
    transform: scale(1.6);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  to {
    transform: scale(1);
  }
}
.ch-badge {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 85;
  background: rgba(30, 22, 16, 0.92);
  border: 1px solid var(--lg-amber);
  color: #ffe2bf;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 30px -10px #000;
}
.page-lounge .toast {
  bottom: 96px;
  background: #fff1df;
  color: #1b0f08;
}

/* iframe の中（ラウンジで読む）では、サイトの枠をかくす → style.css の .framed */

@media (max-width: 900px) {
  .lg-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .lg-stats li:nth-child(n + 4) {
    display: none;
  }
  .tm {
    grid-template-columns: 1fr;
  }
  .lg-quote {
    display: none;
  }
}
@media (max-width: 760px) {
  .lg-hero {
    min-height: 86svh;
    margin-top: -58px;
    padding-top: 58px;
  }
  .lg-hero-in {
    padding-bottom: 84px;
  }
  .lg-cta .btn.big {
    width: 100%;
    justify-content: center;
  }
  .lg-cta .lg-ghost {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
    font-size: 14px;
  }
  .lg-stats {
    gap: 6px;
  }
  .lg-stats li {
    padding: 12px 6px;
  }
  .lg-stats b {
    font-size: 26px;
  }
  .lg-stats span {
    font-size: 12px;
  }
  .lg-stats small {
    display: none;
  }
  .rooms {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .room-t b {
    font-size: 15px;
  }
  .room-t small {
    display: none;
  }
  .room-snd {
    font-size: 11px;
    letter-spacing: 0;
  }
  .sns {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .sn {
    padding: 8px 9px 6px;
  }
  .sn-i {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .sn-n b {
    font-size: 13px;
  }
  .sn-n small {
    display: none;
  }
  .sn-eq {
    display: none;
  }
  /* スマホでは操作パネルが高さ350px以上になり、上に貼りつくと画面の半分をふさぐので貼りつけない（2026-10-25「上の画面が固定されてみづらい」） */
  .mx-top {
    position: static;
    padding: 10px;
  }
  .mx-sw,
  .mx-sel {
    font-size: 13px;
  }
  .yts {
    grid-template-columns: 1fr;
  }
  .yt {
    flex-direction: row;
  }
  .yt-th {
    flex: 0 0 42%;
    aspect-ratio: 16 / 10;
  }
  .yt-ja {
    display: none;
  }
  .yt-play {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    font-size: 14px;
  }
  .pick-lv {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pcard.is-main {
    flex-direction: column;
  }
  .pcard.is-main .pcard-img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .pcard.is-main .pcard-b b {
    font-size: 20px;
  }
  .tm-cards b {
    font-size: 22px;
  }
  .vgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .fcard {
    padding: 14px 12px;
  }
  .fcard small {
    font-size: 12px;
  }
  /* スマホは下にサイトのタブバーがあるので、その上に出す */
  .lg-dock {
    left: 8px;
    right: 8px;
    transform: none;
    bottom: calc(70px + env(safe-area-inset-bottom));
    border-radius: 18px;
    justify-content: space-between;
    max-width: none;
  }
  .dk-vol {
    display: none;
  }
  .lg-dock {
    gap: 3px;
    padding: 5px;
  }
  .dk-snd {
    padding: 4px 6px;
    gap: 6px;
    flex: 1;
  }
  .dk-lbl {
    max-width: none;
    font-size: 12px;
  }
  .dk-b {
    height: 36px;
    min-width: 34px;
    padding: 0 6px;
    font-size: 14px;
    flex: 0 0 auto;
  }
  .dk-tm b {
    font-size: 13px;
  }
  .page-lounge .totop {
    display: none;
  }
  .lg-yt {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: calc(126px + env(safe-area-inset-bottom));
  }
  .lg-yt.is-left {
    left: 8px;
  }
  .lg-yt.is-top {
    top: 64px;
  }
  .lg-page {
    padding-bottom: 150px;
  }
  .lg-reader {
    bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .lg-reader iframe {
    padding-bottom: 64px;
  }
  .page-lounge .toast {
    bottom: calc(130px + env(safe-area-inset-bottom));
  }
  .br-orb {
    width: 180px;
    height: 180px;
  }
  .five {
    font-size: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg-paint {
    animation: none !important;
  }
}

/* ノイズの豆知識 */
.nz-box {
  margin-top: 14px;
  background: var(--lg-bg2);
  border: 1px solid var(--lg-line);
  border-radius: 18px;
  padding: 4px 16px 14px;
}
.nz-box summary {
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  list-style: none;
}
.nz-box summary::-webkit-details-marker {
  display: none;
}
.nz-box summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--lg-muted);
}
.nz-box[open] summary::after {
  content: '▴';
}
.nz-box summary small {
  color: var(--lg-muted);
}
.nz-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 10px;
}
.nz {
  background: var(--lg-card);
  border: 1px solid var(--lg-line);
  border-top: 4px solid var(--nz);
  border-radius: 14px;
  padding: 10px 12px 12px;
}
.nz h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 16px;
}
.nz-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--nz);
  color: #1b0f08;
  font-size: 11px;
  flex: 0 0 auto;
}
.nz p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--lg-ink2);
}
.nz p b {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--lg-card2);
  color: var(--lg-ink);
}
.nz-f {
  border-top: 1px dashed var(--lg-line);
  padding-top: 6px;
}
.nz-f b {
  background: rgba(255, 170, 80, 0.2) !important;
  color: var(--lg-amber) !important;
}
.nz-why {
  margin-top: 12px;
}
.nz-why h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.nz-why ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.nz-why li {
  background: var(--lg-card);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--lg-ink2);
}
.nz-why li span {
  font-size: 22px;
  display: block;
}
.nz-why li b {
  display: block;
  color: var(--lg-ink);
  font-size: 14px;
}
.mx-tip {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--lg-ink2);
  background: var(--lg-bg2);
  border-left: 3px solid var(--lg-amber);
  border-radius: 0 12px 12px 0;
  padding: 8px 12px;
}
.mx-tip b {
  color: var(--lg-amber);
  margin-right: 8px;
}
@media (max-width: 760px) {
  .nz-why ul {
    grid-template-columns: 1fr;
  }
  .nz-box {
    padding: 2px 10px 10px;
  }
}

/* 読みながら使う小さなミキサー */
.lg-reader {
  position: fixed;
}
.rd-mini {
  position: absolute;
  top: 58px;
  right: 10px;
  width: min(300px, calc(100vw - 20px));
  max-height: 60vh;
  overflow: auto;
  background: rgba(30, 22, 16, 0.97);
  border: 1px solid var(--lg-line);
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  box-shadow: 0 20px 40px -12px #000;
  z-index: 2;
  color: var(--lg-ink);
}
.rd-mini label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  font-size: 13px;
  font-weight: 700;
}
.rd-mini label input {
  grid-column: 1;
}
.rd-mini label button {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
}
.rd-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--lg-line);
}
.rd-rooms button {
  border: 1px solid var(--lg-line);
  background: var(--lg-card2);
  border-radius: 10px;
  width: 38px;
  height: 34px;
  font-size: 17px;
}
.yt-more-w {
  text-align: center;
  margin: 4px 0 14px;
}
.yt-more-w .btn {
  min-width: 240px;
  justify-content: center;
}

/* ---------- コンセプトの説明（2026-10-25「ラウンジのコンセプトが分からないので最初に超絶かんたんに」） ---------- */
.lg-about {
  margin-top: 26px !important;
}
.lg-about-lead {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--lg-ink2);
}
.lg-about-lead b {
  display: block;
  font: 900 clamp(19px, 2.6vw, 24px) / 1.5 var(--round);
  color: #fff3e3;
}
.lg-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  counter-reset: st;
}
.lg-steps a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--lg-card2), var(--lg-card));
  border: 1px solid var(--lg-line);
  color: var(--lg-ink2);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
  transition: transform 0.2s, border-color 0.2s;
}
.lg-steps a:hover {
  transform: translateY(-2px);
  border-color: var(--lg-amber);
  color: var(--lg-ink2);
}
.st-ic {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: cover;
}
.st-ic.ic-emo {
  display: grid;
  place-items: center;
  font-size: 34px;
}
.lg-steps small {
  display: block;
  font: 800 11px var(--display);
  letter-spacing: 0.18em;
  color: var(--lg-amber);
}
.lg-steps b {
  display: block;
  font: 900 17px var(--round);
  color: #fff3e3;
}
/* 集中アイテムのアイコン（Codex） */
img.fcard-i {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 6px;
}
.page-lounge .ic-emo {
  font-style: normal;
}

@media (max-width: 760px) {
  .lg-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lg-steps a {
    padding: 10px 12px;
  }
  .st-ic {
    width: 52px;
    height: 52px;
  }
  .lg-about-lead {
    font-size: 14px;
  }
  /* ミキサー */
  .mx {
    padding: 10px;
    border-radius: 20px;
  }
  .mx-now {
    flex-wrap: wrap;
    padding: 4px 2px 10px;
  }
  .mx-now-list {
    order: 3;
    flex-basis: 100%;
  }
  .mx-now-b {
    margin-left: auto;
  }
  .mx-now-b .btn {
    padding: 7px 11px;
    font-size: 13px;
  }
  .mx-tabs button {
    min-width: 70px;
    font-size: 12px;
    padding: 6px 4px;
  }
  .mx-tab-ic {
    width: 34px;
    height: 34px;
  }
  .sns {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .sn {
    padding: 8px 6px 6px;
  }
  .sn-i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .sn-n {
    font-size: 12px;
  }
  .sn-eq {
    display: flex;
    top: 6px;
    right: 6px;
  }
  /* タイマー */
  .tm {
    grid-template-columns: 1fr;
  }
  .tm-main {
    padding: 12px;
    border-radius: 22px;
  }
  .tm-styles button {
    padding: 3px 10px 3px 3px;
    font-size: 12px;
  }
  .tm-st-ic {
    width: 24px;
    height: 24px;
  }
  .tm-full-b {
    padding: 6px 10px;
    font-size: 12px;
  }
  .tm-stage {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tm-art-w {
    max-height: 300px;
    width: 72%;
    margin: 0 auto;
  }
  .tm-time {
    font-size: 72px;
    margin: 0 0 8px;
  }
  .tm-btns .btn.big {
    min-width: 0;
    flex: 1;
  }
  .tm-modes {
    grid-template-columns: repeat(4, 1fr);
  }
  .tm-main.is-full .tm-stage {
    grid-template-columns: 1fr;
  }
  .tm-main.is-full .tm-art-w {
    width: 80%;
    max-height: 50vh;
  }
  .tm-main.is-full .tm-time {
    font-size: 88px;
  }
  .tm-stats {
    padding: 14px;
    border-radius: 22px;
  }
  .tm-ring2 {
    width: 92px;
    height: 92px;
  }
}
