/* hero.css — hero (.hero-) and cycle (.cyc-) screens */
.hero-screen, .cyc-screen { padding: 8px 8px 24px; max-width: 100%; overflow-x: hidden; }
.hero-screen .grow, .cyc-screen .grow { flex: 1; min-width: 0; }
.hero-stage { position: relative; height: 260px; border-radius: 18px; border: 3px solid var(--ink); background-size: cover; background-position: center; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; cursor: pointer; box-shadow: 0 0 18px rgba(255,255,255,.7) inset, 0 3px 0 var(--line); }
.hero-glow { position: absolute; left: 50%; bottom: 0; width: 220px; height: 120px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(255,255,255,.65), transparent 70%); pointer-events: none; }
.hero-stage .avatar { position: relative; }
.hero-info { padding: 10px 6px 2px; text-align: center; }
.hero-name { font-size: 22px; font-weight: 900; }
.hero-lvrow { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.hero-lv { font-size: 18px; font-weight: 900; flex: none; }
.hero-boost { display: inline-block; margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(180deg, #fff3c4, var(--gold)); border: 2px solid var(--ink); font-size: 14px; font-weight: 900; color: var(--ink); animation: pulse 1.6s infinite; }
.hero-themes { display: flex; gap: 10px; }
.hero-theme { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; min-width: 0; min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 16px; border: 3px solid var(--line); background: #fff; font-size: 14px; font-weight: 900; color: var(--ink); text-align: center; transition: transform .12s; }
.hero-theme img { width: 72px; height: 72px; object-fit: contain; }
.hero-theme.on { border-color: var(--ink); background: linear-gradient(180deg, #fff, var(--bg2)); box-shadow: 0 0 0 3px var(--gold), 0 3px 0 var(--ink); }
.hero-theme:active { transform: scale(.94); }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.hero-tile { all: unset; box-sizing: border-box; cursor: pointer; position: relative; min-width: 0; min-height: 120px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-radius: 14px; border: 2px solid var(--line); background: linear-gradient(135deg, #fff, var(--bg3)); box-shadow: 0 3px 0 var(--line); text-align: center; transition: transform .1s; overflow: hidden; }
.hero-tile:active { transform: scale(.94); }
.hero-tile.eq { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold), 0 3px 0 var(--ink); }
.hero-tile.locked { filter: grayscale(.85); opacity: .75; }
.hero-pic { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; flex: none; }
.hero-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hero-pic.bg { border-radius: 10px; border: 2px solid var(--ink); background-size: cover; background-position: center; width: 100%; max-width: 88px; }
.hero-tname { font-size: 13px; font-weight: 900; line-height: 1.2; word-break: break-word; max-width: 100%; }
.hero-state { font-size: 12px; font-weight: 800; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 3px; }
.hero-state img { width: 14px; height: 14px; image-rendering: pixelated; }
.hero-state.ok { color: var(--accent); }
.hero-price { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 900; padding: 1px 8px; border-radius: 999px; background: #fff3c4; border: 2px solid var(--ink); color: var(--ink); }
.hero-price img { width: 16px; height: 16px; }
.hero-ribbon { position: absolute; top: 0; right: 0; padding: 2px 6px; font-size: 11px; font-weight: 900; color: var(--ink); background: linear-gradient(180deg, #fff3c4, var(--gold)); border-radius: 0 12px 0 10px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.hero-medal { width: 64px; height: 64px; }
.hero-shoprow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hero-gold { display: inline-flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 900; }
.hero-gold img { width: 24px; height: 24px; }
.hero-bagrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-bottom: 6px; border-radius: 12px; border: 2px solid var(--line); background: #fff; }
.hero-bagrow > img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; border: 2px solid var(--line); background: linear-gradient(135deg, #fff, var(--bg3)); font-size: 12px; text-align: center; }
.hero-stat img { width: 24px; height: 24px; }
.hero-stat b { font-size: 18px; }
.hero-road { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
.hero-rstop { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 12px; border: 2px dashed var(--line); background: #fff; }
.hero-rlv { font-size: 14px; font-weight: 900; }

/* ---------- cycle ---------- */
.cyc-ring { position: relative; width: 220px; height: 220px; margin: 6px auto 8px; }
.cyc-ringsvg { width: 100%; height: 100%; }
.cyc-seg { fill: none; stroke-width: 14; stroke-linecap: butt; opacity: .85; }
.cyc-seg.now { opacity: 1; stroke-width: 20; }
.cyc-ovstar { fill: var(--gold); stroke: var(--ink); stroke-width: 1; font-size: 20px; }
.cyc-nowdot { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.cyc-centre { position: absolute; inset: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.cyc-big { font-size: 20px; font-weight: 900; line-height: 1.2; }
.cyc-big.sm { font-size: 15px; }
.cyc-btns { display: flex; gap: 8px; padding: 0 4px 6px; }
.cyc-btns .pbtn { flex: 1; min-width: 0; white-space: normal; }
.cyc-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.cyc-prow, .cyc-hrow { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 2px dotted var(--line); font-size: 14px; }
.cyc-prow:last-child, .cyc-hrow:last-child { border-bottom: 0; }
.cyc-prow b, .cyc-hrow b { text-align: right; }
.cyc-calhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cyc-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cyc-wd { text-align: center; color: var(--ink-soft); font-weight: 900; }
.cyc-day { all: unset; box-sizing: border-box; cursor: pointer; position: relative; min-height: 44px; border-radius: 10px; border: 2px solid transparent; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--ink); min-width: 0; }
.cyc-day em { font-style: normal; font-size: 10px; line-height: 8px; color: #fff; }
.cyc-day.other { opacity: .35; }
.cyc-day.today { border-color: var(--ink); }
.cyc-day.fertile { background: #d4f6ec; }
.cyc-day.pred { border: 2px dashed var(--accent); background: #ffe6ec; }
.cyc-day.period { background: #ff8a9e; color: #fff; }
.cyc-day.ovu { background: #fff0bf; }
.cyc-day em.star { color: #e6a700; font-size: 12px; }
.cyc-day em.lg { color: var(--accent2); font-size: 18px; }
.cyc-day.period em.lg { color: #fff; }
.cyc-day:active { transform: scale(.92); }
.cyc-set { margin-bottom: 10px; }
.cyc-setrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cyc-stepval { flex: 1; text-align: center; font-size: 14px; min-width: 70px; }
.cyc-disc { text-align: center; padding: 0 8px 12px; }
/* log modal */
.cyc-log .plabel { margin: 8px 0 4px 2px; font-size: 14px; font-weight: 900; }
.cyc-flows { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cyc-flow { all: unset; box-sizing: border-box; cursor: pointer; min-height: 64px; min-width: 0; border-radius: 12px; border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 900; color: var(--ink); text-align: center; }
.cyc-flow.on { border-color: var(--ink); background: #ffe6ec; box-shadow: 0 0 0 2px var(--accent); }
.cyc-none { font-size: 20px; color: var(--ink-soft); height: 22px; line-height: 22px; }
.cyc-drop { display: inline-block; width: 1em; height: 1em; font-size: 14px; background: #ff8a9e; border: 2px solid var(--ink); border-radius: 50% 0 50% 50%; transform: rotate(-45deg) scale(.8); box-sizing: content-box; }
.cyc-drop.l1 { font-size: 10px; opacity: .65; }
.cyc-drop.l2 { font-size: 14px; opacity: .8; }
.cyc-drop.l3 { font-size: 18px; }
.cyc-drop.l4 { font-size: 22px; background: #e8486a; }
.cyc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cyc-chip { all: unset; box-sizing: border-box; cursor: pointer; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 14px; font-weight: 900; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.cyc-chip.on { background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #fff; border-color: var(--ink); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.cyc-chip:active { transform: scale(.94); }
