:root {
  /* AI-site skin — ink + ember + cyan（紫グラデは使わない） */
  --bg: #070b14;
  --bg-elev: #0e1628;
  --panel: rgba(16, 24, 40, 0.72);
  --panel-solid: #121a2b;
  --text: #e8eefc;
  --muted: #9aa8c7;
  --line: rgba(232, 238, 252, 0.14);
  --orange: #ff6a3d;
  --orange-dark: #ff8f66;
  --orange-soft: rgba(255, 106, 61, 0.2);
  --orange-pale: rgba(255, 106, 61, 0.12);
  --cyan: #3de0ff;
  --cyan-soft: rgba(61, 224, 255, 0.16);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.16);
  --blue-soft: rgba(61, 224, 255, 0.12);
  --danger: #fb7185;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-display: "Syne", "Zen Kaku Gothic New", sans-serif;
  --shadow-glow: 0 0 0 1px rgba(61, 224, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.01em;
}

.bg-soft {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 12% -10%, rgba(255, 106, 61, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(61, 224, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 45% at 70% 95%, rgba(255, 106, 61, 0.12), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0a1222 48%, #070b14 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 238, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 252, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.bg-orb {
  position: fixed;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.bg-orb-a {
  top: 8%;
  left: -6%;
  background: rgba(255, 106, 61, 0.35);
}

.bg-orb-b {
  right: -4%;
  bottom: 12%;
  background: rgba(61, 224, 255, 0.28);
  animation-delay: -6s;
}

@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -18px, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb { animation: none; }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 442px;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  align-items: stretch;
  min-height: 100vh;
}

.layout-main-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.layout-rail {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.layout-rail-right {
  width: 100%;
  min-width: 0;
  flex: 1;
  background: #121a2b;
  padding: 10px 8px 14px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layout-rail .panel,
.layout-rail .panel-featured {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.layout-main.wrap {
  max-width: none;
  margin: 0;
  padding: 8px 10px 16px;
  width: 100%;
  min-width: 0;
  background: var(--bg);
}

.site-topbar-mount {
  position: relative;
  z-index: 200;
  padding-top: 0.2rem;
  overflow: visible;
}

.site-topbar {
  position: relative;
  z-index: 200;
  --topbar-row-h: 3.1rem;
  --topbar-radius: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: 10px;
  margin: 0;
  padding: 4px 12px;
  min-height: var(--topbar-row-h);
  overflow: hidden;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid rgba(249, 115, 22, 0.14);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}

.topbar-zone-start {
  justify-self: start;
  z-index: 2;
  display: flex;
  align-items: center;
}

.topbar-zone-nav {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.topbar-zone-end {
  justify-self: end;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
}

.site-topbar.is-pinned {
  position: fixed;
  top: 0;
  z-index: 220;
  padding-top: 4px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.site-topbar.is-locked {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.recruit-top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: var(--topbar-row-h);
  padding: 0 14px;
  border: none;
  border-radius: var(--topbar-radius);
  background: linear-gradient(180deg, #fb923c, #f97316);
  color: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.recruit-top-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.recruit-top-cta:focus-visible {
  outline: none;
  animation: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28);
}

.section-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  align-self: stretch;
  gap: 8px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.section-nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: var(--topbar-row-h);
  height: 100%;
  padding: 0 10px;
  border: 1px solid rgba(214, 211, 209, 0.75);
  border-radius: var(--topbar-radius);
  background: #152038;
  color: #57534e;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.section-nav-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.22);
  color: var(--orange-dark);
  filter: brightness(1.02);
}

.section-nav-tab.is-active {
  background: var(--orange-soft);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--orange-dark);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.12);
}

.section-nav-tab-featured {
  border-color: rgba(249, 115, 22, 0.28);
  color: var(--orange-dark);
  background: #121a2b;
}

.section-nav-tab-featured.is-active {
  background: #121a2b;
  border-color: rgba(249, 115, 22, 0.38);
  color: #9a3412;
}

.section-nav-tab:focus-visible {
  outline: none;
  animation: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

#createSection,
#quickRegister,
#profileSection,
#createFold,
#hostPanel,
#beginnerGuide,
#slotsFinale,
#calendarRail {
  scroll-margin-top: calc(var(--site-topbar-height, 56px) + 12px);
}

.layout-main .panel {
  margin-bottom: 7px;
  padding: 12px 14px;
  border-radius: 14px;
}

.layout-main .btn {
  padding: 10px 16px;
}

.layout-main .btn.small {
  padding: 7px 12px;
}

.layout-main input,
.layout-main select {
  padding: 9px 11px;
  font-size: 0.92rem;
}

.calendar-rail-panel {
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
}

.rail-tips {
  margin-top: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  background: #121a2b;
  border: 1px solid rgba(249, 115, 22, 0.16);
}

.rail-tips-title {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--orange-dark);
}

.rail-tips-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.rail-tips-compact {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--orange-pale);
  border: 1px solid rgba(249, 115, 22, 0.14);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: center;
}

.hero-compact {
  padding: 16px 12px 16px;
  margin-bottom: 0;
  border-radius: 14px 14px 0 0;
  border-bottom: none;
}

.hero-grand {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  background: #121a2b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 42px rgba(249, 115, 22, 0.14);
}

.hero-grand::before,
.hero-grand::after {
  display: none;
}

.hero-stage-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-stage-mascot-wash {
  position: absolute;
  right: -6%;
  top: 42%;
  width: min(52vw, 420px);
  height: auto;
  opacity: 0.14;
  filter: saturate(1.25) blur(0.2px);
  transform: translateY(-50%) rotate(-6deg);
  user-select: none;
}

.hero-stage-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-stage-glow-a {
  width: 42%;
  height: 58%;
  left: -8%;
  top: -12%;
  background: radial-gradient(circle, rgba(255, 237, 213, 0.95) 0%, transparent 70%);
  animation: heroAuraPulse 9s ease-in-out infinite;
}

.hero-stage-glow-b {
  width: 46%;
  height: 54%;
  right: -10%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.28) 0%, transparent 72%);
  animation: heroAuraPulse 11s ease-in-out infinite reverse;
}

.hero-stage-grid {
  position: relative;
  z-index: 1;
}

.hero-stage-mascot-wrap {
  margin: 8px 0 6px;
}

.hero-stage .hero-mascot {
  width: clamp(148px, 28vw, 220px);
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 16px 34px rgba(249, 115, 22, 0.28));
  animation: heroMascotFloat 5.5s ease-in-out infinite;
}

.hero-stage .hero-mascot-link:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 18px 36px rgba(249, 115, 22, 0.32));
}

.hero-stage .brand-title-grand {
  gap: 14px;
  margin-bottom: 2px;
}

.hero-stage .brand-jp-grand {
  margin: 8px 0 4px;
  font-size: clamp(1.18rem, 2.4vw, 1.42rem);
}

.hero-stage .hero-kindness-grand {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 4px 2px 0;
  text-align: left;
}

.hero-stage .hero-manifesto span {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px 14px;
  font-size: 0.82rem;
  color: #f5f8ff;
  background: #0f172a;
  border: 1px solid rgba(255, 106, 61, 0.35);
}

@keyframes heroMascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage .hero-mascot,
  .hero-stage-glow-a,
  .hero-stage-glow-b {
    animation: none;
  }
}

.hero-aura {
  display: none;
}

.hero-sparkles {
  display: none;
}

.hero-sparkle {
  position: absolute;
  opacity: 0.55;
  filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.2));
  animation: heroSparkleFloat 6s ease-in-out infinite;
}

.hero-sparkle-a {
  top: 14%;
  left: 4%;
  font-size: 1.1rem;
  animation-delay: 0s;
}

.hero-sparkle-b {
  top: 20%;
  right: 4%;
  font-size: 1.35rem;
  color: rgba(234, 88, 12, 0.55);
  animation-delay: 1.4s;
}

.hero-inner-grand {
  position: relative;
  z-index: 1;
}

/* ヒーロー上段コンパクト（鉄拳実験の締まりを本線へ） */
.hero-stage.hero-grand {
  padding: 14px 14px 12px;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  width: 100%;
}

.hero-stage .brand-pill,
.hero-stage.hero-compact .brand-pill {
  margin-bottom: 0;
  padding: 5px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-earth-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #9a3412;
  background: #121a2b;
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow:
    0 4px 16px rgba(249, 115, 22, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-kicker {
  margin: 0 0 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.88);
}

.brand-title-grand {
  gap: 12px;
  margin-bottom: 2px;
}

.hero-stage .brand-jp-grand {
  margin: 6px 0 0;
  font-size: 1.05rem;
}

.brand-title-stack {
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 0.9;
}

.brand-title-stack .brand-en {
  display: block;
  width: auto;
  max-width: 100%;
  font-size: clamp(2.6rem, 9.5vw, 4.2rem);
  letter-spacing: 0.06em;
  line-height: 0.92;
}

.brand-glow {
  color: #f8fbff;
  text-shadow:
    0 0 28px rgba(61, 224, 255, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

.brand-glow-accent {
  background: linear-gradient(100deg, #ff8a4c 0%, #ff6a3d 42%, #3de0ff 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(255, 106, 61, 0.42));
}

.brand-jp-grand {
  margin: 10px 0 8px;
  font-size: 1.22rem;
  font-weight: 800;
  color: #e8eefc;
  letter-spacing: 0.04em;
}

.hero-mascot-wrap {
  display: flex;
  justify-content: center;
  margin: 2px 0 4px;
}

.hero-mascot-link {
  display: inline-flex;
  border-radius: 28px;
  line-height: 0;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.hero-mascot-link:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 10px 26px rgba(249, 115, 22, 0.28));
}

.hero-mascot-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28);
}

.topbar-return-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--topbar-row-h);
  min-height: var(--topbar-row-h);
  padding: 0 10px 0 3px;
  border-radius: var(--topbar-radius);
  line-height: 1.15;
  text-decoration: none;
  overflow: hidden;
  background: #121a2b;
  border: 1px solid rgba(249, 115, 22, 0.32);
  box-shadow:
    0 4px 14px rgba(249, 115, 22, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topbar-return-link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(249, 115, 22, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.topbar-return-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28);
}

