/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FF6B35;
  --primary-dark: #E55A28;
  --cafe: #8B5E3C;
  --together: #5B6AF0;
  --health: #27AE60;
  --tips: #8B5CF6;
  --success: #27AE60;
  --bg: #FFF8F4;
  --card: #FFFFFF;
  --text: #1A1A2E;
  --muted: #6B7280;
  --border: #F0E6DD;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --r: 16px;
  --r-sm: 8px;
  --font: 'Apple SD Gothic Neo','Malgun Gothic','맑은 고딕',sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.header-inner { max-width: 760px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 6px; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-size: 1.05rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.nav-tabs { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab { padding: 5px 11px; border: none; background: none; border-radius: 20px; font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all 0.2s; font-family: var(--font); }
.nav-tab:hover { background: #FFF0E8; color: var(--primary); }
.nav-tab.active { background: var(--primary); color: #fff; }

/* ===== Main ===== */
.main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }

/* ===== Tabs ===== */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Hero ===== */
.hero { text-align: center; padding: 24px 0 12px; }
.hero-title { font-size: 1.9rem; font-weight: 900; letter-spacing: -1px; line-height: 1.2; }
.highlight { color: var(--primary); }
.cafe-hl { color: var(--cafe); }
.together-hl { color: var(--together); }
.health-hl { color: var(--health); }
.tips-hl { color: var(--tips); }
.hero-sub { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }

/* ===== Card ===== */
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid var(--border); }

/* ===== Filters ===== */
.filter-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; }

.toggle-group, .category-chips, .mood-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.toggle-btn, .chip, .mood-chip {
  padding: 6px 13px; border-radius: 20px; border: 2px solid var(--border);
  background: #fff; font-size: 0.83rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all 0.15s; font-family: var(--font);
}
.toggle-btn:hover, .chip:hover, .mood-chip:hover { border-color: var(--primary); color: var(--primary); }
.toggle-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.chip.active { border-color: var(--primary); background: #FFF0E8; color: var(--primary); }
.mood-chip.active { border-color: var(--primary); background: #FFF0E8; color: var(--primary); }

/* ===== Pick Buttons ===== */
.pick-area { display: flex; justify-content: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }

.pick-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,107,53,0.35); transition: all 0.2s;
  letter-spacing: -0.2px; font-family: var(--font);
}
.pick-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,107,53,0.4); }
.pick-btn:active { transform: translateY(0); }
.pick-btn-icon { font-size: 1.3rem; }

.random-btn { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); box-shadow: 0 6px 20px rgba(245,158,11,0.35); }
.random-btn:hover { box-shadow: 0 10px 28px rgba(245,158,11,0.4); }

