/* ------------------------------------------------------------
 * recommend.css
 * - 추천 탭 전용
 * ------------------------------------------------------------ */

.hero-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  padding:2px 0;
}
.hero-copy-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  width:100%;
  margin-bottom:2px;
}
.hero-eyebrow{
  color:var(--text-faint);
  font-size:11px;
  font-weight:900;
  letter-spacing:0.08em;
  text-transform:uppercase;
}
.hero-title{
  color:var(--text-strong);
  font-size:28px;
  line-height:1.08;
  font-weight:950;
  letter-spacing:-0.04em;
  margin:0;
}
.hero-description{
  max-width:320px;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.6;
  font-weight:500;
  margin:0;
}
.hero-feature-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:7px;
  width:100%;
  max-width:344px;
}
.hero-feature-strip{
  margin:8px 0 14px;
  display:flex;
  justify-content:center;
  width:100%;
}
.hero-feature-strip .hero-feature-grid{
  margin:0 auto;
  justify-content:center;
}
.hero-feature-chip{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:92px;
  padding:12px 6px 10px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,0.99), rgba(245,248,243,0.99));
  border:1px solid rgba(208,216,210,0.92);
  box-shadow:0 10px 22px rgba(20,28,26,0.05);
  text-align:center;
}
.hero-feature-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(42,193,160,0.12), rgba(42,193,160,0.2));
  color:var(--accent-strong);
}
.hero-feature-icon svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hero-feature-label{
  color:var(--text-strong);
  font-size:12px;
  font-weight:700;
  letter-spacing:-0.03em;
  line-height:1.3;
}
.hero-meta-row{width:100%}
.meta-pill{
  width:100%;
  min-height:50px;
  justify-content:space-between;
  padding:10px 12px 10px 14px;
}
.meta-pill--mode{
  display:flex;
  align-items:center;
  gap:10px;
}
.meta-pill-copy{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.meta-label{color:var(--text-soft);font-size:13px;font-weight:800;white-space:nowrap}
.meta-value{color:var(--text-strong);font-size:15px;font-weight:900;white-space:nowrap}

.premium-check{display:block;flex:0 0 auto;cursor:pointer}
.premium-check input{position:absolute;opacity:0;pointer-events:none}
.premium-check-ui{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:106px;
  height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1.5px solid rgba(208,216,210,0.88);
  background:rgba(255,255,255,0.96);
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.premium-check-indicator{
  width:16px;
  height:16px;
  border-radius:999px;
  border:2px solid rgba(160,132,205,0.72);
  background:#fffdf8;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,0.92);
  transition:background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.premium-check-text{color:var(--text-soft);font-size:13px;font-weight:900;letter-spacing:-0.02em}
.premium-check input:checked + .premium-check-ui{
  border-color:rgba(126,94,186,0.6);
  background:linear-gradient(180deg, rgba(247,242,255,0.98), rgba(235,226,252,0.98));
  box-shadow:0 10px 24px rgba(114,84,172,0.14);
}
.premium-check input:checked + .premium-check-ui .premium-check-indicator{
  border-color:#7b58c2;
  background:radial-gradient(circle at center, #7b58c2 0 42%, #f2ecff 44% 100%);
  transform:scale(1.04);
}
.premium-check input:checked + .premium-check-ui .premium-check-text{color:#5d3f9e}

.hero-btn{
  width:100%;
  min-height:56px;
  border-radius:18px;
  font-size:18px;
}
.hero-hint{
  color:var(--text-soft);
  font-size:12px;
  font-weight:700;
  line-height:1.5;
}
.loading-wrap{width:100%;margin-top:2px}
.loading-bar{
  overflow:hidden;
  height:8px;
  border-radius:999px;
  background:rgba(20,28,26,0.08);
}
.loading-bar-glow{
  width:34%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, #8fe4cf 0%, #2ac1a0 60%, #d8f6ee 100%);
  animation:loadingMove 1.15s ease-in-out infinite alternate;
}
@keyframes loadingMove{
  from{transform:translateX(0)}
  to{transform:translateX(190%)}
}

.card-head--result{
  align-items:flex-end;
  margin-bottom:10px;
}
.card-head--result > div:first-child{
  flex:1 1 auto;
  min-width:0;
}
.result-inline-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  flex:0 1 auto;
  min-width:78px;
  max-width:42%;
  text-align:right;
}
.result-inline-meta-label{
  color:var(--text-faint);
  font-size:11px;
  font-weight:800;
}

.balls-row{
  display:grid;
  grid-template-columns:repeat(6, 46px);
  justify-content:center;
  gap:8px;
  max-width:100%;
  margin-top:4px;
}
.ball{
  width:46px;
  height:46px;
  font-size:18px;
}
.ball.spin{
  animation:ballSpin .16s linear infinite;
}
@keyframes ballSpin{
  from{transform:translateY(0)}
  50%{transform:translateY(-2px)}
  to{transform:translateY(0)}
}
.ball.stop{
  animation:ballPop .22s ease-out;
}
@keyframes ballPop{
  from{transform:scale(.86)}
  to{transform:scale(1)}
}

.pattern-summary{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:12px;
}

.confidence-wrap{
  margin-top:12px;
  padding:13px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(248,249,246,0.96), rgba(241,244,239,0.98));
  border:1px solid rgba(208,216,210,0.88);
}
.confidence-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.confidence-title,
.confidence-value-text{
  font-size:13px;
  font-weight:900;
  color:var(--text-strong);
}
.confidence-bar{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(20,28,26,0.08);
}
.confidence-fill{
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, #7adcc2, #22bc97);
  transition:width .9s cubic-bezier(.22,1,.36,1);
}

.chart-summary{
  margin:10px 0 12px;
  color:var(--text-soft);
  font-size:12px;
  line-height:1.6;
  font-weight:600;
}
.chart-area{
  min-height:120px;
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.chart-scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  padding-bottom:2px;
  -ms-overflow-style:none;
  scrollbar-width:none;
}
.chart-scroll::-webkit-scrollbar{display:none}
.chart-info-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.chart-info-box{
  padding:13px;
  border-radius:16px;
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(208,216,210,0.88);
}
.chart-info-label{
  color:var(--text-faint);
  font-size:11px;
  font-weight:800;
  margin-bottom:4px;
}
.chart-info-value{
  color:var(--text-strong);
  font-size:14px;
  font-weight:900;
}
.chart-bars{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:68px;
  align-items:end;
  gap:10px;
  width:max-content;
  min-width:max-content;
}
.chart-bar-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  width:68px;
  min-width:68px;
}
.chart-bar-value{
  color:var(--text-faint);
  font-size:11px;
  font-weight:800;
}
.chart-bar{
  width:100%;
  min-height:8px;
  border-radius:999px 999px 12px 12px;
  background:linear-gradient(180deg, #f3d57e 0%, #d79b41 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.42);
}
.chart-bar.rule-bar{background:linear-gradient(180deg, #8fe4cf, #2ac1a0)}
.chart-bar.sum-bar{background:linear-gradient(180deg, #a9e8d8, #46c6aa)}
.chart-bar.range-bar{background:linear-gradient(180deg, #b7d3cb, #7da99d)}
.chart-bar.new-bar{background:linear-gradient(180deg, #84dec8, #27b88f)}
.chart-bar-label{
  color:var(--text-soft);
  font-size:11px;
  font-weight:800;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  width:100%;
}

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

.analysis-card{
  position:relative;
  min-height:138px;
  padding:16px 15px 15px;
  border-radius:22px;
  border:1px solid rgba(208,216,210,0.92);
  background:
    radial-gradient(circle at top right, rgba(143,228,207,0.18), rgba(143,228,207,0) 34%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,247,242,0.99));
  box-shadow:0 16px 32px rgba(20,28,26,0.06);
  overflow:hidden;
  animation:analysisCardEnter .45s ease both;
}

.analysis-card::after{
  content:"";
  position:absolute;
  left:15px;
  right:15px;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg, rgba(42,193,160,0), rgba(42,193,160,0.3), rgba(42,193,160,0));
}

.analysis-card-kicker{
  color:var(--accent-strong);
  font-size:10px;
  font-weight:900;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.analysis-card-title{
  margin-top:9px;
  color:var(--text-strong);
  font-size:16px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:-0.03em;
}

.analysis-card-body{
  margin-top:8px;
  color:var(--text-soft);
  font-size:12px;
  line-height:1.72;
  font-weight:700;
}

.analysis-card--strategy{
  background:
    radial-gradient(circle at top right, rgba(42,193,160,0.18), rgba(42,193,160,0) 34%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(242,248,246,0.99));
}

.analysis-card--summary{
  background:
    radial-gradient(circle at top right, rgba(245,207,118,0.18), rgba(245,207,118,0) 36%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,246,238,0.99));
}

.analysis-card--block{
  background:
    radial-gradient(circle at top right, rgba(125,169,157,0.17), rgba(125,169,157,0) 36%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(243,246,244,0.99));
}

@keyframes analysisCardEnter{
  from{
    opacity:0;
    transform:translateY(10px) scale(0.985);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.tab-view.is-premium-mode .hero-board .board-frame,
.tab-view.is-premium-mode .result-panel .panel-frame{
  border-color:rgba(154,134,214,0.58);
  box-shadow:0 18px 36px rgba(98,78,153,0.10);
}
.tab-view.is-premium-mode .hero-board .board-paper,
.tab-view.is-premium-mode .result-panel .panel-paper{
  background:linear-gradient(180deg, #fffefe 0%, #f8f4ff 100%);
}
.tab-view.is-premium-mode .hero-btn{
  background:linear-gradient(180deg, #a487e0 0%, #7d5fc3 100%);
  color:#ffffff;
  box-shadow:0 14px 30px rgba(98,78,153,0.22);
}
.tab-view.is-premium-mode .hero-btn:hover,
.tab-view.is-premium-mode .hero-btn:active{
  background:linear-gradient(180deg, #ad92e5 0%, #7558bd 100%);
}
.tab-view.is-premium-mode + .hero-feature-strip .hero-feature-chip,
.tab-view.is-premium-mode .hero-feature-chip{
  background:linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,243,255,0.99));
  border-color:rgba(154,134,214,0.32);
  box-shadow:0 12px 24px rgba(98,78,153,0.08);
}
.tab-view.is-premium-mode + .hero-feature-strip .hero-feature-icon,
.tab-view.is-premium-mode .hero-feature-icon{
  background:linear-gradient(180deg, rgba(182,154,240,0.18), rgba(123,88,194,0.22));
  color:#7b58c2;
}
.tab-view.is-premium-mode + .hero-feature-strip .hero-feature-label,
.tab-view.is-premium-mode .hero-feature-label{
  color:#5d3f9e;
}
.tab-view.is-premium-mode .pattern-chip{
  border-color:rgba(154,134,214,0.3);
  background:rgba(249,245,255,0.96);
}
.tab-view.is-premium-mode .confidence-wrap{
  background:linear-gradient(180deg, rgba(251,248,255,0.96), rgba(243,236,255,0.98));
  border-color:rgba(154,134,214,0.26);
}
.tab-view.is-premium-mode .confidence-fill{
  background:linear-gradient(90deg, #b69af0, #7b58c2);
}
.tab-view.is-premium-mode .chart-bar.rule-bar,
.tab-view.is-premium-mode .chart-bar.sum-bar,
.tab-view.is-premium-mode .chart-bar.range-bar,
.tab-view.is-premium-mode .chart-bar.new-bar,
.tab-view.is-premium-mode .chart-bar{
  background:linear-gradient(180deg, #b79aef 0%, #7d5fc3 100%);
}
.tab-view.is-premium-mode .result-ticket-name{color:#6c4cb5}

@media (max-width:380px){
  .ball{width:42px;height:42px}
  .chart-bars{gap:8px}
  .meta-pill{padding-inline:12px}
  .premium-check-ui{min-width:94px;padding:0 12px}
  .premium-check-text{font-size:12px}
  .meta-label{font-size:12px}
}


.result-ticket-name{
  margin-top:4px;
  color:var(--accent-strong);
  font-size:13px;
  font-weight:900;
  letter-spacing:-0.02em;
}
.result-hero-copy{
  margin:4px 0 14px;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.6;
  font-weight:800;
}
.chart-panel-inner,
.chart-area{min-width:0}
.chart-tabs{
  display:flex;
  width:100%;
  max-width:100%;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
  padding:0 0 6px;
  margin:0;
  gap:8px;
}
.chart-tab-btn{
  flex:0 0 auto;
  scroll-snap-align:start;
}
.chart-summary{
  min-height:44px;
}
.chart-area{
  overflow:hidden;
  padding:2px 0 4px;
  box-sizing:border-box;
}
.chart-bars{
  min-width:max-content;
  gap:12px;
}
.chart-bar-item{width:68px;min-width:68px}
.chart-bar-label{
  width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width:400px){
  .hero-title{font-size:24px}
  .hero-description{max-width:280px;font-size:12px}
  .hero-feature-strip{margin:6px 0 12px}
  .hero-feature-grid{max-width:296px;gap:6px}
  .hero-feature-chip{min-height:84px;padding:10px 4px 9px;border-radius:16px;gap:7px}
  .hero-feature-icon{width:32px;height:32px;border-radius:12px}
  .hero-feature-icon svg{width:20px;height:20px}
  .hero-feature-label{font-size:11px}
  .ball{width:42px;height:42px;font-size:17px}
  .balls-row{grid-template-columns:repeat(6, 42px);gap:6px}
  .pattern-summary{gap:6px}
  .chart-bars{gap:10px;grid-auto-columns:62px}
  .chart-bar-item{width:62px;min-width:62px}
  .analysis-card-grid{grid-template-columns:1fr;gap:10px}
  .analysis-card{min-height:auto;padding:15px 14px 14px;border-radius:18px}
  .analysis-card-title{font-size:15px}
  .analysis-card-body{font-size:11.5px;line-height:1.65}
}

/* ------------------------------------------------------------
 * 2026-04 density reduction
 * - 추천 탭에서 첫 화면 행동과 핵심 결과만 두드러지게 정리
 * ------------------------------------------------------------ */
.card-head--simple{
  margin-bottom:10px;
}

@media (max-width:400px){
  .meta-pill{padding-inline:12px}
}
