﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,800&family=DM+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --barn: #b8421a;
  --barn-dark: #8c3214;
  --wheat: #d4a84b;
  --sage: #6b8f71;
  --sage-light: #e4ede5;
  --cream: #f7f2ea;
  --cream-dark: #ebe4d8;
  --ink: #2a2218;
  --muted: #6b6358;
  --white: #fffcf8;
  --line: #d9cfc0;
  --max: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  transition: background 0.55s ease;
}

/* Home page section backgrounds (default.html) */
body.view-home {
  background: linear-gradient(165deg, #f7f2ea 0%, #faf8f4 50%, #f0ebe3 100%);
}

body.view-about {
  background: linear-gradient(165deg, #fdf8ee 0%, #f8efe3 45%, #f3e8d8 100%);
}

body.view-game {
  background: linear-gradient(165deg, #dce8dd 0%, #e4ede5 40%, #d4e2d5 100%);
}

body.view-about .masthead {
  background: rgba(253, 248, 238, 0.95);
  border-bottom-color: #e8dcc8;
}

body.view-game .masthead {
  background: rgba(228, 237, 229, 0.95);
  border-bottom-color: #c5d4c6;
}

body.view-home .masthead {
  background: rgba(255, 252, 248, 0.95);
  border-bottom-color: var(--line);
}

body.view-about .divider-band {
  background: #faf3e8;
  border-color: #e8dcc8;
}

body.view-game .divider-band,
body.view-about .divider-band {
  transition: background 0.55s ease, border-color 0.55s ease;
}

body.view-game .divider-band {
  background: #d8e6d9;
  border-color: #c5d4c6;
}

a { color: var(--barn); text-decoration: none; }
a:hover { color: var(--barn-dark); }

/* ── Split masthead (center logo, nav on both sides) ── */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(8px);
  transition: background 0.55s ease, border-color 0.55s ease;
}

.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.masthead-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.masthead-logo img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid var(--wheat);
}

.masthead-logo span {
  font-family: 'Fraunces', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--barn);
  text-transform: uppercase;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-right { justify-content: flex-end; }

.masthead nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.masthead nav a:hover {
  color: var(--ink);
  background: var(--cream-dark);
}

.masthead nav a.active {
  color: var(--white);
  background: var(--barn);
}

.masthead nav a.nav-shop {
  background: var(--wheat);
  color: var(--ink);
}

.masthead nav a.nav-shop:hover {
  background: #c99538;
  color: var(--ink);
}

.masthead nav a.nav-shop.active {
  background: var(--barn);
  color: var(--white);
}

.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 28px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  text-decoration: none;
}

.mobile-nav a:hover { background: var(--cream); }
.mobile-nav a.active { background: var(--barn); color: var(--white); }

/* ── Split intro (NOT full-bleed hero) ── */
.intro-split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 480px;
}

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.intro-copy h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}

.intro-copy h1 em {
  font-style: normal;
  color: var(--barn);
}

.intro-copy .lead {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 420px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-solid {
  display: inline-block;
  padding: 14px 26px;
  background: var(--barn);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-solid:hover { background: var(--barn-dark); color: var(--white) !important; }

.btn-outline {
  display: inline-block;
  padding: 13px 24px;
  border: 2px solid var(--line);
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--barn);
  color: var(--barn) !important;
}

.cta-row img {
  height: 42px;
  transition: opacity 0.2s;
}

.cta-row img:hover { opacity: 0.85; }

.intro-visual {
  position: relative;
}

.intro-visual::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--wheat);
  border-radius: 4px;
  z-index: 0;
}

.intro-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 8px 8px 0 var(--sage-light);
}

.intro-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  z-index: 2;
  background: var(--wheat);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
}

/* ── Dotted divider band ── */
.divider-band {
  border-top: 2px dotted var(--line);
  border-bottom: 2px dotted var(--line);
  background: var(--white);
  padding: 14px 0;
  overflow: hidden;
  transition: background 0.55s ease, border-color 0.55s ease;
}

