.reference-page { --text: #10255c; --primary: #008b83; --primary-hover: #00776e; --muted: #6d8dbb; background: #fffdf6; }
.reference-page .site-header, .reference-page main, .reference-page .site-footer { width: min(1600px, calc(100% - 64px)); }
.reference-page .site-header { padding-block: 14px 22px; border: 0; flex-wrap: nowrap; gap: 32px; }
.reference-page .brand { display: flex; flex-direction: column; font-size: clamp(1.6rem, 2.65vw, 2.6rem); font-weight: 1000; line-height: 1.2; }
.reference-page .brand-spark { display: inline-block; color: #ffb122; font-size: 1.35em; vertical-align: middle; }
.reference-page .brand-tagline { font-size: .47em; font-weight: 750; letter-spacing: 0; color: #7398c8; }
.reference-page .main-nav { flex-wrap: nowrap; margin: 0 auto 0 10px; gap: clamp(18px, 3vw, 42px); font-size: 1.05rem; }
.reference-page .site-header > .button { min-width: 112px; min-height: 48px; border-radius: 17px; }
.reference-page .button.primary, .reference-formats > span { background: linear-gradient(#00a49c, #00817a); border-color: #4ebeb0; box-shadow: inset 0 1px 2px rgb(255 255 255 / 23%); }
.reference-page main { padding-block: 10px 24px; }
.reference-explanation .breadcrumbs { margin-bottom: 13px; font-size: 1rem; gap: 12px; font-weight: 750; }
.reference-explanation .breadcrumbs a { color: #7398c8; font-weight: 750; text-decoration: none; }
.reference-explanation .breadcrumbs span:last-child { color: #167c7b; }
.reference-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.reference-heading h1 { font-size: clamp(2rem, 3.75vw, 3.9rem); font-weight: 1000; line-height: 1.1; letter-spacing: -.045em; }
.reference-formats { display: flex; gap: 11px; flex-shrink: 0; align-items: stretch; }
.reference-formats > span, .reference-formats .button { min-height: 51px; border-radius: 15px; padding: 12px 18px; font-size: .9rem; font-weight: 850; white-space: nowrap; }
.reference-formats > span { display: flex; align-items: center; gap: 10px; color: white; }
.reference-formats > span > span { font-size: 1.4rem; line-height: 1; }
.reference-formats .button { color: var(--text); background: #fffefd; border: 2px solid #d4e9fa; }
.reference-steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 6px; margin: 0 0 12px; background: linear-gradient(90deg, #eaf6e8, #eaf4fd 60%, #f1f7fa); border-radius: 24px; }
.reference-steps li { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 55px; border-radius: 20px; font-size: 1.2rem; font-weight: 850; color: #7091c2; }
.reference-steps li[aria-current] { background: #d4ebd9; color: #13756f; }
.reference-step-symbol { font-size: 1.9rem; line-height: 1; }
.reference-steps li:first-child .reference-step-symbol { display: grid; place-items: center; width: 34px; height: 34px; background: linear-gradient(#00a297, #00796f); color: white; border-radius: 50%; font-size: 1.1rem; padding-left: 3px; }
.reference-scene { --scene-height: clamp(480px, 38vw, 610px); height: var(--scene-height); position: relative; display: grid; grid-template-columns: 23% minmax(0, 1fr); gap: 12px; padding: 24px 25px 18px 15px; border-radius: 28px; background: radial-gradient(ellipse at 50% 45%, #ecfaff 0, #d9f0ff 50%, #c7e8fc 100%); overflow: hidden; isolation: isolate; }
.reference-scene .reference-helper { position: static; min-height: 0; z-index: 2; }
.reference-scene .reference-helper .helper-copy { position: static; padding: 0; border: 0; box-shadow: none; background: none; }
.reference-helper .helper-copy::after { display: none; }
.reference-scene .reference-helper strong { font-size: .72rem; margin: 0 0 6px 16px; color: #40868e; }
.reference-scene .reference-helper .helper-replica { position: relative; background: #f6feff; border: 1px solid #e2f7fc; border-radius: 26px; box-shadow: 0 5px 16px rgb(29 123 158 / 12%); padding: 17px 18px; min-height: 4em; font-weight: 1000; line-height: 1.25; color: #10255c; font-size: clamp(1.05rem, 1.5vw, 1.6rem); }
.reference-helper .helper-replica::after { content: ''; position: absolute; left: 20%; bottom: -14px; width: 20px; height: 22px; border-radius: 0 0 0 15px; background: #f6feff; transform: skewY(25deg); }
.reference-helper .speech-visible { inset: 17px 18px; }
.reference-scene .reference-helper .helper-fullbody { margin: 10px 0 0; width: 100%; min-height: 0; flex: 1; height: auto; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 8px 6px rgb(36 111 132 / 12%)); }
.reference-scene .reference-helper .helper-speech-controls { position: absolute; left: 70%; right: 5%; bottom: 43px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 58px 44px; gap: 6px; margin: 0; }
.reference-helper .helper-speech-controls .button { min-height: 44px; font-size: .72rem; padding: 7px 8px; border-radius: 12px; }
.reference-helper .helper-speech-controls .primary { grid-column: 1 / -1; grid-row: auto; background: #f8ffff; color: #177f7d; border: 2px solid #55a5a7; font-size: clamp(1rem, 1.6vw, 1.45rem); }
.reference-helper .helper-speech-controls .primary::before { content: ''; width: 26px; height: 26px; flex: 0 0 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23177f7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4 6 8H2v8h4l5 4Z'/%3E%3Cpath d='M15 8a6 6 0 0 1 0 8M18 4a11 11 0 0 1 0 16'/%3E%3C/svg%3E") center / contain no-repeat; }
.reference-helper .helper-speech-controls .secondary, .reference-helper .helper-speech-controls .quiet { background: rgb(247 253 255 / 55%); border: 1px solid #a7d4e5; color: #367781; }
.reference-helper .helper-speech-controls .button:disabled:not(.primary), .reference-turn > .quiet:disabled { visibility: hidden; }
.reference-scene .reference-helper .speech-status { position: absolute; left: 70%; right: 5%; bottom: 17px; margin: 0; text-align: center; color: #4d7f93; font-size: .6rem; line-height: 1.2; }
.reference-demonstration { display: flex; flex-direction: column; min-height: 0; }
.reference-world { flex: 1; min-height: 0; position: relative; }
.reference-sun { position: absolute; width: 28%; left: 3%; top: 44%; transform: translateY(-50%); filter: drop-shadow(0 0 28px #ffe38a); z-index: 2; }
.reference-sun img { display: block; width: 100%; height: auto; }
.reference-earth { position: absolute; width: min(46%, calc(var(--scene-height) - 190px)); right: 7%; top: 47%; transform: translateY(-50%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #8cddd9, #247ec7 50%, #102853 87%); box-shadow: 10px 14px 23px rgb(18 74 128 / 13%); z-index: 2; }
.reference-earth canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }
.reference-place { position: absolute; width: 6%; aspect-ratio: 1; background: radial-gradient(circle at 40% 35%, #ffd7a1, #ff7419 65%); border: 2px solid #fff4d3; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 10px #ffb756; }
.reference-day, .reference-night { position: absolute; top: 50%; transform: translateY(-50%); padding: 7px 13px; border-radius: 16px; font-size: clamp(1rem, 2vw, 1.8rem); font-weight: 1000; line-height: 1.1; }
.reference-day { left: 18%; background: rgb(242 255 243 / 93%); color: #13275c; border: 1px solid #e4fff2; }.reference-night { right: 6%; background: rgb(14 94 133 / 80%); color: white; border: 1px solid #528b9f; }
.reference-rays { position: absolute; left: 24%; right: 42%; top: 19%; bottom: 15%; display: flex; flex-direction: column; justify-content: space-around; z-index: 1; }
.reference-rays span { position: relative; display: block; height: 7px; border-radius: 8px; background: #ffffce; box-shadow: 0 0 15px #fff8ad; }
.reference-rays span::after { content: ''; position: absolute; right: -8px; top: -7px; width: 18px; height: 22px; background: #ffffce; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.reference-cloud { position: absolute; width: 64px; height: 25px; border-radius: 30px; background: linear-gradient(#fff, #bed7e8); filter: drop-shadow(0 5px 7px rgb(92 148 179 / 12%)); z-index: 3; }
.reference-cloud::before, .reference-cloud::after { content: ''; position: absolute; border-radius: 50%; background: linear-gradient(#fff, #d8e8f3); }.reference-cloud::before { width: 35px; height: 35px; top: -16px; left: 14px; }.reference-cloud::after { width: 24px; height: 24px; top: -7px; left: 39px; }
.cloud-one { left: 48%; top: 4%; transform: scale(.8); }.cloud-two { right: 0; top: 24%; transform: scale(.85); }.cloud-three { right: 1%; bottom: 2%; transform: scale(1.1); }
.reference-stars { position: absolute; right: 0; top: 57%; color: #fff4b6; text-shadow: 0 0 10px #fff4b6; font-size: 24px; }.reference-stars::before, .reference-stars::after { content: '✦'; position: absolute; font-size: 14px; }.reference-stars::before { right: 30px; top: -90px; }.reference-stars::after { right: 22px; top: 80px; }
.reference-caption { font-size: clamp(1.05rem, 1.8vw, 1.7rem); line-height: 1.3; font-weight: 1000; text-align: center; margin-bottom: 14px; }
.reference-turn { display: flex; flex-direction: column; align-items: stretch; width: 43%; margin: 0 0 0 14%; gap: 6px; }
.reference-turn > .primary { min-height: 58px; border-radius: 17px; font-size: clamp(1.05rem, 1.8vw, 1.55rem); padding: 10px 12px; white-space: nowrap; }
.reference-turn > .quiet { min-height: 44px; padding: 7px 10px; font-size: .73rem; border: 1px solid #a7d4e5; background: rgb(247 253 255 / 55%); border-radius: 12px; color: #367781; }
.reference-model-state { width: 57%; min-height: 1.2em; font-size: .68rem; line-height: 1.2; color: #4c7d91; text-align: center; margin: 8px 0 0 6%; }
.reference-model-note { position: absolute; left: 25%; top: 12px; color: #5e8ca3; font-size: .58rem; }
.reference-navigation { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 24px; }
.reference-navigation > div { display: flex; align-items: center; justify-content: center; gap: 16px; }
.reference-navigation > a:last-child { justify-self: end; font-size: .84rem; }
.reference-navigation .button { min-height: 58px; min-width: 135px; border: 2px solid #d4e9fa; border-radius: 18px; font-size: 1.15rem; color: var(--text); }
.reference-navigation .primary { color: white; border-color: #4ebeb0; }
.reference-navigation .reference-hint { background: #fff3dd; border-color: #fff3dd; }
.reference-explanation .save-notice { margin-top: 13px; font-size: .69rem; color: #7391a6; }
.reference-page .site-footer { font-size: .68rem; color: #7391a6; border-color: #e2edf0; }
@media(max-width:650px){
  .reference-formats{flex-wrap:wrap;flex-shrink:1;max-width:100%;gap:8px}
  .reference-formats>span{flex-basis:100%;white-space:normal}
  .reference-formats>span,.reference-formats .button{font-size:.8rem;padding:10px 12px}
  .reference-steps{grid-template-columns:repeat(3,minmax(0,1fr));padding:4px}
  .reference-steps li{min-width:0;gap:5px;font-size:.8rem;min-height:44px}
  .reference-step-symbol{font-size:1.2rem}
  .reference-steps li:first-child .reference-step-symbol{width:25px;height:25px;font-size:.8rem;flex:none}
  .reference-navigation{grid-template-columns:minmax(0,1fr) auto}
  .reference-navigation>div{grid-column:1/-1;grid-row:2;flex-wrap:wrap}
  .reference-navigation>a:last-child{grid-column:2;grid-row:1}
}
@media (max-width: 1250px) {
  .reference-heading { flex-wrap: wrap; gap: 15px; }
  .reference-heading h1 { flex: 1 1 100%; }
  .reference-formats > span, .reference-formats .button { min-height: 44px; }
  .reference-page .site-header { gap: 20px; }
}
@media (max-width: 900px) {
  .reference-page .site-header, .reference-page main, .reference-page .site-footer { width: calc(100% - 40px); }
  .reference-page .site-header { gap: 15px; padding-block: 12px 20px; }
  .reference-page .main-nav { font-size: .9rem; gap: 17px; margin-left: 0; }
  .reference-page .site-header > .button { min-width: 90px; }
  .reference-heading h1 { font-size: 2.2rem; }
  .reference-scene { --scene-height: 510px; grid-template-columns: 25% minmax(0, 1fr); padding: 20px 18px 18px 12px; gap: 10px; }
  .reference-scene .reference-helper .helper-replica { padding: 15px 14px; font-size: 1.06rem; }
  .reference-helper .speech-visible { inset: 15px 14px; }
  .reference-caption { font-size: 1.06rem; }
  .reference-turn { width: 49%; margin-left: 3%; }
  .reference-scene .reference-helper .helper-speech-controls, .reference-scene .reference-helper .speech-status { left: 68%; right: 3%; }
  .reference-turn > .primary { font-size: 1.02rem; }
  .reference-navigation { gap: 12px; }.reference-navigation > div { gap: 10px; }
  .reference-navigation .button { min-width: 112px; font-size: 1rem; }
  .reference-navigation > a:first-child { font-size: .95rem; }
}
@media (min-width: 950px) and (max-height: 850px) {
  .reference-page .site-header { padding-block: 10px; }
  .reference-page .brand { font-size: 1.7rem; }
  .reference-page main { padding-top: 8px; }
  .reference-explanation .breadcrumbs { margin-bottom: 8px; font-size: .88rem; }
  .reference-heading { margin-bottom: 10px; gap: 10px; }
  .reference-heading h1 { font-size: 2.2rem; }
  .reference-formats > span, .reference-formats .button { min-height: 44px; padding-block: 8px; }
  .reference-steps { padding: 5px; margin-bottom: 10px; }.reference-steps li { min-height: 44px; font-size: 1.05rem; }
  .reference-scene { --scene-height: 400px; padding-top: 18px; }
  .reference-caption { font-size: 1.1rem; margin-bottom: 10px; }
  .reference-scene .reference-helper .helper-replica { font-size: 1.1rem; padding: 14px 16px; }
  .reference-helper .speech-visible { inset: 14px 16px; }
  .reference-navigation { margin-top: 16px; }.reference-navigation .button { min-height: 48px; font-size: 1.05rem; }
}
