/* ============================================================
   하위 화면 스타일 (일정/순위/이벤트/달팽이/예측/MY + 모달)
   ============================================================ */
.muted { color: var(--text-3); font-size: 13px; margin: 4px 0 0; }
.dot-list { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); line-height: 1.7; }
h2, h3 { margin: 0; }
.lock svg { width: 18px; height: 18px; }

.rank-sub { display: flex; margin-bottom: 10px; }
.rank-sub .seg { flex-wrap: wrap; }

/* 세그먼트 토글 */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { height: 32px; }

/* ---------- 일정 ---------- */
.schedule .screen-body { display: flex; flex-direction: column; }
.sch-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(300px, 32%); gap: var(--gap); }
.day-list { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; }
.sch-side { min-height: 0; overflow: auto; }
.schedule .input-sm { height: 32px; border-radius: var(--r-sm); border: 0; background: var(--panel); padding: 0 10px; font-weight: 700; font-size: 13px; }

.day-row { scroll-margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.day-head { display: flex; align-items: center; gap: 12px; }
.day-date { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 7px 26px 7px 14px; }
.day-date.is-today { background: var(--team-deep); }
.day-head small { color: var(--ink-3); font-weight: 600; }
.day-row.is-focus .day-date { background: var(--hot); color: var(--ink); }

.match {
  display: grid; grid-template-columns: 76px 64px 1fr auto auto; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 14px; min-height: 60px; position: relative; overflow: hidden;
}
.match::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--home); }
.m-time { font-size: 24px; }
.m-sport { justify-self: start; height: 26px; padding: 0 14px; font-size: 12px; }
.m-vs { display: flex; align-items: center; gap: 8px; font-size: 20px; font-family: var(--font-display); }
.m-vs i { width: 10px; height: 10px; border-radius: 50%; }
.m-vs .dot-home { background: var(--home); } .m-vs .dot-away { background: var(--away); }
.m-vs em { font-family: var(--font-num); font-style: italic; color: var(--ink-3); font-size: 13px; margin: 0 2px; }
.m-venue { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.m-right { display: flex; align-items: center; gap: 10px; }
.m-score { font-size: 26px; }
.m-odd { font-size: 26px; color: var(--team-ink); }
.chip.win { background: var(--win); color: #fff; }
.chip.is-wait { background: var(--panel-2); color: var(--ink-3); }

.sch-mine { display: flex; flex-direction: column; }
.mine-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.mine-when { font-weight: 800; font-size: 14px; }
.mine-row small { color: var(--ink-3); font-size: 12px; }
.mine-row .mine-when, .mine-row small { grid-column: 1; }
.mine-row em { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; font-style: normal; font-size: 24px; color: var(--team-ink); }
.empty { color: var(--ink-3); font-size: 14px; }

/* 모달 + 달력 */
.modal { position: fixed; inset: 0; z-index: 800; background: rgba(11,13,18,0.45); display: grid; place-items: center; animation: fade-in 0.2s; }
.modal-sheet {
  width: min(680px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--paper); border-radius: var(--r-lg); padding: var(--pad);
  box-shadow: var(--shadow); animation: sheet-up 0.3s var(--ease-out);
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; }
.modal-head .subtitle { flex: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-grid > b { color: var(--ink-3); font-size: 13px; padding: 6px 0; }
.cal-cell { aspect-ratio: 1.05; border-radius: 12px; background: var(--panel); display: grid; place-content: center; gap: 4px; }
.cal-cell .num { font-size: 22px; }
.cal-cell:disabled { color: var(--ink-3); background: transparent; cursor: default; }
.cal-cell.is-done { background: var(--panel-2); }
.cal-cell.is-today { background: var(--ink); color: #fff; }
.cal-cell.is-today .cal-dots u { background: var(--hot); }
.cal-cell .cal-dots { display: flex; gap: 4px; justify-content: center; }
.cal-cell .cal-dots u { width: 7px; height: 7px; border-radius: 50%; background: var(--team); }
.cal-cell i { font-style: normal; font-size: 10px; color: var(--live); }
.cal-cell.holiday .num { color: var(--live); }

/* ---------- 순위 ---------- */
.ranking .screen-body { display: flex; flex-direction: column; }
.rank-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(320px, 34%); gap: var(--gap); }
.rank-map { min-height: 0; display: flex; }
.rank-side { min-height: 0; overflow: auto; display: flex; flex-direction: column; }

.cat-board { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-photo { position: relative; flex: 1; min-height: 240px; border-radius: var(--r-lg); overflow: hidden; background: var(--panel-2); }
.cat-photo .img-slot { position: absolute; inset: 0; }
.cat-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.cat-cells i { border: 0.5px solid rgba(255, 255, 255, 0.35); }
.cat-cells i.on { background: color-mix(in srgb, var(--c) 78%, transparent); animation: fade-in 0.6s both; }
.cat-en { position: absolute; left: 0; top: 24px; background: var(--ink); color: #fff; padding: 7px 24px 7px 14px; font-size: 14px; }
.cat-name {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff;
  padding: 14px 56px 16px 24px; font-size: clamp(26px, 4.6vmin, 48px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}
.cat-tag { position: absolute; left: 32%; bottom: 18px; background: var(--team); color: var(--team-on); padding: 9px 22px; font-size: 14px; font-weight: 800; }
.cat-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cat-legend li { display: flex; align-items: center; gap: 6px; }
.cat-legend li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cat-legend .cat-progress { color: var(--ink-3); }
.cat-legend .cat-switch { margin-left: auto; }

/* 개인 순위 탭 */
.person-rank { display: flex; flex-direction: column; gap: 8px; }
.person-rank .rank-list { background: var(--paper); }
.my-rank-bar {
  position: sticky; bottom: 0; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 12px 18px; margin-top: 6px;
}
.my-rank-bar b { font-family: var(--font-num); font-style: italic; font-size: 24px; color: var(--hot); }
.my-rank-bar small { color: var(--ink-3); }
.my-rank-bar em { font-style: normal; font-family: var(--font-num); font-weight: 800; font-size: 24px; }
.rank-row .r-name small { color: var(--ink-3); font-weight: 600; font-size: 12px; margin-left: 6px; }
.rank-row.is-me .r-name small { color: rgba(255, 255, 255, 0.6); }

.sky {
  position: relative; flex: 1; min-height: 360px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(#1c3b6e, #4d7bc4 60%, #9cc3f0);
}
.sky-back { position: absolute; left: 16px; top: 16px; z-index: 2; }
.balloon {
  position: absolute; text-align: center; color: #fff;
  left: calc((var(--i) + 0.5) * 25%); translate: -50% 0;
  bottom: calc(16px + var(--h) * (100% - 200px));
  transition: bottom 1.2s var(--ease-out);
  animation: float 3s ease-in-out infinite;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.balloon svg { width: clamp(56px, 10vmin, 96px); display: block; margin: 0 auto; }
.balloon b { display: block; }
.balloon span { font-weight: 800; }
.balloon-rank { font-family: var(--font-num); font-style: italic; font-weight: 800; font-size: 20px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- 이벤트 ---------- */
.events .screen-body { display: flex; flex-direction: column; gap: var(--gap); }
.ev-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); flex: none; }
.ev-snail, .ev-predict { position: relative; height: clamp(180px, 30vh, 260px); border-radius: var(--r-lg); overflow: hidden; text-align: left; }
.ev-snail { background: var(--panel-2); }
.ev-snail-bg { position: absolute; inset: 0; }
.ev-tag { position: absolute; left: 0; top: 20px; z-index: 2; background: var(--ink); color: #fff; padding: 6px 22px 6px 12px; font-size: 13px; }
.ev-name {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff;
  padding: 12px 52px 14px 20px; font-size: clamp(26px, 4vmin, 40px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}
.ev-info { position: absolute; right: 14px; bottom: 16px; background: var(--team); color: var(--team-on); padding: 8px 20px; font-size: 13px; font-weight: 800; }
.mini-track { position: absolute; left: 20px; right: 20px; top: 62px; display: flex; flex-direction: column; gap: 8px; }
.mini-lane { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.mini-lane i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--c) calc(var(--x) * 100%), rgba(11,13,18,0.08) 0); }

.ev-predict { padding: 0; background: none; }
.ev-predict .vs-card { height: 100%; display: flex; flex-direction: column; }
.ev-predict .vs-card .vs-body { flex: 1; min-height: 0; padding-top: 58px; }
.ev-predict .vs-card .vs-name { font-size: clamp(20px, 3vmin, 30px); }
.ev-predict .vs-card .vs-odd { font-size: clamp(26px, 4.4vmin, 48px); }
.ev-empty { display: grid; place-items: center; height: 100%; background: var(--panel); border-radius: var(--r-lg); color: var(--ink-3); font-weight: 700; }

.ev-section { min-height: 0; display: flex; flex-direction: column; }
.ev-feed-head { display: flex; align-items: center; gap: 14px; }
.ev-feed-head .subtitle { margin: 0; }
.ev-feed-head .muted { margin: 0; }
.ev-feed-head .btn { margin-left: auto; height: 44px; font-size: 15px; }

/* ---------- 달팽이 (들판 + 달팽이 직접 누르기) ---------- */
.snail .screen-body { display: flex; flex-direction: column; gap: 8px; position: relative; }
.snail-events { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.event { background: var(--hot); color: var(--ink); animation: event-glow 1.6s ease-in-out infinite; }
@keyframes event-glow { 50% { box-shadow: 0 0 0 4px rgba(255, 225, 77, 0.45); } }

.track { position: relative; flex: 1; min-height: 0; border-radius: var(--r-lg); overflow: hidden; }
.track-bg { position: absolute; inset: 0; }
.track-finish {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 22px 22px;
  box-shadow: -1px 0 0 var(--line);
}
.lane { position: absolute; left: 12px; right: 56px; height: 25%; top: calc(var(--i, 0) * 25%); }
.lane:nth-child(3) { --i: 0; } .lane:nth-child(4) { --i: 1; } .lane:nth-child(5) { --i: 2; } .lane:nth-child(6) { --i: 3; }
.lane::before {
  content: ""; position: absolute; left: 0; bottom: 22%; height: 8px; border-radius: 4px;
  width: calc(var(--x, 0) * 100%); background: var(--c); opacity: 0.4; transition: width 0.35s var(--ease-out);
}
.snail-runner {
  position: absolute; bottom: 12%; width: clamp(74px, 12vmin, 132px);
  left: calc(var(--x, 0) * (100% - clamp(74px, 12vmin, 132px)));
  transition: left 0.35s var(--ease-out); touch-action: manipulation; user-select: none; -webkit-user-select: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.lane.is-mine .snail-runner { width: clamp(100px, 16vmin, 180px); left: calc(var(--x, 0) * (100% - clamp(100px, 16vmin, 180px))); }
.lane.is-mine .snail-runner::after {
  content: ""; position: absolute; inset: -14px -18px; border: 4px solid var(--hot); border-radius: 50%;
  animation: ring 1.6s ease-in-out infinite;
}
@keyframes ring { 50% { transform: scale(1.06); } }
.lane-name {
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 18px 5px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); white-space: nowrap;
}
.lane.is-mine .lane-name { background: var(--hot); color: var(--ink); }
.lane-wins { font-style: normal; margin-left: 4px; }
.snail-count { font-size: 18px; color: var(--ink); text-shadow: 0 1px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff; }
.tap-hint { position: absolute; right: -68px; top: 40%; background: var(--hot); color: var(--ink); font-size: 20px; padding: 6px 18px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.snail-runner.bump svg { animation: bump 0.18s; }
@keyframes bump { 50% { transform: scale(1.12, 0.9); } }
.snail.is-tired .snail-runner svg { filter: grayscale(0.7); }
.snail.is-blocked .snail-runner { pointer-events: none; }

.snail-guide { margin: 0; text-align: center; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.snail-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 12px 20px; flex: none;
}
.snail-round { font-size: 14px; color: var(--ink-3); }
.snail-round b { color: #fff; }
.snail-me { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.snail-me b { color: var(--hot); font-family: var(--font-num); font-style: italic; font-size: 18px; }

.snail-overlay {
  position: absolute; inset: 0; z-index: 20; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center;
}
.snail-msg { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 44px; padding: 20px; }
.snail-msg b { font-size: 22px; }
.snail-msg small { font-size: 14px; color: var(--ink-2); }
.snail-msg.top { position: absolute; top: 12px; left: 0; right: 0; font-size: 16px; }
.wake-snail {
  position: absolute; transform: translate(-50%, -50%); font-size: 44px; padding: 10px 14px;
  background: #fff; border-radius: 99px; box-shadow: var(--shadow); border: 3px solid var(--ink);
  animation: wobble 1.2s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: translate(-50%, -50%) rotate(-8deg) scale(1.05); } }

/* ---------- 승부예측 ---------- */
.predict .screen-body { display: flex; flex-direction: column; gap: var(--gap); }
.pr-wrap { display: flex; flex-direction: column; gap: var(--gap); }

/* 열린 경기 — 박스 안에서 스크롤 */
.pr-open { position: relative; background: var(--panel); border-radius: var(--r-lg); padding: 16px; flex: none; }
.pr-open-tag { position: absolute; z-index: 2; left: 0; top: 0; background: var(--ink); color: #fff; padding: 7px 24px 7px 14px; font-size: 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.pr-open-scroll { height: min(52vh, 420px); overflow: auto; display: flex; flex-direction: column; gap: 16px; scroll-snap-type: y mandatory; }
.pr-open-scroll > * { scroll-snap-align: start; flex: none; }

.vs-card { color: var(--home-on, #fff); }
.vs-card .vs-side .vs-name, .vs-card .vs-side .vs-odd { color: var(--home-on, #fff); }
.vs-card .vs-side.right .vs-name, .vs-card .vs-side.right .vs-odd { color: var(--away-on, #fff); }
.vs-card .vs-side small { font-size: 13px; font-weight: 700; color: inherit; opacity: 0.9; }
.vs-card .vs-side.right small, .vs-card .vs-side.right .chip { color: var(--away-on, #fff); }
.vs-card .vs-side .chip { align-self: flex-start; }
.vs-card .vs-side.right .chip { align-self: flex-end; }
.vs-card .vs-body { min-height: 176px; padding-top: 34px; }

/* 아직 안 열린 경기 (회색, 낮은 카드) */
.vs-card.is-small { --home-a: var(--panel); --away: var(--panel-2); margin-bottom: 12px; }
.vs-card.is-small .vs-body { min-height: 0; padding: 14px 24px 18px; }
.vs-card.is-small .vs-name { font-size: clamp(18px, 2.6vmin, 28px); color: var(--ink-2); }
.vs-card.is-small .vs-badge { background: var(--panel); color: var(--ink-3); font-size: 20px; padding: 4px 18px; }
.vs-card.is-locked .vs-foot { background: var(--ink-2); }
.vs-card.is-locked .vs-foot .close { color: #fff; }

.pr-all .pr-h { display: flex; align-items: baseline; gap: 12px; font-size: 20px; margin: 4px 0 10px; }
.pr-all .pr-h small { color: var(--ink-3); font-size: 13px; font-weight: 600; }

/* 아래: 내 점수 · 우승 반 예측 · 기록 */
.pr-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); align-items: start; }
.pr-summary { display: flex; flex-direction: column; gap: 4px; }
.pr-summary small { color: var(--ink-3); font-weight: 700; }
.pr-summary strong { font-size: 54px; color: var(--team-ink); }
.pr-summary strong span { font-family: var(--font-body); font-size: 16px; color: var(--ink-2); margin-left: 6px; }
.pr-summary-row { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-weight: 700; font-size: 14px; }

.pr-champ h2 { font-size: 20px; }
.champ-round-box { margin-top: 12px; }
.champ-round-box header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.champ-round-box header small { color: var(--ink-3); margin-right: auto; }
.champ-list { display: flex; flex-direction: column; gap: 6px; }
.champ-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left;
  background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 12px;
}
.champ-row b { font-size: 16px; }
.champ-row em { font-style: normal; font-family: var(--font-num); font-weight: 800; font-size: 24px; color: var(--c); }
.champ-row small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; }
.champ-row.is-picked { background: var(--ink); color: #fff; border-radius: var(--r-md); }
.champ-row.is-picked small { color: var(--hot); }
.champ-row.is-champion { outline: 3px solid var(--hot); border-radius: var(--r-md); }
.champ-result { margin: 8px 0 0; font-weight: 800; }

.pr-history { display: flex; flex-direction: column; }
.pr-hist-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); align-items: center; }
.pr-hist-row small { grid-column: 1; color: var(--ink-3); font-size: 12px; }
.pr-hist-row b { font-size: 15px; }
.pr-hist-row > span { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.pr-hist-row .chip { grid-row: 1 / 4; grid-column: 2; align-self: center; }
.chip.hit { background: var(--win); color: #fff; }
.chip.miss { background: var(--panel-2); color: var(--ink-3); }

/* ---------- MY ---------- */
.my .screen-body { background: var(--panel); border-radius: var(--r-lg); padding: var(--gap); }
.my-cols { display: grid; grid-template-columns: minmax(340px, 46%) 1fr; gap: var(--gap); align-items: start; }
.my-left, .my-right { display: flex; flex-direction: column; gap: 10px; }

.my-profile {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px;
  background: var(--paper); border-radius: var(--r-lg); padding: 22px 22px 18px 28px; overflow: hidden;
}
.my-profile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--team); }
.my-avatar { width: 88px; height: 88px; border-radius: 50%; grid-row: 1 / 3; font-size: 11px; }
.my-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.my-id h2 { font-size: clamp(24px, 3.4vmin, 32px); }
.my-sid { font-size: 20px; color: var(--ink-3); }
.my-id p { width: 100%; margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.my-stats { grid-column: 2; display: flex; gap: 32px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.my-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.my-stats b { font-size: 24px; }
.my-stats div:first-child b { color: var(--team-ink); }
.my-stats small { color: var(--ink-3); font-size: 12px; }

.my-group-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-top: 6px; }
.my-group-title i { width: 5px; height: 20px; background: var(--team); }
.my-group { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.my-row {
  width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
  padding: 14px 18px; text-align: left; border-top: 1px solid var(--line);
}
.my-group .my-row:first-child { border-top: 0; }
.my-row:active { background: var(--panel); }
.my-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.my-row-main b { font-size: 17px; }
.my-row-main small { color: var(--ink-3); font-size: 12px; }
.my-row-value { font-size: 22px; color: var(--team-ink); }
.my-row-go { color: var(--ink-3); font-size: 20px; }

.my-chart { background: var(--paper); }
.my-chart header { display: flex; align-items: flex-start; gap: 12px; }
.my-chart header h3 { font-size: 18px; }
.my-chart header small { color: var(--ink-3); font-size: 13px; }
.my-chart header b { margin-left: auto; font-size: 40px; color: var(--team-ink); }
.line-chart { width: 100%; height: auto; margin-top: 10px; }
.chart-empty { height: 200px; border-radius: var(--r-md); margin-top: 10px; }
.chart-days { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.my-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.my-field { background: var(--paper); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.my-field span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.my-field b { font-size: 34px; }
.my-field small { color: var(--ink-3); font-size: 12px; }

/* MY 세부 화면 */
.my-detail { display: flex; flex-direction: column; gap: 14px; }
.detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-head .subtitle { margin: 0; }
.detail-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.detail-tiles article { background: var(--paper); border-radius: var(--r-lg); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.detail-tiles span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.detail-tiles b { font-size: 34px; }
.detail-tiles small { color: var(--ink-3); font-size: 12px; }
.detail-how { background: var(--paper); border-radius: var(--r-lg); padding: 16px 20px; }
.detail-how h3 { font-size: 16px; margin-bottom: 8px; }
.detail-how ul { margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 1.8; font-size: 14px; }
.detail-list { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.detail-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: center; }
.detail-list .detail-row:first-child { border-top: 0; }
.detail-row b { font-size: 15px; }
.detail-row small { grid-column: 1; color: var(--ink-3); font-size: 12px; }
.detail-row .chip { grid-row: 1 / 3; grid-column: 2; }
.detail-links { display: flex; gap: 8px; }

/* ---------- 세로(휴대폰) 모드 ---------- */
@media (orientation: portrait) {
  /* 2단 화면은 전부 1단으로 (겹치지 않게 블록 배치) */
  .sch-cols, .rank-cols, .my-cols, .ev-top, .pr-bottom, .admin-2col { display: block; }
  .sch-cols > * + *, .rank-cols > * + *, .my-cols > * + *, .ev-top > * + * { margin-top: var(--gap); }
  .day-list, .sch-side, .rank-side, .rank-map { overflow: visible; height: auto; }
  .ev-snail, .ev-predict { width: 100%; }
  .schedule .screen-body, .ranking .screen-body { overflow: auto; }
  .my-right { order: -1; }
  .topbar { flex-wrap: wrap; }
  .topbar .topbar-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .title-note { display: none; }

  /* 일정: 경기 줄을 2줄로 */
  .match { grid-template-columns: 70px 1fr auto; row-gap: 6px; }
  .m-vs { font-size: 18px; }
  .m-vs b { white-space: nowrap; }
  .m-sport { grid-row: 2; }
  .m-venue { display: none; }

  /* 순위: 고양이 지도 위 · 목록 아래 */
  .cat-photo { aspect-ratio: 4 / 3; min-height: 0; }
  .cat-name { font-size: 30px; padding: 10px 40px 12px 16px; }
  .cat-tag { left: auto; right: 12px; }

  /* 승부예측: 카드 한 장씩 */
  .pr-open-scroll { height: min(60vh, 460px); }
  .vs-card .vs-body { min-height: 150px; }

  /* 달팽이: 아래에서 위로 기어오르기 */
  .track-finish { inset: 0 0 auto 0; width: auto; height: 44px; box-shadow: 0 1px 0 var(--line); }
  .lane { left: calc(var(--i, 0) * 25%); right: auto; top: 56px; bottom: 10px; width: 25%; height: auto; }
  .lane::before { left: 50%; bottom: 0; top: auto; width: 8px; height: calc(var(--x, 0) * 100%); transform: translateX(-50%); transition: height 0.35s var(--ease-out); }
  .snail-runner {
    left: 50%; width: clamp(64px, 20vw, 96px); bottom: calc(var(--x, 0) * (100% - 120px));
    transform: translateX(-50%); transition: bottom 0.35s var(--ease-out);
  }
  .lane.is-mine .snail-runner { left: 50%; width: clamp(76px, 24vw, 112px); }
  .tap-hint { right: auto; left: 50%; top: -44px; transform: translateX(-50%); font-size: 16px; padding: 4px 14px; }
  .lane-name { font-size: 10px; padding: 4px 12px 4px 7px; }

  /* 이벤트 피드 2열 */
  .feed { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .post { min-height: 180px; }
}

