/* Shared portal pages: the same blue palette, glass examples and clear navigation. */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7380a0; font-size: .7rem; font-weight: 650; margin: 0 0 10px; line-height: 1.5; }
.breadcrumbs > span[aria-hidden] { opacity: .5; }
.breadcrumbs a:hover { color: #4c5bd4; }
.content-main { max-width: 1120px; padding-top: 27px; }
.content-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 20px 0 24px; }
.content-heading > div { max-width: 760px; }
.content-heading h1 { font-size: clamp(1.8rem,4vw,2.9rem); letter-spacing: -.045em; line-height: 1.15; margin: 0 0 12px; }
.content-heading p:not(.eyebrow) { color: var(--muted); line-height: 1.65; font-size: .95rem; margin: 0; }
.content-heading .eyebrow { color: #6477ab; font-size: .68rem; letter-spacing: .09em; }
.content-heading > .primary-link { flex: 0 0 auto; margin: 0; background: #5664d7; padding: 13px 18px; border-radius: 11px; }
.contents { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 24px; }
.contents a { padding: 10px 14px; border: 1px solid #dce3f7; border-radius: 10px; background: #ffffff9c; color: #56649d; font-size: .78rem; font-weight: 700; }
.contents a:hover { background: white; border-color: #b8c6f1; text-decoration: none; }
.content-page .instructions, .content-page .faq, .move-example { padding: 27px; background: #fffffff0; border: 1px solid #e0e5f5; border-radius: 20px; box-shadow: 0 8px 24px #293b7c05; }
.content-page .instructions h2, .move-example h2 { font-size: 1.2rem; line-height: 1.4; margin: 0 0 16px; }
.content-page .steps { gap: 18px; margin: 21px 0; }
.content-page .steps li { gap: 12px; line-height: 1.65; }
.content-page .steps li::before { background: #eaf0ff; color: #5966bf; border-radius: 7px; }
.content-page .instructions .tip { padding: 14px; background: #f1f4ff; line-height: 1.6; }
.content-page .instructions p, .move-example > p { font-size: .9rem; line-height: 1.75; color: var(--muted); }
.content-page .feature-notes p + p { margin-top: 12px; }
.guide-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: stretch; }
.move-example { margin-top: 22px; }
.guide-layout .move-example { margin-top: 0; }
.example-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.example-pair figure { margin: 0; min-width: 0; }
.example-pair figcaption { padding-bottom: 10px; color: #59689b; font-weight: 700; font-size: .8rem; }
.example-stage { padding: 12px 7px; border-radius: 15px; overflow: hidden; }
.move-example .example-stage .board { min-height: 0; padding: 8px 0; gap: 12px; }
.move-example .example-stage .vial-button { --ball-size: 22px; min-width: 0; padding: 4px 2px; gap: 8px; pointer-events: none; }
.move-example .example-stage .vial { --water-unit: 22px; width: 42px; height: 120px; padding: 20px 4px 4px; gap: 0; border-radius: 7px 7px 16px 16px; }
.move-example .example-stage .ball-bottle .vial { gap: 2px; }
.move-example .example-stage .vial-index { color: #e0eafa; font-size: .65rem; }
.feature-notes { margin-top: 22px; }
.faq details { padding: 13px 0; }
.faq details + details { border-top: 1px solid #e9edf9; }
.faq summary { line-height: 1.5; }
.faq details p { padding-top: 6px; }
.privacy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 35px; }
.privacy-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 25px; background: #eef0ff; border: 1px solid #e0e6ff; color: #6268c8; font-size: 1.35rem; border-radius: 13px; }
.privacy-grid .instructions h2 { margin-bottom: 12px; }
.return-games { padding: 25px 0 5px; }
.content-page .game-switch a { color: #5864b3; border-color: #dce3f7; }
.tile-guide { display: block; color: #6474a6; font-size: .78rem; line-height: 1.5; margin-top: 15px; font-weight: 650; }
.portal-home .language-menu { z-index: 25; }
.portal-home .language-menu a:hover, .portal-home .language-menu [aria-current] { background: #edf0ff; }
.site-footer { padding-top: 20px; border-top: 1px solid #e0e5f6; font-size: .74rem; }
.site-footer nav { justify-content: flex-end; row-gap: 12px; }
.error-page .content-main { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.error-number { display: block; font-size: clamp(6rem,18vw,11rem); font-weight: 850; letter-spacing: -.09em; line-height: 1.2; color: #6271d1; text-shadow: 0 7px #e0e5fc; }
.error-content h1 { margin: 10px 0 22px; font-size: clamp(1.6rem,5vw,2.5rem); }
.error-content .primary-link { margin-bottom: 26px; background: #5664d7; }
.error-content .game-switch { justify-content: center; }
[id] { scroll-margin-top: 20px; }
@media (max-width: 800px) {
  .guide-layout { grid-template-columns: minmax(0,1fr); }
  .privacy-grid { grid-template-columns: minmax(0,1fr); gap: 15px; margin-top: 20px; }
  .privacy-icon { margin-bottom: 16px; }
  .content-heading { align-items: start; }
  .content-heading > .primary-link { max-width: 35%; }
}
@media (max-width: 540px) {
  .content-main { padding-top: 18px; }
  .content-heading { display: block; margin: 16px 0 20px; }
  .content-heading h1 { font-size: 1.8rem; }
  .content-heading > .primary-link { max-width: 100%; margin-top: 18px; }
  .content-page .instructions, .content-page .faq, .move-example { padding: 20px; border-radius: 17px; }
  .contents { gap: 6px; padding-bottom: 20px; }
  .contents a { font-size: .72rem; padding: 9px 11px; }
  .example-pair { gap: 8px; }
  .example-stage { padding: 10px 3px; }
  .move-example .example-stage .board { gap: 4px; }
  .move-example .example-stage .vial { --water-unit: 17px; --ball-size: 20px; width: 34px; height: 99px; padding: 18px 3px 3px; }
  .move-example .example-stage .vial-button { --ball-size: 17px; padding: 4px 1px; }
  .breadcrumbs { font-size: .65rem; gap: 6px; }
  .site-footer { padding-top: 18px; }
  .site-footer nav { justify-content: flex-start; }
}
.analytics-consent { max-width: 1064px; margin: 10px auto 28px; padding: 22px; display: flex; gap: 24px; align-items: center; justify-content: space-between; border: 1px solid #dce3f7; border-radius: 17px; background: #fff; color: #172445; }
.analytics-consent h2 { font-size: 1rem; margin: 0 0 8px; }
.analytics-consent p { margin: 0; font-size: .82rem; line-height: 1.6; color: #667394; }
.analytics-consent p a { color: #5363bc; text-decoration: underline; }
.analytics-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
.analytics-actions .control { color: #52618e; background: #f5f7ff; border-color: #dce3f7; }
.analytics-actions .analytics-allow { color: #fff; background: #5664d7; border-color: #5664d7; }
.analytics-settings { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; text-align: left; }
.analytics-settings:hover { text-decoration: underline; }
@media (max-width: 800px) { .analytics-consent { margin-inline: 12px; display: block; } .analytics-actions { margin-top: 16px; } }
@media (max-width: 540px) { .analytics-actions { display: grid; grid-template-columns: 1fr 1fr; } .analytics-actions .control { min-height: 44px; } }
