:root {
  --paper: #f3eee5;
  --paper-light: #fffaf3;
  --paper-deep: #e6ded1;
  --ink: #24201d;
  --ink-soft: #665e57;
  --charcoal: #292725;
  --charcoal-light: #373330;
  --wine: #623d3b;
  --wine-dark: #4d2e2d;
  --brass: #a98146;
  --brass-light: #c2a16a;
  --sage: #6d7867;
  --blue: #526c77;
  --line: rgba(55, 45, 37, 0.15);
  --shadow-sm: 0 5px 16px rgba(39, 31, 25, 0.09);
  --shadow-md: 0 14px 38px rgba(35, 28, 24, 0.16);
  --radius: 6px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(169, 129, 70, 0.45);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 14px;
  background: var(--paper-light);
  border: 1px solid var(--brass);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 8px max(18px, calc((100vw - var(--content)) / 2));
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--paper-light);
  background: var(--wine-dark);
  border: 1px solid var(--brass);
  border-radius: 3px;
  font: 600 20px/1 Georgia, serif;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 17px;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-soft);
  font: 600 8px/1.2 Georgia, serif;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-link.is-active {
  color: var(--wine-dark);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.view {
  animation: view-in 260ms ease both;
}

.view[hidden] {
  display: none;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-inner,
.hero-inner {
  width: min(var(--content), calc(100% - 36px));
  margin-inline: auto;
}

.hero-band {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--paper-light);
  border-bottom: 3px solid var(--brass);
}

.hero-band::before,
.hero-band::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(194, 161, 106, 0.22);
  transform: rotate(45deg);
}

.hero-band::before {
  width: 210px;
  height: 210px;
  top: -125px;
  right: 10%;
}

.hero-band::after {
  width: 310px;
  height: 310px;
  bottom: -245px;
  left: 38%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(46px, 8vw, 110px);
  min-height: 390px;
  padding-block: 62px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--brass-light);
  font: 700 11px/1.4 Georgia, serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 66px);
}

.hero-subtitle {
  margin-bottom: 30px;
  color: #d8d0c6;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.back-button,
.master-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:active,
.back-button:active,
.master-button:active,
.icon-button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--brass);
  color: #181512;
}

.button-primary:hover {
  background: var(--brass-light);
}

.button-quiet {
  color: var(--paper-light);
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
}

.button-quiet:hover {
  border-color: var(--brass-light);
  color: var(--brass-light);
}

.button-outline {
  color: var(--wine-dark);
  border-color: var(--wine);
  background: transparent;
}

.progress-panel {
  padding: 28px;
  border: 1px solid rgba(194, 161, 106, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.045);
}

.progress-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.progress-heading .section-kicker {
  display: block;
  margin-bottom: 5px;
}

.progress-heading strong {
  display: block;
  font: 600 28px/1.1 Georgia, serif;
}

.progress-percent {
  color: var(--brass-light);
  font: 600 22px/1 Georgia, serif;
}

.progress-track {
  height: 7px;
  margin: 22px 0 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 10px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brass-light);
  transition: width 360ms ease;
}

.progress-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #c9c0b7;
  font-size: 12px;
}

.progress-foot b {
  color: var(--paper-light);
}

.continue-band {
  padding-block: 27px;
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}

.continue-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 28px;
}

.continue-layout h2,
.archive-heading h2,
.symbolism-layout h2 {
  margin-bottom: 0;
  font-size: 25px;
}

.continue-layout .section-kicker,
.archive-heading .section-kicker,
.symbolism-layout .section-kicker {
  color: var(--wine);
  margin-bottom: 5px;
}

.continue-content {
  min-width: 0;
}

.continue-empty,
.continue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.continue-empty p,
.continue-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.continue-card-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.continue-thumb {
  position: relative;
  width: 42px;
  height: 62px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.continue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.continue-name {
  margin-bottom: 2px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 18px;
  font-weight: 600;
}

.continue-stats {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 13px;
}

.continue-stats b {
  color: var(--wine-dark);
  font-size: 17px;
}

.archive-section {
  min-height: 720px;
  padding-block: 54px 84px;
}

.archive-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.result-summary {
  margin: 0 0 2px;
  color: var(--ink-soft);
  font-size: 13px;
}

.search-wrap {
  position: relative;
  max-width: 720px;
  margin-bottom: 20px;
}

.search-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 47px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-wrap input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169, 129, 70, 0.13);
}

