@font-face {
  font-family: 'Fishman LureSim SC';
  src: url('assets/cjk-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+80-FFFF;
}
@font-face {
  font-family: 'Fishman LureSim SC';
  src: url('assets/cjk-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+80-FFFF;
}
body {
  font-family: 'Fishman LureSim SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}
.app-shell {
  max-width: 440px;
}
.hero {
  position: relative;
  margin: 14px 10px 14px;
}
.hero h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 6px 0 4px;
}
.hero > p:last-of-type {
  font-size: 12px;
  color: #7c889a;
  margin: 0;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow > span {
  font: 400 10px/1.4 'Fishman LureSim SC', sans-serif;
  border-left: 1px solid #b9c3cf;
  padding-left: 8px;
  color: #6e7b8c;
}
.is-embedded .topbar,
.is-embedded .hero {
  display: none;
}
.sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 2px 10px;
}
.best-badge {
  font-size: 11px;
  color: #5c6b7c;
  background: #e4eaf3;
  padding: 5px 10px;
  border-radius: 999px;
}
.sim-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.recast-top {
  font-size: 11px;
  font-weight: 700;
  color: #314050;
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 999px;
  padding: 6px 11px;
  min-height: 32px;
}
.embedded-help {
  display: none;
  width: 36px;
  height: 36px;
}
.is-embedded .embedded-help {
  display: inline-flex;
}
.lure-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.lure-tab {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 8px 4px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}
.lure-tab strong {
  font-size: 13px;
  line-height: 1.2;
  color: #162028;
}
.lure-tab small {
  font-size: 10px;
  line-height: 1.2;
  color: #7d8999;
}
.lure-tab[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
}
.lure-tab[aria-pressed='true'] strong {
  color: var(--lime);
}
.lure-tab[aria-pressed='true'] small {
  color: #b7c2cc;
}
.stage-card {
  background: #fff;
  border-radius: 17px;
  padding: 12px;
  margin-bottom: 12px;
}
.cue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.cue-text {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1a242c;
  min-width: 0;
}
.layer-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #4f6428;
  background: #eef6dc;
  border-radius: 6px;
  padding: 3px 7px;
}
.canvas-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dce5ee;
  background: #f5f8fc;
}
#simCanvas {
  display: block;
  width: 100%;
  height: 205px;
}
.readout-overlay {
  position: absolute;
  top: 7px;
  right: 8px;
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #465768;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 7px;
  padding: 3px 8px;
  pointer-events: none;
}
.readout-overlay strong {
  font: italic 800 12px Barlow, sans-serif;
  color: #101920;
  margin-left: 2px;
}
.hint-bar {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f3f6fa;
  font-size: 12px;
  line-height: 1.5;
  color: #4d5b6c;
}
.hint-bar.is-good {
  background: #f1f7e4;
  color: #42591e;
}
.hint-bar.is-warn {
  background: #fff2ea;
  color: #9b3a17;
}
.hint-bar.is-bite {
  background: #07080c;
  color: #c6ff3d;
  font-weight: 700;
}
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}
.ctrl-btn {
  min-height: 58px;
  border-radius: 13px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  border: 1px solid #dce3ed;
  background: #f2f5f9;
  color: #121c24;
  transition: transform 0.08s ease;
}
.ctrl-btn strong {
  font-size: 14px;
  font-weight: 800;
}
.ctrl-btn small {
  font-size: 10px;
  color: #6f7c8d;
}
.ctrl-btn.is-pressed,
.ctrl-btn:active:not(:disabled) {
  transform: scale(0.98);
  background: #e1e8f2;
}
.ctrl-btn.is-hookset {
  background: var(--ink);
  border-color: var(--ink);
}
.ctrl-btn.is-hookset strong {
  color: var(--lime);
}
.ctrl-btn.is-hookset small {
  color: #d6e4b8;
}
.ctrl-btn:disabled {
  opacity: 0.45;
}
.summary-card {
  background: #fff;
  border-radius: 17px;
  padding: 16px 14px;
  margin-bottom: 12px;
}
.summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.summary-top h3 {
  margin: 0;
  font-size: 18px;
  color: #0e161d;
}
.summary-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
}
.summary-badge.is-win {
  background: #eef6dc;
  color: #3e5913;
}
.summary-badge.is-warn {
  background: #fff1eb;
  color: #9c3818;
}
.summary-badge.is-neutral {
  background: #eff3f8;
  color: #546273;
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.metric-box {
  background: #f4f7fb;
  border-radius: 11px;
  padding: 10px 8px;
  text-align: center;
}
.metric-box span {
  display: block;
  font-size: 10px;
  color: #778495;
}
.metric-box strong {
  display: block;
  margin-top: 3px;
  font: italic 800 22px/1.1 Barlow, sans-serif;
  color: #101920;
}
.summary-advice {
  margin: 0 0 13px;
  font-size: 12px;
  line-height: 1.7;
  color: #566374;
}
.primary-button {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.guide-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #566b37;
}
.guide-link img {
  width: 15px;
  height: 15px;
}
footer {
  text-align: center;
  padding: 6px 10px 14px;
  color: #8895a5;
  font-size: 10px;
  line-height: 1.7;
}
footer .text-button {
  font-size: 10px;
  color: #8f9ba9;
  min-height: 36px;
  margin: 0 auto;
}
dialog {
  max-width: min(360px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 20px;
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(20, 32, 50, 0.45);
}
dialog h2 {
  font-size: 20px;
  margin: 0 0 10px;
}
dialog p {
  font-size: 13px;
  line-height: 1.75;
  color: #637080;
}
@media (max-width: 350px) {
  .lure-tab strong {
    font-size: 12px;
  }
  .lure-tab small {
    font-size: 9px;
  }
  #simCanvas {
    height: 182px;
  }
  .ctrl-btn {
    min-height: 52px;
  }
  .ctrl-btn strong {
    font-size: 13px;
  }
}
