:root {
  --bg: #f4f0e6;
  --surface: #fffdf8;
  --surface-2: #ebe7dc;
  --ink: #28342d;
  --muted: #68736d;
  --line: #dcd7ca;
  --leaf: #52715d;
  --leaf-deep: #345240;
  --leaf-soft: #dfe9df;
  --sun: #d79b58;
  --sun-soft: #f4e4cb;
  --rose-soft: #f1ded8;
  --blue-soft: #dde7e9;
  --shadow: 0 18px 55px rgba(45, 55, 48, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 32px 24px; display: flex; flex-direction: column;
  border-right: 1px solid rgba(52, 82, 64, 0.08); background: rgba(255, 253, 248, 0.62); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; background: var(--leaf-deep); color: white; font-family: Georgia, serif; font-size: 23px; }
.brand strong { display: block; letter-spacing: .13em; font-size: 13px; }
.brand small { color: var(--muted); font-size: 11px; }
.nav-list { display: grid; gap: 6px; }
.nav-list a { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 14px; color: var(--muted); font-weight: 650; font-size: 14px; transition: .18s ease; }
.nav-list a span { width: 23px; font-size: 17px; text-align: center; }
.nav-list a:hover, .nav-list a.active { background: var(--leaf-soft); color: var(--leaf-deep); }
.sidebar-note { margin-top: auto; padding: 17px; border: 1px solid rgba(82, 113, 93, .15); border-radius: 17px; background: rgba(223, 233, 223, .54); }
.sidebar-note p { margin: 0 0 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sidebar-note strong { font-family: Georgia, serif; font-size: 14px; line-height: 1.45; font-weight: 500; }

.main-shell { width: 100%; max-width: 1280px; padding: 40px 52px 80px; margin: 0 auto; }
.topbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 7px; color: var(--leaf); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.topbar h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.date-chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.45); color: var(--muted); font-size: 12px; }
.ghost-button, .soft-button, .primary-button, .danger-button { border: 0; cursor: pointer; border-radius: 12px; padding: 10px 14px; font-weight: 700; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
button:hover { transform: translateY(-1px); }
.ghost-button { background: transparent; color: var(--muted); }
.soft-button { background: var(--leaf-soft); color: var(--leaf-deep); }
.primary-button { background: var(--leaf-deep); color: #fff; }
.danger-button { background: var(--rose-soft); color: #7d4b3f; }
.full-button { width: 100%; }

.view { animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 18px; margin-bottom: 18px; }
.card { border: 1px solid rgba(68, 83, 72, .10); border-radius: var(--radius-lg); background: rgba(255, 253, 248, .82); box-shadow: var(--shadow); }
.card-pad { padding: 25px; }
.north-card { position: relative; overflow: hidden; min-height: 260px; padding: 31px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, #314f3d, #496851); color: white; }
.north-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -85px; top: -105px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.02); }
.north-card > * { position: relative; z-index: 1; }
.kicker { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; opacity: .74; }
.north-card blockquote { margin: 0; max-width: 780px; font-family: Georgia, serif; font-size: clamp(22px, 2.6vw, 33px); line-height: 1.28; letter-spacing: -.02em; }
.north-footer { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: rgba(255,255,255,.76); font-size: 12px; }

.move-card { padding: 27px; display: flex; flex-direction: column; background: var(--sun-soft); border-color: rgba(177, 119, 58, .12); }
.move-card h2, .section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.move-card .move-text { margin: 18px 0 10px; font-size: 18px; line-height: 1.45; font-weight: 720; }
.move-card .move-meta { margin: 0 0 18px; color: #776b59; font-size: 12px; }
.move-card .move-actions { margin-top: auto; display: flex; gap: 8px; }
.move-empty { color: #756b5e; font-size: 14px; line-height: 1.55; }

.section { margin-top: 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.text-link { border: 0; background: transparent; color: var(--leaf-deep); font-weight: 750; cursor: pointer; }

.season-strip { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr; gap: 12px; }
.season-card { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,253,248,.7); }
.season-card.primary { background: var(--leaf-soft); border-color: transparent; }
.season-card.secondary { background: var(--sun-soft); border-color: transparent; }
.season-label { display: inline-flex; padding: 5px 8px; border-radius: 99px; background: rgba(255,255,255,.62); color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.season-card h3 { margin: 12px 0 5px; font-size: 16px; }
.season-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 12px; }

.bet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.bet-card { position: relative; padding: 20px; min-height: 210px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,253,248,.76); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(82,113,93,.25); }
.bet-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.bet-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-2); font-size: 18px; }
.status-dot { padding: 5px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bet-card h3 { margin: 17px 0 8px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.bet-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.bet-card footer { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; color: var(--leaf-deep); font-size: 11px; font-weight: 750; }

.anchor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.anchor { padding: 16px; border-radius: 17px; border: 1px solid var(--line); background: rgba(255,253,248,.55); }
.anchor-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.anchor h4 { margin: 0; font-size: 13px; }
.anchor p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.check-button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.anchor.done { background: var(--leaf-soft); border-color: transparent; }
.anchor.done .check-button { background: var(--leaf-deep); color: white; border-color: transparent; }

.intro-panel { padding: clamp(26px, 5vw, 55px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.intro-panel .display { margin: 0 0 10px; max-width: 900px; font-family: Georgia, serif; font-size: clamp(29px, 4.5vw, 50px); line-height: 1.16; font-weight: 500; letter-spacing: -.04em; }
.intro-panel .lead { max-width: 770px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.form-card { padding: 25px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.form-card + .form-card { margin-top: 13px; }
.form-card label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fffefb; color: var(--ink); outline: none; transition: border .15s ease, box-shadow .15s ease; }
.input, .select { height: 45px; padding: 0 13px; }
.textarea { min-height: 108px; resize: vertical; padding: 13px; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(82,113,93,.10); }
.help { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }

.value-chips, .guardrail-list { display: flex; flex-wrap: wrap; gap: 8px; }
.value-chip { padding: 8px 11px; border-radius: 999px; background: var(--leaf-soft); color: var(--leaf-deep); font-size: 11px; font-weight: 750; }

.season-board { display: grid; gap: 12px; }
.season-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 19px; background: var(--surface); border: 1px solid var(--line); }
.season-row h3 { margin: 0; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.season-row > div > p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.season-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.season-item { padding: 13px; border-radius: 14px; background: var(--surface-2); }
.season-item strong { display: block; margin-bottom: 4px; font-size: 12px; }
.season-item span { color: var(--muted); font-size: 10px; line-height: 1.45; }

.review-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.review-list { display: grid; gap: 9px; }
.review-entry { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.75); }
.review-entry time { color: var(--muted); font-size: 10px; }
.review-entry h4 { margin: 7px 0 6px; font-size: 13px; }
.review-entry p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.empty-state { padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: 17px; color: var(--muted); font-size: 13px; }

.progress-list { display: grid; gap: 12px; }
.progress-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.progress-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.progress-head strong { font-size: 12px; }
.progress-head span { color: var(--muted); font-size: 10px; }
.progress-bar { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.progress-bar i { display: block; height: 100%; border-radius: inherit; background: var(--leaf); }

.bet-dialog { width: min(760px, calc(100vw - 30px)); max-height: 90vh; padding: 0; border: 0; border-radius: 25px; background: var(--surface); box-shadow: 0 28px 100px rgba(30,40,33,.25); }
.bet-dialog::backdrop { background: rgba(31,43,35,.40); backdrop-filter: blur(4px); }
.dialog-frame { position: relative; padding: 29px; overflow: auto; max-height: 90vh; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 21px; }
.dialog-head { padding-right: 45px; }
.dialog-head .icon { font-size: 27px; }
.dialog-head h2 { margin: 8px 0 5px; font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.dialog-head p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-block { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); }
.detail-block h3 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .10em; }
.detail-block .big-copy { margin: 0; font-family: Georgia, serif; font-size: 21px; line-height: 1.5; }
.detail-block ul { padding-left: 19px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.roadmap-stack { display: grid; gap: 8px; }
.roadmap-step { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.roadmap-step:last-child { border-bottom: 0; }
.roadmap-step span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.roadmap-step strong { font-size: 12px; line-height: 1.5; }

.toast { position: fixed; right: 24px; bottom: 24px; max-width: 350px; padding: 12px 16px; border-radius: 13px; background: var(--leaf-deep); color: #fff; box-shadow: var(--shadow); font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; z-index: 20; }
.toast.show { opacity: 1; transform: none; }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding: 28px 18px; }
  .main-shell { padding: 35px 30px 75px; }
  .bet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anchor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-shell { padding: 24px 17px 40px; }
  .topbar { align-items: start; margin-bottom: 22px; }
  .topbar-actions { display: none; }
  .hero-grid, .review-grid { grid-template-columns: 1fr; }
  .north-card { min-height: 230px; padding: 25px; }
  .season-strip, .bet-grid, .anchor-grid { grid-template-columns: 1fr; }
  .season-row { grid-template-columns: 1fr; gap: 12px; }
  .season-items { grid-template-columns: 1fr; }
  .bet-card { min-height: 180px; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 12; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px; border: 1px solid rgba(52,82,64,.12); border-radius: 18px; background: rgba(255,253,248,.94); box-shadow: 0 14px 45px rgba(37,49,40,.18); backdrop-filter: blur(16px); }
  .mobile-nav a { display: grid; place-items: center; gap: 2px; min-height: 46px; border-radius: 12px; color: var(--muted); }
  .mobile-nav a.active { background: var(--leaf-soft); color: var(--leaf-deep); }
  .mobile-nav a span { font-size: 16px; }
  .mobile-nav a small { font-size: 9px; font-weight: 750; }
  .dialog-frame { padding: 24px 19px; }
  .roadmap-step { grid-template-columns: 90px minmax(0,1fr); }
  .toast { left: 16px; right: 16px; bottom: 82px; max-width: none; }
}