.search-icon {
  position: absolute;
  top: 17px;
  left: 18px;
  width: 15px;
  height: 15px;
  z-index: 1;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 1.5px;
  background: var(--ink-soft);
  transform: rotate(45deg);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.icon-button:hover {
  border-color: var(--brass);
  background: rgba(169, 129, 70, 0.08);
}

.clear-search {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  color: var(--ink-soft);
  font-size: 24px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 12px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-deep) transparent;
}

.filter-tab {
  flex: 0 0 auto;
  min-height: 41px;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.filter-tab span {
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.72;
}

.filter-tab:hover,
.filter-tab.is-active {
  color: var(--paper-light);
  background: var(--wine-dark);
  border-color: var(--wine-dark);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 16px;
}

.tarot-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tarot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tarot-card.is-mastered {
  border-color: rgba(169, 129, 70, 0.72);
  box-shadow: inset 0 0 0 1px rgba(169, 129, 70, 0.2), var(--shadow-sm);
}

.tarot-card-link {
  display: block;
  height: 100%;
}

.card-image-shell,
.detail-image-shell,
.daily-image-shell {
  position: relative;
  overflow: hidden;
  background-color: #ddd3c4;
  background-image: repeating-linear-gradient(45deg, rgba(98, 61, 59, 0.05) 0 1px, transparent 1px 12px);
}

.card-image-shell {
  aspect-ratio: 0.585;
  border-bottom: 1px solid var(--line);
}

.card-image-shell img,
.detail-image-shell img,
.daily-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 16px;
  color: var(--wine-dark);
  text-align: center;
  border: 8px double rgba(98, 61, 59, 0.28);
}

.card-image-shell > img,
.detail-image-shell > img,
.daily-image-shell > img,
.continue-thumb > img {
  position: relative;
  z-index: 1;
}

.image-fallback::before {
  content: "✦";
  font: 28px/1 Georgia, serif;
}

.image-fallback strong {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 16px;
}

.image-fallback small {
  color: var(--ink-soft);
  font-size: 10px;
}

.master-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 4px 8px;
  color: #2e271c;
  background: rgba(238, 218, 178, 0.96);
  border: 1px solid var(--brass);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
}

.card-body {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 14px;
}

.card-suit {
  margin-bottom: 5px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
}

.tarot-card[data-suit="wands"] .card-suit { color: #914d34; }
.tarot-card[data-suit="cups"] .card-suit { color: var(--blue); }
.tarot-card[data-suit="swords"] .card-suit { color: #626575; }
.tarot-card[data-suit="pentacles"] .card-suit { color: var(--sage); }

.card-body h3 {
  margin-bottom: 3px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.card-english {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.3;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.keyword-list span {
  padding: 3px 7px;
  color: var(--ink-soft);
  background: var(--paper);
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.45;
}

.learning-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  padding-top: 10px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.learning-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.is-mastered .learning-status {
  color: #7a612f;
  font-weight: 700;
}

.is-mastered .learning-status::before {
  background: var(--brass);
  border-color: var(--brass);
}

.empty-state {
  padding: 80px 20px;
  text-align: center;
}

.empty-symbol {
  display: block;
  margin-bottom: 12px;
  color: var(--brass);
  font-size: 34px;
}

.empty-state h3 {
  margin-bottom: 7px;
  font-size: 22px;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.back-button {
  padding-inline: 0;
  background: transparent;
  color: var(--ink-soft);
}

.back-button:hover {
  color: var(--wine-dark);
}

.detail-step-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
}

.detail-hero {
  padding-block: 54px 68px;
  background: var(--paper-light);
  border-block: 1px solid var(--line);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 370px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(48px, 7vw, 90px);
}

.detail-figure {
  margin-bottom: 0;
}

.detail-image-shell {
  width: 100%;
  aspect-ratio: 0.585;
  border: 8px solid var(--charcoal);
  border-radius: 5px;
  box-shadow: var(--shadow-md);
}

.detail-image-shell.is-reversed img {
  transform: rotate(180deg);
}

.detail-figure figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 11px;
}

.detail-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-title-line h1 {
  margin-bottom: 4px;
  font-size: clamp(38px, 5vw, 58px);
}

.detail-english {
  margin-bottom: 0;
  color: var(--ink-soft);
  font: 400 18px/1.3 Georgia, serif;
}

.master-button {
  flex: 0 0 auto;
  color: var(--wine-dark);
  border-color: var(--wine);
  background: transparent;
}

.master-button.is-mastered {
  color: #2f291f;
  background: #ead6ad;
  border-color: var(--brass);
}

.orientation-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  max-width: 390px;
  margin: 28px 0;
  padding: 3px;
  background: var(--paper-deep);
  border-radius: 5px;
}

.orientation-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
}

.orientation-switch button.is-active {
  color: var(--paper-light);
  background: var(--wine-dark);
  box-shadow: 0 2px 8px rgba(50, 30, 29, 0.18);
}

.meaning-content {
  animation: content-in 180ms ease;
}

@keyframes content-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.meaning-block {
  margin-bottom: 30px;
}

.meaning-block h2,
.reading-grid h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.meaning-block > p {
  margin-bottom: 0;
  color: #4d4741;
  font-size: 15px;
}

.detail-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 30px;
}

