:root {
  --beige: #f6efe4;
  --beige-deep: #eadcc8;
  --paper: #fffaf2;
  --cream: #fffdf8;
  --olive: #7d9a6e;
  --olive-deep: #56734c;
  --olive-soft: #e7f0df;
  --orange: #e8945a;
  --orange-deep: #c56c32;
  --orange-soft: #fde8d6;
  --urgent: #d45d4a;
  --urgent-soft: #f8dcd6;
  --ink: #3b3229;
  --muted: #7a6e60;
  --line: #ead9c4;
  --shadow: 0 12px 32px rgba(86, 64, 38, 0.08);
  --radius: 22px;
  --font: "Nunito", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #fbe7c8 0, transparent 28%),
    radial-gradient(circle at 88% 0%, #dce9d2 0, transparent 32%),
    radial-gradient(circle at 80% 90%, #f8d9bc 0, transparent 26%),
    var(--beige);
  min-height: 100vh;
  line-height: 1.65;
}

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

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

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(246, 239, 228, 0.86);
  border-bottom: 1px solid rgba(234, 217, 196, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--olive) 0%, var(--olive-deep) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(86, 115, 76, 0.22);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

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

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.nav a:hover,
.nav a.active {
  background: var(--olive-soft);
  color: var(--olive-deep);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px 5px 12px;
  min-height: 42px;
}

.user-chip .who {
  font-size: 12px;
  line-height: 1.2;
}

.user-chip .who b {
  display: block;
  font-size: 13px;
}

.user-chip .role-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--olive-deep);
}

body.role-guest .user-chip .role-tag {
  color: var(--orange-deep);
}

.btn.tiny {
  padding: 6px 12px;
  font-size: 12px;
  box-shadow: none;
}

.weather-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef4fb;
  border: 1px solid #d5e4f4;
  border-radius: 16px;
  padding: 6px 12px;
  min-height: 42px;
  max-width: 240px;
}

.weather-chip .w-icon {
  font-size: 20px;
}

.weather-chip b {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.weather-chip small {
  display: block;
  font-size: 11px;
  color: #4d6d8c;
  line-height: 1.3;
}

.persona-select {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--olive-deep);
  cursor: pointer;
}

body.role-guest .persona-select,
body:not(.role-resident) .persona-select,
body.role-guest .resident-only,
body:not(.role-resident) .resident-only {
  display: none;
}

.pill.urgent {
  background: var(--urgent);
}

.speak-btn {
  border: 0;
  background: rgba(255, 250, 242, 0.18);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  margin-left: 6px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.88);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  box-shadow: var(--shadow);
}

.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

.slide-actions {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.fab-call {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--urgent);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(212, 93, 74, 0.28);
}

.quick-card {
  position: relative;
}

.status-badge {
  display: inline-block;
  margin-top: 10px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.ticker {
  margin-top: 10px;
  overflow: hidden;
  background: var(--olive-soft);
  border-radius: 10px;
  height: 32px;
  display: flex;
  align-items: center;
}

.ticker span {
  display: inline-block;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--olive-deep);
  white-space: nowrap;
  animation: ticker 9s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(8%); }
  to { transform: translateX(-70%); }
}

.nudge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.near-hint {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-deep);
}

.spot-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 4px;
}

.guest-banner {
  display: none;
  background: var(--orange-soft);
  border-bottom: 1px solid #f3d3b6;
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 700;
}

body.role-guest .guest-banner {
  display: block;
}

.guest-banner .wrap {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 16% 12%, #fbe7c8 0, transparent 30%),
    radial-gradient(circle at 86% 8%, #dce9d2 0, transparent 34%),
    rgba(246, 239, 228, 0.96);
  display: none;
  align-items: center;
  overflow: auto;
  padding: 28px 16px;
}

.gate.show {
  display: flex;
}

.gate-box {
  width: min(860px, 100%);
  margin: auto;
}

.gate-head {
  text-align: center;
  margin-bottom: 28px;
}

.gate-head h1 {
  font-size: 34px;
  margin: 10px 0 8px;
}

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

.gate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(86, 64, 38, 0.12);
}

.gate-card h2 {
  font-size: 22px;
  margin: 8px 0 8px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 4px;
}

