/* Breakpoints rearrange content; mobile navigation is a separate top bar / drawer. */
@media (min-width: 901px) and (max-height: 800px) {
  .sidebar { padding-top: 20px; padding-bottom: 16px; }
  .sidebar-profile { margin-top: 20px; margin-bottom: 18px; }
  .sidebar-profile .avatar-small { width: 48px; height: 48px; margin-bottom: 9px; }
  .nav-link { min-height: 43px; }
  .nav-list { gap: 3px; }
  .nav-caption { margin-bottom: 9px; }
  .sidebar-bottom { padding-top: 20px; }
  .social-icons { margin-bottom: 14px; }
  .sidebar-controls { padding-top: 8px; }
  .sidebar-signoff { margin-top: 10px; }
}
@media (min-width: 1600px) {
  .site-main { padding: 0 76px; }
  .hero { min-height: 555px; gap: 35px; }
  .orbit-art { max-width: 465px; }
  .hero-intro, .home-interest p, .bento-card p { font-size: 13px; }
}
@media (max-width: 1280px) {
  .activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sidebar { width: 222px; padding-right: 18px; padding-left: 18px; }
  .site-main { margin-left: 222px; padding: 0 35px; }
  .ambient { left: 222px; }
  .hero { min-height: 455px; }
  .hero h1 { font-size: 52px; }
  .hero-subtitle { font-size: 19px; }
  .hero-intro { font-size: 12px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding: 10px 13px; font-size: 11px; }
  .card { padding: 22px; }
  .game-card { padding: 0; }
  .home-interest h3 { font-size: 13px; }
  .bento-card { padding: 23px; }
  .bento-card h2 { font-size: 18px; }
  .toast { left: calc(50% + 111px); }
  .nav-link[aria-current="page"]::after { left: -19px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .sidebar { width: 198px; padding: 25px 15px 18px; }
  .brand-name { font-size: 17px; }
  .brand-symbol { width: 27px; }
  .nav-en { display: none; }
  .site-main { margin-left: 198px; padding: 0 27px; }
  .ambient { left: 198px; }
  .hero { grid-template-columns: 1.2fr 1fr; min-height: 437px; gap: 0; }
  .hero h1 { font-size: 45px; }
  .hero-subtitle { font-size: 17px; }
  .hero-intro { font-size: 11px; }
  .hero-intro br { display: none; }
  .hero-actions { flex-direction: column; align-items: start; margin-top: 20px; }
  .hero-tags { gap: 9px; margin-top: 19px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .orbital-label { font-size: 6px; }
  .orbit-under { font-size: 8px; }
  .card-grid, .interests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-interest:last-child { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 17px; }
  .about-story, .profile-card { padding: 23px; }
  .mbti-panel { grid-template-columns: 130px 1fr; gap: 20px; padding: 25px; }
  .mbti-code { font-size: 40px; }
  .learning-band { flex-direction: column; align-items: start; }
  .learning-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { gap: 14px; }
  .bento-card h2 { font-size: 17px; }
  .bento-card p { font-size: 10px; }
  .section-head h2 { font-size: 19px; }
  .character-grid { grid-template-columns: 1fr; }
  .toast { left: calc(50% + 99px); }
  .nav-link[aria-current="page"]::after { left: -16px; }
}
@media (max-width: 900px) {
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  html { scroll-padding-top: 86px; }
  .site-main { margin-left: 0; padding: 0 34px; max-width: 850px; margin-inline: auto; }
  .ambient { left: 0; }
  .mobile-bar { display: flex; position: sticky; top: 0; z-index: 45; min-height: 69px; align-items: center; justify-content: space-between; padding: 14px 26px; border-bottom: 1px solid var(--line); background: var(--surface-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .mobile-bar .brand-symbol { width: 26px; height: 30px; }
  .mobile-bar .brand-name { font-size: 18px; }
  .mobile-bar .brand-sub { font-size: 8px; letter-spacing: 2.7px; }
  .mobile-actions { display: flex; gap: 6px; align-items: center; }
  .mobile-actions .icon-button { width: 40px; height: 40px; }
  .mobile-actions .theme-control { width: 40px; height: 40px; padding: 0; }
  .mobile-actions .theme-control span { display: none; }
  .mobile-actions .theme-control, .mobile-actions .icon-button { width: 44px; height: 44px; }
  .sidebar .social-icons .icon-button { width: 44px; height: 44px; }
  .sidebar .theme-control, .sidebar .sound-control, .sidebar .language-select { min-height: 44px; }
  .mobile-language { font-size: 10px; width: 74px; padding: 8px 3px; border: 0; background: transparent; color: var(--muted); min-height: 40px; }
  .mobile-language option { background: var(--surface); color: var(--text); }
  .sidebar { width: 280px; visibility: hidden; transform: translateX(-102%); transition: transform .3s ease, visibility .3s, background .3s; z-index: 80; padding: 26px 23px 20px; }
  .sidebar.is-open { visibility: visible; transform: translateX(0); }
  .drawer-close { display: grid; position: absolute; top: 20px; right: 14px; width: 44px; height: 44px; }
  .drawer-overlay { display: block; position: fixed; inset: 0; opacity: 0; visibility: hidden; background: var(--overlay); transition: opacity .3s, visibility .3s; z-index: 70; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
  .drawer-overlay.is-visible { opacity: 1; visibility: visible; }
  body.drawer-open { overflow: hidden; }
  .sidebar-bottom { padding-top: 30px; }
  .nav-en { display: inline; }
  .nav-link[aria-current="page"]::after { left: -24px; }
  .topbar { min-height: 64px; padding: 19px 0; }
  .hero { min-height: 460px; grid-template-columns: 1.2fr 1fr; }
  .hero h1 { font-size: 52px; }
  .hero-subtitle { font-size: 20px; }
  .hero-intro { font-size: 12px; }
  .hero-intro br { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { padding: 11px 14px; font-size: 11px; }
  .hero-tags { margin-top: 23px; }
  .orbit-under { font-size: 9px; }
  .card-grid, .interests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-interest:last-child { grid-column: 1 / -1; }
  .home-interest p { font-size: 12px; }
  .about-grid { grid-template-columns: 1.5fr 1fr; }
  .about-story { padding: 27px; }
  .profile-card { padding: 23px; }
  .mbti-panel { grid-template-columns: 150px 1fr; padding: 29px; }
  .learning-grid { grid-template-columns: repeat(2, 1fr); }
  .learning-band { align-items: start; flex-direction: column; }
  .toast { left: 50%; }
  .paw-cursor { display: none; }
  .page-heading { padding-top: 44px; }
  .page-heading h1 { font-size: 37px; }
  .character-grid { gap: 12px; }
  .character h3 { font-size: 11px; }
  .footer { margin-top: 45px; }
}
@media (max-width: 650px) {
  .site-main { padding: 0 23px; }
  .mobile-bar { padding: 12px 18px; min-height: 67px; }
  .topbar { font-size: 9px; min-height: 59px; }
  .topbar-zone { display: none; }
  .topbar-location { font-size: 9px; }
  .page-coordinate { letter-spacing: .6px; gap: 7px; font-size: 9px; }
  .hero { grid-template-columns: 1fr; gap: 0; padding: 39px 0 9px; }
  .hero h1 { font-size: 53px; margin-top: 17px; }
  .hero-subtitle { font-size: 20px; }
  .hero-intro { max-width: 420px; margin-top: 20px; font-size: 13px; }
  .hero-actions { margin-top: 23px; }
  .hero-actions .button { font-size: 12px; min-height: 46px; }
  .hero-tags { font-size: 10px; margin-top: 21px; }
  .orbit-art { max-width: 306px; margin: 14px auto 0; }
  .orbit-caption { font-size: 8px; }
  .orbital-label { font-size: 7px; }
  .orbit-under { bottom: 2%; font-size: 10px; }
  .welcome-line { margin-top: 11px; padding-bottom: 0; }
  .section { margin-top: 33px; }
  .section-head { align-items: start; flex-direction: column; gap: 9px; }
  .section-head h2 { font-size: 21px; }
  .section-head p { font-size: 12px; }
  .section-head > .text-link { margin-left: 25px; }
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .bento-card { padding: 27px; min-height: 208px; }
  .bento-card h2 { font-size: 21px; }
  .bento-card p { font-size: 12px; }
  .page-heading { padding: 36px 0 28px; }
  .page-heading h1 { font-size: 32px; }
  .page-heading > p { font-size: 13px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.45px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-story { padding: 26px; }
  .about-story h2 { font-size: 20px; }
  .prose p { font-size: 13px; }
  .profile-card { display: grid; grid-template-columns: .85fr 1fr; gap: 20px; padding: 25px; }
  .profile-card dl { margin-top: 0; }
  .profile-card .overline { font-size: 8px; }
  .about-quote { margin-bottom: 8px; }
  .mbti-panel { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .mbti-code { font-size: 43px; }
  .mbti-label { margin-top: 7px; }
  .mbti-panel h2 { font-size: 18px; }
  .spoiler-toggle { flex-wrap: wrap; }
  .spoiler-hint { display: none; }
  .character-grid { grid-template-columns: 1fr; gap: 20px; }
  .character h3 { font-size: 13px; }
  .character p { font-size: 11px; }
  .character-section { padding: 24px; }
  .games-grid { grid-template-columns: 1fr; gap: 22px; }
  .game-duolingo { display: block; }
  .game-duolingo .game-scene { height: 159px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .game-body { padding: 25px; }
  .game-body p { font-size: 13px; }
  .contact-card { padding: 29px; }
  .contact-card h2 { font-size: 22px; }
  .email-address { font-size: 33px; }
  .social-grid { grid-template-columns: 1fr; }
  .empty-state { min-height: 427px; padding: 33px 23px; }
  .empty-state h2 { font-size: 22px; }
  .empty-state p br { display: none; }
  .empty-state p { font-size: 13px; }
  .footer { flex-direction: column; align-items: start; gap: 8px; margin-top: 41px; font-size: 9px; }
  .footer-meta { margin-left: 22px; font-size: 8px; }
  .back-to-top { right: 15px; bottom: 18px; width: 42px; height: 42px; }
  .error-content { min-height: calc(100svh - 258px); }
  .error-code { font-size: 110px; }
  .error-content h1 { font-size: 22px; }
  .error-content p { font-size: 12px; }
}
@media (max-width: 480px) {
  .activity-grid { grid-template-columns: 1fr; gap: 16px; }
  .activity-grid .activity-entry { min-height: 218px; padding: 27px 24px 24px; }
  .card-grid, .interests-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-interest:last-child { grid-column: auto; }
  .card { padding: 25px; }
  .home-interest h3 { font-size: 16px; }
  .home-interest p { font-size: 12px; }
  .home-interest .card-top { margin-bottom: 19px; }
  .card-bottom { font-size: 10px; }
  .interest-card { min-height: 213px; }
  .interest-card h2 { font-size: 21px; }
  .interest-card p { font-size: 13px; }
  .interest-note { font-size: 10px; }
  .game-card { padding: 0; }
  .learning-band { padding: 22px; }
  .learning-chips { gap: 7px; }
  .learning-chip { padding: 7px 10px; }
  .learn-card { padding: 20px 15px; gap: 9px; }
  .learn-card h3 { font-size: 12px; }
  .profile-card { gap: 14px; }
  .contact-card p br { display: none; }
}
@media (max-width: 390px) {
  .site-main { padding: 0 20px; }
  .hero h1 { font-size: 46px; }
  .hero-subtitle { font-size: 18px; }
  .hero-actions .button { font-size: 11px; padding: 10px 12px; gap: 7px; }
  .topbar-location .icon { display: none; }
  .page-heading h1 { font-size: 29px; }
  .mobile-bar { padding: 12px 14px; }
  .mobile-bar .brand { gap: 8px; }
  .mobile-bar .brand-name { font-size: 16px; }
  .mobile-language { width: 65px; font-size: 9px; }
  .email-address { font-size: 29px; }
  .contact-actions { gap: 9px; }
  .contact-actions .button { padding: 10px 12px; font-size: 11px; }
}