.detail-keywords span {
  padding: 6px 10px;
  color: var(--wine-dark);
  background: #efe5d5;
  border: 1px solid rgba(169, 129, 70, 0.24);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.reading-grid article {
  min-width: 0;
}

.reading-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.reading-grid h3::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--brass);
}

.reading-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.advice-block {
  grid-column: 1 / -1;
  padding: 18px 20px;
  background: var(--paper);
  border-left: 3px solid var(--brass);
}

.symbolism-band {
  padding-block: 55px;
  background: var(--charcoal);
  color: var(--paper-light);
}

.symbolism-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(250px, 0.65fr);
  align-items: start;
  gap: 40px;
}

.symbolism-text {
  margin-bottom: 0;
  color: #d8d0c8;
}

.learning-note {
  padding-left: 20px;
  border-left: 2px solid var(--brass);
}

.learning-note span {
  color: var(--brass-light);
  font-size: 11px;
  font-weight: 700;
}

.learning-note p {
  margin: 5px 0 0;
  color: #d8d0c8;
  font-size: 13px;
}

.daily-intro {
  padding-block: 24px 42px;
  text-align: center;
}

.daily-intro .back-button {
  display: flex;
  margin-right: auto;
}

.daily-intro .section-kicker {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--wine);
}

.daily-intro h1 {
  margin-bottom: 9px;
  font-size: clamp(40px, 5vw, 58px);
}

.daily-intro > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.daily-stage-band {
  min-height: 540px;
  padding-block: 52px;
  background: var(--charcoal);
  color: var(--paper-light);
  border-block: 3px solid var(--brass);
}

.daily-stage {
  display: grid;
  place-items: center;
  min-height: 430px;
}

.draw-state {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(280px, 430px);
  align-items: center;
  justify-content: center;
  gap: clamp(46px, 8vw, 96px);
  width: 100%;
}

.tarot-back-wrap {
  perspective: 1000px;
}

.tarot-back {
  position: relative;
  width: 100%;
  aspect-ratio: 0.585;
  overflow: hidden;
  background: var(--wine-dark);
  border: 9px solid #171514;
  border-radius: 5px;
  box-shadow: var(--shadow-md);
}

.tarot-back::before,
.tarot-back::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--brass-light);
}

.tarot-back::after {
  inset: 34px;
  border: 3px double var(--brass-light);
  transform: rotate(45deg);
}

.back-emblem {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--brass-light);
  font: 42px/1 Georgia, serif;
}

.draw-copy h2 {
  margin-bottom: 13px;
  font-size: 34px;
}

.draw-copy p {
  margin-bottom: 25px;
  color: #cec5bc;
}

.draw-copy .button {
  min-width: 180px;
}

.daily-result-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(280px, 450px);
  align-items: center;
  justify-content: center;
  gap: clamp(46px, 8vw, 96px);
  width: 100%;
}

.daily-image-shell {
  width: 100%;
  aspect-ratio: 0.585;
  border: 9px solid #171514;
  border-radius: 5px;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
}

.daily-image-shell.is-reversed img {
  transform: rotate(180deg);
}

.daily-image-shell.is-revealing {
  animation: reveal-card 920ms cubic-bezier(0.22, 0.78, 0.25, 1) both;
}

@keyframes reveal-card {
  0% { transform: rotateY(90deg) scale(0.96); opacity: 0; }
  55% { transform: rotateY(-7deg) scale(1.01); opacity: 1; }
  100% { transform: rotateY(0) scale(1); opacity: 1; }
}

.daily-result-copy .section-kicker {
  margin-bottom: 8px;
}

.daily-result-copy h2 {
  margin-bottom: 3px;
  font-size: clamp(36px, 5vw, 54px);
}