.divider-band-inner {
  display: flex;
  gap: 40px;
  animation: scroll-band 28s linear infinite;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.divider-band-inner span::before {
  content: '◆';
  color: var(--wheat);
  margin-right: 12px;
}

@keyframes scroll-band {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Numbered sections ── */
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px;
  scroll-margin-top: 90px;
}

.block-num {
  font-family: 'Fraunces', serif;
  font-size: 72px;
  font-weight: 800;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: -20px;
  user-select: none;
}

.block-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.block-head h2 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 700;
}

.block-sage { background: var(--sage-light); }

/* About: single column + pull quote */
.about-prose {
  max-width: 720px;
}

.about-prose p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
}

.pullquote {
  margin: 36px 0;
  padding: 28px 32px;
  border-left: 5px solid var(--barn);
  background: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

.value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}

.value-item {
  flex: 1;
  min-width: 140px;
  padding: 20px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.value-item:last-child { border-right: none; }

.value-item strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--barn);
  margin-bottom: 4px;
}

.value-item span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Game: timeline + filmstrip */
.game-desc {
  max-width: 640px;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 36px;
}

.timeline {
  list-style: none;
  margin-bottom: 48px;
  border-left: 2px solid var(--line);
  padding-left: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 24px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.timeline li::before {
  content: attr(data-n);
  position: absolute;
  left: -14px;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--barn);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filmstrip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.filmstrip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.filmstrip::-webkit-scrollbar { height: 6px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.filmstrip img {
  flex: 0 0 auto;
  width: 280px;
  height: 158px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--line);
  scroll-snap-align: start;
}

.play-bar {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--barn);
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.play-bar p {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 15px;
}

.play-bar .cta-row img { height: 40px; }

/* ── Inner page title (simple, no dark banner) ── */
.page-title {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 28px 24px;
}

.page-title h1 {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-title p {
  color: var(--muted);
  font-size: 15px;
}

.breadcrumb {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a { color: var(--sage); }

/* ── Contact: definition list ── */
.contact-dl {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 64px;
}

.dl-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.dl-row:first-child { border-top: 1px solid var(--line); }

.dl-row dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--barn);
  padding-top: 2px;
}

.dl-row dd {
  font-size: 16px;
  color: var(--ink);
}

.dl-row dd a { font-weight: 600; }

/* ── Shop: list rows + checkout below ── */
.shop-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 64px;
}

.shop-notice {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.shop-notice ol {
  margin-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.shop-notice li { margin-bottom: 6px; }

.coin-list {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  margin-bottom: 40px;
}

.coin-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}

.coin-row:last-child { border-bottom: none; }

.coin-row:hover { background: var(--cream); }

.coin-row.selected {
  background: var(--sage-light);
  box-shadow: inset 4px 0 0 var(--barn);
}

.coin-row img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.coin-row .coin-title {
  font-weight: 700;
  font-size: 15px;
}

.coin-row .coin-price {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--barn);
}

.coin-row .pick-btn {
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}

.coin-row.selected .pick-btn,
.coin-row .pick-btn:hover {
  background: var(--barn);
  border-color: var(--barn);
  color: var(--white);
}

.coin-loading, .coin-error {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.checkout-panel {
  max-width: 560px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 32px;
}

.checkout-panel h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
}

.form-group input:focus {
  outline: 2px solid var(--sage);
  outline-offset: 0;
  background: var(--white);
}

.form-group input[readonly] {
  background: var(--cream-dark);
  color: var(--muted);
}

.pay-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-pills label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  transition: all 0.15s;
}

.pay-pills label:has(input:checked) {
  background: var(--barn);
  border-color: var(--barn);
  color: var(--white);
}

.agreement label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  cursor: pointer;
}

.agreement input { margin-top: 3px; }

