@font-face {
  font-family: "LINE Seed JP";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/LINESeedJP_TTF_Rg.ttf") format("truetype");
}
@font-face {
  font-family: "LINE Seed JP";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/LINESeedJP_TTF_Bd.ttf") format("truetype");
}
@font-face {
  font-family: "LINE Seed JP";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/LINESeedJP_TTF_Eb.ttf") format("truetype");
}

:root {
  --bg-deep: #120E24;
  --bg-shell: #1A1530;
  --bg-card: #221C3D;
  --bg-tile: #2A234A;
  --neon-pink: #FF5E8E;
  --neon-pink-glow: rgba(255, 94, 142, 0.35);
  --gold-btn: #F5C451;
  --gold-text: #1A1530;
  --cyan-accent: #2EC4B6;
  --text-main: #FFFFFF;
  --text-sub: #A59EC4;
  --danger-red: #FF4D6D;
  --ok-green: #2EC4B6;
  --border-subtle: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #0D0A1A;
  color: var(--text-main);
  font-family: "LINE Seed JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

button, input, select, textarea { font-family: inherit; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.mt-2 { margin-top: 2px; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mb-6 { margin-bottom: 6px; }
.full-w { width: 100%; }

/* パスコードロック画面 */
.lock-overlay {
  position: fixed;
  inset: 0;
  background: #100C22;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lock-box {
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.pin-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: all 0.15s ease;
}
.pin-dots span.filled {
  background: var(--gold-btn);
  border-color: var(--gold-btn);
  box-shadow: 0 0 10px rgba(245, 196, 81, 0.5);
}
.pin-error-msg {
  color: var(--danger-red);
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
}
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  justify-content: center;
  gap: 14px 18px;
}
.key-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.key-btn:active { background: rgba(255, 255, 255, 0.18); }
.key-btn.sub-key { font-size: 15px; color: var(--text-sub); }

.app-shell {
  width: 100%;
  max-width: 460px;
  background: radial-gradient(circle at 50% 0%, #261E47 0%, var(--bg-shell) 55%, #141026 100%);
  min-height: 100vh;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(84px + env(safe-area-inset-bottom));
  position: relative;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.brand-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(255, 94, 142, 0.3);
  cursor: pointer;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.plan-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.plan-pill.premium {
  border-color: var(--gold-btn);
  color: var(--gold-btn);
  background: rgba(245, 196, 81, 0.12);
}

.gear-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2DFF0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(15, 12, 30, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 16px;
}

.stage-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 4px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.stage-tab.active {
  color: #FFFFFF;
  background: radial-gradient(circle at 50% 50%, rgba(255, 94, 142, 0.22), rgba(34, 28, 61, 0.9));
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px var(--neon-pink-glow), inset 0 0 8px rgba(255, 94, 142, 0.2);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--neon-pink);
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--neon-pink);
}

.tab-view, .stage-panel { display: none; animation: fadeIn 0.2s ease; }
.tab-view.active, .stage-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.neon-main-card {
  background: linear-gradient(180deg, rgba(38, 31, 68, 0.92) 0%, rgba(25, 20, 48, 0.96) 100%);
  border: 1.5px solid rgba(255, 94, 142, 0.65);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 0 24px rgba(255, 94, 142, 0.14), inset 0 0 16px rgba(255, 94, 142, 0.06);
}

.gold-main-card {
  background: linear-gradient(180deg, rgba(44, 38, 66, 0.94) 0%, rgba(25, 20, 48, 0.97) 100%);
  border: 1.5px solid rgba(245, 196, 81, 0.72);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 0 24px rgba(245, 196, 81, 0.14), inset 0 0 16px rgba(245, 196, 81, 0.05);
}

.danger-card-border {
  border-color: var(--danger-red) !important;
  box-shadow: 0 0 28px rgba(255, 77, 109, 0.35) !important;
}

.subtle-budget-card {
  background: linear-gradient(180deg, rgba(34, 28, 61, 0.88) 0%, rgba(22, 18, 44, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 16px 16px;
}

.card-top-row { display: flex; justify-content: space-between; align-items: center; }
.tonight-group { display: flex; align-items: baseline; gap: 10px; }

.neon-label {
  color: var(--neon-pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(255, 94, 142, 0.5);
}

.gold-eyebrow {
  color: var(--gold-btn);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(245, 196, 81, 0.45);
}

.tonight-sub { font-size: 13px; color: var(--text-sub); font-weight: 700; }

.text-underline-btn {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: #E2DFF0;
  font-size: 12px;
  padding-bottom: 1px;
  cursor: pointer;
}

.helper-caption { font-size: 11px; color: var(--text-sub); margin-top: 8px; }

/* 行ったあと画面用バナー */
.after-store-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.split-invite-banner {
  width: 100%;
  background: rgba(46, 196, 182, 0.07);
  border: 1px solid rgba(46, 196, 182, 0.45);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cyan-link {
  color: var(--cyan-accent);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.cyan-badge {
  display: inline-block;
  border: 1px solid rgba(46, 196, 182, 0.65);
  color: var(--cyan-accent);
  background: rgba(46, 196, 182, 0.1);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
}

/* みんなで精算（3ステップ＆QR共有UI） */
.gs-grid-head {
  display: grid;
  grid-template-columns: 1fr 1.15fr 72px;
  gap: 8px;
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 700;
  padding: 0 2px;
}
.gs-member-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 72px;
  gap: 8px;
  align-items: center;
}
.gs-share-val {
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: #E2DFF0;
}
.who-box {
  border: 1px dashed rgba(46, 196, 182, 0.55);
  background: rgba(46, 196, 182, 0.06);
  border-radius: 14px;
  padding: 12px;
}
.gs-arrow-card {
  background: rgba(46, 196, 182, 0.09);
  border: 1px solid rgba(46, 196, 182, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
}
.you-tag {
  display: inline-block;
  background: var(--cyan-accent);
  color: #102026;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: 1px;
}
.gs-table-head {
  display: grid;
  grid-template-columns: 1fr 84px 84px;
  font-size: 11px;
  color: var(--text-sub);
  padding: 0 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gs-table-row {
  display: grid;
  grid-template-columns: 1fr 84px 84px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gs-table-row.is-me { color: var(--cyan-accent); }
.your-share-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
}
.qr-center-box {
  text-align: center;
}
.qr-white-frame {
  display: inline-block;
  background: #FFFFFF;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* 相場タブカード */
.market-card {
  background: rgba(16, 13, 32, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
}
.verified-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.18);
  color: var(--ok-green);
  border: 1px solid rgba(46, 196, 182, 0.45);
}
.caution-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.2);
  color: #FF8FA3;
  border: 1px solid rgba(255, 77, 109, 0.5);
}
.blur-lock-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(245, 196, 81, 0.45);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #D6D2E8;
}

/* メモタブ：半円ゲージ＆統計 */
.gauge-wrap {
  position: relative;
  text-align: center;
}
.budget-arc-svg {
  width: 100%;
  max-width: 270px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.gauge-center-overlay {
  margin-top: -78px;
  padding-bottom: 6px;
}
.gauge-big-yen {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
}
.gauge-big-yen small {
  font-size: 16px;
  margin-left: 2px;
}
.gauge-pct-text {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-btn);
  margin-top: 2px;
}
.gauge-scale-row {
  display: flex;
  justify-content: space-between;
  max-width: 250px;
  margin: 4px auto 0;
  font-size: 11px;
  color: var(--text-sub);
}
.warn-outline-pill {
  border: 1px solid rgba(255, 94, 142, 0.7);
  background: rgba(255, 94, 142, 0.14);
  color: #FF85A8;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.memo-stats-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.genre-stack-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
}
.genre-legend-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #D6D2E8;
}
.budget-edit-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

/* 店舗候補＆入力ボックス */
.store-selector-box, .setup-section-box {
  background: rgba(16, 13, 32, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 10px 12px;
}
.store-candidates-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.store-cand-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2DFF0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.store-cand-pill small {
  color: var(--text-sub);
  font-size: 10.5px;
  font-weight: 400;
}
.store-cand-pill.active {
  border-color: var(--neon-pink);
  color: #FF85A8;
  background: rgba(255, 94, 142, 0.16);
  box-shadow: 0 0 10px rgba(255, 94, 142, 0.25);
}
.store-cand-pill.active small {
  color: #FFD0DF;
}
.store-more-pill {
  background: rgba(245, 196, 81, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.5);
  color: var(--gold-btn);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.store-compact-input {
  padding: 9px 12px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}
.store-scroll-list {
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 2px;
}
.store-pick-row {
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.store-pick-row:hover, .store-pick-row.active {
  border-color: var(--neon-pink);
  background: rgba(255, 94, 142, 0.12);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.genre-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  height: 114px;
  padding: 10px 2px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  color: #D6D2E8;
  transition: all 0.18s ease;
}

.genre-vtext {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.selected-pill {
  display: none;
  position: absolute;
  bottom: -8px;
  background: var(--neon-pink);
  color: #1A1530;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 94, 142, 0.5);
}

.genre-card.active {
  background: radial-gradient(circle at 50% 40%, rgba(255, 94, 142, 0.25), rgba(34, 28, 61, 0.95));
  border: 1.5px solid var(--neon-pink);
  color: #FF85A8;
  box-shadow: 0 0 14px rgba(255, 94, 142, 0.28);
}

.genre-card.active .genre-vtext { text-shadow: 0 0 8px rgba(255, 94, 142, 0.6); }
.genre-card.active .selected-pill { display: inline-block; }

.estimate-section { margin-top: 18px; }
.estimate-label { font-size: 12px; color: var(--text-sub); font-weight: 700; }
.estimate-price-row { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.estimate-price { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #FFFFFF; }
.estimate-unit { font-size: 18px; font-weight: 800; color: #FFFFFF; }
.estimate-breakdown { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

.budget-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.budget-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-pink), var(--gold-btn));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.budget-note-group { margin-top: 8px; }
.budget-status-text { font-size: 12px; color: #D6D2E8; }
.disclaimer-text { font-size: 10.5px; color: var(--text-sub); margin-top: 2px; }

.add-extra-link {
  display: inline-block;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 2px;
  margin-top: 14px;
  cursor: pointer;
}

.mini-tiles-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mini-tile {
  background: rgba(18, 14, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 10px;
  text-align: left;
  cursor: pointer;
  color: #FFFFFF;
}

.mini-label { display: block; font-size: 10.5px; color: var(--text-sub); }
.mini-val { display: block; font-size: 15px; font-weight: 800; margin-top: 2px; }

.cta-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 14px; }

.btn-dark-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
}

.btn-gold-pill {
  background: var(--gold-btn);
  border: none;
  color: var(--gold-text);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 14px rgba(245, 196, 81, 0.3);
}

.btn-gold-pill:active, .btn-dark-pill:active { transform: scale(0.98); }

.notify-banner-box {
  background: rgba(16, 13, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.notify-copy { font-size: 11px; color: #D6D2E8; line-height: 1.45; }

.btn-white-pill {
  background: #FFFFFF;
  color: #1A1530;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.btn-white-pill.active-on {
  background: rgba(46, 196, 182, 0.2);
  color: var(--ok-green);
  border: 1px solid var(--ok-green);
}

/* お店で画面 */
.center-box { text-align: center; padding: 28px 16px; }
.section-heading { font-size: 17px; font-weight: 800; }

.danger-alert-box {
  background: rgba(255, 77, 109, 0.2);
  border: 1px solid var(--danger-red);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 12px;
}
.danger-title { color: #FF8FA3; font-weight: 800; font-size: 13px; }
.danger-sub { color: #FFD6DE; font-size: 11px; margin-top: 2px; }

.warn-alert-box {
  background: rgba(245, 196, 81, 0.16);
  border: 1px solid var(--gold-btn);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
}
.warn-title { color: var(--gold-btn); font-weight: 800; font-size: 13px; }
.warn-sub { color: #FFF3D1; font-size: 11px; margin-top: 2px; }

.inside-entry-meta { font-size: 11.5px; color: var(--text-sub); }
.inside-hero-center { text-align: center; margin-top: 14px; }
.inside-genre-neon { font-size: 20px; font-weight: 800; color: #FF759F; text-shadow: 0 0 12px rgba(255, 94, 142, 0.65); letter-spacing: 0.06em; }
.inside-big-clock { font-size: 54px; font-weight: 800; line-height: 1.08; letter-spacing: 0.02em; color: #FFFFFF; margin-top: 4px; }
.inside-progress-track { width: 100%; height: 5px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.inside-progress-fill { height: 100%; background: var(--neon-pink); border-radius: 999px; transition: width 0.5s linear; }
.inside-price-row { display: flex; justify-content: center; align-items: baseline; gap: 4px; margin-top: 2px; }
.inside-price-num { font-size: 36px; font-weight: 800; color: #FFFFFF; line-height: 1.1; }
.inside-price-unit { font-size: 18px; font-weight: 800; color: #FFFFFF; }
.inside-leave-countdown { font-size: 12px; color: #E2DFF0; margin-top: 6px; }
.inside-budget-inline { font-size: 11.5px; color: var(--gold-btn); font-weight: 700; }

.inside-action-card {
  width: 100%;
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
}
.gold-outline-card { background: rgba(245, 196, 81, 0.06); border: 1px solid rgba(245, 196, 81, 0.55); color: #FFFFFF; }
.dark-card { background: rgba(16, 13, 32, 0.72); border: 1px solid rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.hold-progress-bg { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: rgba(245, 196, 81, 0.28); pointer-events: none; transition: width 0.05s linear; }
.inside-card-content { position: relative; z-index: 1; }
.iac-title { font-size: 14px; font-weight: 800; color: #FFFFFF; }
.iac-price { font-size: 14px; font-weight: 800; color: var(--gold-btn); margin-top: 2px; }
.iac-sub { font-size: 10.5px; color: var(--text-sub); margin-top: 2px; }

.inside-pill-action {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
}

.inside-bottle-box { background: rgba(16, 13, 32, 0.65); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 14px; }
.btn-white-solid-pill { background: #FFFFFF; border: none; color: #1A1530; font-size: 13px; font-weight: 800; padding: 11px 12px; border-radius: 999px; cursor: pointer; text-align: center; line-height: 1.25; }

.trouble-banner {
  width: 100%;
  background: rgba(16, 13, 32, 0.55);
  border: 1px dashed rgba(255, 94, 142, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #D6D2E8;
  font-size: 12px;
  cursor: pointer;
}
.trouble-link { color: var(--neon-pink); font-weight: 800; }

/* メモタブ（4サブタブ） */
.sub-pills { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(15, 12, 30, 0.7); padding: 4px; border-radius: 12px; }
.sub-pills-4 { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(15, 12, 30, 0.7); padding: 4px; border-radius: 12px; }
.sub-pill { background: none; border: none; color: var(--text-sub); font-size: 11.5px; font-weight: 700; padding: 8px 2px; border-radius: 9px; cursor: pointer; }
.sub-pill.active { background: var(--bg-tile); color: var(--neon-pink); }
.after-sub-view { display: none; }
.after-sub-view.active { display: block; }
.sub-header-bar { display: flex; justify-content: space-between; align-items: center; }
.btn-mini-neon { background: rgba(255, 94, 142, 0.15); border: 1px solid var(--neon-pink); color: #FF85A8; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; cursor: pointer; }
.stack-list { display: flex; flex-direction: column; gap: 8px; }
.log-item-card { background: rgba(16, 13, 32, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.log-title { font-size: 14px; font-weight: 700; }
.log-sub { font-size: 11.5px; color: var(--text-sub); margin-top: 2px; }
.log-yen { font-size: 16px; font-weight: 800; color: var(--gold-btn); }
.days-pill { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: rgba(46, 196, 182, 0.18); color: var(--ok-green); }
.days-pill.warn { background: rgba(255, 77, 109, 0.2); color: #FF8FA3; }

/* 10段階残量バー */
.bottle-level-bar {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.lv-seg {
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #1A1530;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}
.lv-seg.active {
  background: var(--gold-btn);
  border-color: var(--gold-btn);
}
.mini-lv-bars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
  margin-right: 6px;
}
.mini-lv-bars i {
  width: 6px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-block;
}
.mini-lv-bars i.on {
  background: var(--gold-btn);
}

/* 固定フッター */
.bottom-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  background: rgba(20, 16, 38, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 30;
}
.footer-btn { background: none; border: none; color: var(--text-sub); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; cursor: pointer; }
.footer-icon { width: 22px; height: 22px; }
.footer-btn.active { color: var(--neon-pink); }

/* モーダル */
.modal-overlay { position: fixed; inset: 0; background: rgba(8, 6, 18, 0.82); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.modal-sheet { width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; background: #221B3D; border-top: 1px solid rgba(255, 255, 255, 0.14); border-top-left-radius: 24px; border-top-right-radius: 24px; padding: 20px 18px calc(26px + env(safe-area-inset-bottom)); animation: slideUp 0.2s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.modal-header h3 { font-size: 18px; font-weight: 800; }
.close-btn { background: rgba(255, 255, 255, 0.08); border: none; color: #FFFFFF; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 6px; font-weight: 700; }
.muted-inline { font-size: 11px; font-weight: 400; margin-left: 6px; opacity: 0.85; }
.badge-req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: var(--neon-pink);
  color: #1A1530;
  vertical-align: 1px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.genre-pill-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.16); color: #D6D2E8; font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all 0.15s ease; }
.pill-choice.active { border-color: var(--neon-pink); color: #FF85A8; background: rgba(255, 94, 142, 0.15); box-shadow: 0 0 10px rgba(255, 94, 142, 0.25); }
.chip-pill-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2DFF0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.budget-input-wrap { display: flex; align-items: center; gap: 8px; }
.big-num-input { border: 1.5px solid rgba(255, 255, 255, 0.65) !important; border-radius: 14px !important; padding: 13px 16px !important; font-size: 17px !important; text-align: right; }
.big-num-input::placeholder { text-align: right; color: var(--text-sub); }
.input-suffix { font-size: 13px; color: var(--text-sub); white-space: nowrap; }
.chip-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip-row-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.chip-pill { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.16); color: #E2DFF0; border-radius: 999px; padding: 8px 4px; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.25; }
.chip-pill.active { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
.stepper-row { display: flex; align-items: center; gap: 18px; }
.stepper-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); color: #FFFFFF; font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.stepper-val { font-size: 18px; font-weight: 800; min-width: 24px; text-align: center; }
.time-box-input { width: 100% !important; font-size: 15px !important; font-weight: 800; border-radius: 12px !important; }
.form-input { width: 100%; background: #141028; border: 1px solid rgba(255, 255, 255, 0.16); color: #FFFFFF; border-radius: 12px; padding: 11px 12px; font-size: 14px; }
.calc-preview-box { background: rgba(245, 196, 81, 0.1); border: 1px solid rgba(245, 196, 81, 0.38); border-radius: 12px; padding: 10px 12px; }
.split-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.premium-box { background: rgba(16, 13, 32, 0.7); border: 1px solid var(--gold-btn); border-radius: 14px; padding: 14px; }
.premium-list { list-style: none; font-size: 12px; color: #E2DFF0; }
.premium-list li { margin-bottom: 4px; }
.restore-row { display: flex; justify-content: space-between; align-items: center; background: #130F26; padding: 8px 12px; border-radius: 10px; }
.restore-code { font-family: monospace; font-size: 15px; font-weight: 800; color: var(--gold-btn); }
.restore-input-row { display: flex; gap: 8px; }
.small-w { width: auto; padding: 10px 16px; }
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); background: var(--gold-btn); color: #1A1530; font-weight: 800; font-size: 12.5px; padding: 8px 18px; border-radius: 999px; z-index: 100; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45); }

.modal-eyebrow { font-size: 11.5px; color: var(--text-sub); font-weight: 700; display: block; }
.cta-row-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spot-check-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #FFFFFF; cursor: pointer; padding: 4px 0; }
.spot-check-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold-btn); border-radius: 4px; cursor: pointer; flex-shrink: 0; }

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* 過去の月の記録とグラフ（6か月棒グラフ） */
.past-chart-card {
  background: rgba(16, 13, 32, 0.76);
  border: 1px dashed rgba(245, 196, 81, 0.45);
  border-radius: 16px;
  padding: 14px;
}
.past-chart-card.unlocked {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.12);
}
.prem-outline-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--gold-btn);
  color: var(--gold-btn);
  background: rgba(245, 196, 81, 0.08);
  margin-left: 6px;
  vertical-align: 1px;
}
.chart-bars-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.chart-bars-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  align-items: flex-end;
  height: 68px;
}
.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.chart-bar-fill {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px 6px 4px 4px;
  transition: height 0.3s ease;
}
.chart-bar-fill.active {
  background: linear-gradient(180deg, #F5C451 0%, #FF5E8E 100%);
}
.chart-bar-lbl {
  font-size: 10px;
  color: var(--text-sub);
  margin-top: 4px;
}
.chart-bar-val {
  font-size: 9px;
  color: #E2DFF0;
  margin-bottom: 2px;
}
.btn-gold-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-btn);
  border: none;
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 196, 81, 0.3);
}

.restore-inline-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
}
.restore-inline-input::placeholder {
  color: var(--text-sub);
  font-weight: 700;
}

.btn-mini-dark {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

/* 暗い店内モード */
body.dim-store-mode .app-shell {
  filter: brightness(0.68) contrast(0.95);
}
.dim-mode-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: 0.2s;
}
.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: #A59EC4;
  border-radius: 50%;
  transition: 0.2s;
}
.switch-toggle input:checked + .switch-slider {
  background-color: rgba(255, 94, 142, 0.45);
  border: 1px solid var(--neon-pink);
}
.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(20px);
  background-color: #FFFFFF;
}

.danger-help-card {
  background: rgba(255, 77, 109, 0.14);
  border: 1px solid rgba(255, 77, 109, 0.55);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ==================== お店で：注文した物を足す ==================== */
.order-box {
  background: rgba(16, 13, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 12px;
}
.order-main-btn {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  text-align: center;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 94, 142, 0.08);
  border: 1px solid rgba(255, 94, 142, 0.55);
  color: #FFFFFF;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.order-main-btn:active { background: rgba(255, 94, 142, 0.18); }
.order-main-btn .hold-progress-bg { background: rgba(255, 94, 142, 0.25); }
.order-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.order-kind-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.order-kind-btn:active { background: rgba(245, 196, 81, 0.16); border-color: var(--gold-btn); }
.order-kind-btn .ok-icon { font-size: 18px; line-height: 1; }
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #E2DFF0;
  padding: 6px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.order-row:first-child { border-top: none; }
.order-row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-weight: 800; color: var(--gold-btn); }
.nontax-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(46, 196, 182, 0.6);
  color: var(--cyan-accent);
  vertical-align: 1px;
}
.unordered-btn {
  width: 100%;
  background: rgba(255, 77, 109, 0.08);
  border: 1px dashed rgba(255, 77, 109, 0.6);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFD6DE;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.order-kind-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.order-kind-tabs::-webkit-scrollbar { display: none; }
.order-kind-tabs .pill-choice { flex-shrink: 0; padding: 8px 13px; }
