@media (hover: hover) and (pointer: fine) {
  .secondary-button:hover,
  .ghost-button:hover,
  .count-pill:hover,
  .choice-card:hover,
  .hero-cta:hover {
    border-color: transparent;
    background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
    color: #fffaf3;
  }

  .choice-card:hover .choice-title,
  .choice-card:hover .choice-copy,
  .hero-cta:hover .hero-cta-copy small {
    color: #fffaf3;
  }

  .choice-card:hover .choice-badge,
  .hero-cta:hover .hero-cta-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fffaf3;
  }

  .profile-button:hover {
    border-color: transparent;
    background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
    color: #fffaf3;
  }

  .profile-button:hover .profile-avatar-image {
    border-color: rgba(255, 255, 255, 0.7);
  }

  .profile-button:hover .profile-button-copy small {
    color: rgba(255, 250, 243, 0.88);
  }

  .info-tag-button.is-linked:hover,
  .info-tag-button.is-linked:focus-visible,
  .info-card-action:hover,
  .info-card-action:focus-visible {
    border-color: transparent;
    background: linear-gradient(145deg, rgba(240, 179, 107, 0.95), rgba(234, 153, 97, 0.9));
    color: #fffaf3;
  }

  .profile-avatar-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(234, 153, 97, 0.18);
  }
}

@media (hover: none) {
  .secondary-button:hover,
  .ghost-button:hover,
  .count-pill:hover,
  .choice-card:hover,
  .hero-cta:hover {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: var(--lift-shadow);
  }

  .choice-card:hover .choice-title,
  .choice-card:hover .choice-copy,
  .hero-cta:hover .hero-cta-copy small {
    color: inherit;
  }

  .choice-card:hover .choice-badge,
  .hero-cta:hover .hero-cta-icon {
    background: rgba(255, 240, 222, 0.88);
    color: inherit;
  }

  .profile-button:hover {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    border-color: rgba(96, 74, 59, 0.1);
  }

  .profile-quick-stats {
    display: none;
  }
}

.secondary-button.is-touch-active,
.ghost-button.is-touch-active,
.count-pill.is-touch-active,
.choice-card.is-touch-active,
.hero-cta.is-touch-active,
.profile-button.is-touch-active,
.story-actor-button.is-touch-active,
.profile-save-button.is-touch-active,
.actor-button.is-touch-active,
.mcq-option.is-touch-active {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(240, 179, 107, 0.97), rgba(234, 153, 97, 0.94));
  color: #fffaf3;
  box-shadow: 0 18px 32px rgba(234, 153, 97, 0.22);
}

.choice-card.is-touch-active .choice-title,
.choice-card.is-touch-active .choice-copy,
.hero-cta.is-touch-active .hero-cta-copy small {
  color: #fffaf3;
}

.choice-card.is-touch-active .choice-badge,
.hero-cta.is-touch-active .hero-cta-icon,
.secondary-button.is-touch-active .button-icon,
.ghost-button.is-touch-active .button-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fffaf3;
}