.topbar-return-mascot {
  flex: 0 0 auto;
  width: calc(var(--topbar-row-h) - 0.15rem);
  height: calc(var(--topbar-row-h) - 0.15rem);
  margin: 0;
  border-radius: calc(var(--topbar-radius) - 2px);
  object-fit: cover;
  filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.18));
}

.topbar-return-label {
  flex: 0 0 auto;
  max-width: 3.2rem;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #9a3412;
  white-space: normal;
}

.hero-mascot {
  width: clamp(88px, 16vw, 124px);
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 8px 22px rgba(249, 115, 22, 0.22));
}

.hero-stage .hero-mascot {
  width: clamp(148px, 28vw, 220px);
  border-radius: 28px;
}

.hero-manifesto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.hero-manifesto span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(50% - 8px);
  min-width: 132px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f5f8ff;
  background: #0f172a;
  border: 1px solid rgba(255, 106, 61, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-manifesto span::before {
  content: "♡";
  margin-right: 5px;
  color: var(--orange);
  font-size: 0.62rem;
}

.hero-kindness-grand {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-self: start;
  width: 100%;
  height: fit-content;
  min-height: 0;
  margin: 0;
  padding: 12px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 106, 61, 0.45);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 106, 61, 0.22), transparent 55%),
    linear-gradient(180deg, #152038 0%, #121a2b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.35);
  text-align: center;
  color: #f5f8ff;
}

