:root {
  color-scheme: light;
  --ink: #1b1712;
  --ink-soft: #36291c;
  --muted: #746758;
  --line: #eadfc8;
  --paper: #fff7e8;
  --paper-strong: #fff1d1;
  --surface: #fffdf8;
  --surface-warm: #fff9ed;
  --black: #19130d;
  --gold: #f6c744;
  --gold-soft: #ffe8a1;
  --orange: #f28a22;
  --orange-dark: #bd5d13;
  --cream: #fffaf0;
  --success: #2f7a4d;
  --danger: #c4452d;
  --warning: #a86600;
  --shadow: 0 18px 38px rgba(59, 39, 16, 0.14);
  --shadow-soft: 0 10px 24px rgba(59, 39, 16, 0.1);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 28px));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.94), rgba(255, 250, 240, 0.98)),
    radial-gradient(circle at top left, rgba(246, 199, 68, 0.2), transparent 34%);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

.layout-order {
  padding-bottom: 92px;
  background: #fff6e4;
  font-size: 18px;
}

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

img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f4ead8;
  color: var(--ink);
  font-size: 0.9em;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(234, 223, 200, 0.92);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(16px);
}

.layout-order .site-header {
  background: rgba(25, 19, 13, 0.96);
  color: var(--cream);
  border-bottom-color: rgba(246, 199, 68, 0.24);
}

.layout-admin .site-header {
  background: #17110c;
  color: var(--cream);
  border-bottom-color: rgba(246, 199, 68, 0.28);
}

.nav {
  width: var(--container);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 950;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.layout-order .brand-subtitle,
.layout-admin .brand-subtitle {
  color: var(--gold-soft);
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.layout-order .nav-toggle,
.layout-admin .nav-toggle {
  border-color: rgba(246, 199, 68, 0.42);
  background: rgba(255, 250, 240, 0.08);
  color: var(--cream);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle-lines::before {
  transform: translateY(-7px);
}

.nav-toggle-lines::after {
  transform: translateY(5px);
}

.nav-links {
  position: absolute;
  top: 68px;
  right: 14px;
  left: 14px;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav-links.is-open {
  display: grid;
  gap: 8px;
}

.nav-links a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
}

.layout-order .nav-links,
.layout-admin .nav-links {
  border-color: rgba(246, 199, 68, 0.32);
  background: #20170f;
}

.layout-order .nav-links a,
.layout-admin .nav-links a {
  color: #f8eacb;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--black);
  color: var(--gold);
}

.layout-order .nav-links a:hover,
.layout-order .nav-links a[aria-current="page"],
.layout-admin .nav-links a:hover,
.layout-admin .nav-links a[aria-current="page"] {
  background: var(--gold);
  color: var(--black);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 48px 0;
}

.section-tight {
  padding: 30px 0;
}

.section-title {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 12vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 8vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero {
  min-height: min(760px, calc(88svh - 68px));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 246, 228, 0.9) 54%, rgba(255, 250, 240, 0.18) 100%),
    url("../assets/hero-boardgames.svg") center bottom / cover no-repeat;
}

.hero-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 44px 0 160px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(246, 199, 68, 0.66);
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.9);
  color: var(--orange-dark);
  font-size: 0.86rem;
  font-weight: 950;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .btn,
.actions .btn {
  flex: 1 1 160px;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 760px;
  margin-top: 28px;
}

.fact {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(59, 39, 16, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-soft);
}

.fact strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.06rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(59, 39, 16, 0.18);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-dark {
  background: var(--black);
  color: var(--cream);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-small {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 0.92rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

.card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card-flat {
  box-shadow: none;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img,
.event-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-strong);
}

.card-body {
  padding: 18px;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 241, 209, 0.7), rgba(255, 250, 240, 0.95));
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quick-link {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-weight: 950;
}

.quick-link span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.quick-link:hover {
  border-color: var(--gold);
  background: #fff8df;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.status {
  background: #f3ead8;
  color: var(--muted);
}

.status-published,
.status-confirmed,
.status-completed {
  background: #e8f4dc;
  color: var(--success);
}

.status-full,
.status-pending {
  background: #fff1c2;
  color: var(--warning);
}

.status-closed,
.status-cancelled,
.status-no_show {
  background: #ffe0d5;
  color: var(--danger);
}

.event-card {
  display: grid;
  overflow: hidden;
  padding: 0;
}

.event-card h3 {
  font-size: 1.22rem;
}

.event-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.event-meta-item {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child {
  border-bottom: 0;
}

.muted {
  color: var(--muted);
}

.price {
  color: var(--orange-dark);
  font-weight: 950;
}

.split,
.booking-shell,
.order-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.offer-grid {
  align-items: stretch;
}

.offer-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(246, 199, 68, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 244, 216, 0.92));
}