.topbar .ghost-button,
.topbar .ghost-button:hover,
.topbar .ghost-button:focus-visible,
.topbar .ghost-button.is-touch-active {
  border-color: rgba(201, 95, 63, 0.3);
  background: linear-gradient(145deg, rgba(255, 239, 231, 0.98), rgba(236, 137, 103, 0.22));
  color: var(--tile-strong);
  box-shadow: 0 14px 28px rgba(168, 70, 47, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .screen.is-active > *,
  .screen.is-active .game-stage > *,
  .screen.is-active .profile-identity-panel > *,
  .screen.is-active .profile-grid > *,
  .screen.is-active .profile-knowledge-modes > *,
  .screen.is-active .choice-grid > *,
  .screen.is-active .toolbar > *,
  .screen.is-active .stats-panel > *,
  .screen.is-active .pill-row > *,
  .screen.is-active .card-grid > *,
  .screen.is-active .result-stats > *,
  .screen.is-active .culture-category-options > *,
  .screen.is-active .culture-difficulty-options > *,
  .screen.is-active .culture-answer-options > *,
  .screen.is-active .nomination-categories-grid > *,
  .screen.is-active .nomination-entries-grid > *,
  .screen.is-active .stats-table-panel > *,
  .mcq-option,
  .choice-card,
  .actor-card,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .profile-progress-fill,
  .progression-node,
  .profile-progress-card.is-level-up,
  .profile-progress-card.is-progress-up,
  .profile-stepper-card.is-level-up,
  .profile-stepper-card.is-progress-up,
  .profile-level-card.is-level-up {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    filter: none !important;
  }
}

@media (max-width: 840px) {
  .hero-panel,
  .menu-panel,
  .section-panel,
  .result-panel {
    padding: 28px;
  }

  .choice-grid,
  .result-stats,
  .stats-panel,
  .hero-gameboard,
  .profile-hero,
  .profile-identity-panel,
  .profile-grid,
  .profile-knowledge-modes {
    grid-template-columns: 1fr;
  }

  .profile-grid-knowledge {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .discover-grid {
    grid-template-columns: 1fr;
  }

  .culture-mode-grid {
    grid-template-columns: 1fr;
  }

  .story-layout,
  .story-hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 16px, 1180px);
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .hero-panel,
  .menu-panel,
  .section-panel,
  .result-panel,
  .detail-panel,
  .stats-table-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .choice-card,
  .info-card,
  .profile-stat-card,
  .detail-block {
    border-radius: 20px;
  }

  .cinema-grid-field {
    padding: 8px 10px;
  }

  .cinema-grid-options {
    gap: 4px;
  }

  .cinema-grid-button {
    width: 40px;
    min-width: 40px;
    height: 30px;
    font-size: 0.76rem;
    flex-basis: 40px;
  }

  .cinema-controls {
    grid-template-columns: 1fr;
  }

  .cinema-search-field {
    grid-column: auto;
  }

  .panel,
  .info-card,
  .actor-button,
  .choice-card,
  .profile-stat-card,
  .quiz-score-card,
  .result-breakdown-box,
  .result-mistake-card {
    box-shadow: 0 10px 22px rgba(61, 44, 33, 0.08);
  }

  .result-breakdown-box {
    padding: 16px;
    border-radius: 22px;
  }

  .result-mistake-card {
    padding: 14px 15px;
    border-radius: 18px;
  }

  .panel,
  .profile-quick-stats {
    backdrop-filter: none;
  }

  .info-card.is-lazy-card,
  .actor-card.is-lazy-card,
  #screen-flashcards .actor-card.is-lazy-card {
    filter: none;
    transform: translateY(8px);
  }

  .profile-grid-knowledge {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  .profile-grid-knowledge .profile-stat-card {
    padding: 10px 8px 8px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .profile-grid-knowledge .profile-stat-card strong {
    font-size: 0.95rem;
    margin-top: 4px;
    min-height: 1.1em;
    line-height: 1;
  }

  .profile-grid-knowledge .profile-stat-label {
    font-size: 0.66rem;
    line-height: 1.1;
    min-height: 2.35em;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .profile-collection-meta {
    gap: 8px;
  }

  .profile-collection-count {
    margin-left: 0;
    width: 100%;
    order: 3;
  }

  .profile-collection-pill {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .profile-level-card-action {
    align-items: center;
  }

  .profile-level-card-action .profile-stage-badge {
    width: 100%;
  }

  .profile-level-card-action .profile-stage-description {
    width: 100%;
    max-width: none;
    margin-top: 10px;
    font-size: 0.8rem;
  }

  .progression-card {
    padding: 18px;
    gap: 18px;
  }

  .progression-summary {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .progression-current-card,
  .progression-track-card {
    padding: 18px;
  }

  .progression-xp-head {
    align-items: flex-start;
  }

  .progression-xp-pill {
    justify-items: start;
    text-align: left;
  }

  .progression-stepper {
    padding-top: 6px;
    padding-inline: 8px;
  }

  .progression-stepper::before,
  .progression-stepper-fill {
    left: 18px;
    right: 18px;
    top: 27px;
  }

  .progression-stepper-nodes {
    grid-column: 1 / -1;
    grid-template-columns: repeat(var(--progression-step-columns), minmax(0, 1fr));
    gap: 2px;
    padding-inline: 2px;
  }

  .progression-node {
    min-height: 92px;
    gap: 6px;
    padding-inline: 0;
  }

  .progression-node-badge {
    width: 40px;
    height: 40px;
    border-width: 2px;
    font-size: 0.72rem;
  }

  .progression-xp-head-main strong {
    font-size: 1.05rem;
  }

  .progression-xp-percent {
    font-size: 1.6rem;
  }

  .progression-current-level {
    font-size: 1.08rem;
    letter-spacing: 0.08em;
  }

  .progression-current-tier {
    font-size: 0.6em;
    top: 0.08em;
  }

  .progression-node-copy strong {
    font-size: 0.66rem;
  }

  .progression-node-copy span {
    font-size: 0.54rem;
  }

  .progression-current-description {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .progression-current-card::after {
    left: 20px;
    right: 28px;
    bottom: 12px;
  }

  .progression-stepper-label {
    gap: 3px;
  }

  .progression-stepper-label strong {
    font-size: 0.74rem;
  }

  .progression-stepper-label span {
    font-size: 0.66rem;
  }

  .knowledge-journey-summary {
    grid-template-columns: 1fr;
  }

  .knowledge-journey-list {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .count-pill,
  .hero-cta,
  .mcq-option {
    min-height: 48px;
  }

  .flashcards-filter-row,
  .story-filter-row {
    width: 100%;
  }

  .flashcards-filter-row .count-pill,
  .story-filter-row .count-pill {
    flex-basis: 100%;
  }

  .search-field-row {
    border-radius: 16px;
  }

  .search-field-input {
    padding: 13px 14px;
  }

  .search-field-action {
    flex-basis: 48px;
  }

  .cinema-genre-field {
    padding: 12px 14px;
  }

  .list-pagination {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 4;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 250, 245, 0.94);
    border: 1px solid var(--line-strong);
    box-shadow: 0 10px 22px rgba(61, 44, 33, 0.1);
  }

  .hero-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .profile-menu-anchor {
    width: auto;
    align-items: flex-end;
    margin-top: -4px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .hero-intro {
    width: auto;
  }

  h1 {
    max-width: 70%;
  }

  .intro {
    max-width: 100%;
  }

  .home-extra-panel-description {
    margin-top: 192px;
  }

  .profile-button {
    width: auto;
    max-width: min(260px, 100%);
    justify-content: center;
    padding: 10px 14px;
    gap: 12px;
  }

  .profile-avatar-image {
    width: 42px;
    height: 42px;
  }

  .profile-button-copy strong {
    font-size: 0.98rem;
  }

  .profile-button-copy small {
    font-size: 0.8rem;
  }

  .game-shell {
    min-height: auto;
    padding: 6px 0 5px;
  }

  #screen-quiz-play .game-stage {
    width: min(100%, 470px);
    gap: clamp(5px, 0.85vw, 8px);
  }

  #screen-quiz-play .quiz-live-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 360px);
    gap: clamp(4px, 0.8vw, 6px);
  }

  #screen-quiz-play .quiz-live-pill {
    width: 100%;
    min-width: 0;
    padding: clamp(8px, 1.6vw, 11px) clamp(10px, 2vw, 14px);
  }

  #screen-quiz-play .quiz-live-pill span {
    font-size: 0.72rem;
  }

  #screen-quiz-play .quiz-live-pill strong {
    font-size: 1rem;
  }

  #screen-quiz-play .game-image-frame {
    width: min(100%, 360px);
    border-radius: 20px;
  }

  #screen-quiz-play .game-copy {
    width: min(100%, 360px);
    margin-bottom: 0;
  }

  #screen-quiz-play .game-hint {
    margin-top: 0;
    font-size: 0.92rem;
    line-height: 1.3;
  }

  #screen-quiz-play .quiz-name-row {
    gap: 0;
  }

  #screen-quiz-play .answer-zone {
    width: min(100%, 360px);
    margin-top: 0;
  }

  #screen-quiz-play .answer-input {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.94rem;
  }

  #screen-quiz-play .mcq-option {
    min-height: 38px;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 0.94rem;
    line-height: 1.2;
  }

  #screen-quiz-play .answer-zone + .next-button,
  #screen-quiz-play .next-button {
    margin-top: clamp(2px, 0.5vw, 4px);
    width: min(100%, 360px);
  }

  #screen-quiz-play .favorite-star-button {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  #screen-quiz-play .game-shell {
    min-height: calc(100dvh - 88px);
    place-items: start center;
    padding-top: 0;
  }

  .profile-identity-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-identity-copy,
  .profile-level-card {
    width: 100%;
    align-items: center;
  }

  .profile-name-editor {
    width: 100%;
  }

  .profile-name-input {
    width: 100%;
  }

  .profile-avatar-picker {
    display: grid;
    gap: 14px;
  }

  .profile-avatar-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .profile-avatar-option {
    padding: 6px;
    border-radius: 18px;
  }

  .profile-avatar-option img {
    border-radius: 12px;
  }

  .profile-avatar-option-lock {
    inset: 6px;
    border-radius: 12px;
    gap: 4px;
  }

  .profile-avatar-option-lock-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .profile-avatar-option-lock-copy {
    font-size: 0.7rem;
    padding: 0 4px;
  }

  .profile-level-card,
  .profile-progress-card,
  .profile-knowledge-panel {
    border-radius: 20px;
  }

  .profile-level-card,
  .profile-progress-card,
  .profile-knowledge-panel,
  .profile-detail-panel {
    padding: 18px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-progress-head strong {
    text-align: left;
  }

  .profile-progress-track {
    height: 14px;
  }

  .profile-stat-card {
    padding: 12px;
    border-radius: 18px;
  }

  .profile-stat-card strong {
    font-size: 1.15rem;
  }

  .profile-stat-card small {
    font-size: 0.76rem;
  }

  .profile-panel-head h3 {
    font-size: 1.3rem;
  }

  .profile-detail-panel .profile-support-copy {
    max-width: none;
  }

  .story-layout,
  .story-hero {
    grid-template-columns: 1fr;
  }

  .story-sidebar,
  .story-detail {
    padding: 18px;
  }

  .story-hero {
    gap: 18px;
  }

  .story-image-frame {
    border-radius: 22px;
  }

  .story-text {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .discover-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .discover-card {
    min-height: 0;
    padding: 16px 12px;
  }

  .discover-card .choice-badge {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .culture-mode-grid {
    grid-template-columns: 1fr;
  }

  .culture-question-card {
    padding: 20px;
  }

  .culture-question-title {
    font-size: 1.8rem;
  }

  .culture-feedback-card {
    padding: 16px 16px 12px;
  }

  .culture-timer-bar {
    gap: 10px;
  }

  .culture-timer-value {
    min-width: 92px;
    padding: 7px 10px;
  }

  .culture-timer-value strong {
    font-size: 1.08rem;
  }

  .culture-stage {
    width: 100%;
  }

  .online-list-item,
  .online-profile-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .online-avatar,
  .online-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .online-list-actions {
    justify-content: flex-start;
  }

  .online-card {
    padding: 14px;
  }

  .online-panel,
  .online-subpage,
  .online-view {
    gap: 14px;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }
}