.auth-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 8px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.auth-tabs button.on {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.auth-panel {
  display: none;
}

.auth-panel.on {
  display: block;
}

.lock-cover {
  display: none;
  margin: 18px 0 8px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
}

body.role-guest .resident-page .lock-cover {
  display: block;
}

body.role-guest .resident-page .resident-content {
  display: none;
}

body.role-guest [data-open-repair],
body.role-guest [data-open-bill] {
  pointer-events: none;
  opacity: 0.55;
}

body.role-guest .contact {
  color: transparent;
  user-select: none;
  pointer-events: none;
  position: relative;
}

body.role-guest .contact::after {
  content: "住户登录后可见联系方式";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 242, 0.94);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-deep);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--paper);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.hero {
  padding: 28px 0 10px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.slide-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(59, 50, 41, 0.72) 0%, rgba(59, 50, 41, 0.18) 62%, transparent 100%);
}

.slide-copy {
  position: absolute;
  left: 36px;
  bottom: 78px;
  color: #fffaf2;
  max-width: 560px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: 0.08em;
}

.slide-copy h2 {
  margin: 12px 0 8px;
  font-size: 32px;
  line-height: 1.25;
}

.slide-copy p {
  opacity: 0.92;
  font-size: 15px;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 250, 242, 0.45);
  cursor: pointer;
}

.dots button.on {
  background: #fff;
  width: 24px;
  border-radius: 999px;
}

.section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--olive-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-head h2,
.page-hero h1 {
  font-size: 30px;
  line-height: 1.2;
}

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

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.quick-card,
.item-card,
.spot-card,
.note-card,
.msg-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-card {
  padding: 22px 20px 20px;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(86, 64, 38, 0.12);
}