.offer-card h2 {
  font-size: 1.35rem;
}

.form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.label {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid #d9c9a8;
  border-radius: var(--radius);
  background: #fffef9;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 138, 34, 0.18);
}

.date-field input {
  min-height: 58px;
  font-size: 1.08rem;
  font-weight: 900;
}

.segmented {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.segmented button,
.segmented a {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 950;
}

.segmented button[aria-pressed="true"],
.segmented a[aria-current="true"] {
  border-color: var(--black);
  background: var(--black);
  color: var(--gold);
}

.notice {
  padding: 14px 16px;
  border: 1px solid #cce4b8;
  border-radius: var(--radius);
  background: #f1ffe9;
  color: var(--success);
}

.notice-warning {
  border-color: #f1ce75;
  background: #fff7dc;
  color: var(--warning);
}

.notice-error {
  border-color: #efb5a5;
  background: #fff0ea;
  color: var(--danger);
}

.capacity-card {
  display: grid;
  gap: 12px;
  background: var(--black);
  color: var(--cream);
}

.capacity-card .muted {
  color: #e7d6b2;
}

.capacity-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.capacity-number {
  padding: 12px 8px;
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.08);
  text-align: center;
}

.capacity-number strong {
  display: block;
  color: var(--gold);
  font-size: 1.55rem;
  line-height: 1.1;
}

.night-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--black);
  color: var(--gold);
  font-weight: 950;
}

.booking-success {
  display: grid;
  gap: 10px;
}

.booking-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--gold);
  font-size: 1.18rem;
  font-weight: 950;
}

.order-hero {
  background:
    linear-gradient(180deg, rgba(25, 19, 13, 0.94), rgba(25, 19, 13, 0.82)),
    url("../assets/table-scene.svg") center / cover no-repeat;
  color: var(--cream);
}

.line-tip {
  display: inline-flex;
  width: fit-content;
  margin: 14px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(246, 199, 68, 0.34);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.1);
  color: #f1dfba;
  font-size: 0.92rem;
  font-weight: 850;
}

.order-hero .section {
  padding-top: 36px;
  padding-bottom: 36px;
}

.table-badge {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-weight: 950;
}

.order-shell {
  padding-top: 28px;
}

.order-menu-list {
  gap: 18px;
}

.order-tabs {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  margin: 0 -14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.96);
}

.order-tabs a {
  min-height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 950;
}

.menu-list,
.cart-list {
  display: grid;
  gap: 10px;
}

.menu-section {
  display: grid;
  gap: 12px;
}

.menu-item,
.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.order-menu-card {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 126px;
  padding: 18px;
  border-color: rgba(246, 199, 68, 0.48);
  background: linear-gradient(180deg, #fffdf8, #fff5df);
}

.order-menu-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.18rem;
}

.order-menu-card .price {
  margin-top: 8px;
  font-size: 1.18rem;
}

.cart-panel {
  position: sticky;
  top: 88px;
}

.cart-footer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.qty {
  display: inline-grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-large {
  grid-template-columns: 46px 46px 46px;
  align-self: center;
}

.qty button {
  width: 38px;
  height: 38px;
  border: 0;
  background: #fff3d5;
  color: var(--ink);
  font-weight: 950;
}

.qty-large button,
.qty-large span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.qty button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.qty span {
  text-align: center;
  font-weight: 950;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #fff0c2;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

tr:last-child td {
  border-bottom: 0;
}

.admin-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 54px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.admin-sidebar {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-sidebar button {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 950;
}

.admin-sidebar button[aria-selected="true"] {
  background: var(--black);
  color: var(--gold);
}

.admin-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: grid;
  gap: 18px;
}

.admin-panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 124px;
  display: grid;
  align-content: space-between;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--black);
  font-size: clamp(1.8rem, 9vw, 2.5rem);
  line-height: 1.05;
}

.metric .muted {
  font-size: 0.92rem;
  font-weight: 850;
}

.dashboard-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.site-footer {
  border-top: 1px solid rgba(246, 199, 68, 0.28);
  background: var(--black);
  color: var(--cream);
}

.mobile-cart-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(246, 199, 68, 0.48);
  background: rgba(25, 19, 13, 0.96);
  color: var(--cream);
  box-shadow: 0 -14px 30px rgba(59, 39, 16, 0.2);
}

.mobile-cart-bar span {
  display: block;
  color: #e7d6b2;
  font-size: 0.82rem;
  font-weight: 850;
}