.hero-kindness-grand .kindness-label {
  margin-bottom: 0;
  font-size: clamp(1.22rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffb08a;
  text-shadow: none;
}

.kindness-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.kindness-refresh-btn {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(255, 106, 61, 0.45);
  border-radius: 10px;
  background: #0f172a;
  color: #ffe4d6;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.kindness-refresh-btn:hover {
  transform: translateY(-1px);
  background: #1a2740;
  border-color: rgba(255, 106, 61, 0.65);
  color: #fff;
}

.kindness-refresh-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.kindness-note-refresh .kindness-message {
  animation: kindnessRefreshPop 0.32s ease;
}

@keyframes kindnessRefreshPop {
  0% { opacity: 0.35; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-kindness-grand .kindness-message {
  margin: 0;
  max-width: none;
  font-size: clamp(1.38rem, 3.6vw, 1.82rem);
  font-weight: 600;
  line-height: 1.68;
  letter-spacing: 0.02em;
  color: #f5f8ff;
  text-shadow: none;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

@media (min-width: 1100px) {
  .hero-top .hero-right-panel .hero-kindness-grand .kindness-label {
    margin-bottom: 0;
    font-size: clamp(1.28rem, 1.35vw, 1.62rem);
    letter-spacing: 0.08em;
  }

  .hero-top .hero-right-panel .kindness-head {
    margin-bottom: 10px;
    gap: 10px;
  }

  .hero-top .hero-right-panel .hero-kindness-grand .kindness-message {
    font-size: clamp(1.42rem, 1.45vw, 1.88rem);
    line-height: 1.66;
    letter-spacing: 0.02em;
    color: #f5f8ff;
    padding-inline: 6px;
  }
}

@keyframes heroAuraPulse {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes heroSparkleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.45; }
  50% { transform: translateY(-6px) rotate(6deg); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aura,
  .hero-sparkle {
    animation: none;
  }
}

.rail-panel-compact {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.rail-panel-compact .rail-title {
  margin-bottom: 8px;
}

.rail-ad-stack {
  flex: 1;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 120px;
}

.ad-slot-rail {
  margin-top: 0;
  min-height: 96px;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 4px;
}

.hero-left-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-right-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.hero-left-panel .hero-badge-row,
.hero-left-panel .brand-title-grand {
  justify-content: center;
}

.hero-manifesto-main,
.hero-manifesto-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-manifesto-main span,
.hero-manifesto-side span {
  flex: 1 1 calc(50% - 8px);
  min-width: 132px;
}

@media (min-width: 1100px) {
  .hero-top {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-rows: auto;
    gap: 10px 28px;
    align-items: center;
  }

  .hero-stage .hero-stage-mascot-wash {
    right: 18%;
    top: 50%;
    width: min(40vw, 460px);
    opacity: 0.16;
  }

  .hero-left-panel {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(200px, 22vw, 240px);
    grid-template-areas:
      "copy mascot"
      "rules mascot";
    column-gap: 20px;
    row-gap: 12px;
    align-items: center;
    justify-items: start;
    min-height: 100%;
    padding: 8px 6px;
    text-align: left;
  }

  .hero-stage-main .hero-inner-grand {
    grid-area: copy;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-stage-mascot-wrap {
    grid-area: mascot;
    margin: 0;
    justify-content: center;
    align-self: center;
    width: 100%;
  }

  .hero-stage-main .hero-manifesto-main {
    grid-area: rules;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    align-self: start;
  }

  .hero-left-panel .hero-badge-row,
  .hero-left-panel .brand-title-grand {
    justify-content: flex-start;
  }

  .hero-left-panel .brand-title-stack {
    align-items: flex-start;
    max-width: 100%;
  }

  .hero-left-panel .brand-title-stack .brand-en {
    width: auto;
    max-width: 100%;
    font-size: clamp(2.4rem, 3.4vw, 3.7rem);
    letter-spacing: 0.04em;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .hero-left-panel .hero-kicker,
  .hero-left-panel .brand-jp-grand {
    text-align: left;
  }

  .hero-stage .hero-mascot {
    width: clamp(180px, 18vw, 240px);
  }

  .hero-right-panel {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 100%;
    padding: 8px 4px 8px 10px;
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(249, 115, 22, 0.18);
    background: transparent;
    box-shadow: none;
  }

  .hero-kicker {
    letter-spacing: 0.14em;
  }

  .hero-top .hero-right-panel .kindness-note.hero-kindness-grand {
    flex: 0 1 auto;
    align-self: stretch;
    height: auto;
    min-height: 0;
    display: grid;
    align-content: center;
    justify-items: stretch;
    text-align: left;
    padding: 8px 4px;
    border: 1px solid rgba(255, 106, 61, 0.4);
    background: #152038;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: #f5f8ff;
  }

  .hero-top .hero-kindness-grand .kindness-label {
    border-right: none;
    padding-right: 0;
    white-space: normal;
  }

  .hero-manifesto-main,
  .hero-manifesto-side {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-manifesto-side {
    flex-shrink: 0;
  }

  .hero-manifesto-main span,
  .hero-manifesto-side span {
    flex: 0 1 auto;
    width: auto;
    padding: 9px 14px;
    font-size: 0.82rem;
  }
}

.hero-kindness {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 106, 61, 0.4);
  background: #152038;
  color: #f5f8ff;
}

.hero-kindness .kindness-label {
  margin-bottom: 4px;
  font-size: 0.68rem;
}

.hero-kindness .kindness-message {
  font-size: 0.86rem;
  line-height: 1.45;
}

.hero-compact .brand-en {
  font-size: clamp(2.55rem, 4.8vw, 3.55rem);
}

.hero-compact .brand-jp {
  margin: 8px 0 0;
  font-size: 1.3rem;
}

.hero-grand .brand-en {
  font-size: clamp(2.75rem, 5.4vw, 4rem);
}

.calendar-rail-panel .panel-head {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-rail-panel .section-title h2 {
  font-size: 1.6rem;
  white-space: nowrap;
}

.calendar-rail-panel .section-icon {
  font-size: 1.8rem;
}

.calendar-rail-panel .calendar-nav {
  justify-content: center;
  width: 100%;
}

.calendar-rail-panel .month-label {
  flex: 1;
  min-width: 0;
  font-size: 1.55rem;
}

.calendar-rail-panel .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  min-width: 0;
}

.calendar-rail-panel .calendar-weekday {
  font-size: 1rem;
  padding: 5px 0;
  min-width: 0;
  text-align: center;
}

.calendar-rail-panel .calendar-day {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 5px 3px;
  font-size: 1.15rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

.calendar-rail-panel .calendar-day.empty-day {
  aspect-ratio: 1;
  min-height: 0;
}

.calendar-rail-panel .day-number {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.calendar-rail-panel .day-slot-count {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--orange-dark);
  white-space: nowrap;
}

.calendar-rail-panel .day-slots,
.calendar-rail-panel .day-slot-chip,
.calendar-rail-panel .day-slot-more {
  display: none !important;
}

.calendar-rail-panel .selected-day-label {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.hero-compact .welcome-line,
.hero-compact .lead {
  display: none;
}

.hero-compact .brand-pill {
  margin-bottom: 9px;
  padding: 6px 16px;
  font-size: 1.08rem;
}

.layout-main .hero-compact {
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-bottom: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 32px rgba(249, 115, 22, 0.1);
}

.layout-main .hero-compact + .site-topbar {
  border-top: 1px dashed rgba(249, 115, 22, 0.18);
}

.layout-main .site-topbar + .entry-duo-row {
  margin-top: 0;
}

.layout-main .site-topbar + .quick-register {
  margin-top: 0;
  border-radius: 0;
  border: 1px solid var(--line);
  border-top: 1px dashed rgba(249, 115, 22, 0.22);
  border-bottom: 1px dashed rgba(249, 115, 22, 0.16);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.layout-main .quick-register + .create-section-recruit {
  margin-top: 8px;
}

.entry-duo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  /* stretch + height:100% 連鎖は開閉バグの元。開始位置揃え＋min-heightで揃える */
  align-items: start;
  margin-bottom: 8px;
}

.entry-duo-row .quick-register,
.entry-duo-row .create-section-recruit {
  margin: 0;
  min-width: 0;
  height: auto;
}

.entry-duo-row:has(.create-fold-hero[open]) .create-section-recruit {
  grid-column: 1 / -1;
}

/* 募集を開いたとき: ①は全幅の空カードにしない。1行コンパクト帯にする */
.entry-duo-row:has(.create-fold-hero[open]) .quick-register {
  grid-column: 1 / -1;
  order: -1;
  min-height: 0;
  padding: 10px 12px;
  justify-content: center;
}

.entry-duo-row:has(.create-fold-hero[open]) .quick-register-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 10px;
}

.entry-duo-row:has(.create-fold-hero[open]) .quick-register-step {
  align-self: center;
}

.entry-duo-row:has(.create-fold-hero[open]) .quick-register-field {
  flex: 1 1 220px;
  min-width: 180px;
}

.entry-duo-row:has(.create-fold-hero[open]) .quick-register-row .btn {
  width: auto;
  min-width: 10rem;
  flex: 0 0 auto;
}

.entry-duo-row .quick-register {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 168px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.entry-duo-row .quick-register-row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.entry-duo-row .quick-register-step {
  align-self: flex-start;
}

.entry-duo-row .quick-register-field {
  flex: 1 1 auto;
}

.entry-duo-row .quick-register-row .btn {
  width: 100%;
}

.entry-duo-row .create-fold-hero {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
}

.entry-duo-row .create-fold-hero:not([open]) {
  min-height: 168px;
}

.entry-duo-row .create-fold-summary-hero {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  height: auto;
  min-height: 0;
  padding: 14px 16px;
  text-align: left;
  box-sizing: border-box;
}

.entry-duo-row .create-fold-hero:not([open]) .create-fold-summary-hero {
  min-height: 168px;
}

.entry-duo-row .create-fold-hero[open] .create-fold-summary-hero {
  min-height: 0;
  padding: 12px 14px;
}

.entry-duo-row .create-fold-hero-title {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.entry-duo-row .create-fold-hero-copy small {
  font-size: 0.76rem;
}

.entry-duo-row .create-fold-hero:not([open]) .create-fold-hero-cta {
  width: 100%;
  margin-top: 8px;
}

.entry-duo-row .create-fold-hero[open] .create-fold-summary-hero {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.entry-duo-row .create-fold-hero[open] .create-fold-hero-close {
  width: auto;
  min-width: 4.5rem;
  margin-top: 0;
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .entry-duo-row {
    grid-template-columns: 1fr;
  }
}

.quick-register {
  margin-bottom: 7px;
  border-color: rgba(249, 115, 22, 0.22);
  background: #121a2b;
}

.quick-register.highlight {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

.guide-target-highlight {
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.35);
}

.quick-register-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-register-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.quick-register-field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.quick-register-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.beginner-panel {
  padding: 10px 12px;
  border-color: rgba(255, 106, 61, 0.35);
  background: #121a2b;
  color: #e8eefc;
}

.beginner-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.beginner-kicker {
  margin: 0 0 2px;
  color: #ffb08a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.beginner-panel h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.beginner-panel-lead {
  max-width: 360px;
  margin: 0;
  color: #c7d2e8;
  font-size: 0.78rem;
  line-height: 1.45;
}

.beginner-panel-focus {
  border: 1px solid rgba(255, 106, 61, 0.45);
  background: #152038;
  color: #e8eefc;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.beginner-start-btn {
  width: 100%;
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 900;
}

.beginner-guide-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}

.guide-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 106, 61, 0.35);
  background: #152038;
  color: #f5f8ff;
  font-size: 0.82rem;
  min-height: 64px;
}

.guide-step-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-step-link:hover {
  border-color: rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.1);
}

.guide-step-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.guide-step.is-active {
  border-color: rgba(255, 106, 61, 0.75);
  background: rgba(255, 106, 61, 0.22);
  box-shadow: 0 6px 16px rgba(255, 106, 61, 0.18);
  color: #fff;
}

.guide-step.is-done {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.16);
  color: #f5f8ff;
}

.guide-step.is-done .guide-step-num {
  background: #16a34a;
  color: #fff;
}

.guide-step.is-done .guide-step-num::after {
  content: none;
}

.guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(255, 106, 61, 0.35);
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

.guide-step.is-active .guide-step-num {
  background: var(--orange);
  color: #fff;
}

.guide-step strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
}

.guide-step span {
  color: #c7d2e8;
  font-size: 0.78rem;
}

.kindness-compact,
.hero-kindness {
  margin-bottom: 0;
}

.rail-panel {
  margin-bottom: 0;
}

.rail-gear-blurb {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
}

.rail-gear-note {
  margin: 8px 0 0;
  font-size: 0.7rem;
  text-align: center;
}

.rail-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--orange-dark);
}

.rail-lead,
.rail-foot {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.rail-foot {
  margin-top: auto;
  margin-bottom: 0;
}

.rail-cards {
  display: grid;
  gap: 8px;
}

.rail-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: #121a2b;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rail-card-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #121a2b;
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.rail-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rail-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12);
}

.rail-badge {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.rail-card strong {
  font-size: 0.84rem;
}

.rail-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.ad-slot-placeholder {
  margin-top: 10px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(249, 115, 22, 0.28);
  border-radius: 12px;
  background: #152038;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
  padding: 10px;
}

.ad-slot-main {
  margin: 12px 0 4px;
  min-height: 100px;
}

.about-lobby-body {
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
}

.about-lobby-body p {
  margin: 0;
}

.stream-safe-mode .ad-slot,
.stream-safe-mode .rail-ad-stack,
.stream-safe-mode #mainAdSlot {
  display: none !important;
}

.footer-link {
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 6px;
}

.legal-panel {
  margin-top: 12px;
}

.legal-body {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}

.legal-body .legal-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-body h3 {
  margin: 10px 0 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}

.legal-body p,
.legal-body ul {
  margin: 0;
}

.legal-body ul {
  padding-left: 1.2em;
}

.legal-body li {
  margin: 0.15em 0;
}

.day-panel.panel {
  margin-bottom: 8px;
  padding: 10px 12px;
}

@media (max-width: 1100px) {
  .site-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .layout-rail-right {
    border-left: none;
    border-top: 1px solid var(--line);
    order: -1;
  }
}

@media (max-width: 1099px) {
  .site-topbar-mount {
    padding-top: 0.15rem;
  }

  .site-topbar {
    --topbar-row-h: 2.85rem;
    column-gap: 8px;
    padding: 4px 10px;
  }

  .topbar-return-link {
    padding-right: 8px;
  }

  .topbar-return-label {
    font-size: 0.6rem;
    max-width: 2.8rem;
  }

  .section-nav {
    width: 100%;
    gap: 6px;
  }

  .section-nav-tab {
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .recruit-top-cta {
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .day-panel-empty {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .day-panel-empty-copy {
    text-align: center;
  }

  .day-panel-create-cta {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hero-top {
    grid-template-columns: 1fr;
  }

  .hero-left-panel,
  .hero-right-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-left-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }

  .hero-right-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .hero-manifesto-main,
  .hero-manifesto-side {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .hero-manifesto-side span,
  .hero-manifesto-main span {
    flex: 1 1 calc(50% - 8px);
  }

  .hero-inner-grand {
    text-align: center;
  }

  .hero-badge-row {
    justify-content: center;
  }

  .brand-title-grand {
    justify-content: center;
  }

  .hero-manifesto span {
    flex: 1 1 calc(50% - 8px);
  }

  .hero-manifesto-main,
  .hero-manifesto-side {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-grand::before,
  .hero-grand::after {
    display: none;
  }

  .hero-stage-mascot-wash {
    width: min(70vw, 280px);
    opacity: 0.1;
    right: -12%;
    top: 58%;
  }

  .hero-stage .hero-mascot {
    width: clamp(140px, 42vw, 190px);
  }

  .hero-grand {
    padding: 18px 12px 16px;
  }

  .hero-kicker {
    letter-spacing: 0.14em;
    font-size: 0.62rem;
  }

  .hero-sparkle {
    display: none;
  }

  .hero-kindness {
    text-align: center;
  }

  .hero-kindness-grand {
    grid-template-columns: 1fr;
    padding: 12px 14px 14px;
    text-align: center;
  }

  .hero-kindness-grand .kindness-label {
    border-right: none;
    padding-right: 0;
  }

  .hero-kindness-grand .kindness-message {
    font-size: clamp(1.28rem, 5vw, 1.62rem);
    line-height: 1.64;
    letter-spacing: 0.02em;
  }

  .beginner-panel-head {
    display: block;
  }

  .beginner-panel-lead {
    margin-top: 8px;
    max-width: none;
  }

  .layout-rail-right {
    border: none;
    border-bottom: 1px solid var(--line);
  }

  .layout-rail {
    position: static;
  }

  .calendar-rail-panel .calendar-day {
    aspect-ratio: auto;
    min-height: 58px;
  }

  .guide-stepper {
    grid-template-columns: 1fr;
  }
}

.hero {
  position: relative;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: #121a2b;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.08);
}

.hero-inner { text-align: center; }

.stream-safe-wrap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: min(240px, 46vw);
}

.stream-safe-toggle {
  position: static;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.stream-safe-hint {
  margin: 0;
  padding: 0 4px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 252, 0.78);
  text-align: right;
}

.stream-safe-toggle[aria-pressed="true"] {
  background: var(--orange-soft);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--orange-dark);
}

.stream-safe-mode .user-secret-info {
  filter: blur(5px);
  transition: filter 0.2s ease;
}

.stream-safe-mode .user-secret-info:hover,
.stream-safe-mode .user-secret-info:focus {
  filter: blur(0);
}

@media (max-width: 640px) {
  .stream-safe-wrap {
    position: static;
    align-items: center;
    max-width: none;
    margin: 0 auto 12px;
  }

  .stream-safe-hint {
    text-align: center;
  }
}

.brand-pill {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 12px;
}

.brand-title {
  margin: 0;
  line-height: 1.1;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-en {
  font-size: clamp(2.2rem, 9vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-en.accent {
  color: var(--orange);
}

.brand-jp {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #4b5563;
}

.lead {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.welcome-line {
  margin: 8px 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--orange);
}

.kindness-note {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: #121a2b;
  text-align: center;
}

.kindness-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
}

.kindness-message {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  color: #f5f8ff;
}

.hero-top .hero-right-panel .kindness-note.hero-kindness-grand {
  display: grid;
  margin-bottom: 0;
  justify-content: flex-start;
  height: fit-content;
  min-height: 0;
  padding: 12px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 106, 61, 0.45);
  background: #152038;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #f5f8ff;
}

@media (min-width: 1100px) {
  .hero-top .hero-right-panel .kindness-note.hero-kindness-grand {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 22px 18px 24px;
    gap: 10px;
    border: 1px solid rgba(255, 106, 61, 0.4);
    background: #152038;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

.join-memo-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.host-memo-hint {
  margin: 4px 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.join-memo-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
  background: #121a2b;
}

.start-reminder-banner {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  background: #121a2b;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
}

.start-reminder-banner[hidden] {
  display: none !important;
}

.start-reminder-banner-line {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
  color: #9a3412;
}

.start-reminder-banner-line + .start-reminder-banner-line {
  margin-top: 6px;
}

.start-reminder-banner-item {
  display: grid;
  gap: 8px;
}

.start-reminder-banner-item + .start-reminder-banner-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(249, 115, 22, 0.18);
}

.start-reminder-banner-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #c2410c;
}

.start-reminder-banner-item.is-urgent,
.start-reminder-note-urgent,
.lobby-number-urgent,
.join-memo-guest-panel.lobby-number-urgent,
.join-memo-guest-wait-panel.lobby-number-urgent {
  animation: lobbyNumberPulse 1.4s ease-in-out 2;
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.start-reminder-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  background: #152038;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  color: #9a3412;
  display: grid;
  gap: 8px;
}

.start-reminder-note-text {
  margin: 0;
}

.host-card > .start-reminder-note {
  margin: 0 0 12px;
}

.host-start-checklist {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(240, 253, 244, 0.95);
}

.host-check-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.host-check-item {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #166534;
}

.host-check-item.is-ng {
  color: #9a3412;
}

.safety-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.safety-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.safety-chip-rank {
  color: #9a3412;
  background: #152038;
  border-color: rgba(249, 115, 22, 0.28);
}

.safety-chip-home {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.28);
}

.slot-list-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 8px 0 4px;
}

.slot-list-create-cta {
  min-height: 42px;
}

@keyframes lobbyNumberPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

.after-care-banner {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: #121a2b;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.08);
}

.after-care-banner[hidden] {
  display: none !important;
}

.after-care-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #166534;
}

.after-care-message {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  color: #3f6212;
}

.join-memo-guest-panel {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 22, 0.32);
  background: #121a2b;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.1);
}

.join-memo-guest-panel-fresh {
  animation: joinMemoFreshPulse 1.2s ease;
  border-color: rgba(234, 88, 12, 0.55);
}

@keyframes joinMemoFreshPulse {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.28); }
  60% { transform: scale(1.01); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { transform: scale(1); box-shadow: 0 8px 22px rgba(249, 115, 22, 0.1); }
}

.join-memo-guest-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--orange-dark);
}