.cafe-btn { background: linear-gradient(135deg, var(--cafe) 0%, #6B4423 100%); box-shadow: 0 6px 20px rgba(139,94,60,0.35); }
.cafe-btn:hover { box-shadow: 0 10px 28px rgba(139,94,60,0.4); }

.together-btn { background: linear-gradient(135deg, var(--together) 0%, #3D4CC8 100%); box-shadow: 0 6px 20px rgba(91,106,240,0.35); }
.health-btn { background: linear-gradient(135deg, var(--health) 0%, #1e8449 100%); box-shadow: 0 6px 20px rgba(39,174,96,0.35); }

/* ===== Result Single ===== */
.result-area { margin-bottom: 12px; }
.result-card { text-align: center; padding: 28px 20px; animation: popIn 0.35s cubic-bezier(0.175,0.885,0.32,1.275); border: 2px solid var(--primary); }
.cafe-card { border-color: var(--cafe); }
@keyframes popIn { from { opacity:0; transform:scale(0.85); } to { opacity:1; transform:scale(1); } }

.result-emoji { font-size: 3.5rem; display: block; margin-bottom: 10px; animation: bounce 0.5s ease; }
@keyframes bounce { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }

.result-name { font-size: 1.7rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 6px; }
.result-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }

.result-meta { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.meta-badge { padding: 3px 10px; border-radius: 10px; font-size: 0.78rem; font-weight: 700; background: #F3F4F6; color: var(--muted); }
.meta-badge.price { background: #ECFDF5; color: #059669; }
.meta-badge.time  { background: #EFF6FF; color: #2563EB; }
.meta-badge.spicy { background: #FFF7ED; color: #EA580C; }

.result-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.result-tag { padding: 3px 10px; border-radius: 10px; background: #FFF0E8; color: var(--primary); font-size: 0.78rem; font-weight: 600; }
.result-tag.cafe-tag { background: #F5EBE0; color: var(--cafe); }

.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.action-btn { padding: 9px 22px; border-radius: 30px; border: none; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: var(--font); }
.ok-btn { background: var(--success); color: #fff; }
.ok-btn:hover { background: #1e8449; transform: translateY(-1px); }
.retry-btn { background: #F3F4F6; color: var(--muted); }
.retry-btn:hover { background: #E5E7EB; transform: translateY(-1px); }

/* ===== Multi Results ===== */
.multi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.multi-title { font-size: 1rem; font-weight: 800; }
.multi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.multi-card { background: var(--card); border-radius: var(--r); padding: 16px; text-align: center; border: 2px solid var(--border); box-shadow: var(--shadow); cursor: pointer; transition: all 0.2s; }
.multi-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.multi-card-emoji { font-size: 2.2rem; display: block; margin-bottom: 6px; }
.multi-card-name { font-size: 0.95rem; font-weight: 800; margin-bottom: 4px; }
.multi-card-desc { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.multi-card-meta { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.multi-card-badge { padding: 2px 8px; border-radius: 8px; font-size: 0.72rem; font-weight: 700; background: #F3F4F6; color: var(--muted); }

/* ===== Popular Grid ===== */
.section-title { font-size: 0.95rem; font-weight: 800; margin: 18px 0 10px; letter-spacing: -0.3px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.menu-item { background: #fff; border-radius: var(--r); padding: 14px 10px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.menu-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.09); border-color: var(--primary); }
.menu-item-emoji { font-size: 1.8rem; display: block; margin-bottom: 5px; }
.menu-item-name { font-size: 0.85rem; font-weight: 700; margin-bottom: 3px; }
.menu-item-tag { font-size: 0.72rem; color: var(--muted); }

/* ===== History ===== */
.clear-btn { padding: 4px 12px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-size: 0.76rem; color: var(--muted); cursor: pointer; font-family: var(--font); transition: all 0.2s; }
.clear-btn:hover { border-color: #EF4444; color: #EF4444; }
.history-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.history-item { display: flex; align-items: center; gap: 10px; padding: 9px 13px; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--border); box-shadow: var(--shadow); }
.history-emoji { font-size: 1.2rem; }
.history-name { font-weight: 700; font-size: 0.88rem; flex: 1; }
.history-time { font-size: 0.73rem; color: var(--muted); }

/* ===== Together ===== */
.vote-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; min-height: 40px; }
.vote-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #F9FAFB; border-radius: var(--r-sm); border: 1px solid var(--border); animation: slideIn 0.2s ease; }
@keyframes slideIn { from { opacity:0; transform:translateX(-8px); } to { opacity:1; transform:translateX(0); } }
.vote-item-name { font-weight: 600; font-size: 0.92rem; }
.vote-remove { background: none; border: none; color: #D1D5DB; font-size: 1.2rem; cursor: pointer; padding: 0 4px; transition: color 0.15s; }
.vote-remove:hover { color: #EF4444; }
.add-candidate { display: flex; gap: 8px; margin-bottom: 14px; }
.candidate-input { flex: 1; padding: 9px 13px; border-radius: var(--r-sm); border: 2px solid var(--border); font-size: 0.88rem; font-family: var(--font); outline: none; transition: border-color 0.2s; }
.candidate-input:focus { border-color: var(--together); }
.add-btn { padding: 9px 18px; border-radius: var(--r-sm); border: none; background: var(--together); color: #fff; font-size: 0.88rem; font-weight: 700; cursor: pointer; font-family: var(--font); transition: background 0.2s; }
.add-btn:hover { background: #3D4CC8; }
.vote-actions { display: flex; justify-content: center; margin-bottom: 12px; }
.together-result { text-align: center; padding: 20px 0 6px; border-top: 1px dashed var(--border); animation: popIn 0.35s cubic-bezier(0.175,0.885,0.32,1.275); }
.winner-badge { font-size: 2.5rem; margin-bottom: 6px; }
.winner-text { color: var(--muted); font-size: 0.88rem; margin-bottom: 3px; }
.winner-name { font-size: 1.8rem; font-weight: 900; color: var(--together); letter-spacing: -1px; }
.winner-sub { color: var(--muted); font-size: 0.88rem; margin-top: 3px; }
.quick-add-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.quick-add-chip { padding: 6px 14px; border-radius: 20px; border: 2px solid var(--border); background: #fff; font-size: 0.83rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.quick-add-chip:hover { border-color: var(--together); color: var(--together); background: #F0F2FE; }

/* ===== Health Tab ===== */
.condition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.condition-btn { padding: 14px 8px; border-radius: var(--r); border: 2px solid var(--border); background: #fff; text-align: center; cursor: pointer; transition: all 0.2s; font-family: var(--font); }
.condition-btn:hover { border-color: var(--health); background: #ECFDF5; }
.condition-btn.active { border-color: var(--health); background: #ECFDF5; box-shadow: 0 0 0 2px rgba(39,174,96,0.2); }
.condition-icon { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.condition-label { font-size: 0.78rem; font-weight: 700; color: var(--text); display: block; }

.advice-card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 10px; border-left: 4px solid var(--health); animation: fadeIn 0.3s ease; }
.advice-condition { font-size: 0.78rem; font-weight: 700; color: var(--health); margin-bottom: 8px; letter-spacing: 0.3px; }
.advice-section { margin-bottom: 10px; }
.advice-section-title { font-size: 0.82rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.advice-list { list-style: none; }
.advice-list li { font-size: 0.85rem; color: var(--muted); padding: 3px 0 3px 16px; position: relative; }
.advice-list li::before { content: '•'; position: absolute; left: 4px; color: var(--health); font-weight: 900; }

.stretch-item { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 10px; border: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; }
.stretch-icon { font-size: 2rem; flex-shrink: 0; }
.stretch-body {}
.stretch-name { font-weight: 800; font-size: 0.95rem; margin-bottom: 2px; }
.stretch-duration { font-size: 0.78rem; color: var(--health); font-weight: 700; margin-bottom: 5px; }
.stretch-how { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
.stretch-benefit { margin-top: 4px; font-size: 0.78rem; color: #7C3AED; font-weight: 600; }

.stretch-daily { display: flex; flex-direction: column; gap: 0; }

/* ===== Tips ===== */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tip-card { padding: 18px; transition: all 0.2s; }
.tip-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.09); }
.tip-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.tip-title { font-size: 0.92rem; font-weight: 800; margin-bottom: 6px; }
.tip-body { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%); background: #1A1A2E; color: #fff; padding: 10px 22px; border-radius: 30px; font-size: 0.88rem; font-weight: 600; z-index: 999; animation: toastIn 0.25s ease; white-space: nowrap; }
.toast.hidden { display: none; }
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(8px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* ===== Footer ===== */
.footer { text-align: center; padding: 18px; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--border); background: #fff; }

/* ===== Utilities ===== */
.hidden { display: none !important; }

/* ===== Ad Slots ===== */
.ad-wrap { margin: 22px 0; text-align: center; }
.ad-label { font-size: 0.62rem; color: #C4C9D4; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.adsbygoogle { min-height: 90px; background: #F3F4F6; border-radius: 10px; border: 1px dashed #E5E7EB; }

/* Rank badges for 완전랜덤 */
.rank-badge { font-size: 0.82rem; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.3px; }
.multi-card.ranked { transition: transform 0.15s; }
.multi-card.ranked:first-child { box-shadow: 0 6px 24px rgba(255,107,53,0.2); }

/* PC Fixed Sidebar Ads */
.sidebar-ad {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  text-align: center;
  z-index: 10;
}
.sidebar-left { left: 16px; }
.sidebar-right { right: 16px; }
.sidebar-ad .ad-label { font-size: 0.62rem; color: #C4C9D4; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; display: block; }
.sidebar-ad .adsbygoogle { width: 160px; min-height: 600px; display: block; }

/* Mobile Top/Bottom Ads */
.mobile-ad-top,
.mobile-ad-bottom {
  display: none;
  text-align: center;
  padding: 8px 12px;
  background: #fff;
}
.mobile-ad-top { border-bottom: 1px solid var(--border); }
.mobile-ad-bottom { border-top: 1px solid var(--border); }
.mobile-ad-top .ad-label,
.mobile-ad-bottom .ad-label { font-size: 0.62rem; color: #C4C9D4; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; display: block; }

@media (min-width: 1120px) {
  .sidebar-ad { display: block; }
}
@media (max-width: 700px) {
  .mobile-ad-top,
  .mobile-ad-bottom { display: block; }
  .ad-wrap { margin: 14px 0; }
}

/* ===== Nutrition Panel ===== */
.nutrition-toggle { display: block; width: 100%; margin: 12px 0 0; padding: 9px 16px; background: #F3F4F6; border: 1px solid #E5E7EB; border-radius: 20px; font-size: 0.82rem; font-weight: 700; color: var(--muted); cursor: pointer; font-family: var(--font); transition: all 0.15s; }
.nutrition-toggle:hover { background: #FFF0E8; color: var(--primary); border-color: var(--primary); }
.nutrition-panel { margin-top: 10px; background: #F9FAFB; border-radius: 12px; padding: 14px; }
.nutrition-title { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.nutrition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nutrition-item { text-align: center; background: #fff; border-radius: 10px; padding: 10px 6px; border: 1px solid var(--border); }
.nutrition-value { font-size: 1rem; font-weight: 900; color: var(--primary); line-height: 1.2; }
.nutrition-label { font-size: 0.68rem; color: var(--muted); margin-top: 3px; }
.nutrition-note { font-size: 0.67rem; color: #9CA3AF; margin-top: 8px; text-align: center; }

/* ===== Stress Situations ===== */
.stress-card { background: #fff; border-radius: var(--r); border: 1px solid var(--border); margin-bottom: 8px; overflow: hidden; box-shadow: var(--shadow); }
.stress-card-header { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: 0.95rem; font-weight: 700; color: var(--text); text-align: left; transition: background 0.15s; }
.stress-card-header:hover { background: #FFF8F4; }
.stress-card-emoji { font-size: 1.25rem; }
.stress-card-title { flex: 1; }
.stress-card-arrow { font-size: 0.68rem; color: var(--muted); transition: transform 0.25s; }
.stress-card-body { padding: 0 16px 16px; border-top: 1px solid var(--border); }
.stress-mantra { background: linear-gradient(135deg, #FFF0E8, #FFF8F4); border-left: 3px solid var(--primary); padding: 10px 14px; border-radius: 8px; font-size: 0.92rem; font-weight: 800; color: var(--primary); margin: 12px 0; line-height: 1.5; }
.stress-section-label { font-size: 0.77rem; font-weight: 700; color: var(--muted); margin: 10px 0 5px; }
.stress-steps { padding-left: 20px; font-size: 0.85rem; line-height: 1.8; color: var(--text); }
.stress-steps li { margin-bottom: 1px; }
.stress-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; line-height: 1.6; color: var(--text); margin-top: 10px; }
.stress-row-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.stress-row strong { font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 540px) {
  .hero-title { font-size: 1.55rem; }
  .logo-text { display: none; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .condition-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: 1fr; }
  .multi-cards { grid-template-columns: 1fr; }
  .pick-btn { padding: 12px 22px; font-size: 0.92rem; }
}
@media (max-width: 380px) {
  .menu-grid { grid-template-columns: 1fr; }
  .nav-tab { padding: 5px 8px; font-size: 0.76rem; }
}


/* ===== Deep Upgrade Styles for Jikjang ===== */
.receipt-card {
  background: #fff;
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 20px;
  max-width: 380px;
  margin: 16px auto;
  font-family: 'Courier New', Courier, monospace, var(--font);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  position: relative;
}
.receipt-card::before, .receipt-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 6px;
  background-size: 12px 12px;
}
.receipt-title { font-size: 1.2rem; font-weight: 900; text-align: center; color: #1E293B; letter-spacing: -0.5px; border-bottom: 2px solid #334155; padding-bottom: 8px; margin-bottom: 12px; }
.receipt-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: #475569; margin-bottom: 6px; }
.receipt-total { border-top: 1px dashed #94A3B8; border-bottom: 2px solid #334155; padding: 8px 0; font-weight: 800; font-size: 1.05rem; color: #0F172A; display: flex; justify-content: space-between; margin: 10px 0; }
.receipt-badge { font-size: 0.75rem; font-weight: 700; background: #FEF3C7; color: #92400E; padding: 4px 8px; border-radius: 4px; text-align: center; margin-top: 8px; font-family: var(--font); }
.match-score-badge { display: inline-block; background: linear-gradient(135deg, #10B981 0%, #059669 100%); color: #fff; font-weight: 800; font-size: 0.82rem; padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; font-family: var(--font); }

/* Slot Machine UI */
.slot-machine-box {
  background: #1E1B4B;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 8px 20px rgba(30,27,75,0.3);
  margin: 16px 0;
  border: 3px solid #6366F1;
}
.slot-reels-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px 0;
}
.slot-reel {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 12px;
  border: 3px solid #818CF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  position: relative;
}
.slot-reel-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1E1B4B;
  text-align: center;
  padding: 4px;
}
.quick-preset-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.quick-preset-btn:hover { background: #EEF2FF; border-color: #6366F1; color: #4F46E5; }


/* --- Option D: All-in-One Complete Spec UI Styles --- */
.team-vote-card, .expense-tracker-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.vote-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-weight: bold;
  font-size: 0.9rem;
  margin: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vote-chip:hover {
  background: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.expense-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.stat-box {
  background: rgba(30, 41, 59, 0.8);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981;
  margin-top: 6px;
}


/* --- 7 Advanced Features Styles --- */
.dessert-card, .ladder-game-card, .custom-menu-card {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  margin: 16px auto;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.custom-input {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.action-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.action-btn-primary:hover {
  transform: translateY(-2px);
}

/* ===== Roulette Modal ===== */
.roulette-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}
.roulette-modal-overlay.hidden { display: none !important; }

.roulette-modal-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.roulette-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.roulette-close-btn:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

.roulette-title { font-size: 1.4rem; font-weight: 800; color: #38bdf8; margin-bottom: 4px; }
.roulette-sub { font-size: 0.85rem; color: #94a3b8; margin-bottom: 18px; }

.roulette-wheel-container {
  position: relative;
  width: 320px; height: 320px;
  margin: 0 auto 20px;
}

.roulette-pointer-arrow {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: #ef4444;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}

#roulette-canvas {
  width: 100%; height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.roulette-spin-btn {
  background: linear-gradient(135deg, #ff6b35 0%, #e55a28 100%);
  color: #fff; border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.1rem; font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.roulette-spin-btn:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6); }

/* ===== Result Food Image ===== */
.result-img-container {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #f1f5f9;
}
.result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.result-card:hover .result-img { transform: scale(1.03); }