.mobile-cart-bar strong {
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

.mobile-cart-bar .btn {
  min-width: 132px;
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  gap: 18px;
}

.footer-inner .muted {
  color: #d8c7a3;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--gold);
  font-weight: 900;
}

.empty {
  padding: 24px;
  border: 1px dashed #d5c4a5;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  text-align: center;
}

.home-page {
  background:
    linear-gradient(180deg, #ffd84d 0%, #ffc533 45%, #ffe58a 100%);
}

.home-page .site-header {
  border-bottom: 2px solid rgba(25, 19, 13, 0.2);
  background: rgba(255, 214, 68, 0.96);
}

.home-page .brand-subtitle {
  color: #603809;
}

.home-page .nav-links {
  border-color: rgba(25, 19, 13, 0.22);
  background: #fff2a8;
}

.home-page .nav-links a {
  color: #4a2a08;
}

.home-page .nav-links a:hover,
.home-page .nav-links a[aria-current="page"] {
  background: var(--black);
  color: var(--gold);
}

.home-page main {
  overflow: hidden;
}

.home-hero {
  padding-bottom: 30px;
  border-bottom: 4px solid var(--black);
  background: #ffd84d;
}

.home-hero-media {
  width: min(1280px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 4px solid var(--black);
  background: #ffc533;
}

.home-hero-media img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
}

.home-hero-copy {
  width: var(--container);
  margin: 20px auto 0;
  display: grid;
  gap: 12px;
}

.home-badge {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 950;
}

.home-hero-copy h1 {
  margin: 0;
  color: var(--black);
  font-size: 2.55rem;
  line-height: 1.04;
}

.home-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #3b2208;
  font-size: 1.16rem;
  font-weight: 850;
  line-height: 1.72;
}

.home-hero .hero-actions {
  margin-top: 6px;
  gap: 12px;
}

.home-hero .hero-actions .btn,
.home-action-card span,
.event-dm-card .btn {
  min-height: 50px;
}

.home-hero .btn {
  border: 2px solid var(--black);
  box-shadow: 0 6px 0 rgba(25, 19, 13, 0.18);
}

.home-section {
  width: var(--container);
  margin: 0 auto;
  padding: 38px 0;
}

.home-section-heading {
  margin-bottom: 18px;
}

.home-section-heading h2 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 2rem;
  line-height: 1.16;
}

.home-section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #5a350a;
  font-weight: 800;
}

.home-page .eyebrow {
  color: #7c3900;
}

.category-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.category-tile {
  flex: 0 0 156px;
  display: grid;
  grid-template-rows: auto minmax(52px, auto);
  overflow: hidden;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: #fff8dc;
  box-shadow: 0 8px 0 rgba(25, 19, 13, 0.16);
  scroll-snap-align: start;
}

.category-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: var(--gold);
}

.category-tile span {
  display: grid;
  place-items: center;
  padding: 10px;
  background: var(--black);
  color: var(--gold);
  font-size: 1.04rem;
  font-weight: 950;
  text-align: center;
}

.home-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-action-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 176px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: #fff8dc;
  box-shadow: 0 8px 0 rgba(25, 19, 13, 0.16);
}

.home-action-card img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  display: block;
  object-fit: cover;
}

.home-action-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(246, 199, 68, 0.8);
  border-radius: var(--radius);
  background: rgba(25, 19, 13, 0.92);
  color: #fff4bf;
  font-size: 1.08rem;
  font-weight: 950;
  text-align: center;
}

.event-dm-section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.event-dm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.event-dm-card {
  border: 3px solid var(--black);
  background: #fff7de;
  box-shadow: 0 10px 0 rgba(25, 19, 13, 0.16);
}

.event-poster {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--black);
  background: var(--gold);
}

.event-poster .event-thumb {
  aspect-ratio: 4 / 3;
}

.event-label {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 950;
}

.event-dm-card .card-body {
  padding: 16px;
}

.event-dm-card h3 {
  margin: 4px 0 6px;
  font-size: 1.34rem;
  line-height: 1.22;
}

.event-dm-card .muted {
  color: #4d3518;
  font-weight: 760;
}

.event-dm-meta {
  display: grid;
  gap: 10px;
  margin: 16px 0 2px;
}

.event-dm-date,
.event-dm-meta .event-meta-item {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(25, 19, 13, 0.14);
  border-radius: var(--radius);
  background: #fff0b8;
  color: var(--black);
}

.event-dm-date {
  border-color: rgba(25, 19, 13, 0.3);
  background: var(--black);
  color: var(--gold);
}

