:root {
  color-scheme: light;
  --page: #f8f5f0;
  --paper: #fffdfa;
  --paper-strong: #fffdf9;
  --ink: #312331;
  --muted: #6e606b;
  --wine: #65394c;
  --wine-dark: #471f34;
  --cream: #fcebd8;
  --coral: #f1ad87;
  --border: #e9dfd7;
  --serif: "Baskervville", "Georgia", "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a14e71; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.shell { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.site-header { background: #fbf8f3; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; text-decoration: none; font: 25px/1 var(--serif); letter-spacing: -.045em; }
.brand strong { color: var(--wine); font-weight: 700; }
.brand-mark {
  width: 32px; height: 32px; display: grid; grid-template-columns: repeat(3, 3px); grid-template-rows: repeat(3, 3px);
  place-content: center; gap: 3px; border-radius: 9px; transform: rotate(-9deg); background: var(--wine-dark); color: var(--cream);
  box-shadow: inset 0 -2px 0 #2e15256e;
}
.brand-mark i { background: currentColor; border-radius: 50%; }
.brand-mark i:nth-child(2) { grid-column: 3; }
.brand-mark i:nth-child(3) { grid-column: 2; }
.brand-mark i:nth-child(4) { grid-row: 3; }
.brand-mark i:nth-child(5) { grid-column: 3; grid-row: 3; }
.primary-nav { display: flex; align-items: center; gap: 5px; }
.primary-nav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 9px;
  text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 650; white-space: nowrap;
}
.primary-nav .icon { width: 17px; height: 17px; }
.primary-nav a:hover { color: var(--wine); background: #f1e9e3; }
.primary-nav a[aria-current='page'] { color: var(--wine-dark); background: #f0e5e6; }
.profile {
  justify-self: end; width: 37px; height: 37px; border: 1px solid #ebd9d2; border-radius: 50%;
  font-size: .69rem; letter-spacing: .04em; font-weight: 750; color: var(--wine-dark); background: #f4e4de;
}
.profile:hover { background: #edd4ca; }
.skip, .visually-hidden {
  position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; margin: -1px;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip:focus {
  z-index: 10; top: 10px; left: 10px; width: auto; height: auto; padding: 12px;
  margin: 0; clip: auto; background: var(--paper);
}
main { min-height: calc(100vh - 144px); padding-top: 29px; padding-bottom: 32px; }
main:focus { outline: none; }
.hero {
  position: relative; isolation: isolate; display: flex; min-height: 370px;
  overflow: hidden; align-items: center; border-radius: 20px; background: #341827; color: #fff5e8;
}
.hero-art {
  position: absolute; inset: 0 0 0 auto; width: 73%; height: 100%; object-fit: cover;
  object-position: 55% 55%; z-index: -2;
}
.hero::after {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #341827 2%, #341827 25%, #341827f0 34%, #34182740 52%, transparent 70%);
  pointer-events: none;
}
.hero-body { max-width: 580px; padding: 42px 28px 44px 54px; }
.hero h1 {
  margin: 0; color: #fff6e9; font: 400 clamp(3rem, 5.1vw, 4.75rem)/.97 var(--serif);
  letter-spacing: -.063em;
}
.hero h1 em { color: var(--coral); font-weight: 400; }
.hero p { max-width: 340px; margin: 22px 0 24px; color: #f1dfdd; font-size: .98rem; line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; min-height: 42px; justify-content: center; align-items: center; gap: 8px;
  padding: 0 15px; border: 1px solid transparent; border-radius: 9px;
  text-decoration: none; white-space: nowrap; color: var(--ink); font-weight: 680; font-size: .83rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button .icon { width: 17px; height: 17px; }
.button.primary { color: #fff6eb; background: var(--wine-dark); }
.button.primary:hover { background: #6f3e54; }
.button.secondary { color: var(--wine-dark); background: #f6eeec; border-color: #ecdeda; }
.button.secondary:hover { background: #eee0dc; }
.button.cream { color: #3c2230; background: #fbe9d5; }
.button.cream:hover { background: #ffe1bd; }
.button.hero-secondary { color: #fff3e7; border-color: #8d6174; background: #4424378c; }
.button.hero-secondary:hover { background: #6a394d; }
.hero .button:focus-visible { outline-color: #ffc0a0; }
.button.small { min-height: 36px; padding-inline: 11px; font-size: .75rem; }
.button.small .icon { width: 15px; height: 15px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 28px; margin-top: 29px; }
.home-grid > * { min-width: 0; }
.home-aside { display: grid; align-content: start; gap: 23px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 13px; }
.section-head h2 { margin: 0; font: 400 clamp(1.55rem, 2.6vw, 2.22rem)/1.07 var(--serif); letter-spacing: -.052em; }
.text-link {
  display: inline-flex; align-items: center; gap: 7px; color: var(--wine);
  font-weight: 700; font-size: .8rem; text-decoration: none; white-space: nowrap;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { width: 17px; height: 17px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game-card {
  min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--paper);
  box-shadow: 0 3px 6px #44293805; transition: box-shadow .17s ease, border-color .17s ease, transform .17s ease;
}
.game-card:hover { border-color: #d5bfc1; box-shadow: 0 5px 15px #42252b14; transform: translateY(-2px); }
.game-open { display: block; text-align: left; width: 100%; padding: 0 0 13px; background: transparent; border-radius: 13px; }
.art-wrap { position: relative; display: block; aspect-ratio: 1.8; overflow: hidden; border-radius: 13px 13px 0 0; background: #d0b7a0; }
.game-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-category {
  position: absolute; inset: 10px auto auto 10px; padding: 4px 8px; border-radius: 5px;
  color: #3d3034; background: #ffefdc; font-size: .66rem; font-weight: 750;
}
.game-name { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 12px 12px 6px; font-size: 1rem; font-weight: 750; letter-spacing: -.025em; }
.game-name .icon { width: 16px; height: 16px; color: var(--wine); }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; }
.game-open .meta-row { padding: 0 12px; }
.meta { min-width: 0; display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); line-height: 1.42; }
.meta .icon { width: 15px; height: 15px; color: #7a5868; }
.game-labels { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 12px 12px; }
.game-labels span { padding: 3px 7px; border-radius: 4px; color: var(--wine-dark); background: #f2e5e7; font-size: .73rem; }
.meeting-card { padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--paper); }
.meeting-top { display: flex; align-items: center; gap: 12px; }
.date-badge {
  flex: 0 0 48px; min-height: 49px; display: inline-grid; place-content: center; justify-items: center;
  border-radius: 8px; color: var(--wine-dark); background: #f3e2dd; text-transform: uppercase;
}
.date-badge strong { font: 700 23px/.94 var(--serif); }
.date-badge span { font-size: .61rem; font-weight: 750; letter-spacing: .07em; margin-top: 3px; }
.meeting-card h3, .play-card h3 { margin: 0 0 3px; font-size: .93rem; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.meeting-card p, .play-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.meeting-info { display: grid; gap: 6px; margin-top: 12px; }
.meeting-info .meta span, .meeting-card p, .play-card p { overflow-wrap: anywhere; }
.meeting-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 11px; margin-top: 10px; border-top: 1px solid var(--border); }
.seat-count { color: var(--muted); font-size: .71rem; font-weight: 740; }
.seat-count.available { color: #405f4d; background: #e9efe4; border: 1px solid #e4e9df; border-radius: 5px; padding: 4px 6px; }
.play-card { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--paper); }
.play-art { width: 72px; height: 61px; flex: 0 0 auto; object-fit: cover; border-radius: 7px; }
.compact-play .play-art { width: 46px; height: 43px; }
.play-copy { flex: 1; min-width: 0; }
.play-card .play-people { margin-top: 4px; }
.play-card .play-notes { margin-top: 8px; color: var(--ink); white-space: pre-wrap; }
.square-button {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  background: #f4ecea; color: var(--wine-dark); text-decoration: none;
}
.square-button:hover { background: #ecdce0; }
.square-button .icon { width: 17px; height: 17px; }
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 57px;
  color: var(--muted); font-size: .73rem; border-top: 1px solid var(--border);
}
.site-footer > :first-child { color: var(--wine-dark); font: 400 .96rem var(--serif); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: #688d70; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 15px 0 23px; }
.page-heading h1 { margin: 0; font: 400 clamp(2.6rem, 5vw, 4.3rem)/1.02 var(--serif); letter-spacing: -.065em; }
.page-heading p { margin: 11px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.filters { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; background: var(--paper-strong);
  border: 1px solid #dfd0ca; border-radius: 7px; font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: #786975; }
textarea { resize: vertical; }
.search-label { position: relative; flex: 1 1 215px; }
.search-label > .icon { position: absolute; left: 11px; top: 12px; color: #775668; }
.search-label input { padding-left: 36px; }
.filters select { font-size: .87rem; }
.clear-button { border-radius: 7px; background: transparent; color: var(--wine); font-size: .81rem; font-weight: 700; padding-inline: 9px; }
.clear-button:hover { background: #f2e6e5; }
.results-count { font-size: .79rem; color: var(--muted); margin: 18px 0 12px; }
.catalog-grid { gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-grid .art-wrap { aspect-ratio: 2.02; }
.catalog-grid .game-name { font-size: 1.13rem; }
.meeting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.play-list { display: grid; gap: 10px; max-width: 760px; }
.empty-state { padding: 19px; background: var(--paper); border: 1px dashed #ddccc7; border-radius: 12px; color: var(--muted); }
.empty-state p { margin: 0; font-size: .88rem; line-height: 1.5; }
.empty-state p + a { margin-top: 10px; }
dialog {
  max-height: min(calc(100dvh - 30px), 820px); width: min(550px, calc(100% - 28px));
  padding: 0; border: 1px solid #e7d6d1; border-radius: 17px; background: var(--paper);
  color: var(--ink); box-shadow: 0 15px 70px #22132152;
}
dialog::backdrop { background: #261824a6; }
.dialog-inner { padding: 21px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dialog-head h2 { margin: 0; font: 400 2rem/1 var(--serif); letter-spacing: -.045em; }
.detail-art { width: 100%; height: 154px; object-fit: cover; border-radius: 10px; display: block; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 15px; }
.detail-level, .edition { color: var(--muted); font-size: .79rem; }
.detail-description { margin: 14px 0; line-height: 1.58; }
.edition { margin-block: -5px 14px; }
.status-buttons, .detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.button.toggle-status { min-height: 38px; padding-inline: 10px; background: #f8f2ef; color: var(--wine-dark); border-color: #e9d9d6; }
.button.toggle-status .icon { opacity: .38; }
.button.toggle-status[aria-pressed='true'] { background: #e9efe4; color: #284b3a; border-color: #cedbcf; }
.button.toggle-status[aria-pressed='true'] .icon { opacity: 1; }
.button.toggle-status:hover { border-color: var(--wine); }
.source { display: flex; flex-wrap: wrap; gap: 12px; margin: 13px 0 0; font-size: .76rem; color: var(--wine); }
.source .icon { width: 14px; height: 14px; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; font-size: .82rem; color: var(--wine-dark); font-weight: 650; }
.field input, .field textarea, .field select { color: var(--ink); font-weight: 400; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: .75rem; color: var(--muted); margin: -6px 0 0; }
.form-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.toast {
  position: fixed; right: 17px; bottom: 17px; z-index: 3; max-width: min(calc(100vw - 34px), 430px);
  margin: 0; padding: 13px 15px; border-radius: 9px; background: var(--wine-dark);
  box-shadow: 0 6px 20px #28132342; color: var(--cream); font-size: .86rem;
}

@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { column-gap: 14px; }
  .primary-nav a { padding-inline: 9px; }
  .hero { min-height: 340px; }
  .hero-body { padding-left: 37px; }
  .home-grid { gap: 18px; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
}
@media (max-width: 770px) {
  .header-inner { grid-template-columns: 1fr 1fr; min-height: 60px; }
  .brand { font-size: 23px; }
  .primary-nav {
    position: fixed; z-index: 2; bottom: 0; left: 0; right: 0; justify-content: center; gap: 2px;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); background: #fbf8f3; border-top: 1px solid var(--border);
  }
  .primary-nav a { flex: 1 1 0; max-width: 115px; min-width: 0; flex-direction: column; gap: 4px; padding: 7px 2px; font-size: .66rem; }
  .primary-nav .icon { width: 18px; height: 18px; }
  .toast { bottom: calc(67px + env(safe-area-inset-bottom)); }
  .site-footer { margin-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .home-grid { grid-template-columns: 1fr; gap: 25px; }
  .home-aside { grid-template-columns: 1fr 1fr; gap: 16px; }
  .meeting-grid { grid-template-columns: 1fr 1fr; }
  .hero-body { max-width: 450px; }
  .hero-art { width: 84%; object-position: 45% 55%; }
  .hero::after { background: linear-gradient(90deg, #341827 1%, #341827 21%, #341827e7 39%, #34182721 78%, transparent); }
}
@media (max-width: 510px) {
  .shell { width: calc(100% - 26px); }
  main { padding-top: 14px; padding-bottom: 23px; }
  .hero { min-height: 410px; align-items: start; border-radius: 15px; }
  .hero-art { inset: auto 0 0 auto; width: 100%; height: 61%; object-position: 72% 67%; }
  .hero::after { background: linear-gradient(180deg, #341827 2%, #341827 39%, #341827db 49%, #34182700 78%); }
  .hero-body { padding: 25px 16px 20px 20px; }
  .hero h1 { font-size: clamp(2.32rem, 10.8vw, 3.4rem); }
  .hero p { margin: 13px 0 15px; max-width: 280px; font-size: .86rem; }
  .hero-actions { gap: 7px; }
  .hero .button { padding-inline: 10px; min-height: 39px; font-size: .77rem; }
  .hero .button .icon { height: 15px; width: 15px; }
  .home-grid { margin-top: 22px; }
  .home-aside, .meeting-grid { grid-template-columns: 1fr; }
  .game-grid { gap: 8px; }
  .home-games .game-category { inset: 5px auto auto 5px; font-size: .63rem; padding: 3px 5px; }
  .home-games .game-name { font-size: .8rem; padding: 7px 5px 3px; gap: 1px; }
  .home-games .game-name .icon { width: 13px; height: 13px; }
  .home-games .meta-row { padding-inline: 5px; gap: 4px 6px; }
  .home-games .meta { font-size: .65rem; gap: 3px; }
  .home-games .meta .icon { width: 11px; height: 11px; }
  .home-games .game-open { padding-bottom: 9px; }
  .section-head { gap: 5px; }
  .section-head h2 { font-size: 1.6rem; }
  .section-head .text-link { font-size: .73rem; gap: 3px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .catalog-grid .game-name { font-size: .91rem; }
  .page-heading { align-items: start; flex-direction: column; gap: 13px; margin-block: 12px 17px; }
  .page-heading p { font-size: .85rem; }
  .filters { gap: 7px; padding: 9px; }
  .search-label { flex-basis: 100%; }
  .filters select { font-size: .76rem; max-width: 100%; }
  .filters .clear-button { min-height: 40px; padding-inline: 4px; }
  .dialog-inner { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.art-placeholder { display: grid; place-items: center; background: #f1e6df; color: var(--wine); }
.art-placeholder .icon { width: 32px; height: 32px; }