.daily-result-english {
  margin-bottom: 18px;
  color: #c9c0b7;
  font: 16px/1.3 Georgia, serif;
}

.orientation-badge {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin-bottom: 20px;
  padding: 5px 10px;
  color: #211c17;
  background: var(--brass-light);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.daily-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 25px;
}

.daily-keywords span {
  padding: 5px 9px;
  color: #e2dad1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  font-size: 11px;
}

.daily-result-copy .button-quiet {
  min-width: 156px;
}

.daily-reading {
  padding-block: 62px;
}

.daily-reading-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.daily-reading-header h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.daily-reading-header p {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.daily-reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.daily-reading-grid article {
  min-height: 170px;
  padding: 25px;
  background: var(--paper-light);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.daily-reading-grid article:first-child,
.daily-reading-grid article:last-child {
  grid-column: 1 / -1;
}

.daily-reading-grid h3 {
  margin-bottom: 9px;
  font-size: 18px;
}

.daily-reading-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.daily-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 62px;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: rgba(255, 250, 243, 0.62);
  border: 1px solid var(--line);
}

.daily-disclaimer span {
  color: var(--brass);
  font-size: 20px;
}

.daily-disclaimer p {
  margin: 0;
  font-size: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(18px, calc((100vw - var(--content)) / 2));
  color: #cfc6bd;
  background: #1f1d1b;
  font-size: 11px;
}

.site-footer div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.site-footer strong {
  color: var(--paper-light);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 15px;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  max-width: calc(100% - 36px);
  padding: 11px 16px;
  color: var(--paper-light);
  background: var(--charcoal);
  border: 1px solid var(--brass);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 13px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 100;
  padding: 14px;
  color: #fff;
  background: #7c2f2b;
  text-align: center;
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .symbolism-layout {
    grid-template-columns: 140px 1fr;
  }

  .learning-note {
    grid-column: 2;
  }
}

@media (max-width: 780px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 46px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 48px;
  }

  .progress-panel {
    max-width: 520px;
  }

  .continue-layout,
  .detail-layout,
  .draw-state,
  .daily-result-card {
    grid-template-columns: 1fr;
  }

  .continue-layout {
    gap: 14px;
  }

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

  .detail-figure {
    width: min(360px, 100%);
    margin-inline: auto;
  }

  .draw-state,
  .daily-result-card {
    justify-items: center;
    gap: 38px;
  }

  .tarot-back-wrap,
  .daily-image-shell {
    width: min(280px, 78vw);
  }

  .draw-copy,
  .daily-result-copy {
    width: min(520px, 100%);
    text-align: center;
  }

  .draw-copy .button {
    width: 100%;
  }

  .daily-keywords {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header {
    min-height: 61px;
    padding-inline: 13px;
  }

  .brand-mark {
    width: 31px;
    height: 38px;
    font-size: 17px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .nav-link {
    min-height: 44px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .nav-link::after {
    left: 9px;
    right: 9px;
  }

  .section-inner,
  .hero-inner {
    width: min(100% - 28px, var(--content));
  }

  .hero-inner {
    gap: 28px;
    min-height: 0;
    padding-block: 38px;
  }

  .hero-copy h1 {
    font-size: 39px;
  }

  .hero-subtitle {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1 1 140px;
  }

  .progress-panel {
    padding: 21px;
  }

  .continue-band {
    padding-block: 24px;
  }

  .continue-card,
  .continue-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .continue-card > .button,
  .continue-empty > .button {
    width: 100%;
  }

  .continue-stats {
    width: 100%;
    justify-content: space-between;
  }

  .archive-section {
    padding-block: 42px 64px;
  }

  .archive-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .card-body {
    min-height: 150px;
    padding: 11px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-english {
    min-height: 28px;
    margin-bottom: 9px;
    font-size: 10px;
  }

  .keyword-list span:nth-child(n+3) {
    display: none;
  }

  .detail-topbar {
    min-height: 62px;
  }

  .detail-step-actions {
    gap: 6px;
  }

  .detail-step-actions .icon-button {
    width: 38px;
    height: 38px;
  }

  .detail-hero {
    padding-block: 36px 50px;
  }

  .detail-layout {
    gap: 38px;
  }

  .detail-figure {
    width: min(310px, 86vw);
  }

  .detail-title-line {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-title-line h1 {
    font-size: 38px;
  }

  .master-button {
    width: 100%;
  }

  .orientation-switch {
    max-width: none;
  }

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

  .advice-block {
    grid-column: auto;
  }

  .symbolism-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .learning-note {
    grid-column: auto;
  }

  .daily-intro {
    padding-block: 18px 34px;
  }

  .daily-intro h1 {
    font-size: 39px;
  }

  .daily-stage-band {
    min-height: 0;
    padding-block: 40px;
  }

  .daily-stage {
    min-height: 0;
  }

  .tarot-back-wrap,
  .daily-image-shell {
    width: min(238px, 72vw);
  }

  .draw-copy h2 {
    font-size: 28px;
  }

  .daily-reading {
    padding-block: 46px;
  }

  .daily-reading-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .daily-reading-grid {
    grid-template-columns: 1fr;
  }

  .daily-reading-grid article:first-child,
  .daily-reading-grid article:last-child {
    grid-column: auto;
  }

  .daily-reading-grid article {
    min-height: 0;
    padding: 21px;
  }

  .site-footer,
  .site-footer div {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}

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

/* Cowcat & Strawberry comic theme */
:root {
  --paper: #fff1d4;
  --paper-light: #fffaf0;
  --paper-deep: #f3d9ae;
  --ink: #171411;
  --ink-soft: #62554c;
  --charcoal: #171411;
  --charcoal-light: #2e2823;
  --wine: #e84158;
  --wine-dark: #bd263f;
  --brass: #f5bd22;
  --brass-light: #ffd652;
  --sage: #3c804b;
  --blue: #2c9fc7;
  --line: rgba(23, 20, 17, 0.22);
  --shadow-sm: 4px 4px 0 #171411;
  --shadow-md: 7px 7px 0 #171411;
  --radius: 5px;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 20, 17, 0.07) 1px, transparent 1.5px);
  background-size: 12px 12px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 900;
}

.site-header {
  min-height: 72px;
  background: #fffaf0;
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 var(--brass);
  backdrop-filter: none;
}

.brand-mark {
  width: 50px;
  height: 48px;
  overflow: hidden;
  background: var(--brass);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 43%;
  transform: scale(1.65);
}

.brand strong {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 900;
}

.brand small {
  color: var(--wine-dark);
  font-weight: 900;
}

.nav-link {
  color: var(--ink);
  font-weight: 900;
}

.nav-link::after {
  height: 5px;
  background: var(--wine);
  border: 1px solid var(--ink);
}

.nav-link.is-active {
  color: var(--wine-dark);
}

.hero-band {
  min-height: 560px;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--brass);
  background-image: radial-gradient(rgba(23, 20, 17, 0.14) 1.2px, transparent 1.7px);
  background-size: 12px 12px;
  border-bottom: 6px solid var(--ink);
}

.hero-band::before {
  display: none;
}

.hero-band::after {
  display: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
  grid-template-areas:
    "copy art"
    "progress art";
  align-items: center;
  gap: 28px 54px;
  min-height: 560px;
  padding-block: 54px 46px;
}

.hero-copy {
  grid-area: copy;
  position: relative;
  width: 100%;
}

.hero-art {
  grid-area: art;
  width: 100%;
  margin: 0;
  padding: 7px;
  background: #fffaf0;
  border: 5px solid var(--ink);
  border-radius: 5px;
  box-shadow: 11px 11px 0 var(--wine);
  transform: rotate(1deg);
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 690 / 552;
  object-fit: contain;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-copy::after {
  top: 8px;
  right: -24px;
  width: 30px;
  height: 36px;
  z-index: -1;
  background-color: var(--wine);
  background-image: radial-gradient(#fff3b5 1.5px, transparent 2px);
  background-size: 9px 9px;
  border: 3px solid var(--ink);
  border-radius: 48% 48% 55% 55%;
  transform: rotate(18deg);
}

.hero-copy::before {
  top: -1px;
  right: -17px;
  width: 20px;
  height: 12px;
  z-index: 1;
  background: var(--sage);
  border: 3px solid var(--ink);
  border-radius: 60% 12% 60% 12%;
  transform: rotate(-16deg);
}

.eyebrow,
.section-kicker {
  color: var(--wine-dark);
  font-family: "Arial Black", "Microsoft YaHei UI", sans-serif;
  font-weight: 900;
}

.hero-copy h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 60px;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 3px 3px 0 #ffffff;
}

.hero-subtitle {
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 700;
}

.button,
.master-button,
.icon-button,
.filter-tab,
.search-wrap input {
  border-width: 3px;
  border-color: var(--ink);
}

.button,
.master-button {
  min-height: 48px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}

.button:hover,
.master-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button:active,
.master-button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button-primary {
  color: var(--ink);
  background: var(--wine);
  border-color: var(--ink);
}

.button-primary:hover {
  background: #ff6378;
}

.button-quiet,
.button-outline {
  color: var(--ink);
  background: var(--paper-light);
  border-color: var(--ink);
}

.button-quiet:hover,
.button-outline:hover {
  color: var(--ink);
  background: var(--brass-light);
  border-color: var(--ink);
}

.progress-panel {
  grid-area: progress;
  width: 100%;
  margin-top: 0;
  padding: 22px;
  color: var(--ink);
  background-color: #fffaf0;
  background-image: radial-gradient(rgba(232, 65, 88, 0.2) 1px, transparent 1.5px);
  background-size: 9px 9px;
  border: 4px solid var(--ink);
  border-radius: 5px;
  box-shadow: 7px 7px 0 var(--wine);
}

.progress-heading strong {
  color: var(--ink);
  font-family: "Arial Black", "Microsoft YaHei UI", sans-serif;
}

.progress-percent {
  color: var(--wine-dark);
  font-family: "Arial Black", sans-serif;
}

.progress-track {
  height: 13px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.progress-track span {
  background: var(--sage);
  border-right: 2px solid var(--ink);
}

.progress-foot,
.progress-foot b {
  color: var(--ink);
}

.continue-band {
  padding-block: 30px;
  background-color: #4db5d8;
  background-image: radial-gradient(rgba(23, 20, 17, 0.14) 1.2px, transparent 1.6px);
  background-size: 10px 10px;
  border-bottom: 5px solid var(--ink);
}

.continue-layout h2,
.continue-layout .section-kicker,
.continue-empty p,
.continue-card p,
.continue-stats,
.continue-stats b {
  color: var(--ink);
}

.continue-thumb {
  border: 3px solid var(--ink);
  border-radius: 3px;
  box-shadow: 3px 3px 0 var(--ink);
}

.continue-name {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 900;
}

.archive-section {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(232, 65, 88, 0.11) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
}

.archive-heading h2,
.continue-layout h2,
.symbolism-layout h2 {
  font-size: 28px;
  font-weight: 900;
}

.archive-heading .section-kicker,
.symbolism-layout .section-kicker {
  color: var(--wine-dark);
}

.result-summary {
  padding: 5px 10px;
  color: var(--ink);
  background: var(--brass-light);
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-weight: 900;
}

.search-wrap input {
  height: 54px;
  color: var(--ink);
  background: #fffaf0;
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 700;
}

.search-wrap input:focus {
  border-color: var(--wine);
  box-shadow: 5px 5px 0 var(--ink);
}

.search-icon {
  border-width: 3px;
  border-color: var(--ink);
}

.search-icon::after {
  height: 3px;
  background: var(--ink);
}

.filter-tabs {
  gap: 10px;
  padding-block: 7px 15px;
}

.filter-tab {
  min-height: 44px;
  color: var(--ink);
  background: #fffaf0;
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
}

.filter-tab:hover,
.filter-tab.is-active {
  color: var(--ink);
  background: var(--brass-light);
  border-color: var(--ink);
}

.filter-tab:nth-child(3n + 2):not(.is-active) {
  background: #ffc2ce;
}

.filter-tab:nth-child(3n):not(.is-active) {
  background: #b8e6f1;
}

.tarot-card {
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-radius: 5px;
  box-shadow: 5px 5px 0 var(--ink);
}

.tarot-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: 8px 9px 0 var(--ink);
}

.tarot-card.is-mastered {
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--sage);
}

.card-image-shell {
  border-bottom: 3px solid var(--ink);
}

.card-image-shell img,
.detail-image-shell img,
.daily-image-shell img {
  object-fit: contain;
  background: #fffaf0;
}

.master-badge {
  color: var(--ink);
  background: var(--brass-light);
  border: 3px solid var(--ink);
  border-radius: 3px;
  box-shadow: 2px 2px 0 var(--ink);
}

.card-body h3 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 900;
}

.card-suit {
  color: var(--wine-dark);
  font-weight: 900;
}

.tarot-card[data-suit="wands"] .card-suit { color: #cf4a1d; }
.tarot-card[data-suit="cups"] .card-suit { color: #127a9f; }
.tarot-card[data-suit="swords"] .card-suit { color: #764ca1; }
.tarot-card[data-suit="pentacles"] .card-suit { color: #347c43; }

.keyword-list span {
  color: var(--ink);
  background: #ffdce2;
  border: 1px solid var(--ink);
  font-weight: 700;
}

.tarot-card[data-suit="cups"] .keyword-list span { background: #ccecf4; }
.tarot-card[data-suit="swords"] .keyword-list span { background: #e3d4ef; }
.tarot-card[data-suit="pentacles"] .keyword-list span { background: #d8edcf; }

.learning-status {
  color: var(--ink-soft);
  border-top: 2px dashed var(--ink);
  font-weight: 800;
}

.learning-status::before {
  border-width: 2px;
}

.is-mastered .learning-status {
  color: #286537;
}

.is-mastered .learning-status::before {
  background: var(--sage);
  border-color: var(--ink);
}

.empty-state {
  margin-top: 24px;
  background: #fffaf0 url("assets/theme/cowcat-orange.png") center 38% / cover no-repeat;
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.empty-state h3,
.empty-state p,
.empty-symbol {
  display: inline-block;
  padding: 4px 9px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.94);
  border: 2px solid var(--ink);
}

.detail-topbar {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--content)) / 2));
  background-color: #ff9eb1;
  background-image: radial-gradient(rgba(23, 20, 17, 0.13) 1.2px, transparent 1.6px);
  background-size: 10px 10px;
  border-bottom: 4px solid var(--ink);
}

.back-button {
  color: var(--ink);
  font-weight: 900;
}

.detail-step-actions .icon-button {
  background: #fffaf0;
  box-shadow: 3px 3px 0 var(--ink);
}

.detail-hero {
  background-color: #ffe89b;
  background-image: radial-gradient(rgba(23, 20, 17, 0.1) 1.2px, transparent 1.6px);
  background-size: 13px 13px;
  border-block: 0 5px solid var(--ink);
}

.detail-image-shell {
  border: 6px solid var(--ink);
  border-radius: 4px;
  box-shadow: 9px 9px 0 var(--wine);
}

.detail-figure figcaption {
  color: var(--ink);
  font-weight: 700;
}

.detail-title-line {
  border-bottom: 3px solid var(--ink);
}

.detail-title-line h1 {
  font-size: 56px;
}

.master-button {
  color: var(--ink);
  background: #fffaf0;
  border-color: var(--ink);
}

.master-button.is-mastered {
  color: var(--ink);
  background: var(--sage);
  border-color: var(--ink);
}

.orientation-switch {
  max-width: 420px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
}

.orientation-switch button {
  min-height: 46px;
  color: var(--ink);
  border-radius: 0;
  font-weight: 900;
}

.orientation-switch button + button {
  border-left: 3px solid var(--ink);
}

.orientation-switch button.is-active {
  color: var(--ink);
  background: var(--wine);
  box-shadow: none;
}

.orientation-switch button[data-orientation="reversed"].is-active {
  background: var(--blue);
}

.detail-keywords span {
  color: var(--ink);
  background: #fffaf0;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--wine);
  font-weight: 900;
}

.reading-grid {
  border-top: 3px solid var(--ink);
}

.reading-grid h3::before {
  height: 4px;
  background: var(--wine);
}

.advice-block {
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-left: 9px solid var(--sage);
  box-shadow: 4px 4px 0 var(--ink);
}

.symbolism-band {
  color: var(--ink);
  background-color: var(--blue);
  background-image: radial-gradient(rgba(23, 20, 17, 0.18) 1.3px, transparent 1.8px);
  background-size: 11px 11px;
  border-bottom: 5px solid var(--ink);
}

.symbolism-text,
.learning-note p {
  color: var(--ink);
  font-weight: 600;
}

.symbolism-layout .section-kicker,
.learning-note span {
  color: var(--ink);
}

.learning-note {
  padding: 18px;
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-left: 9px solid var(--wine);
  box-shadow: 5px 5px 0 var(--ink);
}

.daily-intro {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--content)) / 2));
  background-color: #ff9eb1;
  background-image: radial-gradient(rgba(23, 20, 17, 0.13) 1.2px, transparent 1.6px);
  background-size: 10px 10px;
  border-bottom: 5px solid var(--ink);
}

.daily-intro h1 {
  font-size: 56px;
  text-shadow: 3px 3px 0 #fffaf0;
}

.daily-intro > p:last-child {
  color: var(--ink);
  font-weight: 700;
}

.daily-stage-band {
  color: #fffaf0;
  background-color: var(--charcoal);
  background-image: radial-gradient(rgba(245, 189, 34, 0.2) 1.4px, transparent 1.8px);
  background-size: 13px 13px;
  border-block: 0 5px solid var(--ink);
}

.tarot-back {
  background: var(--wine) url("assets/theme/cowcat-pink.png") center center / cover no-repeat;
  border: 7px solid #fffaf0;
  outline: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--wine);
}