.event-dm-date strong,
.event-dm-meta .event-meta-item strong {
  flex: 0 0 auto;
  font-weight: 950;
}

.event-dm-date span,
.event-dm-meta .event-meta-item span {
  min-width: 0;
  text-align: right;
  font-weight: 850;
}

.event-dm-card .actions {
  margin-top: 16px;
}

.event-dm-card .actions .btn {
  flex: 1 1 140px;
}

.order-mini-section {
  padding-top: 20px;
  padding-bottom: 58px;
}

.order-mini-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 2px dashed var(--black);
  border-radius: var(--radius);
  background: #fff6d4;
  box-shadow: 0 8px 0 rgba(25, 19, 13, 0.12);
}

.order-mini-card h2 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 1.44rem;
  line-height: 1.24;
}

.order-mini-card p:not(.eyebrow) {
  margin: 0;
  color: #5a350a;
  font-weight: 780;
}

@media (min-width: 700px) {
  :root {
    --container: min(1120px, calc(100vw - 48px));
  }

  .hero-inner {
    padding-bottom: 130px;
  }

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

  .grid-2,
  .quick-grid,
  .form-grid,
  .dashboard-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-actions .btn,
  .actions .btn {
    flex: 0 1 auto;
  }

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

  .home-hero-copy {
    margin-top: 24px;
  }

  .home-hero-copy h1 {
    font-size: 3.25rem;
  }

  .home-section {
    padding: 56px 0;
  }

  .category-scroller {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 8px;
  }

  .category-tile {
    flex: initial;
  }

  .home-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .order-mini-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 24px;
  }
}

@media (min-width: 940px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-links a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.92rem;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.88) 48%, rgba(255, 250, 240, 0.16) 100%),
      url("../assets/hero-boardgames.svg") center right / cover no-repeat;
  }

  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: 28px;
  }

  .booking-shell {
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
    gap: 28px;
  }

  .order-shell {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.44fr);
    gap: 24px;
  }

  .admin-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .admin-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
  }

  .dashboard-lists {
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mobile-cart-bar {
    display: none;
  }

  .layout-order {
    padding-bottom: 0;
  }

  .home-hero-media img {
    max-height: 640px;
  }
}

@media (max-width: 420px) {
  :root {
    --container: min(100vw - 24px, 1120px);
  }

  body {
    font-size: 16px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 0.96rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .capacity-numbers {
    grid-template-columns: 1fr;
  }

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

  .home-hero-copy h1 {
    font-size: 2.18rem;
  }

  .home-hero-copy p {
    font-size: 1.05rem;
  }

  .home-section-heading h2 {
    font-size: 1.68rem;
  }

  .category-tile {
    flex-basis: 146px;
  }

  .home-action-card,
  .home-action-card img {
    min-height: 156px;
  }
}

/* Final production polish */
.brand .brand-logo {
  width: auto;
  min-width: 0;
  max-width: 142px;
  height: 48px;
  object-fit: contain;
}

.home-hero {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  padding: 28px 0 36px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 224, 0.9), transparent 26%),
    radial-gradient(circle at 88% 24%, rgba(242, 138, 34, 0.24), transparent 28%),
    linear-gradient(180deg, #ffd942 0%, #ffc22f 54%, #ffe783 100%);
}

.home-hero-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  align-items: center;
}

.home-logo-wide {
  width: min(240px, 72vw);
  max-height: 92px;
  object-fit: contain;
}

.home-tagline {
  color: var(--black) !important;
  font-size: 1.32rem !important;
  font-weight: 950 !important;
}

.home-hero-copy {
  width: auto;
  margin: 0;
  position: relative;
  z-index: 1;
}

.home-hero-copy h1 {
  font-size: clamp(3.2rem, 16vw, 6.8rem);
  text-shadow: 0 5px 0 rgba(255, 255, 255, 0.34);
}

.home-hero-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 4px solid var(--black);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.9), rgba(255, 238, 161, 0.7)),
    repeating-linear-gradient(45deg, rgba(25, 19, 13, 0.08) 0 10px, transparent 10px 22px);
  box-shadow: 0 14px 0 rgba(25, 19, 13, 0.18);
}

.hero-token {
  position: absolute;
  display: grid;
  place-items: center;
  border: 4px solid var(--black);
  background: var(--surface);
  color: var(--black);
  font-weight: 950;
  box-shadow: 0 8px 0 rgba(25, 19, 13, 0.18);
}

.hero-token-dice {
  top: 28px;
  left: 28px;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  font-size: 3rem;
}

.hero-token-piece {
  right: 24px;
  bottom: 24px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: var(--black);
  color: var(--gold);
  font-size: 2.4rem;
}

