@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bebas-neue-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #F8FAFC;
  background: #020617;
  line-height: 1.5;
}
header { padding: 10px 20px; }
h1, h2 {
  font-family: "Bebas Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}
h1 { font-size: 1.7rem; margin: 0 0 2px; }
h2 { font-size: 1.05rem; margin: 8px 0 4px; }
header p, .hint { margin: 0; color: #CBD5E1; font-size: 0.95rem; }
.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  padding: 0 20px 8px;
}
.stage { min-width: 0; }
.viewport { position: relative; background: #020617; }
.viewport:fullscreen { display: flex; flex-direction: column; justify-content: center; }
.viewport:fullscreen #view { height: 100vh !important; border: 0; }
#view {
  width: 100%;
  height: min(40vh, 360px);
  background: #020617;
  display: block;
  border: 1px solid #1E293B;
  touch-action: none;
}
.indoor, .note { margin: 4px 0; color: #CBD5E1; }
.panel {
  background: #0B1220;
  border: 1px solid #1E293B;
  padding: 6px 10px 8px;
}
.row-ctl { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; align-items: center; }
button {
  font: inherit;
  color: #F8FAFC;
  background: transparent;
  border: 1px solid #334155;
  padding: 4px 10px;
  cursor: pointer;
}
button[aria-pressed="true"] {
  background: #16A34A;
  color: #F8FAFC;
  border-color: #16A34A;
}
.guide {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 8px 0 0;
  padding: 0;
  border-top: none;
}
.guide p { margin: 0; }
.guide a { color: #4ADE80; }
/* New-tab mark after each ticket link (inline SVG, aria-hidden; the hidden text is read instead). */
.guide .newtab-mark, .live-guide .newtab-mark { display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.25em; vertical-align: 0.05em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
}
.ov-tag, .ov-legend, .ov-tools, .ov-tip, .ov-bottom, .ov-map, .ov-status, .ov-share-fallback, .ov-share-menu { position: absolute; z-index: 2; }
.ov-bottom {
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.ov-tag {
  top: 10px;
  left: 10px;
  margin: 0;
  padding: 3px 10px 3px 8px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.ov-legend {
  top: 38px;
  left: 10px;
  max-width: calc(100% - 70px);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  padding: 3px 10px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  pointer-events: none;
}
.ov-legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #F8FAFC; }
/* #101: the three items are buttons (only they take the pointer; the rest of the legend lets drags through). */
button.ov-legend-item { pointer-events: auto; min-height: 26px; margin: 0; padding: 2px 8px; border: 1px solid rgba(148, 163, 184, 0.45); border-radius: 999px; background: rgba(15, 23, 42, 0.6); font: inherit; color: #F8FAFC; cursor: pointer; }
button.ov-legend-item:hover { background: rgba(148, 163, 184, 0.22); }
button.ov-legend-item:focus-visible { outline: 2px solid #F8FAFC; outline-offset: 2px; }
button.ov-legend-item[aria-pressed="true"] { background: rgba(248, 250, 252, 0.92); border-color: #F8FAFC; color: #020617; font-weight: 700; }
.ov-legend.has-focus button.ov-legend-item[aria-pressed="false"] { opacity: 0.7; }
.ov-legend-item i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; border: 1px solid rgba(248, 250, 252, 0.6); }
.ov-legend-note { color: #CBD5E1; font-size: 0.7rem; }
/* ≤800px: smaller; app.js puts the legend right under the 場内 label, which can take two lines there. */
@media (max-width: 800px) {
  .ov-legend { max-width: calc(100% - 20px); padding: 2px 8px; gap: 4px 6px; font-size: 0.7rem; }
  button.ov-legend-item { min-height: 32px; padding: 2px 10px; }
  .ov-legend-note { font-size: 0.64rem; }
}
.ov-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #4ADE80;
  vertical-align: 0.12em;
}
.ov-tools {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 3px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
}
.ov-tools button {
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.ov-tools button:hover, .ov-tools button:focus-visible { background: rgba(148, 163, 184, 0.2); }
.ov-tools button[aria-pressed] { background: transparent; }
.ov-tools svg { width: 18px; height: 18px; fill: none; stroke: #F8FAFC; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ov-tip {
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  max-width: 260px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid var(--tip-color, #4ADE80);
  border-left-width: 4px;
  border-radius: 6px;
  pointer-events: none;
  font-size: 0.85rem;
  line-height: 1.35;
}
.ov-tip span { color: #CBD5E1; font-size: 0.75rem; }
.ov-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 12px;
  background: rgba(2, 6, 23, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  white-space: nowrap;
  max-width: 100%;
}
.card-swatch { width: 12px; align-self: stretch; border-radius: 3px; flex: none; }
.card-main { min-width: 0; }
.card-kicker, .card-cells dt { margin: 0; color: #94A3B8; font-size: 0.7rem; letter-spacing: 0.06em; }
.card-type { margin: 0; font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; }
.card-cells { display: flex; gap: 12px; margin: 0; }
.card-cells dd { margin: 0; font-weight: 600; font-size: 0.9rem; }
.card-guide { padding-left: 12px; border-left: 1px solid rgba(148, 163, 184, 0.35); }
.card-guide-line { margin: 0; color: #CBD5E1; font-size: 0.8rem; }
.card-guide-line b { color: #F8FAFC; font-size: 0.9rem; }
.card-back { border-radius: 6px; padding: 5px 10px; font-size: 0.85rem; background: rgba(148, 163, 184, 0.12); }
.ov-hints {
  margin: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  text-align: center;
  font-size: 0.72rem;
  color: #E2E8F0;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}
.tour-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 4px 0; }
.tour-list button { text-align: left; font-size: 0.82rem; line-height: 1.3; padding: 4px 8px; }
.tour-list small { display: block; color: #94A3B8; font-size: 0.72rem; }
.grid-axis { font-family: "Source Sans 3", "Hiragino Sans", "Noto Sans JP", sans-serif; font-size: 0.72rem; color: #94A3B8; letter-spacing: 0; margin-left: 6px; }
@media (max-width: 800px) {
  .ov-bottom { position: static; transform: none; width: auto; max-width: none; align-items: stretch; }
  .ov-card { margin: 6px 0 0; white-space: normal; flex-wrap: wrap; }
  /* #95: on a phone the named return button wraps inside the card instead of widening it. */
  .card-guide { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .ov-hints { text-shadow: none; color: #CBD5E1; background: none; padding: 2px 0 0; }
  .ov-tools { top: 46px; transform: none; }
  .ov-tools button { width: 36px; height: 36px; }
}
.seat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0; }
.seat-grid button { padding: 7px 0; min-width: 0; }

.is-hidden { display: none !important; }

.seat-kind { margin-top: 2px; }
.kind-chip {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border: 1px solid var(--chip-color, #f2d29b);
  color: var(--chip-color, #f2d29b);
  font-weight: 600;
}
.kind-chip::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 6px;
  background: var(--chip-color, #ff4619);
  vertical-align: 0.05em;
}

.roof-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F8FAFC;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  border: 1px solid #334155;
  padding: 4px 10px;
}
.roof-toggle input { margin: 0; }
.settings { margin: 4px 0 2px; }

.type-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
  color: #CBD5E1;
  font-size: 0.9rem;
}
.type-pick select {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: #F8FAFC;
  background: #0B1220;
  border: 1px solid #334155;
  padding: 4px 6px;
}

/* Fit panel in a 1280x800 browser window (~710px visible) */
header { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; padding: 8px 20px; }
header .seat-kind { margin-top: 0; }
.panel h2 { margin: 6px 0 3px; }
.panel .hint { font-size: 0.85rem; }
.help { margin: 2px 0 4px; }
/* Fold rows read like panel text (same size as .panel .hint), a shade darker, and still look clickable. */
.help summary, .settings summary, .people summary, .saved summary, .tours-seat summary { cursor: pointer; color: #B4C0CF; font-size: 0.85rem; width: fit-content; border-radius: 4px; }
.help summary:hover, .settings summary:hover, .people summary:hover, .saved summary:hover, .tours-seat summary:hover, .help summary:focus-visible, .settings summary:focus-visible, .people summary:focus-visible, .saved summary:focus-visible, .tours-seat summary:focus-visible { color: #F8FAFC; text-decoration: underline; text-underline-offset: 3px; }
.help summary:focus-visible, .settings summary:focus-visible, .people summary:focus-visible, .saved summary:focus-visible, .tours-seat summary:focus-visible { outline: 2px solid #22C55E; outline-offset: 2px; }
.help[open] summary, .people[open] summary { margin-bottom: 2px; }
.people { margin: 4px 0 2px; }

@media (max-height: 760px) {
  header { padding: 4px 20px; }
  header h1 { font-size: 1.35rem; margin: 0; }
  header p { font-size: 0.85rem; }
  .layout { gap: 8px; padding: 0 20px 4px; }
  /* Use leftover vertical space on short viewports (orbit panel is compact). */
  #view { height: clamp(300px, calc(100vh - 260px), 480px); }
  .note { font-size: 0.85rem; margin: 2px 0; }
  .guide { margin: 4px 0 0; gap: 2px 24px; }
  .guide a { font-size: 0.9rem; }
  .panel { padding: 4px 8px 6px; }
  .panel h2 { margin: 4px 0 2px; font-size: 0.95rem; }
  .panel .hint { font-size: 0.8rem; line-height: 1.35; }
  .help summary, .settings summary, .people summary, .saved summary, .tours-seat summary { font-size: 0.8rem; }
  .row-ctl { gap: 4px; margin: 2px 0; }
  button { padding: 3px 8px; font-size: 0.9rem; }
  .roof-toggle { padding: 3px 8px; font-size: 0.9rem; }
  .type-pick { margin: 2px 0 4px; font-size: 0.85rem; }
  .seat-grid { gap: 3px; margin: 2px 0; }
  .seat-grid button { padding: 5px 0; font-size: 0.8rem; }
}

.person-row { display: flex; align-items: center; gap: 4px; margin: 2px 0; font-size: 0.85rem; color: #CBD5E1; }
.person-who { flex: 1; min-width: 0; white-space: nowrap; }
.person-row input, .person-row select {
  font: inherit;
  color: #F8FAFC;
  background: #0B1220;
  border: 1px solid #334155;
  padding: 1px 4px;
}
.person-row input { width: 50px; text-align: right; }
.person-row input:disabled { color: #64748B; }
.person-row select:disabled { color: #64748B; }
.person-row.is-off { opacity: 0.45; cursor: not-allowed; }
.person-row select { width: 76px; }
.person-unit { margin-right: 4px; }
.people-note { margin: 2px 0 0; color: #94A3B8; font-size: 0.72rem; line-height: 1.35; }

/* Desktop: the 3D view takes all height left over by the header and the lines under it. */
@media (min-width: 801px) {
  body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  header { flex: none; }
  .layout { flex: 1 0 auto; }
  .stage { display: flex; flex-direction: column; }
  .viewport { flex: 1 1 0; min-height: 360px; display: flex; flex-direction: column; }
  #view { flex: 1 1 0; height: auto; min-height: 0; }
}

/* 全体図 (seat view only): small top-left overlay under the view tag. */
.ov-map {
  top: 38px;
  left: 10px;
  padding: 3px 4px 4px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  line-height: 0;
}
.ov-map-cap { margin: 0 0 2px 2px; font-size: 0.68rem; line-height: 1.2; color: #CBD5E1; }
.ov-map svg { display: block; width: 150px; height: 150px; }
.mm-bowl, .mm-line, .mm-zone, .mm-cone, .mm-dot { vector-effect: non-scaling-stroke; }
.mm-bowl { fill: #0f172a; stroke: rgba(148, 163, 184, 0.45); stroke-width: 0.8; }
.mm-field { fill: #24603a; }
.mm-infield { fill: #9c6a43; }
.mm-line { stroke: #f1f5f9; stroke-width: 0.9; }
.mm-home { fill: #f8fafc; }
.mm-zone { fill-opacity: 0.5; stroke: none; cursor: pointer; outline: none; }
.mm-zone:hover { fill-opacity: 0.8; }
.mm-zone.is-current { fill-opacity: 0.95; stroke: #f8fafc; stroke-width: 1.4; }
.mm-zone:focus-visible { fill-opacity: 0.9; stroke: #22C55E; stroke-width: 2.6; }
.mm-cone { fill: rgba(248, 250, 252, 0.28); stroke: rgba(248, 250, 252, 0.8); stroke-width: 0.8; pointer-events: none; }
.mm-dot { fill: #22C55E; stroke: #020617; stroke-width: 1.2; pointer-events: none; }
.ov-tools #ov-map[aria-pressed="true"] { background: rgba(22, 163, 74, 0.55); }
/* Narrow screens: smaller, in the lower-left corner of the 3D (near seats; the seat card is below
   the 3D there). top/bottom auto keep the map at its place in the flow, right under the canvas,
   and the transform lifts it back inside the canvas. */
@media (max-width: 800px) {
  .ov-map { top: auto; bottom: auto; left: 8px; transform: translateY(calc(-100% - 8px)); }
  .ov-map svg { width: 88px; height: 88px; }
  .viewport:fullscreen .ov-map { top: 38px; transform: none; }
}
/* 画像を保存・リンクをコピー: a short polite status, and a select-the-text field when the
   clipboard cannot be used. Both sit over the top of the 3D, so the page size does not change. */
.ov-status {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 10px;
  max-width: 70%;
  font-size: 0.82rem;
  color: #F8FAFC;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(34, 197, 94, 0.6);
  border-radius: 999px;
  pointer-events: none;
}
.ov-status.is-quiet { border: 0; padding: 0; background: none; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.ov-share-fallback {
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 80%);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  padding: 6px 8px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #CBD5E1;
}
.ov-share-fallback label { flex: 1 1 100%; }
.ov-share-fallback input { flex: 1 1 auto; min-width: 0; font: inherit; padding: 3px 6px; color: #0f172a; background: #F8FAFC; border: 0; border-radius: 4px; }
/* 共有: one button in the tool column opens a small menu just left of it (画像を保存・リンクをコピー). */
.ov-tools #ov-share[aria-expanded="true"] { background: rgba(148, 163, 184, 0.28); }
.ov-share-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 4px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  z-index: 3;
}
.ov-share-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  font-size: 0.85rem;
  color: #F8FAFC;
  background: transparent;
  border: 0;
  border-radius: 6px;
  white-space: nowrap;
  text-align: left;
  outline: none;
}
.ov-share-menu button:hover, .ov-share-menu button:focus { background: rgba(148, 163, 184, 0.24); }
.ov-share-menu button:focus-visible { box-shadow: inset 0 0 0 2px #22C55E; }
.ov-share-menu svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #F8FAFC; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* ≤800px: the control buttons leave the 3D and sit in one row right under it, so no button
   covers the 3D. The 全体図 map moves to the top-right corner of the 3D, freed by the buttons
   (in the lower corners it touched foul ground by home plate from the legends seats); the 共有
   menu drops below the row (placed in app.js) and the copy field opens under the row. */
@media (max-width: 800px) {
  .ov-tools {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    flex-direction: row;
    justify-content: flex-end;
    gap: 4px;
    margin: 6px 0 0;
    padding: 4px;
    background: #0B1220;
    border: 1px solid #1E293B;
    border-radius: 8px;
  }
  .ov-tools button { width: 40px; height: 40px; }
  .ov-map { top: 44px; bottom: auto; left: auto; right: 8px; transform: none; }
  .ov-share-fallback { top: auto; left: 0; right: 0; width: auto; transform: none; margin-top: 4px; }
  /* Full screen has no room under the 3D: back to the column over its right edge. */
  .viewport:fullscreen .ov-tools {
    position: absolute;
    top: 46px;
    right: 10px;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 3px;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.35);
  }
  .viewport:fullscreen .ov-tools button { width: 36px; height: 36px; }
  .viewport:fullscreen .ov-map { left: 8px; right: auto; }
  .viewport:fullscreen .ov-share-fallback { top: 40px; left: 50%; right: auto; width: min(560px, 80%); transform: translateX(-50%); margin: 0; }
}
/* 候補の席: up to 5 seats kept in this browser (localStorage), under the 席 grid. */
.saved { margin: 4px 0 2px; }
.saved[open] summary { margin-bottom: 4px; }
.saved-add { font-size: 0.82rem; padding: 3px 8px; }
.saved-add:disabled { color: #64748B; border-color: #1E293B; cursor: not-allowed; }
.saved-note { margin: 2px 0 0; color: #94A3B8; font-size: 0.72rem; line-height: 1.35; }
.saved-msg { margin: 2px 0 0; color: #CBD5E1; font-size: 0.75rem; line-height: 1.35; min-height: 0; }
.saved-msg:empty { display: none; }
.saved-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; }
.saved-list:empty { display: none; }
.saved-item { display: flex; gap: 4px; align-items: stretch; }
.saved-go { flex: 1 1 auto; min-width: 0; text-align: left; font-size: 0.8rem; line-height: 1.25; padding: 3px 8px; }
.saved-go small { display: block; color: #94A3B8; font-size: 0.7rem; }
.saved-go[aria-current="true"] { border-color: #22C55E; box-shadow: inset 3px 0 0 #22C55E; }
.saved-del { flex: none; font-size: 0.75rem; padding: 2px 8px; }
/* 1280×709 and other desktop sizes: 5 open rows plus a message would push the page past the
   window, so the list shows about 3 rows and scrolls inside itself. */
@media (min-width: 801px) {
  .saved-list { max-height: 122px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #64748B transparent; }
  /* When the rows do not all fit, the list gives 18px to the 「↓ ほか2つ」 line under it, so the
     list plus that line take the same 122px as before (the page never gets taller). */
  .saved-list.is-over { max-height: 104px; }
  .saved-list.is-over.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), rgba(0, 0, 0, 0.25)); mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), rgba(0, 0, 0, 0.25)); }
}
/* 「↓ ほか2つ」: how many saved rows are still below the visible part of the list. The line keeps
   its place while the list overflows and is only blanked (not removed) at the bottom, so nothing moves. */
.saved-more { display: block; height: 18px; margin: 0 0 0 auto; padding: 0 6px; border: 0; border-radius: 4px; background: none; color: #B4C0CF; font-size: 0.72rem; line-height: 18px; cursor: pointer; }
.saved-more:hover, .saved-more:focus-visible { color: #F8FAFC; text-decoration: underline; }
.saved-more:focus-visible { outline: 2px solid #22C55E; outline-offset: 1px; }
.saved-more.is-blank { visibility: hidden; }
/* おすすめの見え方 in the seat view: the same 4 presets, folded (closed at first) under 席種. */
.tours-seat { margin: 4px 0 2px; }
.tours-seat[open] summary { margin-bottom: 2px; }
.tours-seat .tour-list { margin: 2px 0 4px; }
/* Desktop (801px and up): the panel never makes the page taller. Its height comes from the 3D side
   (contain: size), and whatever is open in it (おすすめ・操作のヒント・表示の設定・周りの人・候補の席; 周りの人 is open from the start) scrolls inside
   the panel, so the page stays one screen and the 3D keeps its size. With nothing open the panel
   already fits, so it looks exactly as before. */
@media (min-width: 801px) {
  .panel { contain: size; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #64748B transparent; }
}

/* プライバシーポリシー: small link at the end of the panel; standalone policy page. */
.privacy-link { margin-top: 8px; }
.privacy-link a { color: #94A3B8; }
body.privacy-page { height: auto; min-height: 100vh; overflow: auto; display: block; }
.privacy { max-width: 720px; margin: 0 auto; padding: 16px 20px 32px; line-height: 1.7; color: #E2E8F0; }
.privacy h1 { font-size: 1.4rem; }
.privacy h2 { font-size: 1.05rem; margin-top: 20px; }
.privacy a { color: #93C5FD; }
/* ライブ（模式の目安）: stage position picker and the seat card's view line. */
.stage-pick .hint { margin: 2px 0; }
.stage-pick .stage-note { font-size: 0.75rem; color: #94A3B8; }
.stage-pick .stage-rare { font-size: 0.8rem; opacity: 0.85; }
.card-live { margin-top: 2px; }
/* #95: the return label names the seat; a long name is cut with … inside the card (never wider). */
#card-return { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
@media (max-width: 800px) { #card-return { white-space: normal; } }
.card-front { margin-top: 4px; border-radius: 6px; padding: 2px 8px; font-size: 0.78rem; line-height: 1.3; background: rgba(74, 222, 128, 0.14); border-color: rgba(74, 222, 128, 0.55); color: #DCFCE7; }
.guide.is-live-off { visibility: hidden; }
/* ライブ: the official per-show ticket guide sits in the same slot as the two baseball links, on top of
   the hidden baseball row, so the slot (and the 3D above it) keeps its size. */
.guide-slot { position: relative; }
.live-guide { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 8px 0 0; font-size: 0.8rem; line-height: 1.25; overflow: hidden; }
.live-guide a { color: #4ADE80; white-space: nowrap; }
.live-pick { display: inline-flex; align-items: center; gap: 4px; color: #CBD5E1; white-space: nowrap; }
.live-pick select { font-size: 0.8rem; padding: 0 2px; max-width: 14em; }
.live-caution { margin: 0; color: #94A3B8; font-size: 0.72rem; }
.live-aux { display: inline-flex; gap: 8px; white-space: nowrap; font-size: 0.75rem; }
.live-aux a { color: #86EFAC; }
.live-none { margin: 0; color: #CBD5E1; font-size: 0.8rem; }
@media (max-height: 760px) {
  .live-guide { margin: 4px 0 0; }
}
@media (max-width: 800px) {
  /* Two baseball links take two short lines here; the live row (select + link) and the caution fit the same height. */
  .live-guide { margin: 4px 0 0; line-height: 1.2; gap: 0 8px; align-content: flex-start; }
  .live-pick select { font-size: 0.75rem; max-width: 8.5em; }
  /* The select keeps its aria-label; the word 「公演」 is hidden here so the select, the main link and
     the small ローチケ / e+ links fit one line above the caution. */
  .live-pick-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .live-guide a, .live-aux { font-size: 0.75rem; }
  .live-aux { gap: 6px; }
  .live-caution { font-size: 0.68rem; }
}
