*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d1117;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --border-md: rgba(255, 255, 255, 0.12);
  --accent: #4a9eff;
  --accent-bg: rgba(74, 158, 255, 0.12);
  --accent-border: rgba(74, 158, 255, 0.4);
  --text: #e8edf7;
  --text-sub: rgba(160, 180, 220, 0.7);
  --text-hint: rgba(160, 180, 220, 0.4);
  --success: #64c882;
  --success-bg: rgba(100, 200, 130, 0.12);
  --purple: #c070f0;
  --purple-bg: rgba(180, 100, 240, 0.12);
  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 16px;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 14px 38px;
}

@media (max-width: 359px) {
  html,
  body {
    font-size: 14px;
  }
  .container {
    padding: 16px 12px 34px;
  }
}

@media (min-width: 640px) {
  html,
  body {
    font-size: 16px;
  }
  .container {
    max-width: 700px;
    padding: 26px 22px 46px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

/* ── wordmark ── */
.wordmark {
  text-align: center;
  padding: 18px 0 16px;
  animation: fadeUp 0.35s ease both;
}

.wordmark-title {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
}

.wordmark-sub {
  font-size: 10px;
  color: var(--text-hint);
  letter-spacing: 0.14em;
  margin-top: 2px;
  font-family: "Outfit", sans-serif;
}

.map-link {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.map-link:hover {
  color: #9ecbff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 640px) {
  .wordmark-title {
    font-size: 20px;
  }
  .wordmark-sub {
    font-size: 11px;
  }
}

/* ── animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.f1 {
  animation: fadeUp 0.35s ease both;
}
.f2 {
  animation: fadeUp 0.35s 0.07s ease both;
}
.f3 {
  animation: fadeUp 0.35s 0.14s ease both;
}
.f4 {
  animation: fadeUp 0.35s 0.21s ease both;
}
.f5 {
  animation: fadeUp 0.35s 0.28s ease both;
}
.f6 {
  animation: fadeUp 0.35s 0.35s ease both;
}

/* ── concert card ── */
.concert-card {
  background: var(--accent-bg);
  border: 0.5px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 12px 13px;
  margin-bottom: 12px;
}

.concert-card-name {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.concert-card-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 2px;
}

.concert-card-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── greeting ── */
.greeting {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.6;
}

.greeting strong {
  color: var(--text);
  font-weight: 500;
}

.greeting-part {
  display: block;
  font-size: 11px;
  color: var(--text-hint);
  margin-top: 1px;
}

/* ── section label ── */
.section-label {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  color: var(--text-hint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
  margin-top: 2px;
}

/* ── menu item ── */
.menu-item {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 6px;
  min-height: 58px;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  cursor: pointer;
}

.menu-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(74, 158, 255, 0.28);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.menu-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.menu-icon .bi {
  font-size: 15px;
  line-height: 1;
}

.icon-a {
  background: rgba(74, 158, 255, 0.13);
}
.icon-b {
  background: rgba(100, 200, 130, 0.1);
}
.icon-c {
  background: rgba(220, 160, 60, 0.1);
}
.icon-d {
  background: rgba(180, 100, 240, 0.1);
}

.menu-body {
  flex: 1;
  min-width: 0;
}

.menu-title {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: #c8d4ed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-hint {
  font-size: 10px;
  color: var(--text-hint);
  margin-top: 1px;
}

.menu-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.badge-ok {
  background: var(--success-bg);
  color: var(--success);
}

.badge-done {
  background: var(--purple-bg);
  color: var(--purple);
}

.chev {
  font-size: 12px;
  color: var(--text-hint);
}

/* ── form elements ── */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

/* ── buttons ── */
.btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  -webkit-appearance: none;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
}

.btn-primary:hover {
  background: #6ab2ff;
}

.btn-secondary {
  background: var(--surface);
  border: 0.5px solid var(--border-md);
  color: var(--text-sub);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-border);
}

.btn + .btn {
  margin-top: 8px;
}

/* ── screen title ── */
.scr-title {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.scr-sub {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 14px;
  line-height: 1.55;
}

/* ── alerts ── */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-error {
  background: rgba(220, 80, 80, 0.12);
  border: 0.5px solid rgba(220, 80, 80, 0.35);
  color: #f08080;
}

.alert-info {
  background: var(--accent-bg);
  border: 0.5px solid var(--accent-border);
  color: var(--text-sub);
}

/* ── divider ── */
.divider {
  height: 0.5px;
  background: var(--border);
  margin: 12px 0;
}

/* ── footer ── */
.footer {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  color: rgba(160, 180, 220, 0.2);
  text-align: center;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 0.5px solid var(--border);
}

/* ── practice card ── */
.practice-card {
  background: rgba(255, 255, 255, 0.025);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 6px;
}

.practice-meta {
  font-size: 10px;
  color: var(--text-hint);
  margin-bottom: 2px;
  font-family: "Outfit", sans-serif;
}

.practice-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
}

/* ── att buttons ── */
.att-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0 6px;
}

.att-btn {
  padding: 9px 0;
  border-radius: 8px;
  border: 0.5px solid var(--border-md);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(180, 200, 240, 0.7);
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  -webkit-appearance: none;
}

.att-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.att-btn.selected-o {
  background: rgba(74, 158, 255, 0.18);
  border-color: rgba(74, 158, 255, 0.5);
  color: #4a9eff;
}

.att-btn.selected-d {
  background: rgba(220, 180, 60, 0.14);
  border-color: rgba(220, 180, 60, 0.4);
  color: #dcc040;
}

.att-btn.selected-x {
  background: rgba(220, 80, 80, 0.14);
  border-color: rgba(220, 80, 80, 0.4);
  color: #dc5050;
}

/* ── number input ── */
.num-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.num-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.num-ctrl {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.num-ctrl input[type="number"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  padding: 10px 12px;
  outline: none;
  text-align: left;
  font-family: inherit;
  -moz-appearance: textfield;
}

.num-ctrl input[type="number"]::-webkit-inner-spin-button {
  display: none;
}

.num-btn {
  width: 40px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-left: 0.5px solid var(--border);
  color: var(--text-sub);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.num-btn:hover {
  background: rgba(74, 158, 255, 0.15);
  color: var(--accent);
}

/* ── cover image ── */
.cover-wrap {
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  max-width: 480px;
  margin: 0 auto 12px;
  cursor: zoom-in;
  display: block;
}

.cover-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
}

.cover-zoom {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  pointer-events: none;
}
.cover-zoom .bi {
  font-size: 13px;
  line-height: 1;
}

.lb-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  padding: 22px;
}

.lb-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lb-overlay img {
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lb-close .bi {
  font-size: 16px;
  line-height: 1;
}

/* ── back button ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-hint);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 14px;
  transition: border-color 0.15s, color 0.15s;
}
.back-btn .bi {
  font-size: 12px;
  line-height: 1;
}

.back-btn:hover {
  border-color: var(--accent-border);
  color: var(--text-sub);
}

/* ── step indicator ── */
.steps {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}

.step-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.step-dot.active {
  background: var(--accent);
  width: 16px;
  border-radius: 3px;
}

.step-dot.done {
  background: rgba(100, 200, 130, 0.55);
}

.step-line {
  flex: 1;
  height: 0.5px;
  background: var(--border);
  margin-left: 2px;
}

.step-label {
  font-size: 10px;
  color: var(--text-hint);
  font-family: "Outfit", sans-serif;
}

.btn .bi {
  margin-right: 0.35em;
  font-size: 0.95em;
}

/* ── global loader ── */
.global-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  background:
    radial-gradient(1200px 620px at 10% -10%, rgba(74, 158, 255, 0.2), transparent 45%),
    radial-gradient(900px 520px at 100% 0%, rgba(192, 112, 240, 0.15), transparent 50%),
    rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 1;
  transition: opacity 0.22s ease;
}

.global-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-card {
  width: min(420px, calc(100vw - 28px));
  min-height: 300px;
  padding: 18px 20px 14px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
}

.loader-orbit {
  width: 64px;
  height: 64px;
  margin: 2px auto 12px;
  position: relative;
}

.loader-orbit::before,
.loader-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.loader-orbit::before {
  border-top-color: rgba(74, 158, 255, 0.98);
  border-right-color: rgba(74, 158, 255, 0.52);
  animation: loader-spin 1s linear infinite;
}

.loader-orbit::after {
  inset: 8px;
  border-top-color: rgba(192, 112, 240, 0.9);
  border-left-color: rgba(192, 112, 240, 0.45);
  animation: loader-spin-rev 1.25s linear infinite;
}

.loader-core {
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(74, 158, 255, 0.6) 46%, rgba(74, 158, 255, 0.05) 100%);
  filter: drop-shadow(0 0 12px rgba(74, 158, 255, 0.55));
  animation: loader-pulse 1.45s ease-in-out infinite;
}

.loader-title {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

.loader-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-sub);
}

.loader-stage {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(175, 197, 235, 0.92);
  letter-spacing: 0.03em;
}

.loader-fact {
  margin: 8px auto 0;
  width: 100%;
  max-width: 360px;
  min-height: 4.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(210, 226, 250, 0.9);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  white-space: normal;
}

.loader-fact.is-hidden {
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.45s ease-in, transform 0.45s ease-in;
}

.loader-fact.is-enter {
  opacity: 0;
  transform: translateY(4px);
}

.loader-progress-track {
  margin: 10px auto 0;
  height: 7px;
  width: min(320px, 86vw);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(92, 172, 255, 0.95), rgba(146, 216, 255, 0.95));
  transition: width 0.2s ease;
}

.loader-progress-label {
  margin-top: 5px;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(190, 212, 246, 0.9);
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes loader-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
    filter: drop-shadow(0 0 10px rgba(74, 158, 255, 0.48));
  }
  35% {
    transform: scale(1.14);
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(74, 158, 255, 0.72));
  }
  60% {
    transform: scale(0.96);
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.4));
  }
}
