/* ===============================================
   スクーバダイビング検定 - スマホファーストCSS
   =============================================== */

/* リセット */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a2733;
  background: linear-gradient(180deg, #e8f4fb 0%, #f5fafd 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-size: 16px;
}

:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: 3px;
}

/* カラーパレット
   メイン: #0a4d7a (深い海の青)
   アクセント: #1e88c7 (明るい青)
   サブ: #5fb8d3 (浅瀬の青)
   背景: #e8f4fb (淡い青)
   合格: #2e9c66
   不合格: #c75050
*/

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===============================================
   ヘッダー
   =============================================== */
.site-header {
  background: linear-gradient(135deg, #0a4d7a 0%, #1e88c7 100%);
  color: #fff;
  padding: max(32px, env(safe-area-inset-top)) 0 28px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(10, 77, 122, 0.2);
}

.site-header.compact {
  padding: 20px 0;
}

.site-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.92;
}

/* ===============================================
   トップページ - ヒーロー
   =============================================== */
.hero-card {
  background: #fff;
  border-radius: 8px;
  padding: 0;
  margin: 24px 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10, 77, 122, 0.08);
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.hero-content {
  padding: 22px 20px 24px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: 20px;
  color: #0a4d7a;
}

.hero-text {
  margin: 0 0 16px;
  font-size: 15px;
  color: #455461;
  line-height: 1.7;
}

.hero-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-features li {
  padding: 6px 0;
  color: #2e9c66;
  font-size: 14px;
  font-weight: 600;
}

/* ===============================================
   級選択
   =============================================== */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0a4d7a;
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 4px solid #1e88c7;
}

.grade-section {
  margin-bottom: 32px;
}

.grade-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: #fff;
  border: 2px solid #e0eef5;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.grade-card.available {
  border-color: #1e88c7;
}

.grade-card.available:active {
  transform: scale(0.98);
  background: #f0f9fd;
}

.grade-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.grade-badge {
  flex: 0 0 56px;
  height: 56px;
  background: linear-gradient(135deg, #0a4d7a, #1e88c7);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.grade-card:disabled .grade-badge {
  background: linear-gradient(135deg, #94a8b5, #aebcc5);
}

.grade-info {
  flex: 1;
  min-width: 0;
}

.grade-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a2733;
  margin-bottom: 2px;
}

.grade-desc {
  font-size: 13px;
  color: #687785;
  margin-bottom: 4px;
}

.grade-meta {
  font-size: 12px;
  color: #1e88c7;
  font-weight: 600;
}

.grade-card:disabled .grade-meta {
  color: #94a8b5;
}

.grade-arrow {
  color: #1e88c7;
  font-size: 14px;
}

/* ===============================================
   カテゴリ案内
   =============================================== */
.info-section {
  margin-bottom: 40px;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-list li {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #1a2733;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(10, 77, 122, 0.05);
}

.cat-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

/* ===============================================
   フッター
   =============================================== */
.site-footer {
  text-align: center;
  padding: 24px 16px 32px;
  color: #687785;
  font-size: 12px;
  margin-top: 40px;
  border-top: 1px solid #e0eef5;
}

.footer-note {
  margin-top: 8px;
  font-size: 11px;
  color: #94a8b5;
  line-height: 1.5;
}

/* ===============================================
   受験画面
   =============================================== */
.quiz-body {
  background: #f5fafd;
  padding-top: calc(76px + env(safe-area-inset-top));
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

.quiz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(10, 77, 122, 0.08);
}

.quiz-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 16px 10px;
  max-width: 720px;
  margin: 0 auto;
}

.quiz-grade-label {
  background: linear-gradient(135deg, #0a4d7a, #1e88c7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.quiz-progress-text {
  font-size: 14px;
  color: #455461;
  font-weight: 600;
}

.quiz-quit-btn {
  background: transparent;
  border: none;
  color: #94a8b5;
  font-size: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
}

.quiz-quit-btn:active {
  background: #f0f4f7;
}

.quiz-progress-bar {
  height: 4px;
  background: #e0eef5;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e88c7, #5fb8d3);
  width: 0%;
  transition: width 0.3s ease;
}

.quiz-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px;
}

.quiz-category-tag {
  display: inline-block;
  background: #e8f4fb;
  color: #0a4d7a;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.quiz-question-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(10, 77, 122, 0.08);
}

.quiz-question-text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a2733;
  line-height: 1.7;
}

.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  background: #fff;
  border: 2px solid #d8e8f0;
  border-radius: 12px;
  padding: 16px 14px;
  font-size: 16px;
  color: #1a2733;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  min-height: 60px;
  line-height: 1.5;
}

.quiz-choice:hover {
  border-color: #1e88c7;
}