.form-error {
  color: var(--barn);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-error.visible { display: block; }

.btn-confirm {
  width: 100%;
  padding: 15px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn-confirm:hover:not(:disabled) { background: var(--barn); }
.btn-confirm:disabled { background: #aaa; cursor: not-allowed; }

.order-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  display: none;
  font-size: 14px;
}

.order-message.success {
  display: block;
  background: var(--sage-light);
  color: #2d5a34;
  border: 1px solid var(--sage);
}

.order-message.error {
  display: block;
  background: #fde8e0;
  color: var(--barn-dark);
  border: 1px solid #e8a090;
}

/* ── Policy ── */
.policy-sheet {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.policy-sheet p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
}

/* ── Footer: compact inline ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 28px;
  text-align: center;
  font-size: 13px;
}

.footer-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 4px;
  margin-bottom: 10px;
}

.footer-inline a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0 10px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.footer-inline a:last-child { border-right: none; }
.footer-inline a:hover { color: var(--wheat); }

.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .masthead-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-left, .nav-right { display: none; }

  .nav-toggle { display: block; }

  .masthead-logo { grid-column: 1; justify-self: start; flex-direction: row; gap: 10px; }

  .masthead-logo span { font-size: 10px; }

  .intro-split {
    grid-template-columns: 1fr;
    padding-top: 32px;
    min-height: auto;
  }

  .intro-visual { order: -1; }

  .value-item { border-right: none; border-bottom: 1px solid var(--line); }
  .value-item:last-child { border-bottom: none; }

  .dl-row { grid-template-columns: 1fr; gap: 6px; }

  .coin-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }

  .coin-row .coin-price { grid-column: 2; }
  .coin-row .pick-btn { grid-column: 1 / -1; width: 100%; }

  .play-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .block-num { font-size: 48px; }
  .filmstrip img { width: 220px; height: 124px; }
}

/* ── Order confirmation (confirm.php) ── */
.confirm-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.confirm-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 36px 32px;
  box-shadow: 8px 8px 0 var(--cream-dark);
}

.confirm-status {
  text-align: center;
  margin-bottom: 28px;
}

.confirm-status .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--sage-light);
  border: 2px solid var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--sage);
}

.confirm-status h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  color: var(--ink);
}

.confirm-status p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.confirm-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.confirm-row:last-child { border-bottom: none; }

.confirm-row .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 100px;
}

.confirm-row .value {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.confirm-row .value.code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 4px;
}

.confirm-row .value.total {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--barn);
}

.confirm-pay-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--barn);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.confirm-pay-btn:hover {
  background: var(--barn-dark);
  color: var(--white);
}

.confirm-notice {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff8e8;
  border-left: 4px solid var(--wheat);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-back {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

.confirm-error {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 28px 64px;
  text-align: center;
  color: var(--barn);
  font-weight: 600;
}

/* ── Payment result (payfinish.php) ── */
.result-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.result-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 8px 8px 0 var(--cream-dark);
}

.result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
}

.result-icon.success {
  background: var(--sage-light);
  border: 2px solid var(--sage);
  color: #2d5a34;
}

.result-icon.failed {
  background: #fde8e0;
  border: 2px solid var(--barn);
  color: var(--barn);
}

.result-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--ink);
}

.result-card .result-lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.result-meta {
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.result-actions .btn-solid,
.result-actions .btn-outline {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.result-notice {
  margin-top: 20px;
  padding: 14px 16px;
  background: #fff8e8;
  border-left: 4px solid var(--wheat);
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  line-height: 1.55;
}

/* ── Error page (error.php) ── */
.error-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.error-card {
  background: var(--white);
  border: 2px solid var(--barn);
  border-radius: 4px;
  padding: 40px 32px;
  box-shadow: 8px 8px 0 #fde8e0;
}

.error-card .result-icon {
  background: #fde8e0;
  border-color: var(--barn);
  color: var(--barn);
}

.error-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  color: var(--barn);
  text-align: center;
  margin-bottom: 12px;
}

.error-detail-box {
  background: #fde8e0;
  border-radius: 4px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--barn-dark);
  line-height: 1.6;
  word-break: break-word;
}

.error-detail-box strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.error-help {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  color: var(--muted);
}

.error-help strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.error-help ul {
  margin-left: 18px;
}

.error-help li {
  margin-bottom: 4px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.error-actions .btn-solid,
.error-actions .btn-outline {
  flex: 1;
  min-width: 140px;
  text-align: center;
}