.join-memo-guest-lead {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #9a3412;
}

.join-memo-guest-text {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(249, 115, 22, 0.35);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.join-memo-guest-wait-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(249, 115, 22, 0.28);
  background: #152038;
}

.join-memo-guest-wait-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #9a3412;
}

.join-memo-guest-wait {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.host-memo-hint {
  margin: 0 0 8px !important;
  line-height: 1.45;
}

.host-notice-guest-panel {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  background: #121a2b;
}

.host-notice-guest-title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 900;
  color: #9a3412;
}

.host-notice-guest-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  color: #7c2d12;
}

.host-notice-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.host-notice-current {
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
  color: #9a3412;
}

.host-grid-notice {
  grid-column: 1 / -1;
}

.slots-finale {
  border-color: rgba(249, 115, 22, 0.28);
  background: #121a2b;
}

.slots-finale-lead {
  margin: -4px 0 12px;
  font-weight: 700;
  color: #9a3412;
}

.setup-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #121a2b;
  color: var(--text);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.setup-banner .btn.primary {
  background: var(--orange);
  color: #fff;
  white-space: nowrap;
}

.account-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-color: rgba(249, 115, 22, 0.25);
  background: #121a2b;
}

.account-bar-compact {
  margin-bottom: -8px;
  padding: 12px 16px;
  border-radius: 18px 18px 0 0;
  border-bottom: none;
}

.account-bar-compact + .slots-finale {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

.account-bar-compact .account-label {
  font-size: 0.72rem;
}

.account-bar-compact #accountRoleText {
  font-size: 0.95rem;
}

.account-bar-compact .account-name {
  font-size: 0.82rem;
}

.account-bar-compact .account-chips {
  margin-top: 0;
}

.account-current {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.account-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.account-name {
  font-size: 0.92rem;
  color: var(--muted);
}

.account-role-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#accountRoleText {
  font-size: 1.05rem;
  color: var(--orange-dark);
}

.pending-alert-badge {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  animation: pending-pulse 2s ease-in-out infinite;
}

.pending-alert-badge[hidden] {
  display: none !important;
  animation: none;
}

@keyframes pending-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
  }
}

.slot-card-has-pending,
.host-card-has-pending {
  border-color: rgba(249, 115, 22, 0.55);
  background: #121a2b;
}

.pending-scroll-hint {
  margin-top: 8px;
  font-weight: 700;
  color: var(--orange-dark);
}

.host-card-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.section-title h2 .pending-alert-badge {
  font-size: 0.78rem;
  vertical-align: middle;
  margin-left: 6px;
}

.account-switch {
  flex: 1;
  min-width: 240px;
}

.account-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.account-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.account-chip {
  border: 1px solid var(--line);
  background: #121a2b;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  transition: border-color 0.15s, background 0.15s, transform 0.15s ease, filter 0.15s ease;
}

.account-chip:hover {
  transform: translateY(-1px);
  border-color: var(--orange);
  filter: brightness(1.02);
}

.account-chip.active {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange-dark);
}

.account-chip.host::before {
  content: "🛡️ ";
}

.account-chip.guest::before {
  content: "👤 ";
}

.guide-panel {
  background: #121a2b;
}

.guide-steps {
  list-style: none;
  counter-reset: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.guide-steps li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #121a2b;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.guide-steps li strong {
  color: var(--orange-dark);
  font-size: 1rem;
}

.guide-steps li span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

#profileCol.highlight {
  animation: pulse-orange 1.6s ease 2;
  border-radius: 16px;
}

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.18); }
}

.panel-featured {
  border-color: rgba(249, 115, 22, 0.18);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.07);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.section-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.duo-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.duo-panel-priority {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 10px;
  align-items: start;
}

#profileSection.duo-panel-priority {
  gap: 8px;
  padding: 10px 12px;
}

.profile-reassure-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: #121a2b;
}

.profile-reassure-title {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--orange-dark);
}

.profile-reassure-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.profile-reassure-list li {
  padding: 6px 8px;
  border-radius: 9px;
  background: #152038;
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.profile-reassure-list strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 1px;
}

.profile-reassure-list span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.duo-panel-priority .section-title {
  margin-bottom: 6px;
}

#profileCol {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.profile-next-steps {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(249, 115, 22, 0.22);
  background: #152038;
}

.profile-next-title {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--orange-dark);
}

.profile-next-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.profile-next-list li::marker {
  color: var(--orange);
  font-weight: 800;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.profile-actions .btn.x-login {
  margin-right: 0;
}

#profileSection .field-note {
  margin-bottom: 4px;
  padding: 6px 10px;
  font-size: 0.76rem;
  border-radius: 10px;
}

#profileSection label {
  gap: 4px;
  margin-bottom: 4px;
  font-size: 0.84rem;
}

#profileSection .duo-col .section-title {
  margin-bottom: 6px;
}

.duo-panel-priority .field-note {
  margin-bottom: 6px;
}

.create-section-recruit {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.create-section-recruit .create-fold-hero {
  margin: 0;
}

.create-fold-hero {
  display: block;
  margin-top: 0;
  height: auto;
  border: 2px solid rgba(249, 115, 22, 0.32);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.14);
  overflow: hidden;
}

.create-fold-hero[open] {
  overflow: visible;
}

.create-fold-summary-hero {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  min-height: 120px;
  height: auto;
  cursor: pointer;
  list-style: none;
  background: #121a2b;
  user-select: none;
  box-sizing: border-box;
}

.create-fold-summary-hero:hover {
  background: #121a2b;
}

.create-fold-summary-hero:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45);
  outline-offset: 2px;
}

.create-fold-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.create-fold-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--orange-dark);
}

.create-fold-hero-title {
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  line-height: 1.15;
  color: #9a3412;
}

.create-fold-hero-copy small {
  color: #7c2d12;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.create-fold-hint-open {
  display: none;
}

.create-fold-hero[open] .create-fold-hint-closed {
  display: none;
}

.create-fold-hero[open] .create-fold-hint-open {
  display: block;
}

.create-fold-hero-cta,
.create-fold-hero-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
}

.create-fold-hero-cta {
  background: linear-gradient(180deg, #fb923c, #f97316);
  color: #fff;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28);
}

.create-fold-hero-close {
  display: none;
  background: #121a2b;
  color: #9a3412;
  border: 2px solid rgba(154, 52, 18, 0.28);
}

.create-fold-hero[open] .create-fold-hero-cta {
  display: none;
}

.create-fold-hero[open] .create-fold-hero-close {
  display: inline-flex;
  min-width: 4.5rem;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.82rem;
  box-shadow: none;
}

/* 開いたヘッダーは細い帯。閉じるは小さく右寄せ */
.create-fold-hero[open] .create-fold-summary-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 0;
  height: auto;
  padding: 10px 12px;
  animation: none;
  background: #152038;
}

.create-fold-hero[open] .create-fold-kicker {
  display: none;
}

.create-fold-hero[open] .create-fold-hero-title {
  font-size: 1rem;
}