.quiz-choice:active {
  transform: scale(0.99);
}

.quiz-choice.selected {
  background: linear-gradient(135deg, #0a4d7a, #1e88c7);
  border-color: #0a4d7a;
  color: #fff;
}

.quiz-choice-letter {
  flex: 0 0 28px;
  height: 28px;
  background: #f0f4f7;
  color: #455461;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 1px;
}

.quiz-choice.selected .quiz-choice-letter {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.quiz-choice-text {
  flex: 1;
}

.quiz-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(10, 77, 122, 0.08);
  z-index: 10;
}

.quiz-next-btn {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0a4d7a, #1e88c7);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.quiz-next-btn:disabled {
  background: #cdd9e0;
  cursor: not-allowed;
}

.quiz-next-btn:not(:disabled):active {
  transform: scale(0.99);
}

/* ===============================================
   モーダル
   =============================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 50, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px 20px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-title {
  margin: 0 0 8px;
  color: #0a4d7a;
  font-size: 18px;
  font-weight: 700;
}

.modal-text {
  font-size: 16px;
  margin: 0 0 24px;
  color: #1a2733;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  gap: 8px;
}

.modal-btn {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.modal-btn.cancel {
  background: #f0f4f7;
  color: #455461;
}

.modal-btn.confirm {
  background: #c75050;
  color: #fff;
}

/* ===============================================
   結果画面
   =============================================== */
.result-hero {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(10, 77, 122, 0.08);
}

.result-illustration {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 12px;
}

.result-hero.passed {
  background: linear-gradient(135deg, #2e9c66 0%, #46b87f 100%);
  color: #fff;
}

.result-hero.failed {
  background: linear-gradient(135deg, #c75050 0%, #d97070 100%);
  color: #fff;
}

.result-status {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.result-score {
  font-size: 16px;
  margin-bottom: 8px;
  opacity: 0.95;
}

.score-num {
  font-size: 36px;
  font-weight: 800;
}

.score-total {
  font-size: 16px;
  margin-left: 4px;
}

.result-percent {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 12px;
}

.result-grade-label {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 600;
}

/* 分野別 */
.result-categories {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(10, 77, 122, 0.05);
}

.result-categories .section-title {
  margin-top: 0;
  margin-bottom: 16px;
}

.cat-row {
  margin-bottom: 14px;
}

.cat-row:last-child {
  margin-bottom: 0;
}

.cat-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2733;
}

.cat-row-bar {
  height: 8px;
  background: #e0eef5;
  border-radius: 4px;
  overflow: hidden;
}

.cat-row-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e88c7, #5fb8d3);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.cat-row-fill.low {
  background: linear-gradient(90deg, #c75050, #d97070);
}

/* 合格証セクション */
.certificate-section {
  background: #fff;
  border-radius: 8px;
  padding: 24px 16px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(10, 77, 122, 0.08);
}

.cert-note {
  font-size: 12px;
  color: #687785;
  margin: 0 0 12px;
}

.cert-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid #e0eef5;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #fff;
}

/* アクション */
.result-actions {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.primary-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #0a4d7a, #1e88c7);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 8px;
}

.primary-btn:active {
  transform: scale(0.99);
}

.secondary-btn {
  display: block;
  width: 100%;
  background: #fff;
  color: #0a4d7a;
  border: 2px solid #1e88c7;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.link-btn {
  display: block;
}

/* 振り返り */
.review-section {
  margin-bottom: 32px;
}

.review-note {
  font-size: 13px;
  color: #687785;
  margin-bottom: 12px;
}

.review-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 10px;
  border-left: 4px solid #c75050;
  box-shadow: 0 2px 6px rgba(10, 77, 122, 0.05);
}

.review-question {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a2733;
}

.review-answer {
  font-size: 13px;
  margin-bottom: 4px;
}

.review-answer.wrong {
  color: #c75050;
}

.review-answer.correct {
  color: #2e9c66;
  font-weight: 600;
}

.review-explanation {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0eef5;
  font-size: 13px;
  color: #455461;
  line-height: 1.6;
}

/* ===============================================
   間違いノート関連
   =============================================== */

/* トップページの「間違いノート」カード */
.notes-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fef9e7 0%, #fdf3d4 100%);
  border: 2px solid #e8d896;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  text-decoration: none;
  color: #1a2733;
  transition: all 0.15s ease;
}

.notes-link-card:active {
  transform: scale(0.99);
}

.notes-link-icon {
  font-size: 32px;
}

.notes-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notes-link-title {
  font-size: 15px;
  font-weight: 700;
  color: #8b6914;
}

.notes-link-sub {
  font-size: 12px;
  color: #a07a1f;
  margin-top: 2px;
}