.tarot-back::before {
  inset: 12px;
  border: 4px solid var(--ink);
}

.tarot-back::after {
  display: none;
}

.back-emblem {
  display: none;
}

.draw-copy h2,
.daily-result-copy h2 {
  font-size: 46px;
}

.draw-copy p {
  color: #fff4df;
  font-weight: 700;
}

.daily-image-shell {
  border: 6px solid #fffaf0;
  outline: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--wine);
}

.orientation-badge {
  color: var(--ink);
  background: var(--brass-light);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--wine);
}

.daily-keywords span {
  color: #fffaf0;
  border: 2px solid #fffaf0;
  font-weight: 800;
}

.daily-reading {
  background: transparent;
}

.daily-reading-grid {
  gap: 12px;
  border: 0;
}

.daily-reading-grid article {
  background: #fffaf0;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.daily-reading-grid article:nth-child(2) { background: #ffd9e0; }
.daily-reading-grid article:nth-child(3) { background: #cdeef6; }
.daily-reading-grid article:nth-child(4) { background: #fff0aa; }
.daily-reading-grid article:nth-child(5) { background: #d9efcf; }

.daily-disclaimer {
  color: var(--ink);
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-left: 9px solid var(--wine);
  box-shadow: 5px 5px 0 var(--ink);
}

.daily-disclaimer span {
  color: var(--wine-dark);
}

.site-footer {
  color: #fff1d4;
  background: var(--ink);
  border-top: 6px solid var(--wine);
}

.site-footer div {
  align-items: center;
}

.site-footer strong {
  color: #fffaf0;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 900;
}

.footer-cat {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: 68% 40%;
  border: 3px solid #fffaf0;
  border-radius: 50%;
}

.toast {
  color: var(--ink);
  background: var(--brass-light);
  border: 3px solid var(--ink);
  border-radius: 3px;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
}

@media (max-width: 780px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "art"
      "progress";
    gap: 30px;
    min-height: 0;
    padding-block: 44px 52px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-art {
    width: min(620px, calc(100% - 12px));
    margin-inline: auto;
  }

  .progress-panel {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .detail-title-line h1,
  .daily-intro h1 {
    font-size: 46px;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 66px;
    box-shadow: 0 3px 0 var(--brass);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 15px;
  }

  .hero-inner {
    gap: 24px;
    min-height: 0;
    padding-block: 36px 44px;
  }

  .hero-copy,
  .progress-panel {
    width: 100%;
  }

  .hero-copy::before,
  .hero-copy::after {
    display: none;
  }

  .hero-copy h1 {
    font-size: 42px;
    text-shadow: 2px 2px 0 #ffffff;
  }

  .hero-subtitle {
    color: var(--ink);
    font-size: 16px;
  }

  .progress-panel {
    margin-top: 0;
    box-shadow: 5px 5px 0 var(--wine);
  }

  .hero-art {
    width: calc(100% - 8px);
    padding: 4px;
    border-width: 4px;
    box-shadow: 7px 7px 0 var(--wine);
    transform: none;
  }

  .continue-band {
    padding-block: 26px;
  }

  .card-grid {
    gap: 16px 12px;
  }

  .tarot-card {
    box-shadow: 4px 4px 0 var(--ink);
  }

  .card-body h3 {
    font-size: 16px;
  }

  .detail-topbar {
    padding-inline: 14px;
  }

  .detail-title-line h1,
  .daily-intro h1 {
    font-size: 40px;
  }

  .detail-image-shell {
    box-shadow: 7px 7px 0 var(--wine);
  }

  .symbolism-band {
    padding-block: 45px;
  }

  .daily-intro {
    padding-inline: 14px;
  }

  .draw-copy h2,
  .daily-result-copy h2 {
    font-size: 34px;
  }

  .draw-state .draw-copy {
    order: -1;
  }

  .tarot-back,
  .daily-image-shell {
    box-shadow: 7px 7px 0 var(--wine);
  }

  .daily-reading-grid {
    gap: 10px;
  }

  .site-footer div {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
