/* ============ Economics You Can Feel (feel-*) ============ */
.feel { overflow-x: hidden; }

/* scene switcher */
.feel-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; margin: 0 0 26px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.feel-tab { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2); text-align: left; transition: background .2s, color .2s, box-shadow .2s, transform .1s; }
.feel-tab:hover { background: var(--surface-hover); color: var(--ink); }
.feel-tab:active { transform: translateY(1px); }
.feel-tab.on { background: var(--surface-strong); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--accent-soft-2); }
.feel-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feel-tab-ic { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: var(--accent-soft); transition: background .2s, box-shadow .2s; }
.feel-tab.on .feel-tab-ic { background: var(--grad); box-shadow: 0 6px 18px -6px rgba(99, 102, 241, .7); }
.feel-tab-t { display: flex; flex-direction: column; min-width: 0; }
.feel-tab-t b { font: 800 16px/1.2 var(--display); letter-spacing: -.01em; }
.feel-tab-t small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feel-scene { animation: feel-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes feel-in { from { opacity: 0; transform: translateY(6px); } }
.feel-idea { font: 700 clamp(19px, 2.3vw, 25px)/1.3 var(--display); letter-spacing: -.02em; margin: 0 0 18px; max-width: 860px; }
.feel-idea em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* stage + panel */
.feel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.feel-stage { padding: 10px; overflow: hidden; min-width: 0; }
.feel-canvas { position: relative; height: clamp(360px, 58vh, 560px); border-radius: var(--r-md); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), transparent); }
.feel-cv { position: absolute; inset: 0; display: block; touch-action: manipulation; }
[data-theme="dark"] .feel-canvas { background: radial-gradient(120% 90% at 50% 30%, rgba(30, 41, 80, .55), rgba(6, 10, 20, .6)); box-shadow: inset 0 0 0 1px var(--line); }

.feel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.feel-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feel-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; min-width: 0; display: flex; flex-direction: column; }
.feel-stat-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feel-num { font: 800 clamp(20px, 2.2vw, 26px)/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); transition: color .3s; }
.feel-stat-sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.feel-good { color: var(--good) !important; }
.feel-bad { color: var(--bad) !important; }

.feel-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 6px 2px; font-size: 12px; color: var(--ink-2); }
.feel-legend > span { display: inline-block; line-height: 1.5; }
.feel-legend i { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.feel-lg-note { color: var(--ink-3); margin-left: auto; }
.feel-lg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.feel-lg-ghost { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed var(--ink-3); }
.feel-ramp i { width: 46px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #06B6D4, #3B82F6, #6366F1, #8B5CF6, #FF7A59, #F59E0B); }

.feel-panel { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.feel-ctl { display: block; }
.feel-ctl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: 13.5px; }
.feel-ctl-top b { font: 700 13px var(--display); color: var(--accent-ink); font-variant-numeric: tabular-nums; text-align: right; }
.feel-ctl input[type=range] { height: 40px; padding: 17px 0; margin: 0; background-clip: content-box; cursor: pointer; }
.feel-ctl-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: -6px; }
.feel-years { display: flex; align-items: center; gap: 12px; }
.feel-years .feel-ctl { flex: 1; min-width: 0; }
.feel-play { width: 48px; height: 48px; border-radius: 50%; padding: 0; display: grid; place-items: center; flex-shrink: 0; font-size: 16px; }
.feel-play-ic { line-height: 1; }
.feel-rule { font-size: 13px; color: var(--ink-2); background: var(--accent-soft); border-radius: var(--r-sm); padding: 9px 12px; margin-top: 4px; }
.feel-rule b { color: var(--ink); }
.feel-seg { display: flex; margin-top: 8px; }
.feel-seg button { flex: 1; min-height: 40px; font-size: 13.5px; }
.feel-ctl + .feel-ctl, .feel-panel > .feel-ctl { margin-bottom: 6px; }

.feel-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.feel-chip { min-height: 42px; text-align: left; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: background .15s, border-color .15s, color .15s; }
.feel-chip:hover { background: var(--surface-hover); color: var(--ink); }
.feel-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }

.feel-switch { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px; margin: 4px 0; text-align: left; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); transition: background .15s, border-color .15s; }
.feel-switch:hover { background: var(--surface-hover); }
.feel-switch > span:last-child { display: flex; flex-direction: column; font-size: 13.5px; }
.feel-switch small { color: var(--ink-3); font-size: 12px; }
.feel-switch-track { width: 40px; height: 24px; flex-shrink: 0; border-radius: 12px; background: var(--line-2); position: relative; transition: background .2s; }
.feel-switch-track span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.feel-switch.on { border-color: var(--good); background: var(--good-soft); }
.feel-switch.on .feel-switch-track { background: var(--good); }
.feel-switch.on .feel-switch-track span { transform: translateX(16px); }

.feel-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; font-size: 12.5px; color: var(--ink-3); }
.feel-try .btn { min-height: 40px; }

.feel-caption { margin-top: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.feel-cap-h { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 6px; }
.feel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.feel-caption p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.feel-caption b { color: var(--ink); }

.feel-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 2; pointer-events: none; padding: 7px 14px; border-radius: 999px; background: var(--surface-strong); box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity .4s, transform .4s; animation: feel-bob 2.4s ease-in-out infinite; }
.feel-hint.feel-hide { opacity: 0; transform: translateX(-50%) translateY(-6px); animation: none; }
@keyframes feel-bob { 50% { transform: translateX(-50%) translateY(3px); } }

/* takeaway + links */
.feel-takeaway { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2)); border: 1px solid var(--accent-soft-2); }
.feel-take-ic { font-size: 24px; line-height: 1.2; }
.feel-takeaway p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.feel-takeaway b { color: var(--ink); font-family: var(--display); }
.feel-foot { margin-top: 14px; }
.feel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.feel-city { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; white-space: normal; text-align: left; }
.feel-arrow { color: var(--accent-ink); transition: transform .15s; }
.feel-city:hover .feel-arrow { transform: translateX(3px); }
.feel .disclaimer { margin-top: 12px; }

/* responsive */
@media (max-width: 980px) {
  .feel-grid { grid-template-columns: minmax(0, 1fr); }
  .feel-chips { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .feel-tabs { gap: 4px; padding: 4px; }
  .feel-tab { flex-direction: column; gap: 4px; padding: 8px 4px; min-height: 70px; text-align: center; justify-content: center; }
  .feel-tab-ic { width: 34px; height: 34px; font-size: 18px; }
  .feel-tab-t b { font-size: 14px; }
  .feel-tab-t small { display: none; }
  .feel-stage { padding: 6px; }
  .feel-canvas { height: 380px; }
  .feel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .feel-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feel-stats-3 .feel-stat-sub { display: none; }
  .feel-stat { padding: 8px 10px; }
  .feel-stat-l { font-size: 10px; white-space: normal; }
  .feel-chips { grid-template-columns: 1fr; }
  .feel-panel { padding: 14px; }
  .feel-takeaway { padding: 14px; gap: 10px; }
  .feel-takeaway p { font-size: 14px; }
  .feel-lg-note { margin-left: 0; }
  .feel-hint { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .feel-scene, .feel-hint { animation: none; }
  .feel-tab, .feel-chip, .feel-switch-track span, .feel-arrow { transition: none; }
}