.notes-link-arrow {
  color: #8b6914;
  font-size: 12px;
}

/* 結果画面の間違いノート誘導バナー */
.notes-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fef9e7 0%, #fdf3d4 100%);
  border: 2px solid #e8d896;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.notes-banner[hidden] {
  display: none;
}

.notes-banner-icon {
  font-size: 28px;
}

.notes-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notes-banner-title {
  font-size: 14px;
  color: #8b6914;
  font-weight: 600;
}

.notes-banner-sub {
  font-size: 12px;
  color: #a07a1f;
  margin-top: 2px;
}

.notes-banner-link {
  color: #8b6914;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid #c4a93c;
  border-radius: 8px;
}

/* notes.html ページ */
.notes-stats {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0 16px;
  box-shadow: 0 4px 16px rgba(10, 77, 122, 0.08);
}

.notes-stat-row {
  display: flex;
  gap: 16px;
}

.notes-stat-item {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: #f5fafd;
  border-radius: 12px;
}

.notes-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #c75050;
  line-height: 1;
}

.notes-stat-num.mastered {
  color: #2e9c66;
}

.notes-stat-label {
  font-size: 12px;
  color: #687785;
  margin-top: 6px;
  font-weight: 600;
}

.notes-actions {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes-actions .primary-btn:disabled {
  background: #cdd9e0;
  cursor: not-allowed;
}

.notes-filter {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(10, 77, 122, 0.05);
}

.notes-filter[hidden] {
  display: none;
}

.notes-filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #455461;
  margin-bottom: 6px;
}

.notes-filter-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d8e8f0;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  color: #1a2733;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231e88c7' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 36px;
}

.notes-list-section {
  margin-bottom: 24px;
}

.notes-help {
  font-size: 13px;
  color: #687785;
  margin: 0 0 12px;
}

.note-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 4px solid #c75050;
  box-shadow: 0 2px 6px rgba(10, 77, 122, 0.05);
}

.note-item.mastered {
  border-left-color: #2e9c66;
  opacity: 0.85;
}

.note-summary {
  cursor: pointer;
  list-style: none;
}

.note-summary::-webkit-details-marker {
  display: none;
}

.note-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.note-cat-badge {
  font-size: 11px;
  background: #e8f4fb;
  color: #0a4d7a;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.note-meta {
  font-size: 11px;
  color: #c75050;
  font-weight: 600;
}

.note-item.mastered .note-meta {
  color: #2e9c66;
}

.note-question {
  font-size: 14px;
  font-weight: 600;
  color: #1a2733;
  line-height: 1.5;
}

.note-body {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #e0eef5;
}

.note-correct {
  font-size: 13px;
  color: #2e9c66;
  margin-bottom: 8px;
}

.note-label {
  font-weight: 700;
}

.note-explanation {
  font-size: 13px;
  color: #455461;
  background: #f5fafd;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.note-actions {
  display: flex;
  gap: 8px;
}

.note-action-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #1e88c7;
  background: #fff;
  color: #0a4d7a;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.note-action-btn:active {
  transform: scale(0.97);
}

.note-action-remove {
  border-color: #d8a8a8;
  color: #c75050;
}

.notes-mastered-section {
  margin-bottom: 24px;
}

.mastered-details summary {
  cursor: pointer;
  color: #2e9c66;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 0;
}

.notes-empty {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(10, 77, 122, 0.05);
}

.notes-empty .empty-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.notes-empty h2 {
  color: #0a4d7a;
  font-size: 20px;
  margin: 0 0 12px;
}

.notes-empty p {
  color: #687785;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.notes-empty-filter,
.notes-all-done {
  text-align: center;
  color: #687785;
  font-size: 14px;
  padding: 20px;
}

.notes-all-done {
  color: #2e9c66;
  font-weight: 600;
}

.danger-btn {
  display: block;
  width: 100%;
  background: #fff;
  color: #c75050;
  border: 2px solid #d8a8a8;
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.danger-btn:active {
  transform: scale(0.99);
}

/* result.html の弱点克服ボタン（hidden時は非表示） */
.result-actions .secondary-btn[hidden] {
  display: none;
}

/* ===============================================
   タブレット以上
   =============================================== */
@media (min-width: 600px) {
  .site-title {
    font-size: 28px;
  }
  .quiz-question-text {
    font-size: 19px;
  }
  .category-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .category-list {
    grid-template-columns: 1fr;
  }
  .grade-card {
    gap: 12px;
    padding: 16px 12px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .quiz-body {
    padding-top: calc(64px + env(safe-area-inset-top));
  }
  .quiz-main {
    padding-top: 12px;
  }
  .quiz-question-card {
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