.hero-card-stack {
  position: absolute;
  inset: 72px 54px auto auto;
  width: 170px;
  height: 210px;
}

.hero-card-stack span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 4px solid var(--black);
  border-radius: 12px;
  background: var(--surface);
  color: var(--black);
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: 0 9px 0 rgba(25, 19, 13, 0.16);
}

.hero-card-stack span:nth-child(1) {
  transform: rotate(-9deg) translate(-18px, 14px);
  background: #fff7d1;
}

.hero-card-stack span:nth-child(2) {
  transform: rotate(5deg);
  background: #ffdd64;
}

.hero-card-stack span:nth-child(3) {
  transform: rotate(14deg) translate(18px, 18px);
  background: #ff9c36;
  color: #fff;
}

.category-tile {
  min-height: 168px;
  padding: 14px;
  grid-template-rows: 1fr auto;
  place-items: center;
}

.category-tile .category-icon {
  position: static;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 4px solid var(--black);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff9da, #ffb43d);
  color: var(--black);
  font-size: 1.58rem;
  font-weight: 950;
  box-shadow: 0 7px 0 rgba(25, 19, 13, 0.16);
}

.category-tile > span:last-child {
  position: static;
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius);
}

.home-action-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.home-action-card .home-action-icon,
.home-action-card .home-action-copy {
  position: static;
  inset: auto;
  min-height: 0;
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  text-align: left;
}

.home-action-card .home-action-icon {
  width: 64px;
  height: 64px;
  place-items: center;
  border: 4px solid var(--black);
  border-radius: 18px;
  background: var(--gold);
  font-size: 1.45rem;
  box-shadow: 0 6px 0 rgba(25, 19, 13, 0.16);
}

.home-action-copy strong {
  font-size: 1.12rem;
  line-height: 1.18;
}

.home-action-copy small {
  margin-top: 5px;
  color: #5a350a;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.event-art {
  min-height: 240px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

.event-art span {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 4px solid var(--black);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--black);
  font-size: 2.4rem;
  font-weight: 950;
  box-shadow: 0 8px 0 rgba(25, 19, 13, 0.16);
}

.event-art strong {
  display: block;
  color: var(--black);
  font-size: 1.25rem;
  font-weight: 950;
}

.event-art-beginner {
  background: linear-gradient(135deg, #ffe66f, #ffad37);
}

.event-art-mystery {
  background: linear-gradient(135deg, #34261b, #f6c744);
}

.event-art-mystery strong {
  color: #fff4bf;
}

.event-art-strategy {
  background: linear-gradient(135deg, #fff4be, #f28a22);
}

.event-art-night {
  background: linear-gradient(135deg, #1b1712, #70491a);
}

.event-art-night strong {
  color: #ffe8a1;
}

.event-art-party {
  background: linear-gradient(135deg, #ffcf4a, #ff7557);
}

.event-art-ktv {
  background: linear-gradient(135deg, #fff6d2, #f6c744 45%, #f28a22);
}

.event-price {
  border-color: rgba(242, 138, 34, 0.34) !important;
  background: #fff5dc !important;
}

.table-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions .btn {
  min-height: 38px;
}

.admin-section-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.layout-admin .admin-sidebar {
  background: #21170f;
  border-color: rgba(246, 199, 68, 0.3);
}

.layout-admin .admin-sidebar button {
  color: #f6e6c6;
}

.layout-admin .admin-sidebar button[aria-selected="true"] {
  background: var(--gold);
  color: var(--black);
}

.layout-admin .card {
  border-color: rgba(234, 223, 200, 0.9);
}

@media (min-width: 700px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  }

  .admin-section-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }
}

@media (max-width: 520px) {
  .brand .brand-logo {
    max-width: 110px;
    height: 42px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 22px;
  }

  .home-hero-visual {
    min-height: 238px;
  }

  .hero-token-dice {
    width: 72px;
    height: 72px;
    font-size: 2.4rem;
  }

  .hero-token-piece {
    width: 86px;
    height: 86px;
    font-size: 1.9rem;
  }

  .hero-card-stack {
    right: 42px;
    width: 132px;
    height: 168px;
  }

  .home-action-grid {
    grid-template-columns: 1fr;
  }
}

/* WE起桌遊吧｜活動圖片完整顯示修正
   貼到 public/css/styles.css 最底部即可。
   效果：活動圖片會完整縮放進卡片框內，不再被裁切。
*/
.event-poster {
  background: #fff1d1;
}

.event-poster .event-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  background: #fff1d1;
}

@media (min-width: 700px) {
  .event-poster .event-thumb {
    max-height: 300px;
  }
}
