:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --text: #17231c;
  --muted: #667269;
  --line: #d7dfd8;
  --brand: #176b4c;
  --brand-dark: #0f4f38;
  --brand-soft: #dcefe5;
  --accent: #f2b84b;
  --danger: #a33737;
  --success: #12603f;
  --shadow: 0 18px 45px rgba(23, 35, 28, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.65;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(242, 184, 75, 0.75);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 223, 216, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--brand);
  font-size: 24px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
}

.prototype-badge {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 184, 75, 0.2), transparent 26%),
    linear-gradient(145deg, #edf6ef 0%, #f8faf7 60%, #f4f0df 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 5.5vw, 70px);
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.primary-link,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 107, 76, 0.18);
}

.primary-link:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.hero-card {
  min-height: 300px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-card p {
  margin: 36px 0 2px;
  color: var(--muted);
}

.hero-card strong {
  font-size: 46px;
  letter-spacing: -0.04em;
}

.mini-scale {
  height: 112px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  border-bottom: 8px solid var(--text);
}

.mini-scale span {
  display: block;
  height: 38px;
  border-left: 3px solid var(--text);
}

.mini-scale span:nth-child(5n + 1) {
  height: 78px;
}

.category-section,
.roadmap-section {
  padding: 76px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-card {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(23, 35, 28, 0.04);
}

.active-card {
  border-color: rgba(23, 107, 76, 0.35);
  background: linear-gradient(155deg, #ffffff 0%, #edf7f1 100%);
}

.category-icon {
  font-size: 32px;
}

.category-card h3 {
  margin: 18px 0 6px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.status-label {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.status-label.muted {
  color: var(--muted);
  background: #edf0ed;
}

.practice-section {
  padding: 78px 0 88px;
  background: #17231c;
}

.practice-section .eyebrow {
  color: #a9d7c1;
}

.practice-section h2 {
  color: #fff;
}

.practice-heading {
  align-items: center;
}

.best-score {
  min-width: 118px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: #fff;
  text-align: right;
}

.best-score span,
.best-score strong {
  display: block;
}

.best-score span {
  color: #b9c4bd;
  font-size: 11px;
}

.best-score strong {
  margin-top: 2px;
  font-size: 18px;
}

.game-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
}

.control-panel,
.game-card {
  border-radius: var(--radius-lg);
}

.control-panel {
  padding: 22px;
  color: #fff;
  background: #223229;
}

.control-block + .control-block {
  margin-top: 26px;
}

.control-block h3 {
  margin: 0 0 10px;
  color: #d9e4dd;
  font-size: 13px;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: #142019;
}

.instrument-control {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.instrument-control .segment {
  min-height: 48px;
  padding-inline: 6px;
  line-height: 1.25;
}

.instrument-control
  [data-instrument="analog-scale"] {
  grid-column: 1 / -1;
}

.segment,
.difficulty-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.segment {
  min-height: 40px;
  border-radius: 10px;
  color: #bdc8c1;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.segment.is-active {
  color: var(--text);
  background: #fff;
}

.difficulty-list {
  display: grid;
  gap: 9px;
}

.difficulty-button {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  background: transparent;
  text-align: left;
}

.difficulty-button strong,
.difficulty-button span {
  display: block;
}

.difficulty-button span {
  margin-top: 2px;
  color: #aebbb3;
  font-size: 11px;
}

.difficulty-button.is-active {
  border-color: var(--accent);
  background: rgba(242, 184, 75, 0.12);
}

.challenge-status {
  margin-top: 28px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebbb3;
  font-size: 12px;
}

.challenge-status strong {
  color: #fff;
  font-size: 15px;
}

.game-card {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-card-header {
  padding: 26px 28px 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.instrument-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 800;
}

.game-card-header h3 {
  margin: 0;
  font-size: clamp(21px, 3vw, 29px);
}

.text-button {
  padding: 8px 0;
  color: var(--brand);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.instrument-hint {
  margin: 0 28px 12px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 107, 76, 0.2);
  border-radius: 12px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: pre-line;
}

.ruler-stage {
  margin: 0 28px;
  padding: 24px 18px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfaf5;
}

.instrument-stage {
  display: grid;
  place-items: center;
}

.instrument-svg {
  display: block;
  width: 100%;
  height: auto;
}

.instrument-stage[data-current-instrument="ruler"] .instrument-svg {
  max-width: 100%;
  aspect-ratio: 900 / 260;
}

.instrument-stage[data-current-instrument="thermometer"] {
  padding-top: 24px;
  padding-bottom: 24px;
}

.instrument-stage[data-current-instrument="thermometer"] .instrument-svg {
  width: min(100%, 520px);
  max-width: 520px;
  aspect-ratio: 520 / 620;
  margin-inline: auto;
}

.instrument-stage[data-current-instrument="measuring-cup"] {
  padding-top: 24px;
  padding-bottom: 24px;
}

.instrument-stage[data-current-instrument="measuring-cup"] .instrument-svg {
  width: min(100%, 520px);
  max-width: 520px;
  aspect-ratio: 520 / 620;
  margin-inline: auto;
}

.instrument-stage[data-current-instrument="graduated-cylinder"] {
  padding-top: 24px;
  padding-bottom: 24px;
}

.instrument-stage[data-current-instrument="graduated-cylinder"] .instrument-svg {
  width: min(100%, 520px);
  max-width: 520px;
  aspect-ratio: 520 / 620;
  margin-inline: auto;
}

.instrument-stage[data-current-instrument="analog-scale"] {
  padding-top: 24px;
  padding-bottom: 24px;
}

.instrument-stage[data-current-instrument="analog-scale"] .instrument-svg {
  width: min(100%, 620px);
  max-width: 620px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.hero-grid > *,
.category-grid > *,
.game-layout > * {
  min-width: 0;
}

.game-card,
.control-panel {
  min-width: 0;
  max-width: 100%;
}

.answer-form {
  padding: 24px 28px 28px;
}

.answer-form > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.answer-row input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #b9c4bc;
  border-radius: 14px;
  background: #fff;
  font-size: 20px;
  font-weight: 700;
}

.unit-label {
  color: var(--muted);
  font-weight: 800;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  padding: 0 22px;
}

.primary-button {
  color: #fff;
  background: var(--brand);
}

.secondary-button {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.input-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.feedback {
  margin: 0 28px 28px;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.feedback.is-correct {
  border: 1px solid rgba(18, 96, 63, 0.2);
}

.feedback.is-wrong {
  border: 1px solid rgba(163, 55, 55, 0.2);
  background: #fbefef;
}

.feedback > strong {
  display: block;
  font-size: 19px;
}

.feedback p {
  margin: 5px 0 12px;
}

.explanation {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 14px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.roadmap-grid div {
  min-height: 150px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.roadmap-grid span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.roadmap-grid strong {
  margin-top: auto;
  font-size: 17px;
}

.roadmap-grid small {
  color: var(--muted);
}

.site-footer {
  padding: 36px 0;
  color: #c7d1ca;
  background: #101812;
}

.site-footer p {
  margin: 4px 0 0;
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-grid,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 230px;
    transform: none;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .control-panel {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 18px;
  }

  .control-block + .control-block {
    margin-top: 0;
  }

  .challenge-status {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 22px), var(--shell));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .prototype-badge {
    max-width: 112px;
    padding: 5px 8px;
    text-align: center;
    line-height: 1.25;
  }

  .hero {
    padding: 52px 0 46px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-card {
    padding: 24px;
  }

  .category-section,
  .roadmap-section {
    padding: 56px 0;
  }

  .practice-section {
    padding: 58px 0 64px;
  }

  .practice-heading {
    align-items: flex-end;
  }

  .best-score {
    min-width: 96px;
    padding: 10px 12px;
  }

  .control-panel {
    grid-template-columns: 1fr;
  }

  .control-block + .control-block {
    margin-top: 4px;
  }

  .game-card-header,
  .answer-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .game-card-header {
    flex-direction: column;
  }

  .instrument-hint {
    margin-inline: 18px;
  }
    
  .ruler-stage {
    margin-inline: 18px;
    padding-inline: 10px;
  }

  #ruler-svg {
    min-width: 0;
  }

  .answer-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .feedback {
    margin-inline: 18px;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-grid div {
    min-height: 115px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Game-first layout */
.header-inner {
  min-height: 60px;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 21px;
}

.prototype-badge {
  padding: 5px 10px;
}

.hero {
  padding: 24px 0 26px;
  background: linear-gradient(145deg, #edf6ef 0%, #f8faf7 68%, #f4f0df 100%);
}

.hero-grid {
  display: block;
}

.hero h1 {
  max-width: none;
  font-size: clamp(32px, 4vw, 44px);
}

.hero-copy {
  max-width: 720px;
  margin: 8px 0 0;
  font-size: 16px;
}

.category-section,
.roadmap-section {
  padding: 42px 0;
}

.category-grid {
  gap: 14px;
}

.category-card {
  min-height: 132px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.category-icon {
  font-size: 24px;
}

.category-card h3 {
  margin: 8px 0 4px;
  font-size: 18px;
}

.category-card p {
  margin: 0;
  font-size: 13px;
}

.practice-section {
  padding: 32px 0 42px;
  color: var(--text);
  background: var(--bg);
}

.practice-section .eyebrow {
  color: var(--brand);
}

.practice-section h2 {
  color: var(--text);
  font-size: clamp(28px, 3.4vw, 34px);
}

.practice-heading {
  align-items: end;
  margin-bottom: 18px;
}

.game-layout {
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  gap: 22px;
}

.control-panel {
  padding: 20px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(23, 35, 28, 0.05);
}

.control-block + .control-block {
  margin-top: 20px;
}

.control-block h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.segmented-control {
  gap: 4px;
  padding: 4px;
  background: var(--surface-soft);
}

.instrument-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.instrument-control [data-instrument="analog-scale"] {
  grid-column: auto;
}

.instrument-control .segment {
  min-height: 44px;
  padding-inline: 4px;
  font-size: 12px;
}

.segment {
  color: var(--muted);
}

.segment.is-active {
  color: #fff;
  background: var(--brand);
}

.difficulty-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.difficulty-button {
  min-height: 64px;
  padding: 10px 8px;
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
  text-align: center;
}

.difficulty-button strong {
  font-size: 12px;
}

.difficulty-button span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.difficulty-button.is-active {
  border-color: rgba(23, 107, 76, 0.45);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.challenge-status {
  margin-top: 20px;
  padding: 14px 0 0;
  border-top-color: var(--line);
  color: var(--muted);
}

.challenge-status strong {
  color: var(--text);
}

.control-panel .best-score {
  min-width: 0;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-soft);
  text-align: left;
}

.control-panel .best-score span {
  color: var(--muted);
}

.control-panel .best-score strong {
  color: var(--text);
}

.game-card-header {
  padding: 22px 24px 14px;
}

.game-card-header h3 {
  font-size: clamp(20px, 2.4vw, 28px);
}

.ruler-stage {
  margin-inline: 24px;
  padding: 18px 14px 10px;
}

.answer-form {
  padding: 20px 24px 24px;
}

.roadmap-section {
  padding-bottom: 46px;
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roadmap-tags span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  padding: 22px 0;
}

.site-footer p {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .game-layout {
    gap: 16px;
  }

  .control-panel {
    display: block;
  }

  .control-block + .control-block {
    margin-top: 16px;
  }

  .challenge-status {
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .game-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .control-panel,
  .game-card {
    width: 100%;
    min-width: 0;
  }

  .control-panel {
    align-self: start;
    height: auto;
  }

  .game-card {
    grid-column: 1;
  }

  .header-inner {
    min-height: 56px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .brand strong {
    font-size: 17px;
  }

  .prototype-badge {
    padding: 4px 9px;
    font-size: 11px;
  }

  .hero {
    padding: 24px 0 28px;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 34px);
  }

  .hero-copy {
    max-width: 34em;
    font-size: 14px;
    line-height: 1.55;
  }

  .practice-section {
    padding: 24px 0 32px;
  }

  .practice-heading {
    margin-bottom: 12px;
  }

  .practice-section h2 {
    font-size: 28px;
  }

  .control-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .control-block + .control-block {
    margin-top: 12px;
  }

  .instrument-control {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .instrument-control::-webkit-scrollbar {
    display: none;
  }

  .instrument-control .segment {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 13px;
  }

  .segmented-control:not(.instrument-control) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .difficulty-list {
    gap: 5px;
  }

  .difficulty-button {
    min-height: 48px;
    padding: 8px 3px;
  }

  .difficulty-button span {
    display: none;
  }

  .control-panel .best-score {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
  }

  .control-panel .best-score span,
  .control-panel .best-score strong {
    display: inline;
  }

  .control-panel .best-score strong {
    font-size: 15px;
  }

  .game-card-header {
    padding: 16px 16px 12px;
    gap: 8px;
  }

  .game-card-header h3 {
    font-size: 20px;
  }

  .ruler-stage {
    margin-inline: 12px;
    padding: 14px 10px 8px;
    border-radius: 16px;
  }

  .instrument-hint {
    margin-inline: 16px;
  }

  .answer-form {
    padding: 16px 16px 18px;
  }

  .feedback {
    margin-inline: 16px;
  }

  .category-section,
  .roadmap-section {
    padding: 30px 0;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .category-card {
    min-height: 132px;
    padding: 12px 10px;
    border-radius: 14px;
  }

  .category-icon {
    font-size: 20px;
  }

  .category-card h3 {
    margin-top: 6px;
    font-size: 14px;
    white-space: nowrap;
  }

  .category-card p {
    font-size: 11px;
    line-height: 1.45;
  }

  .roadmap-tags {
    gap: 7px;
  }

  .roadmap-tags span {
    padding: 7px 11px;
    font-size: 12px;
  }

  .site-footer {
    padding: 18px 0;
  }
}

/* HAKARU CALIPER BETA2 VISUAL */
.instrument-stage[data-current-instrument="caliper"] {
  padding-top: 10px;
  padding-bottom: 10px;
}

.instrument-stage[data-current-instrument="caliper"] .instrument-svg {
  width: min(100%, 1080px);
  max-width: 1080px;
  aspect-ratio: 1200 / 430;
  margin-inline: auto;
}

/* HAKARU PHASE1 COMMON UI START */

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.renqua-home-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.renqua-home-link:focus-visible,
.brand:focus-visible,
.renqua-footer-link:focus-visible,
.instrument-picker-toggle:focus-visible {
  outline: 3px solid rgba(23, 107, 76, 0.28);
  outline-offset: 3px;
}

.brand {
  gap: 0;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

.hero {
  padding: 18px 0 16px;
}

.hero-grid {
  display: block;
}

.hero .eyebrow {
  margin-bottom: 4px;
}

.hero h1 {
  max-width: none;
  font-size: clamp(30px, 4vw, 44px);
}

.hero-copy {
  max-width: 720px;
  margin: 7px 0 0;
  color: #53665d;
  font-size: 15px;
  line-height: 1.6;
}

.practice-section {
  padding: 24px 0 34px;
}

.practice-heading {
  margin-bottom: 14px;
}

.practice-section h2 {
  line-height: 1.3;
}

.game-layout {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 16px;
}

.control-panel {
  padding: 16px;
}

.control-block + .control-block {
  margin-top: 16px;
}

.control-block h3 {
  margin-bottom: 8px;
}

.instrument-control {
  gap: 5px;
}

.instrument-control .segment {
  min-height: 43px;
}

.control-panel,
.game-card {
  border: 1px solid rgba(27, 68, 51, 0.12);
  box-shadow: 0 10px 28px rgba(34, 58, 47, 0.08);
}

.control-panel .best-score {
  margin-top: 14px;
  padding: 10px 12px;
}

.game-card-header {
  padding-top: 20px;
  padding-bottom: 12px;
}

.answer-form {
  padding-top: 18px;
}

.input-help,
.difficulty-button span,
.brand small {
  color: #596b62;
}

.instrument-picker-toggle {
  display: none;
}

.site-footer {
  padding: 16px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 2px 0 0;
}

.renqua-footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  text-decoration: none;
}

.renqua-footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 15px 0 14px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero-copy {
    margin-top: 5px;
    font-size: 14px;
  }

  .practice-section {
    padding: 17px 0 24px;
  }

  .practice-heading {
    margin-bottom: 10px;
  }

  .control-panel {
    padding: 12px;
  }

  .instrument-picker-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 10px;
    min-height: 54px;
    padding: 8px 11px;
    border: 1px solid rgba(23, 107, 76, 0.18);
    border-radius: 12px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    text-align: left;
    cursor: pointer;
  }

  .instrument-picker-kicker {
    grid-column: 1;
    color: #61736a;
    font-size: 10px;
    font-weight: 700;
  }

  .instrument-picker-toggle strong {
    grid-column: 1;
    font-size: 15px;
  }

  .instrument-picker-action {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
  }

  .instrument-picker .desktop-control-title {
    display: none;
  }

  .instrument-picker .instrument-control {
    display: none;
    margin-top: 8px;
  }

  .instrument-picker.is-open .instrument-control {
    display: grid;
  }

  .instrument-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 3px;
    overflow: visible;
  }

  .instrument-control .segment {
    min-width: 0;
    min-height: 44px;
    padding: 7px 5px;
    white-space: normal;
  }

  .control-block + .control-block {
    margin-top: 12px;
  }

  .control-panel .best-score {
    margin-top: 10px;
    padding: 8px 10px;
  }

  .game-card-header {
    padding-top: 15px;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

/* HAKARU PHASE1 COMMON UI END */

/* HAKARU VERTICAL COMPACT START */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.practice-section {
  padding-top: 14px;
  padding-bottom: 20px;
}

.practice-heading {
  display: none;
}

.game-layout {
  gap: 14px;
}

/* ヒントを独立カードではなく短い注記にする */
.instrument-hint {
  display: block;
  width: auto;
  margin: 0 22px 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--brand-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

/* 器具表示周辺の余白を圧縮 */
.instrument-stage {
  margin-right: 22px;
  margin-left: 22px;
  padding-top: 10px;
  padding-bottom: 8px;
}

/* アナログばかりをさらに小さくする */
.instrument-stage[
  data-current-instrument="analog-scale"
] .instrument-svg {
  width: min(100%, 420px);
  max-width: 420px;
}

/* 回答部分をコンパクト化 */
.answer-form {
  padding: 11px 20px 15px;
}

.answer-form > label {
  margin-bottom: 5px;
}

.answer-row {
  gap: 8px;
}

.answer-row input {
  min-height: 46px;
}

.primary-button {
  min-height: 46px;
}

/* 左側設定の縦余白を抑える */
.control-panel {
  padding: 13px;
}

.control-block + .control-block {
  margin-top: 11px;
}

.control-block h3 {
  margin-bottom: 6px;
}

.control-panel .best-score {
  margin-top: 9px;
}

/* 問題カード上部も圧縮 */
.game-card-header {
  padding: 13px 20px 7px;
}

.game-card-header h3 {
  line-height: 1.35;
}

@media (max-width: 620px) {
  .practice-section {
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .control-panel {
    padding: 9px 10px;
  }

  /* 器具選択は選択中の名称と変更ボタンだけ表示 */
  .instrument-picker-toggle {
    min-height: 43px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 6px 10px;
  }

  .instrument-picker-kicker {
    display: none;
  }

  .instrument-picker-toggle strong {
    grid-column: 1;
    grid-row: 1;
    font-size: 14px;
  }

  .instrument-picker-action {
    grid-column: 2;
    grid-row: 1;
    font-size: 11px;
  }

  .instrument-picker .instrument-control {
    margin-top: 6px;
  }

  /*
   * モード・難易度は、
   * 見出しとボタンを横並びにする。
   */
  .control-panel
  .control-block:not(.instrument-picker) {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
  }

  .control-panel
  .control-block:not(.instrument-picker)
  h3 {
    margin: 0;
    font-size: 11px;
  }

  .control-block + .control-block {
    margin-top: 8px;
  }

  .segmented-control:not(.instrument-control) {
    min-height: 42px;
  }

  .difficulty-list {
    gap: 5px;
  }

  .difficulty-button {
    min-height: 43px;
    padding: 5px 2px;
  }

  .difficulty-button strong {
    font-size: 12px;
  }

  .difficulty-button span {
    font-size: 9px;
  }

  .control-panel .best-score {
    min-height: 34px;
    margin-top: 7px;
    padding: 5px 9px;
  }

  .game-card-header {
    padding: 11px 14px 5px;
  }

  /* 器具名の小さなラベルもスマホでは省略 */
  .instrument-label {
    display: none;
  }

  .game-card-header h3 {
    font-size: 18px;
  }

  .text-button {
    font-size: 11px;
  }

  .instrument-hint {
    margin: 0 14px 3px;
    font-size: 11px;
  }

  .instrument-stage {
    margin-right: 12px;
    margin-left: 12px;
    padding-top: 6px;
    padding-bottom: 5px;
  }

  .instrument-stage[
    data-current-instrument="analog-scale"
  ] .instrument-svg {
    width: min(100%, 225px);
    max-width: 225px;
  }

  .answer-form {
    padding: 9px 14px 12px;
  }

  .answer-form > label {
    margin-bottom: 4px;
  }

  /*
   * 入力欄・単位・答え合わせを
   * スマホでも同じ1段へ置く。
   */
  .answer-row {
    grid-template-columns:
      minmax(0, 1fr)
      auto
      auto;
    gap: 6px;
    align-items: center;
  }

  .answer-row input {
    min-width: 0;
    min-height: 44px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 17px;
  }

  .answer-row .unit-label {
    font-size: 12px;
  }

  .answer-row .primary-button {
    grid-column: auto;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  /*
   * 入力方法の説明は視覚上非表示。
   * DOMには残す。
   */
  .input-help {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .feedback {
    margin-right: 14px;
    margin-left: 14px;
    margin-bottom: 14px;
    padding: 13px;
  }
}

/* HAKARU VERTICAL COMPACT END */

/* HAKARU INSTRUMENT DISPLAY TUNING START */

/*
 * 縦長・正方形の器具は、器具そのものに合わせて
 * 表示上限を設定し、周囲の空白と縦スクロールを減らす。
 */
.instrument-stage[
  data-current-instrument="thermometer"
],
.instrument-stage[
  data-current-instrument="measuring-cup"
],
.instrument-stage[
  data-current-instrument="graduated-cylinder"
],
.instrument-stage[
  data-current-instrument="analog-scale"
] {
  min-height: 0;
  padding-top: 4px;
  padding-bottom: 4px;
}

/* 棒温度計 */
.instrument-stage[
  data-current-instrument="thermometer"
] .instrument-svg {
  width: auto;
  max-width: 100%;
  height: min(44vh, 400px);
  max-height: 400px;
  margin-inline: auto;
}

/* 計量カップ */
.instrument-stage[
  data-current-instrument="measuring-cup"
] .instrument-svg {
  width: auto;
  max-width: 100%;
  height: min(39vh, 340px);
  max-height: 340px;
  margin-inline: auto;
}

/* メスシリンダー */
.instrument-stage[
  data-current-instrument="graduated-cylinder"
] .instrument-svg {
  width: auto;
  max-width: 100%;
  height: min(43vh, 390px);
  max-height: 390px;
  margin-inline: auto;
}

/* アナログばかり */
.instrument-stage[
  data-current-instrument="analog-scale"
] .instrument-svg {
  width: min(100%, 330px);
  max-width: 330px;
  height: auto;
  max-height: 350px;
  margin-inline: auto;
}

/* ノギスだけ拡大可能であることを表示 */
.instrument-stage[
  data-current-instrument="caliper"
] {
  position: relative;
}

.instrument-stage[
  data-current-instrument="caliper"
]::after {
  content: "クリック / タップで拡大";
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid
    rgba(23, 107, 76, 0.18);
  border-radius: 999px;
  color: var(--brand-dark);
  background:
    rgba(255, 255, 255, 0.94);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}

@media (max-width: 620px) {
  .instrument-stage[
    data-current-instrument="thermometer"
  ] .instrument-svg {
    width: auto;
    height: 230px;
    max-height: 230px;
  }

  .instrument-stage[
    data-current-instrument="measuring-cup"
  ] .instrument-svg {
    width: auto;
    height: 200px;
    max-height: 200px;
  }

  .instrument-stage[
    data-current-instrument="graduated-cylinder"
  ] .instrument-svg {
    width: auto;
    height: 240px;
    max-height: 240px;
  }

  .instrument-stage[
    data-current-instrument="analog-scale"
  ] .instrument-svg {
    width: min(100%, 205px);
    max-width: 205px;
    height: auto;
    max-height: 215px;
  }

  .instrument-stage[
    data-current-instrument="caliper"
  ]::after {
    content: "タップで拡大";
    right: 5px;
    bottom: 4px;
    padding: 3px 6px;
    font-size: 9px;
  }
}

/* HAKARU INSTRUMENT DISPLAY TUNING END */

/* HAKARU COMMON INSTRUMENT ZOOM START */

.instrument-stage {
  position: relative;
}

.instrument-stage .instrument-svg {
  cursor: zoom-in;
}

.instrument-zoom-button {
  position: absolute;
  right: 7px;
  bottom: 6px;
  z-index: 5;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid
    rgba(23, 107, 76, 0.2);
  border-radius: 999px;
  color: var(--brand-dark);
  background:
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 3px 10px
    rgba(26, 55, 42, 0.08);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.instrument-zoom-button:hover {
  border-color:
    rgba(23, 107, 76, 0.4);
  background: #ffffff;
}

.instrument-zoom-button:focus-visible {
  outline:
    3px solid
    rgba(23, 107, 76, 0.25);
  outline-offset: 2px;
}

/* 旧ノギス案内との二重表示を防ぐ */
.instrument-stage[
  data-current-instrument="caliper"
]::after {
  display: none !important;
  content: none !important;
}

body.instrument-zoom-open {
  overflow: hidden;
}

.instrument-zoom-modal[hidden] {
  display: none;
}

.instrument-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.instrument-zoom-backdrop {
  position: absolute;
  inset: 0;
  background:
    rgba(13, 31, 23, 0.68);
  backdrop-filter: blur(2px);
}

.instrument-zoom-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows:
    auto minmax(0, 1fr) auto;
  width: min(94vw, 1040px);
  height: min(90vh, 760px);
  overflow: hidden;
  border:
    1px solid
    rgba(23, 107, 76, 0.2);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 24px 70px
    rgba(0, 0, 0, 0.28);
}

.instrument-zoom-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px 12px;
  border-bottom:
    1px solid
    rgba(27, 68, 51, 0.12);
}

.instrument-zoom-header strong {
  display: block;
  font-size: 17px;
}

.instrument-zoom-header p {
  margin: 3px 0 0;
  color: #65746d;
  font-size: 12px;
}

.instrument-zoom-close,
.instrument-zoom-toolbar button {
  border:
    1px solid
    rgba(23, 107, 76, 0.2);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.instrument-zoom-close {
  min-height: 38px;
  padding: 7px 14px;
}

.instrument-zoom-viewport {
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  background:
    linear-gradient(
      135deg,
      #f6f8f6,
      #eef4f0
    );
  scrollbar-width: thin;
}

.instrument-zoom-content {
  position: relative;
  flex: 0 0 auto;
  margin: 9px;
}

.instrument-zoom-svg {
  display: block;
  max-width: none;
  max-height: none;
}

.instrument-zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 55px;
  padding: 9px 14px;
  border-top:
    1px solid
    rgba(27, 68, 51, 0.12);
  background: #ffffff;
}

.instrument-zoom-toolbar button {
  min-width: 44px;
  min-height: 36px;
  padding: 5px 12px;
}

.instrument-zoom-value {
  min-width: 58px;
  color: #52645b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 620px) {
  .instrument-zoom-button {
    right: 5px;
    bottom: 4px;
    min-height: 27px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .instrument-zoom-modal {
    padding: 7px;
  }

  .instrument-zoom-dialog {
    width: 100%;
    height: min(94vh, 760px);
    border-radius: 14px;
  }

  .instrument-zoom-header {
    padding: 12px 12px 9px;
  }

  .instrument-zoom-header strong {
    font-size: 15px;
  }

  .instrument-zoom-header p {
    font-size: 10px;
  }

  .instrument-zoom-close {
    min-height: 34px;
    padding: 5px 11px;
    font-size: 12px;
  }

  .instrument-zoom-content {
    margin: 6px;
  }

  .instrument-zoom-toolbar {
    min-height: 51px;
    gap: 7px;
    padding: 7px 10px;
  }

  .instrument-zoom-toolbar button {
    min-width: 42px;
    min-height: 35px;
    padding: 4px 9px;
  }
}

/* HAKARU COMMON INSTRUMENT ZOOM END */

/* HAKARU PRIMARY TABS START */

.header-inner {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.lab-primary-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid
    rgba(23, 107, 76, 0.15);
  border-radius: 999px;
  background: #f1f6f3;
}

.lab-primary-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 13px;
  border-radius: 999px;
  color: #52645b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.lab-primary-tab:hover {
  color: var(--brand-dark);
  background:
    rgba(23, 107, 76, 0.07);
}

.lab-primary-tab.is-active {
  color: #ffffff;
  background: var(--brand);
}

.lab-primary-tab:focus-visible {
  outline: 3px solid
    rgba(23, 107, 76, 0.25);
  outline-offset: 2px;
}

.tab-short {
  display: none;
}

@media (max-width: 620px) {
  .header-inner {
    gap: 5px;
  }

  .header-brand-group {
    gap: 6px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 9px;
  }

  .lab-primary-tabs {
    gap: 2px;
    padding: 2px;
  }

  .lab-primary-tab {
    min-height: 29px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .tab-long {
    display: none;
  }

  .tab-short {
    display: inline;
  }

  .prototype-badge {
    padding-right: 7px;
    padding-left: 7px;
  }
}

/* HAKARU PRIMARY TABS END */

/* HAKARU EASY JAPANESE COMMON START */

.hakaru-easy-japanese ruby {
  ruby-align: center;
  ruby-position: over;
}

.hakaru-easy-japanese rt {
  color: #5d7066;
  font-size: 0.48em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.hakaru-easy-japanese
.lab-primary-tab ruby,
.hakaru-easy-japanese
[data-instrument] ruby,
.hakaru-easy-japanese
[data-guide-target] ruby {
  white-space: nowrap;
}

.hakaru-easy-japanese
.lab-primary-tab {
  line-height: 1.15;
}

.hakaru-easy-japanese
.lab-primary-tab rt {
  font-size: 0.43em;
}

.hakaru-easy-japanese
[data-instrument] rt,
.hakaru-easy-japanese
[data-guide-target] rt {
  font-size: 0.45em;
}

.hakaru-easy-japanese
.question-title rt,
.hakaru-easy-japanese
h1 rt,
.hakaru-easy-japanese
h2 rt {
  font-size: 0.43em;
}

@media (max-width: 620px) {
  .hakaru-easy-japanese
  .lab-primary-tab {
    min-height: 32px;
    padding-top: 7px;
    padding-bottom: 5px;
  }

  .hakaru-easy-japanese
  .lab-primary-tab rt {
    font-size: 0.4em;
  }

  .hakaru-easy-japanese
  [data-instrument],
  .hakaru-easy-japanese
  [data-guide-target] {
    line-height: 1.25;
  }
}

/* HAKARU EASY JAPANESE COMMON END */

/* HAKARU PHASE 2 INSTRUMENTS START */
.instrument-category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 8px;
}

.instrument-category-button {
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid rgba(36, 96, 76, 0.22);
  border-radius: 10px;
  background: #f4f8f3;
  color: #315c4c;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.instrument-category-button.is-active {
  border-color: #176b4c;
  background: #176b4c;
  color: #fff;
}

.instrument-category-button:focus-visible,
.phase2-instrument-svg:focus-visible {
  outline: 3px solid #e2a52b;
  outline-offset: 3px;
}

.instrument-control [hidden] {
  display: none !important;
}

.phase2-instrument-svg {
  display: block;
  width: 100%;
  min-height: 280px;
  overflow: visible;
}

.phase2-protractor,
.phase2-protractor-inner,
.phase2-baseline,
.phase2-meter-arc,
.phase2-kitchen-dial {
  fill: none;
  stroke: #2c6b56;
  stroke-width: 3;
}

.phase2-protractor-body {
  fill: #fffef8;
  stroke: #2c6b56;
  stroke-width: 2.4;
}
.phase2-protractor-inner-edge,
.phase2-protractor-base-edge {
  fill: none;
  stroke: #2c6b56;
  stroke-width: 1.8;
}
.phase2-protractor-tick {
  stroke: #315c4c;
  fill: none;
  stroke-linecap: round;
}
.phase2-protractor-tick-major { stroke-width: 1.8; }
.phase2-protractor-tick-medium { stroke-width: 1.35; }
.phase2-protractor-tick-minor { stroke-width: .75; }
.phase2-protractor-number {
  fill: #315c4c;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
}
.phase2-protractor-number-inner { fill: #176b4c; }
.phase2-protractor-base-ray {
  stroke: #315c4c;
  stroke-width: 3;
  stroke-linecap: round;
}
.phase2-protractor-target-ray {
  stroke: #d05b46;
  stroke-width: 4;
  stroke-linecap: round;
}
.phase2-protractor-angle-arc {
  fill: none;
  stroke: #d88a27;
  stroke-width: 3;
  stroke-linecap: round;
}
.phase2-protractor-center-hole {
  fill: #fff;
  stroke: #2c6b56;
  stroke-width: 2;
}
.phase2-protractor-vertex { fill: #d05b46; }
.phase2-protractor-base-label {
  fill: #315c4c;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
}

.phase2-protractor-inner { stroke-width: 1.5; opacity: .7; }
.phase2-tick,
.phase2-clock-tick,
.phase2-meter-tick,
.phase2-scale-tick { stroke: #315c4c; stroke-width: 2; }
.phase2-answer-ray,
.phase2-meter-needle,
.phase2-kitchen-needle,
.phase2-pointer { stroke: #d05b46; stroke-width: 4; stroke-linecap: round; }
.phase2-center,
.phase2-clock-center,
.phase2-meter-center,
.phase2-balance-center { fill: #d05b46; }
.phase2-label,
.phase2-scale-label,
.phase2-clock-number,
.phase2-caption,
.phase2-meter-range,
.phase2-micrometer-label,
.phase2-weight-label { fill: #315c4c; font-size: 12px; font-weight: 700; }
.phase2-clock-face { fill: #fffdf6; stroke: #2c6b56; stroke-width: 4; }
.phase2-hour-hand { stroke: #315c4c; stroke-width: 7; stroke-linecap: round; }
.phase2-minute-hand { stroke: #d05b46; stroke-width: 4; stroke-linecap: round; }
.phase2-spring-body,
.phase2-meter-body,
.phase2-kitchen-body { fill: #f4f8f3; stroke: #2c6b56; stroke-width: 3; }
.phase2-spring { fill: none; stroke: #d88a27; stroke-width: 5; }
.phase2-balance-post,
.phase2-balance-beam { stroke: #315c4c; stroke-width: 6; stroke-linecap: round; }
.phase2-pan { fill: #f1d8a4; stroke: #8a6338; stroke-width: 3; }
.phase2-pan-edge { stroke: #8a6338; stroke-width: 5; stroke-linecap: round; }
.phase2-weight { fill: #d88a27; stroke: #8a6338; stroke-width: 2; }
.phase2-meter-arc { stroke-width: 4; }
.phase2-meter-needle,
.phase2-kitchen-needle { stroke-width: 4; }
.phase2-micrometer-sleeve { fill: #dbece2; stroke: #2c6b56; stroke-width: 3; }
.phase2-micrometer-thimble { fill: #e6b85c; stroke: #8a6338; stroke-width: 3; }
.phase2-micrometer-reference { stroke: #d05b46; stroke-width: 3; }
.phase2-micrometer-spindle { stroke: #315c4c; stroke-width: 7; }
.phase2-kitchen-bowl { fill: #e6b85c; stroke: #8a6338; stroke-width: 3; }
@media (max-width: 620px) {
  .instrument-category-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instrument-category-button { min-height: 42px; font-size: 11px; }
  .phase2-instrument-svg { min-height: 220px; }
}
/* HAKARU PHASE 2 INSTRUMENTS END */