.create-fold-hero[open] .create-fold-hero-copy {
  flex: 1;
  min-width: 0;
}

.create-fold-hero[open] .create-fold-hero-copy small {
  font-size: 0.78rem;
  font-weight: 600;
}

.create-fold-hero[open] .create-fold-hero-close {
  margin-left: auto;
  flex: 0 0 auto;
}

.create-fold-hero:not([open]) .create-fold-summary-hero {
  animation: create-fold-pulse 2.4s ease-in-out infinite;
}

@keyframes create-fold-pulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.14);
  }
  50% {
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .create-fold-hero:not([open]) .create-fold-summary-hero {
    animation: none;
  }
}

.create-fold {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121a2b;
  overflow: hidden;
}

.create-fold-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.create-fold-summary::-webkit-details-marker {
  display: none;
}

.create-fold-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.create-fold-label strong {
  font-size: 0.95rem;
}

.create-fold-label small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.create-fold-chevron {
  color: var(--orange-dark);
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.create-fold[open] .create-fold-chevron {
  transform: rotate(180deg);
}

.create-fold[open] {
  border-color: rgba(249, 115, 22, 0.42);
  background: #121a2b;
  overflow: visible;
}

.create-date-hint {
  margin: 0 0 8px;
}

.create-schedule-block {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  background: #152038;
}

.create-schedule-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--orange-dark);
}

.create-schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
}

.create-date-hint.error {
  color: #c2410c;
  font-weight: 700;
}

.day-panel-create-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.day-panel-create-cta {
  width: 100%;
  margin-top: 0;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb923c, #f97316);
  color: #fff;
  font-size: 0.92rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}

@media (min-width: 520px) {
  .day-panel-create-cta {
    width: auto;
    min-width: 11.5rem;
    justify-self: end;
    white-space: nowrap;
  }
}

.day-panel-create-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.day-panel-create-link:hover {
  border-color: rgba(249, 115, 22, 0.55);
  filter: brightness(1.02);
}

.day-panel-create-link:focus-visible {
  outline: none;
  animation: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.create-fold-body {
  height: auto;
  max-height: none;
  padding: 0 14px 14px;
  border-top: 1px dashed rgba(249, 115, 22, 0.18);
}

.create-fold:not([open]) .create-fold-body {
  display: none;
}

.duo-col .section-title { margin-bottom: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.full { grid-column: 1 / -1; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
}

.field-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--orange-pale);
  color: var(--orange-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.field-label-text {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.create-default-follow-note {
  margin: 0 0 12px;
}

.x-link-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #152038;
}

.x-link-state {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #9a3412;
}

.x-link-panel[data-state="linked"] {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(52, 211, 153, 0.16);
}

.x-link-panel[data-state="linked"] .x-link-state {
  color: #166534;
}

.x-link-panel[data-state="not_configured"] {
  border-color: rgba(148, 163, 184, 0.45);
  background: #f8fafc;
}

.x-link-panel[data-state="not_configured"] .x-link-state {
  color: #475569;
}

.x-link-hint {
  margin: 0;
}

#xLoginBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.create-form-stack {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
}

.create-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.create-form-main,
.create-form-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.create-form-side {
  position: sticky;
  top: 12px;
}

.create-preview-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  background: #121a2b;
}

.create-preview-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #9a3412;
}

.create-preview-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
}

.create-preview-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-dark);
}

.create-basics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

@media (max-width: 960px) {
  .create-form-layout {
    grid-template-columns: 1fr;
  }

  .create-form-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .create-basics-grid {
    grid-template-columns: 1fr;
  }
}

.create-inline-number {
  display: grid;
  grid-template-columns: auto minmax(72px, 96px);
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.create-inline-number input {
  width: 100%;
}

.create-more-fold {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121a2b;
  padding: 0;
}

.create-more-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-weight: 800;
  color: #9a3412;
}

.create-more-fold > summary::-webkit-details-marker {
  display: none;
}

.create-more-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.max-players-wrap,
.rematch-games-wrap,
.main-chars-wrap {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #152038;
}

.main-chars-wrap .btn.subtle {
  justify-self: start;
  width: auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #121a2b;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.main-chars-meta {
  font-weight: 700;
  color: var(--orange-dark);
}

.max-players-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.max-players-preset {
  min-width: 52px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #121a2b;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.max-players-preset.is-active {
  border-color: var(--orange-dark);
  background: var(--orange-pale);
  color: var(--orange-dark);
}

.rematch-games-wrap[hidden] {
  display: none;
}

.rematch-games-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rematch-preset {
  min-width: 52px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #121a2b;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.rematch-preset.is-active {
  border-color: var(--orange-dark);
  background: var(--orange-pale);
  color: var(--orange-dark);
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #121a2b;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

@keyframes btnFluffyGlow {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.16);
  }
  50% {
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.34);
  }
}

@keyframes btnFluffyGlowStrong {
  0%,
  100% {
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.24);
  }
  50% {
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.42);
  }
}

@keyframes btnFluffyBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

.btn,
.section-nav-tab,
.account-chip,
.day-panel-create-link {
  animation: btnFluffyGlow 2.4s ease-in-out infinite;
}

.btn-orange-fluffy,
.btn.primary,
.recruit-top-cta,
.create-fold-hero-cta,
.day-panel-create-cta,
.setup-banner .btn.primary,
.section-nav-tab-featured,
.section-nav-tab-featured.is-active {
  animation: btnFluffyGlowStrong 2s ease-in-out infinite, btnFluffyBreathe 2.4s ease-in-out infinite;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
  transition: transform 0.12s, filter 0.12s;
}

.btn:hover,
.section-nav-tab:hover,
.account-chip:hover,
.day-panel-create-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn-orange-fluffy:hover,
.btn.primary:hover,
.recruit-top-cta:hover,
.create-fold-hero-cta:hover,
.day-panel-create-cta:hover,
.section-nav-tab-featured:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.03);
}

.btn:focus-visible,
.section-nav-tab:focus-visible,
.account-chip:focus-visible,
.day-panel-create-link:focus-visible {
  outline: none;
  animation: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28);
}

.btn-orange-fluffy:focus-visible,
.btn.primary:focus-visible,
.recruit-top-cta:focus-visible,
.create-fold-hero-cta:focus-visible,
.day-panel-create-cta:focus-visible,
.section-nav-tab-featured:focus-visible {
  outline: none;
  animation: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.34);
}

.btn.primary {
  background: linear-gradient(135deg, var(--orange), #fb923c);
  color: white;
}

.btn.x-login {
  background: #111827;
  color: #fff;
  border: 1px solid #374151;
  margin-right: 8px;
}

.btn.x-login:hover {
  background: #000;
}

.btn.ghost {
  background: #121a2b;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.small {
  padding: 10px 16px;
  font-size: 0.86rem;
}

.btn.wide { width: 100%; }

.btn.pulse {
  animation: btnFluffyGlowStrong 1.8s ease-in-out infinite, btnFluffyBreathe 1.8s ease-in-out infinite;
}

.btn.pulse:hover {
  transform: translateY(-1px) scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .section-nav-tab,
  .account-chip,
  .day-panel-create-link {
    animation: none;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.16);
  }

  .btn-orange-fluffy,
  .btn.primary,
  .recruit-top-cta,
  .create-fold-hero-cta,
  .day-panel-create-cta,
  .section-nav-tab-featured,
  .btn.pulse {
    animation: none;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.24);
  }
}

.icon-btn { min-width: 42px; padding-inline: 12px; }

.actions { margin-top: 6px; }

.status {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 0.9rem;
}

.status.error { color: #ef4444; }

.slot-list {
  display: grid;
  gap: 12px;
}

.slot-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.slot-list-grid > .day-panel-empty {
  grid-column: 1 / -1;
}

.slot-card-compact {
  padding: 10px 11px;
  border-radius: 12px;
}

.slot-list-grid .slot-card-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.08);
}

.slot-list-grid .slot-time {
  font-size: 0.98rem;
}

.slot-list-grid .slot-top strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.slot-list-grid .tag {
  padding: 4px 8px;
  font-size: 0.66rem;
}

.slot-list-grid .slot-urgency-row {
  margin: 5px 0 2px;
  gap: 4px;
}

.slot-list-grid .slot-urgency {
  padding: 2px 7px;
  font-size: 0.66rem;
}

.slot-list-grid .lobby-rule-panel,
.slot-list-grid .lag-friendly-panel,
.slot-list-grid .queue-style-panel {
  margin-top: 5px;
  padding: 6px 8px;
  border-radius: 9px;
}

.slot-list-grid .lobby-rule-badge,
.slot-list-grid .lag-friendly-badge,
.slot-list-grid .queue-style-badge {
  padding: 3px 7px;
  font-size: 0.64rem;
}

.slot-list-grid .queue-style-badge-inline {
  display: inline-block;
  margin-top: 4px;
}

.slot-list-grid .lobby-rule-note,
.slot-list-grid .lag-friendly-note,
.slot-list-grid .queue-style-note {
  margin-top: 4px;
  font-size: 0.7rem;
  line-height: 1.32;
}

