@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --jjr-ink: #262421;
  --jjr-dim: #6B665F;
  --jjr-soft: #918A81;
  --jjr-line: #E8E3DA;
  --jjr-bg: #F6F2EA;
  --jjr-card: #FFFFFF;
  --jjr-accent: #D85C32;
  --jjr-accent-ink: #9D3D1C;
  --jjr-accent-soft: #FFF0E8;
  --jjr-green: #27784D;
  --jjr-shadow: 0 16px 38px rgba(38, 36, 33, .12);
  --jjr-safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--jjr-bg); color: var(--jjr-ink); }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 17px; line-height: 1.55; letter-spacing: -.015em;
  font-feature-settings: 'tnum' 1;
  -webkit-tap-highlight-color: transparent;
}
a, button, input, textarea { color: inherit; font: inherit; }
button { border: 0; background: none; cursor: pointer; }
.wrap { width: min(100%, 560px); margin: 0 auto; }
.app-main { padding: 14px 16px calc(28px + var(--jjr-safe-b)); }
.screen-hero {
  position: relative; overflow: hidden;
  min-height: 168px; padding: 18px;
  border-radius: 18px; color: #fff; background: #2E2A25;
  box-shadow: var(--jjr-shadow);
}
.screen-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-img, none) center / cover no-repeat;
  transform: scale(1.02);
}
.screen-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,25,22,.86), rgba(28,25,22,.54) 55%, rgba(28,25,22,.20));
}
.screen-hero > * { position: relative; z-index: 1; }
.screen-hero h1 { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 950; }
.screen-hero p { max-width: 310px; margin: 7px 0 0; color: rgba(255,255,255,.82); font-weight: 750; }
.hero-metric {
  display: inline-flex; align-items: center; min-height: 38px; margin-top: 16px;
  padding: 0 13px; border-radius: 999px;
  background: rgba(255,255,255,.15); color: #fff; font-weight: 950;
  backdrop-filter: blur(8px);
}
.login-cta, .primary-cta {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px; margin-top: 12px; padding: 0 16px;
  border-radius: 14px; background: var(--jjr-accent); color: #fff;
  text-decoration: none; font-weight: 950;
}
.section { margin-top: 18px; }
.section h2 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0 0 10px; font-size: 18px; font-weight: 950;
}
.section h2 span { color: var(--jjr-accent-ink); font-size: 13px; font-weight: 900; }
.panel {
  border: 1px solid var(--jjr-line); border-radius: 16px;
  background: var(--jjr-card); box-shadow: 0 5px 16px rgba(38,36,33,.06);
}
.action-list { overflow: hidden; }
.action-row {
  position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px;
  align-items: center; width: 100%; min-height: 68px; padding: 12px 16px;
  background: #fff; text-align: left; text-decoration: none;
}
.action-row + .action-row { border-top: 1px solid var(--jjr-line); }
.action-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--jjr-accent-soft); color: var(--jjr-accent-ink);
  font-weight: 950;
}
.action-row b { display: block; font-size: 16px; font-weight: 950; }
.action-row small { display: block; margin-top: 2px; color: var(--jjr-dim); font-size: 13px; font-weight: 750; }
.action-value { color: var(--jjr-accent-ink); font-weight: 950; white-space: nowrap; }
.action-btn {
  min-width: 70px; height: 40px; border-radius: 12px;
  background: var(--jjr-ink); color: #fff; font-weight: 900;
}
.reward-row { grid-template-columns: 44px 1fr auto auto; }
@media (max-width: 430px) {
  .reward-row { grid-template-columns: 44px 1fr auto; }
  .reward-row .action-btn { grid-column: 2 / -1; justify-self: start; }
}
.tabs {
  position: sticky; top: 67px; z-index: 80;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  margin-top: 12px; padding: 6px; border: 1px solid var(--jjr-line);
  border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
}
.tabs button {
  height: 38px; border-radius: 12px; color: var(--jjr-dim);
  font-size: 14px; font-weight: 950;
}
.tabs button.on { background: var(--jjr-ink); color: #fff; }
.toolbar { display: grid; gap: 8px; margin-top: 12px; }
.toolbar input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--jjr-line); border-radius: 14px; background: #fff;
}
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--jjr-line); background: #fff; font-weight: 900;
}
.chips button.on { background: var(--jjr-ink); border-color: var(--jjr-ink); color: #fff; }
.empty {
  margin: 18px 0; padding: 34px 16px; border-radius: 16px;
  background: #fff; color: var(--jjr-dim); text-align: center; font-weight: 850;
}
.toast {
  position: fixed; left: 50%; bottom: calc(18px + var(--jjr-safe-b)); z-index: 220;
  transform: translateX(-50%);
  width: min(100% - 32px, 420px); padding: 12px 16px;
  border-radius: 999px; background: var(--jjr-ink); color: #fff;
  text-align: center; font-weight: 850;
}
.toast[hidden] { display: none; }