.icon-blob {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.icon-blob.olive { background: var(--olive-soft); color: var(--olive-deep); }
.icon-blob.orange { background: var(--orange-soft); color: var(--orange-deep); }

.quick-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.quick-card p,
.item-card p,
.spot-card p {
  font-size: 14px;
  color: var(--muted);
}

.page-hero {
  padding: 36px 0 8px;
}

.page-hero p {
  max-width: 640px;
  margin-top: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

.filter {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter.on {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.item-card {
  overflow: hidden;
}

.item-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 16px 18px 18px;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: var(--olive-deep);
  font-size: 12px;
  font-weight: 800;
}

.tag.orange {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.item-card h3 {
  font-size: 18px;
  margin: 6px 0;
}

.contact {
  margin-top: 12px;
  font-size: 13px;
  background: #f7f1e7;
  border-radius: 12px;
  padding: 10px 12px;
}

.swap-want {
  margin-top: 10px;
  font-size: 13px;
  color: var(--olive-deep);
  font-weight: 700;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.village-map {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(180deg, #e7f0df 0%, #f6efe4 55%, #eadcc8 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.road {
  position: absolute;
  background: #f3e6d3;
  border-radius: 20px;
}

.road.h {
  height: 38px;
  left: 6%;
  right: 6%;
}

.road.v {
  width: 38px;
  top: 8%;
  bottom: 8%;
}

.park {
  position: absolute;
  background: #c9dcb8;
  border-radius: 40% 60% 55% 45%;
}

.home-block {
  position: absolute;
  width: 92px;
  height: 68px;
  background: #fffaf2;
  border: 2px solid #d7c4aa;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--olive-deep);
}

.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  text-align: center;
}

.pin-dot {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  box-shadow: 0 8px 16px rgba(61, 52, 41, 0.16);
}

.pin-dot span {
  transform: rotate(45deg);
  font-size: 16px;
  color: #fff;
}

.pin b {
  display: block;
  font-size: 12px;
  background: var(--paper);
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pin.olive .pin-dot { background: var(--olive); }
.pin.orange .pin-dot { background: var(--orange); }

.spot-list {
  display: grid;
  gap: 14px;
}

.spot-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  overflow: hidden;
}

.spot-card img {
  width: 96px;
  height: 100%;
  object-fit: cover;
}

.spot-card .card-body {
  padding: 14px 16px;
}

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

.hours {
  font-size: 12px;
  margin-top: 4px;
  color: var(--orange-deep);
  font-weight: 700;
}

.board-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.form-card,
.msg-card {
  padding: 22px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin: 12px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 16px rgba(197, 108, 50, 0.2);
}

.btn.olive {
  background: var(--olive);
  box-shadow: 0 8px 16px rgba(86, 115, 76, 0.2);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  border: 1px solid var(--line);
}

.msg-list {
  display: grid;
  gap: 14px;
}

.msg-card h3 {
  font-size: 16px;
  margin: 4px 0 8px;
}

.msg-card p {
  font-size: 14px;
}

.notice-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.note-card {
  padding: 22px;
}

.note-card + .note-card {
  margin-top: 14px;
}

.weather {
  background: linear-gradient(160deg, #fde8d6, #fffaf2);
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(59, 50, 41, 0.38);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
}

.modal-back.show {
  display: flex;
}

.modal {
  width: min(460px, 100%);
  background: var(--paper);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--olive-deep);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 90;
  font-weight: 700;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-footer {
  margin-top: 20px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 22px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.rank-list {
  padding-left: 18px;
  color: var(--ink);
}

.rank-list li {
  margin: 6px 0;
  font-size: 14px;
}

.game-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 22px;
  align-items: start;
}

.game-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.game-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-weight: 800;
}

.puzzle-board {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  margin: 8px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  background: #d7c4aa;
  border-radius: 16px;
  border: 8px solid #8a6a45;
  box-sizing: border-box;
}

.puzzle-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #efe4d4;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(59, 50, 41, 0.16);
}

.puzzle-tile.empty {
  background: rgba(255, 250, 242, 0.35);
  box-shadow: none;
  cursor: default;
}

.puzzle-piece {
  position: absolute;
  width: 300%;
  height: 300%;
  left: 0;
  top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.puzzle-preview {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 12px;
  border: 3px solid #d7c4aa;
}

.xq-board,
.go-board,
.gm-board {
  margin: 8px auto;
  user-select: none;
}

.xq-grid {
  display: grid;
  grid-template-columns: repeat(9, 36px);
  grid-template-rows: repeat(10, 36px);
  gap: 0;
  background: #f3e2c1;
  border: 6px solid #8a6a45;
  width: max-content;
  margin: 0 auto;
  position: relative;
}

.xq-sq {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.xq-sq::after {
  content: "";
  position: absolute;
  inset: 17px 0 auto 0;
  height: 1px;
  background: #8a6a45;
}
.xq-sq::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 17px;
  width: 1px;
  background: #8a6a45;
}

.xq-piece {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  z-index: 1;
  background: #fffaf2;
  border: 2px solid #c56c32;
  color: #c56c32;
}

.xq-piece.black {
  border-color: #3b3229;
  color: #3b3229;
}

.xq-sq.sel .xq-piece,
.cell.sel {
  box-shadow: 0 0 0 3px #7d9a6e;
}

.xq-sq.can {
  background: rgba(125, 154, 110, 0.28);
}

.gm-board,
.go-wrap {
  width: max-content;
  margin: 0 auto;
  background: #e7c992;
  padding: 12px;
  border-radius: 12px;
  border: 6px solid #8a6a45;
}

.gm-grid {
  display: grid;
  grid-template-columns: repeat(15, 24px);
}

.gm-cell {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 0.5px #8a6a45;
}

.stone {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.stone.black { background: #2b241c; }
.stone.white { background: #fffaf2; border: 1px solid #b9a48a; }

.go-wrap {
  padding: 18px;
}

.go-grid {
  display: grid;
  grid-template-columns: repeat(13, 22px);
  background:
    linear-gradient(#8a6a45, #8a6a45) 0 0 / 100% 1px,
    linear-gradient(#8a6a45, #8a6a45) 0 0 / 1px 100%;
}

.go-pt {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset -1px -1px 0 #8a6a45;
}

.go-pt .stone {
  width: 16px;
  height: 16px;
}

.seat-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .quick-grid,
  .card-grid,
  .map-layout,
  .board-layout,
  .notice-grid,
  .gate-grid,
  .game-layout {
    grid-template-columns: 1fr;
  }

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

  .header-tools {
    margin-left: auto;
  }

  .weather-chip small {
    display: none;
  }

  .weather-chip {
    max-width: 120px;
    padding: 6px 8px;
  }

  .persona-select {
    display: none;
  }

  .fab-call {
    right: 12px;
    bottom: 16px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .gate-head h1 {
    font-size: 26px;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .slide-copy {
    left: 20px;
    right: 20px;
    bottom: 28px;
  }

  .slide-copy h2,
  .page-hero h1,
  .section-head h2 {
    font-size: 24px;
  }

  .carousel,
  .slide img {
    min-height: 360px;
    height: 360px;
  }

  .slide-copy {
    max-width: calc(100% - 24px);
  }

  .slide-actions {
    left: 16px;
    right: 16px;
    bottom: 12px;
    flex-wrap: wrap;
  }

  .footer-inner {
    flex-direction: column;
  }
}