.slot-list-grid .meta,
.slot-list-grid .slot-meta-compact {
  margin: 3px 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.slot-list-grid .host-name-label,
.slot-list-grid .host-privacy-label {
  margin: 2px 0;
  font-size: 0.76rem;
}

.slot-list-grid .roster-peek {
  margin-top: 5px;
  padding: 6px 8px;
  border-radius: 9px;
}

.slot-list-grid .roster-peek-toggle {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.74rem;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
}

.slot-list-grid .apply-btn {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.slot-list-grid .pending-wait-panel {
  margin-top: 4px;
  padding: 8px;
}

.slot-list-grid .pending-wait-title {
  font-size: 0.82rem;
}

.slot-list-grid .pending-wait-message {
  font-size: 0.74rem;
  line-height: 1.35;
}

@media (max-width: 639px) {
  .slot-list-grid {
    grid-template-columns: 1fr;
  }
}

.slot-card-hot {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.14);
}

.slot-urgency-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.slot-urgency {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.slot-urgency.hot {
  background: #152038;
  color: #c2410c;
}

.slot-urgency.warm {
  background: #152038;
  color: #ea580c;
}

.slot-urgency.soon,
.slot-urgency.live {
  background: rgba(52, 211, 153, 0.14);
  color: #047857;
}

.slot-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: #121a2b;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.slot-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

.slot-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.slot-time {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--orange);
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.tag-beginner {
  background: var(--green-soft);
  color: var(--green);
}

.tag-casual {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.tag-chara_qa {
  background: var(--blue-soft);
  color: #0284c7;
}

.tag-streaming {
  background: #fce7f3;
  color: #be185d;
}

.tag-experienced {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.tag-any {
  background: var(--blue-soft);
  color: #0284c7;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0;
  line-height: 1.6;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 28px 8px;
  line-height: 1.7;
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-label {
  min-width: 120px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--orange-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 6px 0;
  font-weight: 700;
}

.calendar-weekday.sun { color: #f87171; }
.calendar-weekday.sat { color: #60a5fa; }

.calendar-day {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-solid, #121a2b);
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  color: var(--text);
  text-align: left;
  font-family: inherit;
}

.calendar-day:hover:not(.empty-day) {
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.08);
}

.calendar-day.empty-day {
  opacity: 0.35;
  cursor: default;
  background: transparent;
}

.calendar-day.today {
  border-color: var(--orange);
  background: var(--orange-pale);
}

.calendar-day.selected {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.calendar-day.has-slots .day-number::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
}

.calendar-empty-note {
  margin: 10px 2px 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.calendar-rail-panel.is-empty .selected-day-label {
  color: var(--muted);
}

.calendar-rail-panel.is-empty .calendar-day:not(.today) {
  opacity: 0.72;
}

.day-number {
  font-size: 1rem;
  font-weight: 800;
}

.day-slots {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-slot-chip {
  font-size: 0.68rem;
  line-height: 1.2;
  padding: 4px 6px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-slot-more {
  font-size: 0.68rem;
  color: var(--muted);
}

.selected-day-label {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.day-panel {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.28s ease,
    margin-top 0.28s ease,
    padding-top 0.28s ease;
  border-top: 1px solid transparent;
}

.day-panel.is-open {
  margin-top: 10px;
  padding-top: 10px;
  max-height: 3200px;
  opacity: 1;
  border-top-color: var(--line);
}

.day-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.day-panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.day-panel-head .section-title {
  margin: 0;
}

.day-panel-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.day-panel-lead {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.day-panel-lead[hidden] {
  display: none;
}

.day-panel.is-empty .day-panel-list {
  margin-top: 0;
}

.day-panel-empty {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(249, 115, 22, 0.24);
  background: #121a2b;
  text-align: center;
}

.day-panel-empty-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.day-panel-empty-text {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.14rem);
  font-weight: 700;
  line-height: 1.5;
  color: #57534e;
}

.day-panel-empty-sub {
  margin: 0;
  font-size: clamp(0.86rem, 1.8vw, 0.94rem);
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 520px) {
  .day-panel-empty {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 20px;
    padding: 18px 20px;
    text-align: left;
  }

  .day-panel-empty-copy {
    text-align: left;
  }
}

.day-panel-list {
  margin-top: 0;
}

.roster-peek {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #121a2b;
  border: 1px solid rgba(249, 115, 22, 0.16);
}

.roster-peek-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange-dark);
}

.roster-peek-hint,
.roster-peek-footer {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.roster-peek-summary {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.roster-member-grid {
  display: grid;
  gap: 8px;
}

.roster-member-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #121a2b;
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.roster-member-chip.host {
  border-color: rgba(249, 115, 22, 0.28);
  background: #121a2b;
}

.roster-member-chip.guest {
  border-color: rgba(96, 165, 250, 0.22);
}

.roster-member-chip.open {
  border-style: dashed;
  border-color: rgba(249, 115, 22, 0.24);
  background: #152038;
}

.roster-member-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.roster-member-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.roster-member-role {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.roster-open-label {
  color: var(--orange-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.roster-peek-footer {
  margin-top: 10px;
  margin-bottom: 0;
}

.roster-peek-body {
  margin-top: 10px;
}

.roster-x-link {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
}

.roster-x-link:hover {
  text-decoration: underline;
}

.roster-peek-muted,
.roster-peek-empty,
.roster-peek-error {
  color: var(--muted);
}

.site-footer {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer strong {
  font-size: 1.05rem;
  color: var(--orange);
}

.host-panel {
  border-color: rgba(249, 115, 22, 0.22);
  background: #121a2b;
}

.host-panel-compact {
  padding: 10px 12px;
}

.host-panel-compact .host-panel-head {
  margin-bottom: 4px;
}

.host-panel-compact .host-panel-head .section-title {
  margin-bottom: 0;
}

.host-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.host-inbox {
  display: grid;
  gap: 8px;
}

.host-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 8px;
  background: #121a2b;
}

.host-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
}

.host-grid-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 4px 6px;
  border-radius: 7px;
  background: #152038;
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.host-card-grid .host-ops-label {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.15;
}

.host-grid-time .applicant-name {
  font-size: 0.8rem;
  line-height: 1.2;
}

.host-grid-meta {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.2;
}

.host-grid-tags {
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 0;
}

.host-grid-members-body {
  min-height: 0;
}

.host-grid-members-body .meta {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.2;
}

.host-grid-members-body .member-row {
  padding: 2px 0;
}

.host-grid-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 0;
}

.host-grid-inline-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.host-grid-inline-row .host-ops-input,
.host-grid-inline-row .join-memo-input,
.host-grid-inline-row .overlay-url-input {
  flex: 1 1 auto;
  min-width: 0;
}

.host-grid-inline-row .btn.small {
  flex: 0 0 auto;
}

.host-grid-emergency {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #121a2b;
  border-color: rgba(239, 68, 68, 0.22);
}

.host-grid-emergency .host-ops-hint {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.62rem;
  line-height: 1.2;
}

.host-card .pending-block {
  margin: 0 0 4px;
  padding: 4px 6px;
  border: 1px dashed var(--line);
  border-radius: 7px;
}

.host-card-grid input.host-ops-input,
.host-card-grid input.join-memo-input,
.host-card-grid input.overlay-url-input {
  width: 100%;
  padding: 3px 6px;
  font-size: 0.68rem;
  line-height: 1.2;
  border-radius: 6px;
  min-height: 0;
}

.host-card-grid .btn.small {
  padding: 3px 8px;
  font-size: 0.66rem;
  line-height: 1.2;
}

.host-card-grid .tag {
  padding: 2px 6px;
  font-size: 0.62rem;
}

@media (max-width: 559px) {
  .host-card-grid {
    grid-template-columns: 1fr;
  }
}

.host-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.applicant-name {
  font-size: 0.94rem;
  font-weight: 800;
}

.host-card-top .meta {
  margin: 2px 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.host-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.host-card-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

.host-ops-panel {
  margin-top: 4px;
  padding: 0;
  overflow: hidden;
}

.host-ops-panel.host-tool-tile {
  padding: 0;
}

.host-ops-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  flex-wrap: wrap;
}

.host-ops-row-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.host-ops-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  min-width: 0;
}

.host-ops-cell + .host-ops-cell {
  border-left: 1px dashed rgba(249, 115, 22, 0.14);
}

.host-ops-divider {
  height: 1px;
  margin: 0;
  background: rgba(249, 115, 22, 0.12);
}

.host-ops-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--orange-dark);
  white-space: nowrap;
}

.host-ops-hint {
  flex: 1 1 8rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}

.host-ops-input {
  flex: 1 1 10rem;
  min-width: 0;
}

.host-ops-row .btn.small {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.host-ops-row-emergency {
  justify-content: space-between;
  background: #121a2b;
}

.host-panel-compact .host-ops-panel .join-memo-input,
.host-panel-compact .host-ops-panel .overlay-url-input {
  padding: 5px 8px;
  font-size: 0.74rem;
  border-radius: 8px;
}

@media (max-width: 559px) {
  .host-ops-row-split {
    grid-template-columns: 1fr;
  }

  .host-ops-cell + .host-ops-cell {
    border-left: none;
    border-top: 1px dashed rgba(249, 115, 22, 0.14);
  }
}

@media (min-width: 560px) {
  .host-card-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .host-tools-full {
    grid-column: 1 / -1;
  }
}

.host-tool-tile {
  padding: 7px 9px;
  border-radius: 9px;
  background: #152038;
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.host-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.host-tool-head .host-sub-label {
  margin: 0;
  flex: 1 1 8rem;
  line-height: 1.3;
}

.host-tool-head .btn.small {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 5px 10px;
  font-size: 0.72rem;
  line-height: 1.25;
}

.host-inline-hint {
  display: inline;
  margin-left: 4px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.68rem;
}

.host-sub-block {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.host-sub-label {
  margin: 0 0 3px;
  font-size: 0.76rem;
}

.host-memo-hint-compact {
  margin: 0 0 5px;
  font-size: 0.72rem;
  line-height: 1.3;
}

.host-input-row {
  gap: 6px;
}

.host-input-row .btn.small {
  flex-shrink: 0;
}

.host-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.host-actions .btn.small {
  padding: 5px 10px;
  font-size: 0.76rem;
}

.host-report-row {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.host-report-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.host-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.host-report-actions .host-report-btn {
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 800;
}

.peer-report {
  margin-top: 10px;
}

.peer-report-body {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #152038;
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.peer-report-hint {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.peer-report-target {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(249, 115, 22, 0.18);
}

.peer-report-target:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.peer-report-target-label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
}

.btn.approve {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.btn.reject {
  background: #121a2b;
  color: var(--muted);
  border: 1px solid var(--line);
}

.sub-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--orange-dark);
}

.members-block,
.pending-block {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.members-block .meta {
  margin: 0;
  font-size: 0.76rem;
}

.member-row,
.pending-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  flex-wrap: wrap;
}

.member-row strong,
.pending-row strong {
  font-size: 0.84rem;
}

.member-row .meta,
.pending-row .meta {
  margin: 1px 0 0;
  font-size: 0.72rem;
}

.host-lag-friendly-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.host-panel-compact .join-memo-block {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

.host-panel-compact .join-memo-block .host-sub-label {
  margin-bottom: 4px;
}

.host-panel-compact .host-lag-friendly-block,
.host-panel-compact .host-announce-block,
.host-panel-compact .host-overlay-block {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.host-panel-compact .host-overlay-block .host-sub-label {
  margin-bottom: 4px;
}

.host-panel-compact .host-announce-block .announce-copy-btn,
.host-panel-compact .lag-friendly-toggle {
  width: auto;
  white-space: nowrap;
}

.host-panel-compact .join-memo-input,
.host-panel-compact .overlay-url-input {
  padding: 6px 8px;
  font-size: 0.76rem;
  border-radius: 8px;
}

.host-panel-compact .host-input-row .btn.small {
  padding: 6px 10px;
  font-size: 0.72rem;
}

.host-announce-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.host-announce-block .announce-copy-btn {
  width: 100%;
  justify-content: center;
}

.host-overlay-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.overlay-url-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.overlay-url-input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  background: #121a2b;
  color: var(--muted);
}

.host-emergency-block {
  margin-top: 4px;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px dashed rgba(239, 68, 68, 0.35);
  background: #121a2b;
}

.host-panel-compact .host-emergency-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}

.host-emergency-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
}

.host-panel-compact .host-emergency-hint {
  flex: 1 1 10rem;
  margin: 0;
}

.host-panel-compact .emergency-dissolve-btn {
  width: auto;
  flex: 0 0 auto;
  padding: 5px 12px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.emergency-dissolve-btn {
  width: 100%;
}

.lag-friendly-panel {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: #121a2b;
}

.lag-friendly-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 800;
}

.lag-friendly-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #1e3a8a;
  font-weight: 700;
}

.lobby-rule-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #152038;
}

.lobby-rule-check input {
  margin-top: 6px;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.lobby-rule-check-text {
  display: grid;
  gap: 6px;
}

.lobby-rule-check-text strong {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 900;
  color: var(--orange-dark);
}

.lobby-rule-check-text .field-note {
  font-size: 0.88rem;
}

.apply-keep-history-wrap {
  margin: 0 0 10px;
  width: 100%;
}

.lobby-rule-panel {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #152038;
  border: 1px solid #fdba74;
}

.lobby-rule-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #152038;
  color: #9a3412;
  font-size: 0.74rem;
  font-weight: 800;
}

.lobby-rule-note {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #9a3412;
  font-weight: 700;
}

.slot-rank-cap-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #9a3412;
}

.queue-style-panel {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: #121a2b;
}

.queue-style-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.queue-style-note {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #1e40af;
  font-weight: 700;
}

.host-announce-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.host-announce-block .announce-copy-btn {
  width: 100%;
  justify-content: center;
}

.host-overlay-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.overlay-url-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.overlay-url-input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  background: #121a2b;
  color: var(--muted);
}

.host-emergency-block {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(239, 68, 68, 0.35);
  background: #121a2b;
}

.host-emergency-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.emergency-dissolve-btn {
  width: 100%;
  font-weight: 800;
}

.slot-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.status-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-badge.pending {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.status-badge.approved {
  background: var(--green-soft);
  color: var(--green);
}

.pending-wait-panel {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #121a2b;
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.pending-wait-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--orange-dark);
  font-size: 0.92rem;
}

.pending-wait-message {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.pending-wait-trust {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--orange-dark);
  font-weight: 700;
}

.guest-withdraw-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  border-color: rgba(120, 113, 108, 0.35);
  color: #57534e;
  font-weight: 800;
}

.guest-withdraw-btn:hover {
  border-color: rgba(249, 115, 22, 0.35);
  color: #9a3412;
  background: #152038;
}

.host-cancel-slot-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-weight: 800;
}

.host-cancel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.host-cancel-row .host-cancel-slot-btn,
.host-cancel-row .host-cancel-btn {
  width: auto;
  flex: 1 1 140px;
  margin-top: 0;
}

.trust-warn-label {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #b45309;
  font-weight: 700;
}

.own-label {
  color: var(--orange-dark);
  font-weight: 700;
}

@media (max-width: 820px) {
  .duo-panel,
  .duo-panel-priority {
    grid-template-columns: 1fr;
  }

  .create-fold-summary-hero {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    min-height: 0;
    padding: 16px;
  }

  .create-fold-hero-cta {
    width: 100%;
  }

  .create-schedule-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .panel { padding: 16px; }
  .hero { padding: 24px 16px; border-radius: 18px; }
  .calendar-day { min-height: 58px; padding: 6px; }
  .day-slot-chip { display: none; }
  .panel-head { flex-direction: column; align-items: flex-start; }

  .site-topbar {
    --topbar-row-h: 2.65rem;
    column-gap: 6px;
    padding: 4px 8px;
  }

  .topbar-return-label {
    display: none;
  }

  .section-nav {
    width: 100%;
    gap: 3px;
  }

  .section-nav-tab {
    font-size: 0.62rem;
    padding: 0 3px;
  }

  .recruit-top-cta {
    padding: 0 8px;
    font-size: 0.62rem;
  }
}

/* Marvel Tokon — minimum system primer */
.tokon-system-panel {
  margin-top: 1rem;
}
.tokon-system-kicker {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.tokon-system-head h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.35rem;
}
.tokon-system-lead {
  margin: 0 0 0.9rem;
  line-height: 1.55;
  opacity: 0.9;
}
.tokon-system-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.tokon-system-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.tokon-system-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.tokon-system-list strong {
  font-size: 1rem;
}
.tokon-system-list span {
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.88;
}
.tokon-system-foot {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  opacity: 0.85;
}
.tokon-system-foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========== AI-SITE SKIN PASS (content unchanged) ========== */
.ai-site .panel,
.ai-site .panel-featured,
.ai-site .quick-register,
.ai-site .create-fold-hero,
.ai-site .duo-panel,
.ai-site .create-preview-card,
.ai-site .x-link-panel,
.ai-site .max-players-wrap,
.ai-site .rematch-games-wrap,
.ai-site .main-chars-wrap,
.ai-site .create-more-fold,
.ai-site .profile-reassure-card {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-glow) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg) !important;
  color: var(--text);
}

.ai-site .layout-main.wrap {
  background: transparent !important;
}

.ai-site .layout-rail-right {
  background: rgba(8, 12, 22, 0.82) !important;
  border-left: 1px solid var(--line) !important;
  backdrop-filter: blur(18px);
}

.ai-site .site-topbar,
.ai-site .section-nav a,
.ai-site .section-nav button {
  color: var(--text);
}

.ai-site .brand-title,
.ai-site .brand-en,
.ai-site .create-fold-hero-title,
.ai-site .hero-kicker,
.ai-site .create-preview-title,
.ai-site .profile-reassure-title,
.ai-site .create-schedule-title {
  font-family: var(--font-display) !important;
  letter-spacing: 0.02em;
}

.ai-site .brand-title .brand-en.brand-glow,
.ai-site .brand-glow {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #f8fbff !important;
  text-shadow:
    0 0 28px rgba(61, 224, 255, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

.ai-site .brand-glow-accent,
.ai-site .brand-title .brand-en.brand-glow-accent {
  background: linear-gradient(100deg, #ff8a4c 0%, #ff6a3d 42%, #3de0ff 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none;
  filter: drop-shadow(0 6px 18px rgba(255, 106, 61, 0.42));
}

.ai-site .brand-jp-grand {
  color: #e8eefc !important;
}

.ai-site .brand-jp,
.ai-site .hero-kicker,
.ai-site .create-fold-kicker,
.ai-site .field-label-text,
.ai-site .x-link-state,
.ai-site label,
.ai-site .meta,
.ai-site h2,
.ai-site strong {
  color: var(--text) !important;
}

.ai-site .field-note,
.ai-site .muted,
.ai-site .create-fold-hero-copy small,
.ai-site .create-preview-note,
.ai-site .x-link-hint {
  background: var(--orange-pale) !important;
  color: var(--orange-dark) !important;
  border: 1px solid rgba(255, 106, 61, 0.22);
}

.ai-site input,
.ai-site select,
.ai-site textarea {
  background: rgba(7, 11, 20, 0.75) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  box-shadow: inset 0 0 0 1px rgba(61, 224, 255, 0.05);
}

.ai-site input:focus,
.ai-site select:focus,
.ai-site textarea:focus {
  outline: none;
  border-color: rgba(61, 224, 255, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(61, 224, 255, 0.18);
}

.ai-site .btn.primary,
.ai-site .recruit-top-cta,
.ai-site .create-fold-hero-cta,
.ai-site .max-players-preset.is-active,
.ai-site .rematch-preset.is-active {
  background: linear-gradient(120deg, var(--orange) 0%, #ff8a4c 45%, var(--cyan) 160%) !important;
  color: #081018 !important;
  border: none !important;
  box-shadow: 0 10px 28px rgba(255, 106, 61, 0.35);
  font-weight: 800;
}

.ai-site .btn.ghost,
.ai-site .btn.subtle,
.ai-site .create-fold-hero-close,
.ai-site .max-players-preset,
.ai-site .rematch-preset {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

.ai-site .btn.x-login {
  background: #0f172a !important;
  color: #fff !important;
  border: 1px solid rgba(61, 224, 255, 0.45) !important;
  box-shadow: 0 0 24px rgba(61, 224, 255, 0.15);
}

.ai-site .create-fold-summary-hero {
  background: linear-gradient(135deg, rgba(255, 106, 61, 0.22), rgba(61, 224, 255, 0.12)) !important;
}

.ai-site .create-fold-hero[open] .create-fold-summary-hero {
  background: rgba(16, 24, 40, 0.9) !important;
}

.ai-site .create-preview-card {
  background: linear-gradient(160deg, rgba(255, 106, 61, 0.16), rgba(16, 24, 40, 0.85) 40%, rgba(61, 224, 255, 0.1)) !important;
}

.ai-site .x-link-panel[data-state="linked"] {
  background: rgba(52, 211, 153, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
}

.ai-site .x-link-panel[data-state="linked"] .x-link-state {
  color: var(--green) !important;
}

.ai-site .status.error,
.ai-site .create-date-hint.error {
  color: var(--danger) !important;
}

.ai-site .hero-stage-glow-a {
  background: rgba(255, 106, 61, 0.35) !important;
  filter: blur(40px);
}

.ai-site .hero-stage-glow-b {
  background: rgba(61, 224, 255, 0.28) !important;
  filter: blur(44px);
}

.ai-site .panel,
.ai-site .quick-register,
.ai-site .create-fold-hero,
.ai-site .create-form-side,
.ai-site .create-form-main {
  animation: ai-rise 0.55s ease both;
}

.ai-site .create-form-side { animation-delay: 0.08s; }

@keyframes ai-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-site .panel,
  .ai-site .quick-register,
  .ai-site .create-fold-hero,
  .ai-site .create-form-side,
  .ai-site .create-form-main {
    animation: none;
  }
}

.ai-site .brand-pill,
.ai-site .hero-earth-badge,
.ai-site .queue-style-badge,
.ai-site .safety-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

.ai-site a { color: var(--cyan); }
.ai-site a:hover { color: var(--orange-dark); }

.ai-site ::selection {
  background: rgba(61, 224, 255, 0.35);
  color: #fff;
}

/* ========== AI-SITE CONTRAST FIX (白地×白文字つぶし) ========== */
.ai-site .section-nav-tab,
.ai-site .section-nav-tab-featured,
.ai-site .section-nav a,
.ai-site .section-nav button {
  background: rgba(14, 22, 40, 0.92) !important;
  color: #f3f7ff !important;
  border: 1px solid rgba(232, 238, 252, 0.18) !important;
  text-shadow: none !important;
}

.ai-site .section-nav-tab:hover,
.ai-site .section-nav-tab-featured:hover {
  background: rgba(255, 106, 61, 0.22) !important;
  color: #fff !important;
  border-color: rgba(255, 106, 61, 0.45) !important;
}

.ai-site .section-nav-tab.is-active,
.ai-site .section-nav-tab-featured.is-active {
  background: linear-gradient(120deg, rgba(255, 106, 61, 0.95), rgba(61, 224, 255, 0.55)) !important;
  color: #081018 !important;
  border-color: transparent !important;
  font-weight: 800;
}

.ai-site .brand-pill,
.ai-site .hero-earth-badge {
  background: rgba(14, 22, 40, 0.88) !important;
  color: #f3f7ff !important;
  border: 1px solid rgba(232, 238, 252, 0.2) !important;
}

.ai-site .profile-reassure-card,
.ai-site .profile-reassure-list,
.ai-site .profile-reassure-list li,
.ai-site .profile-next-steps,
.ai-site .profile-next-list,
.ai-site .profile-next-list li {
  background: rgba(14, 22, 40, 0.9) !important;
  color: #e8eefc !important;
  border-color: rgba(232, 238, 252, 0.14) !important;
}

.ai-site .profile-reassure-list li,
.ai-site .profile-next-list li {
  border: 1px solid rgba(232, 238, 252, 0.14) !important;
  border-radius: 12px;
  padding: 10px 12px;
}

.ai-site .profile-reassure-list li *,
.ai-site .profile-next-list li *,
.ai-site .profile-reassure-title,
.ai-site .profile-next-title {
  color: #e8eefc !important;
}

.ai-site .profile-reassure-list li strong,
.ai-site .profile-next-list li strong {
  color: #fff !important;
}

/* 薄いメモ地は濃い字。淡色地が残ったら強制ダークへ */
.ai-site .field-note,
.ai-site .create-default-follow-note,
.ai-site .create-date-hint,
.ai-site .x-link-hint,
.ai-site .create-preview-note,
.ai-site .create-fold-hero-copy small {
  background: rgba(255, 106, 61, 0.14) !important;
  color: #ffe1d2 !important;
  border: 1px solid rgba(255, 106, 61, 0.35) !important;
}

.ai-site .top-return-link,
.ai-site .site-topbar a,
.ai-site .site-topbar button:not(.recruit-top-cta):not(.btn.primary) {
  color: #f3f7ff !important;
}

.ai-site .calendar-panel,
.ai-site .day-panel,
.ai-site .slot-card,
.ai-site article.slot,
.ai-site .affiliate-card,
.ai-site .beginner-panel,
.ai-site .tokon-system,
.ai-site .kindness-panel {
  background: rgba(14, 22, 40, 0.88) !important;
  color: #e8eefc !important;
  border: 1px solid rgba(232, 238, 252, 0.14) !important;
}

.ai-site .calendar-panel *,
.ai-site .day-panel *:not(.btn):not(a),
.ai-site .slot-card *:not(.btn):not(a),
.ai-site .affiliate-card *:not(.btn):not(a) {
  color: inherit;
}

.ai-site .calendar-panel h2,
.ai-site .day-panel h2,
.ai-site .day-panel strong,
.ai-site .slot-time,
.ai-site .affiliate-card strong {
  color: #fff !important;
}

/* プレースホルダも薄すぎない */
.ai-site input::placeholder,
.ai-site textarea::placeholder {
  color: rgba(232, 238, 252, 0.45) !important;
}

/* 白っぽい残りグラデを潰す */
.ai-site [style*="background: #121a2b"],
.ai-site [style*="background: #121a2b"],
.ai-site [style*="background: #121a2b"] {
  background: rgba(14, 22, 40, 0.92) !important;
  color: #e8eefc !important;
}

/* ========== AI-SITE FULLPAGE CONTRAST (calendar含む全消し) ========== */
.ai-site .calendar-day:not(.empty-day),
.ai-site .calendar-rail-panel .calendar-day:not(.empty-day) {
  background: #152038 !important;
  color: #f5f8ff !important;
  border: 1px solid rgba(232, 238, 252, 0.2) !important;
  box-shadow: none !important;
}

.ai-site .calendar-day .day-number,
.ai-site .calendar-day .day-slot-count,
.ai-site .calendar-rail-panel .day-number,
.ai-site .calendar-rail-panel .day-slot-count {
  color: #f5f8ff !important;
}

.ai-site .calendar-day.today:not(.selected) {
  background: rgba(61, 224, 255, 0.16) !important;
  border-color: #3de0ff !important;
}

.ai-site .calendar-day.selected,
.ai-site .calendar-day.selected.today {
  background: rgba(255, 106, 61, 0.28) !important;
  border-color: #ff6a3d !important;
  box-shadow: 0 0 0 2px rgba(255, 106, 61, 0.35) !important;
}

.ai-site .calendar-day:hover:not(.empty-day) {
  background: rgba(255, 106, 61, 0.2) !important;
  border-color: rgba(255, 106, 61, 0.55) !important;
  color: #fff !important;
}

.ai-site .calendar-day.empty-day {
  background: transparent !important;
  border-color: transparent !important;
}

.ai-site .calendar-weekday {
  color: #c7d2e8 !important;
}

.ai-site .month-label,
.ai-site .selected-day-label,
.ai-site .calendar-empty-note {
  color: #e8eefc !important;
}

.ai-site .calendar-nav button,
.ai-site #prevMonthBtn,
.ai-site #nextMonthBtn {
  background: #152038 !important;
  color: #f5f8ff !important;
  border: 1px solid rgba(232, 238, 252, 0.22) !important;
}

/* 白背景残りをページ全域でダークへ（内容は触らない） */
.ai-site .panel,
.ai-site .panel-featured,
.ai-site .slot-card,
.ai-site article,
.ai-site .card,
.ai-site .modal,
.ai-site .drawer,
.ai-site .toast,
.ai-site .banner,
.ai-site .chip,
.ai-site .tag,
.ai-site .badge:not(.status-badge),
.ai-site .lobby-rule-panel,
.ai-site .queue-style-panel,
.ai-site .pending-wait-panel,
.ai-site .lag-friendly-panel,
.ai-site .host-grid,
.ai-site .account-bar,
.ai-site .setup-banner,
.ai-site .start-reminder-banner,
.ai-site .after-care-banner,
.ai-site .kindness-panel,
.ai-site .beginner-panel,
.ai-site .affiliate-stack,
.ai-site .rail-ad,
.ai-site .adsense-slot,
.ai-site .day-panel,
.ai-site .day-panel-empty,
.ai-site .create-fold-body,
.ai-site .create-basics-grid,
.ai-site .create-schedule-block {
  background-color: #121a2b !important;
  color: #e8eefc !important;
}

.ai-site .create-fold-body,
.ai-site .day-panel,
.ai-site .slot-card,
.ai-site article.slot,
.ai-site .host-grid,
.ai-site .account-bar {
  border: 1px solid rgba(232, 238, 252, 0.14) !important;
}

.ai-site .slot-card *,
.ai-site article.slot *:not(.btn):not(a):not(input):not(select),
.ai-site .day-panel *:not(.btn):not(a):not(input):not(select),
.ai-site .host-grid *:not(.btn):not(a) {
  color: #e8eefc;
}

.ai-site .slot-card strong,
.ai-site article.slot strong,
.ai-site .day-panel strong,
.ai-site .slot-time {
  color: #ffffff !important;
}

.ai-site .tag,
.ai-site .chip,
.ai-site .safety-chip,
.ai-site .queue-style-badge,
.ai-site .status-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f8ff !important;
  border: 1px solid rgba(232, 238, 252, 0.18) !important;
}

.ai-site .btn.primary,
.ai-site .recruit-top-cta,
.ai-site .create-fold-hero-cta,
.ai-site .day-panel-create-cta {
  color: #081018 !important;
}

/* 万一 #fff 直書きが残っても潰す */
.ai-site .calendar-day {
  background-image: none !important;
}
