:root {
  color-scheme: light;
  --bg: #eef1f4;
  --surface: #ffffff;
  --ink: #1d232b;
  --muted: #68727d;
  --line: #d7dde4;
  --brand: #d8242f;
  --brand-dark: #951720;
  --green: #0f8b6a;
  --gold: #d69c1f;
  --blue: #276fbf;
  --rank-gold: #f7c948;
  --rank-gold-hi: #fff1a8;
  --rank-gold-low: #b86e00;
  --rank-silver: #c7d0da;
  --rank-silver-hi: #f5f7fa;
  --rank-silver-low: #768391;
  --rank-bronze: #b8793e;
  --rank-bronze-hi: #f1c08a;
  --rank-bronze-low: #6e3b18;
  --rank-ink: #11151d;
  --shadow: 0 12px 30px rgba(29, 35, 43, 0.1);
}

body.dark-mode {
  --surface: #171b21;
  --ink: #f3f5f7;
  --muted: #b8c0ca;
  --line: #343b45;
  background: #11151a;
  color: var(--ink);
}

body.dark-mode .site-header,
body.dark-mode .mobile-menu-panel,
body.dark-mode .mobile-account-panel,
body.dark-mode .home-platform-panel,
body.dark-mode .board-shell,
body.dark-mode .board-main,
body.dark-mode .board-post-detail-page,
body.dark-mode .board-post-card,
body.dark-mode .member-panel,
body.dark-mode .point-game-arena,
body.dark-mode .point-game-stage,
body.dark-mode .point-game-control {
  background: var(--surface);
  color: var(--ink);
}

.mobile-menu-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
}

.mobile-theme-toggle {
  min-width: 58px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.board-shell,
.board-main,
.board-post-detail-page,
.board-post-card,
.board-filter-form,
.board-search-dock,
.point-game-arena,
.point-game-poster,
.point-game-machine,
.point-game-stage,
.point-game-control,
.point-game-result,
.board-comments,
.board-comment,
.board-comment-form {
  border-color: transparent !important;
}

.board-post-card,
.board-post-detail-page,
.point-game-arena {
  box-shadow: none;
}

.board-view-head,
.section-head {
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

.board-comments {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  background: #fff;
}

.board-comments-head,
.board-comment-meta,
.board-comment-form-actions,
.board-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-comments-head h3 {
  margin: 0;
  font-size: 18px;
}

.board-comment-form {
  display: grid;
  gap: 8px;
  background: #fff;
}

.board-comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  resize: vertical;
  font-size: 16px;
}

.board-comment-secret-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.board-comment-list {
  display: grid;
  gap: 10px;
}

.board-comment {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  background: transparent;
}

.board-comment-meta {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 12px;
}

.board-comment-meta mark {
  border-radius: 999px;
  background: #fff3cd;
  color: #946200;
  padding: 2px 7px;
}

.board-comment-body {
  color: var(--ink);
  line-height: 1.65;
}

.board-comment-actions {
  justify-content: flex-end;
}

.board-comment-actions button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 900;
}

.black-phone-panel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  border-radius: 999px;
  background: #fff4f5;
  color: var(--brand-dark);
  padding: 8px 12px;
  font-weight: 900;
}

.board-filter-meta-job {
  grid-template-columns: minmax(0, 1fr) minmax(160px, .6fr) auto;
}

.board-filter-meta-black {
  grid-template-columns: minmax(0, 220px) 64px;
  justify-content: start;
}

.home-review-rank-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.home-review-rank-row .home-user-rank-total {
  display: none;
}

.point-game-arena {
  background: #fff;
}

.point-game-arena .eyebrow,
.point-game-arena-head h2,
.point-game-control strong,
.point-game-control > p {
  display: none;
}

.point-game-rps-stage {
  grid-template-columns: 1fr;
  gap: 18px;
}

.point-game-rps-reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
}

.point-game-rps-reel span {
  display: grid;
  place-items: center;
  min-height: 118px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f3f5f7);
  color: var(--brand);
  font-size: 40px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--line);
  animation: rpsReel 620ms linear infinite;
}

.point-game-rps-reel span:nth-child(2) {
  animation-delay: 140ms;
}

.point-game-rps-reel span:nth-child(3) {
  animation-delay: 280ms;
}

.point-game-rps-result-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(620px, 100%);
}

@keyframes rpsReel {
  50% {
    transform: translateY(-4px);
    filter: brightness(1.06);
  }
}

.point-game-ladder-stage {
  grid-template-columns: minmax(86px, 120px) minmax(0, 1fr) minmax(86px, 120px);
  gap: 12px;
}

.ladder-side-stake {
  display: grid;
  gap: 6px;
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ladder-side-stake input,
.point-game-control input {
  font-size: 16px;
}

.point-game-roulette-preview {
  background: conic-gradient(from -90deg, #fff 0deg 180deg, var(--brand) 180deg 360deg);
  color: var(--ink);
}

.point-game-roulette-preview span:last-child {
  color: #fff;
}

@media (max-width: 820px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .point-game-rps-result-row,
  .point-game-ladder-stage {
    grid-template-columns: 1fr;
  }

  .ladder-side-stake {
    width: 100%;
  }

  .board-filter-meta-job,
  .board-filter-meta-black {
    grid-template-columns: minmax(0, 1fr) 52px;
  }
}

#categoryStrip[hidden],
#childCategoryStrip[hidden],
.category-strip[hidden],
.category-strip:empty {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#boardView.is-point-game-view > .section-head {
  display: none !important;
}

.point-game-poster-meta,
.point-game-poster > p {
  display: none !important;
}

.point-game-ladder-stage {
  display: grid !important;
  grid-template-columns: minmax(96px, 128px) minmax(0, 1fr) minmax(96px, 128px);
  align-items: center;
  gap: 14px;
  width: min(720px, 100%);
}

.ladder-side-stake input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
}

.point-game-roulette-wheel {
  background: conic-gradient(from 0deg, #fff 0deg 180deg, var(--brand) 180deg 360deg) !important;
}

.point-game-roulette-wheel .win,
.point-game-roulette-wheel .lose {
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 96px;
  min-height: 54px;
  margin-top: -27px;
  transform: none !important;
  line-height: 1;
  writing-mode: horizontal-tb;
}

.point-game-roulette-wheel .win {
  left: 20% !important;
  color: #fff !important;
}

.point-game-roulette-wheel .lose {
  right: 20% !important;
  color: var(--ink) !important;
}

@media (max-width: 820px) {
  .point-game-ladder-stage {
    grid-template-columns: 1fr;
  }
}

.board-view.is-point-game-view .board-view-head {
  display: none;
}

.point-game-poster-meta,
.point-game-poster > p {
  display: none;
}

.point-game-ladder-stage {
  display: grid;
  grid-template-columns: minmax(96px, 128px) minmax(0, 1fr) minmax(96px, 128px);
  align-items: center;
  gap: 14px;
  width: min(720px, 100%);
}

.ladder-side-stake input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
}

.point-game-roulette-wheel {
  background: conic-gradient(from 0deg, #fff 0deg 180deg, var(--brand) 180deg 360deg);
}

.point-game-roulette-wheel .win,
.point-game-roulette-wheel .lose {
  top: 50%;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  min-width: 96px;
  min-height: 54px;
  transform: none;
  margin-top: -27px;
  line-height: 1;
  writing-mode: horizontal-tb;
}

.point-game-roulette-wheel .win {
  left: 20%;
  color: #fff;
}

.point-game-roulette-wheel .lose {
  right: 20%;
  color: var(--ink);
}

@media (max-width: 820px) {
  .point-game-ladder-stage {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
mark {
  letter-spacing: 0;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  place-items: center;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.68), rgba(8, 10, 14, 0.28) 46%, rgba(8, 10, 14, 0.62)),
    url("assets/brand/auth-gate-background.png") center / cover no-repeat;
}

.auth-gate-card {
  width: min(410px, calc(100% - 24px));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.auth-gate-brand {
  display: grid;
  justify-items: center;
  text-align: center;
}

.auth-gate-brand img,
.auth-gate-logo {
  width: min(290px, 82vw);
  height: auto;
  display: block;
  object-fit: contain;
}

.auth-gate-actions {
  display: grid;
  gap: 9px;
  width: min(320px, 100%);
}

.auth-gate-actions button,
.auth-gate-actions .primary-action {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.auth-gate-actions button:hover,
.auth-gate-actions button:focus-visible {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

body.auth-gate-open .auth-gate {
  display: grid;
}

body.auth-gate-open .site-header,
body.auth-gate-open .main-nav,
body.auth-gate-open #categoryStrip,
body.auth-gate-open #childCategoryStrip,
body.auth-gate-open main,
body.auth-gate-open #detailDialog,
body.auth-gate-open .portal-toast,
body.auth-gate-open #sessionDialog {
  display: none !important;
}

body.auth-gate-open [hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(29, 35, 43, 0.08);
  isolation: isolate;
}

body:not(.auth-gate-open) {
  padding-top: 172px;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

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

.brand-logo-picture {
  display: inline-flex;
  align-items: center;
  width: clamp(240px, 21vw, 310px);
  max-width: 100%;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 116px;
  border-radius: 4px;
  object-fit: contain;
}

.brand-logo-video {
  background: transparent;
}

.seo-header-inner {
  grid-template-columns: minmax(240px, 340px) 1fr;
}

.seo-top-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.seo-top-links a,
.seo-link-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.seo-top-links a:hover,
.seo-top-links a:focus-visible,
.seo-link-grid a:hover,
.seo-link-grid a:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
  outline: none;
}

.seo-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.seo-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.seo-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.seo-hero,
.seo-link-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.seo-hero h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.seo-hero p:last-child,
.seo-link-panel h2 {
  margin-bottom: 0;
}

.seo-link-panel {
  margin-top: 16px;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 22px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy small[hidden] {
  display: none;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  height: 42px;
  border: 2px solid var(--brand);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.search-box input {
  min-width: 0;
  border: 0;
  padding: 0 14px;
  outline: 0;
}

.search-box button,
.primary-action {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.mobile-menu-toggle,
.mobile-account-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0;
  color: var(--ink);
}

.mobile-account-toggle > span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.mobile-account-toggle > span::before,
.mobile-account-toggle > span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid currentColor;
}

.mobile-account-toggle > span::before {
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface);
}

.mobile-account-toggle > span::after {
  bottom: 0;
  width: 18px;
  height: 9px;
  border-radius: 999px 999px 4px 4px;
  border-bottom: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible,
.mobile-account-toggle:hover,
.mobile-account-toggle:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.header-actions button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 13px;
  color: var(--ink);
}

.header-actions .admin-link {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid #f1c86c;
  border-radius: 6px;
  background: #fffaf0;
  color: var(--brand-dark);
  padding: 0 12px;
  text-decoration: none;
  font-weight: 900;
}

.header-actions .primary-action {
  border-color: var(--brand);
}

.member-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #f0c8cc;
  border-radius: 6px;
  background: #fff5f6;
  color: var(--brand-dark);
  padding: 0 12px;
  font-weight: 800;
  white-space: nowrap;
}

.member-panel-identity {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 10px 0 14px;
  font-weight: 800;
}

.member-panel-identity[hidden] {
  display: none;
}

.member-panel-identity .member-identity {
  max-width: 100%;
}

.member-identity,
.level-badge,
.local-member-identity,
.local-level-badge {
  display: inline-flex;
  align-items: center;
}

.member-identity,
.local-member-identity {
  min-width: 0;
  gap: 5px;
  vertical-align: middle;
}

.member-name-action {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.member-name-action:hover .member-name-text,
.member-name-action:focus-visible .member-name-text {
  color: var(--brand);
  text-decoration: underline;
}

.level-badge,
.local-level-badge {
  flex: 0 0 auto;
}

.level-badge-icon,
.local-level-icon {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.member-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-name-image {
  display: block;
  width: auto;
  max-width: 150px;
  height: auto;
  max-height: 30px;
  border-radius: 4px;
  object-fit: contain;
}

.main-nav,
.category-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  width: min(1480px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  min-width: 0;
  margin: 0 auto;
  scrollbar-width: thin;
}

.main-nav {
  min-height: 42px;
  border-top: 1px solid #eef0f3;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 15px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--brand);
}

.portal-menu-link,
.portal-submenu {
  min-height: 38px;
  border: 1px solid #000;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.portal-menu-link {
  padding: 0 15px;
  border-radius: 6px;
}

.portal-menu-link.active,
.portal-menu-link:hover,
.portal-submenu:hover {
  color: var(--brand);
}

.portal-menu-link.disabled,
.portal-submenu.disabled {
  color: #a1a9b2;
  cursor: not-allowed;
}

.category-strip {
  position: absolute;
  top: 100%;
  left: var(--submenu-left, 16px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow);
  overflow: visible;
}

.category-strip[hidden] {
  display: none !important;
}

.category-strip:empty {
  display: none !important;
  min-height: 0;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.child-category-strip {
  min-height: 36px;
  padding-bottom: 9px;
  border-top: 1px dashed #edf0f3;
}

.child-category-strip[hidden] {
  display: none;
}

.portal-submenu {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  height: 32px;
  width: 100%;
  border: 1px solid #000;
  border-radius: 6px;
  background: #f7f8fa;
  padding: 0 11px;
}

.portal-submenu-group {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: start;
}

.portal-submenu-children {
  display: none;
  min-width: 100%;
  grid-auto-flow: row;
  gap: 4px;
  padding-left: 10px;
}

.portal-submenu-group:hover .portal-submenu-children,
.portal-submenu-group:focus-within .portal-submenu-children,
.portal-submenu-group.active .portal-submenu-children {
  display: grid;
}

.portal-submenu.depth-2 {
  background: #fff;
}

.portal-submenu.child-depth {
  background: #fff;
}

.mobile-menu-backdrop,
.mobile-menu-panel,
.mobile-account-backdrop,
.mobile-account-panel {
  display: none;
}

.mobile-menu-backdrop,
.mobile-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(21, 24, 28, 0.45);
}

.mobile-menu-panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(84vw, 340px);
  max-width: calc(100vw - 36px);
  border-right: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(-104%);
  transition: transform 180ms ease;
}

.mobile-account-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  width: min(84vw, 340px);
  max-width: calc(100vw - 36px);
  border-left: 1px solid var(--line);
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}

.mobile-menu-head strong {
  font-size: 16px;
  font-weight: 900;
}

.mobile-account-panel .mobile-menu-head {
  gap: 8px;
  justify-content: flex-start;
}

.mobile-account-panel .mobile-menu-head strong {
  min-width: 0;
  margin-right: auto;
}

.mobile-account-logout {
  flex: 0 0 auto;
  min-width: 64px;
  height: 34px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-menu-close {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 10px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-menu-close::before {
  transform: rotate(45deg);
}

.mobile-menu-close::after {
  transform: rotate(-45deg);
}

.mobile-menu-list {
  display: grid;
  gap: 6px;
  max-height: calc(100dvh - 58px);
  overflow-y: auto;
  padding: 10px;
}

.mobile-menu-item {
  display: grid;
  gap: 4px;
}

.mobile-menu-children {
  display: grid;
  gap: 4px;
  padding-left: 12px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  width: 100%;
  border: 1px solid #000;
  border-radius: 6px;
  background: #f7f8fa;
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.mobile-menu-link.active,
.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.mobile-menu-link.disabled {
  color: #a1a9b2;
  cursor: not-allowed;
}

.mobile-menu-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 120ms ease-out;
}

.mobile-menu-item.expanded > .mobile-menu-link .mobile-menu-caret {
  transform: rotate(-135deg);
}

.mobile-account-content {
  display: grid;
  gap: 14px;
  max-height: calc(100dvh - 58px);
  overflow-y: auto;
  padding: 14px;
}

.board-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  width: min(1480px, calc(100% - 32px));
  margin: 18px auto 56px;
  align-items: start;
  background: var(--surface);
}

.board-main,
.board-view,
.board-home {
  min-width: 0;
}

.board-home,
.board-view,
.board-member-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.board-shell .board-member-panel,
.board-post-detail-page {
  border-color: transparent;
  box-shadow: none;
}

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

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

.home-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.home-platform-panel {
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.home-platform-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-platform-head h2 {
  margin: 0;
  color: var(--brand);
  font-size: 18px;
}

.home-platform-head button,
.point-game-options button,
.board-write-button {
  min-height: 34px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
  white-space: nowrap;
}

.home-platform-head button:disabled,
.point-game-options button:disabled {
  border-color: var(--line);
  background: #e8ebef;
  color: #8b95a1;
}

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

.home-post-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
}

.home-post-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-post-region {
  color: var(--brand-dark);
  font-weight: 900;
}

.home-post-list .home-post-reactions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  overflow: visible;
}

.home-post-list mark {
  border-radius: 999px;
  background: #fff4d8;
  color: #8a5b00;
  padding: 3px 7px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.home-user-ranking-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-user-rank-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 6px 8px;
}

.home-user-rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
}

.home-user-rank-no img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.home-user-rank-no.is-number {
  border: 2px solid var(--brand);
  border-radius: 8px;
  background: #171b22;
  color: #f5f7fa;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.home-user-rank-name {
  min-width: 0;
  overflow: hidden;
}

.home-user-rank-score,
.home-user-rank-total {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.home-user-rank-score {
  color: var(--brand);
}

.home-user-rank-score.is-level-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-user-rank-score.is-level-icon .level-badge {
  width: 30px;
  height: 30px;
}

.home-user-rank-score.is-level-icon .level-badge-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.point-game-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.point-game-panel {
  margin-top: 12px;
}

.point-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.point-game-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.point-game-card strong {
  font-size: 15px;
}

.point-game-card label,
.account-card label,
.account-card fieldset,
.board-filter-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.point-game-card input,
.point-game-card select,
.account-card input,
.board-filter-form input,
.board-filter-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px;
}

.board-filter-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.board-filter-meta button {
  min-height: 38px;
}

.point-game-card button,
.board-reaction-actions button,
.board-post-report-action button {
  min-height: 34px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.point-game-card button:disabled,
.board-reaction-actions button:disabled,
.board-post-report-action button:disabled {
  border-color: var(--line);
  background: #e8ebef;
  color: #8b95a1;
}

.point-game-card p {
  min-height: 34px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.point-game-limit {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.point-game-arena {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 36, 47, 0.08), rgba(214, 156, 31, 0.08)),
    var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.point-game-arena-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.point-game-arena-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.point-game-arena-head button,
.point-game-poster button,
.point-game-control button {
  min-height: 38px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
}

.point-game-arena-head button:disabled,
.point-game-poster button:disabled,
.point-game-control button:disabled {
  border-color: var(--line);
  background: #e8ebef;
  color: #8b95a1;
}

.point-game-lobby-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}

.point-game-poster {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
  overflow: hidden;
}

.point-game-poster-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.point-game-poster h3 {
  margin: 0;
  font-size: 24px;
}

.point-game-poster p,
.point-game-control p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.point-game-preview {
  min-height: 112px;
  border-radius: 8px;
  background: #f2f5f8;
}

.point-game-rps-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.point-game-rps-preview > span,
.point-game-rps-preview > b {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.point-game-rps-preview > b {
  min-width: 46px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.point-game-rps-preview .rps-hand-cycle {
  align-self: center;
  justify-self: center;
  margin: auto;
}

.point-game-ladder-preview {
  display: grid;
  place-items: center;
  padding: 8px;
}

.point-game-roulette-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 999px;
  background: conic-gradient(from -90deg, var(--brand) 0deg 180deg, var(--gold) 180deg 360deg);
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.point-game-roulette-preview span:last-child {
  color: var(--ink);
}

.point-game-machine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  min-height: 430px;
}

.point-game-stage,
.point-game-control {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.point-game-stage {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 18px;
  overflow: hidden;
}

.point-game-control {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.point-game-control label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.point-game-control input,
.point-game-control select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
}

.point-game-result {
  display: grid;
  gap: 4px;
  min-height: 54px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.point-game-result strong {
  color: var(--ink);
  font-size: 16px;
}

.point-game-rps-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: min(640px, 100%);
}

.point-game-fighter {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.point-game-fighter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.point-game-fighter strong,
.point-game-rps-stage > b {
  color: var(--brand);
  font-size: 34px;
  font-weight: 900;
}

.point-game-ladder-stage {
  display: grid;
  place-items: center;
  width: 100%;
}

.point-game-ladder-svg {
  width: min(430px, 100%);
  height: auto;
  overflow: visible;
}

.point-game-ladder-svg .rail {
  stroke: rgba(104, 114, 125, 0.55);
  stroke-width: 9;
  stroke-linecap: square;
}

.point-game-ladder-svg .bridge {
  stroke-width: 9;
  stroke-linecap: square;
}

.point-game-ladder-svg .runner-route {
  fill: none;
  stroke: rgba(216, 36, 47, 0.18);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.point-game-ladder-svg .runner {
  fill: var(--brand);
  filter: drop-shadow(0 0 12px rgba(216, 36, 47, 0.65));
}

.point-game-ladder-detail .runner {
  opacity: 0;
}

.point-game-machine[data-point-game-outcome="running"] .point-game-ladder-detail .runner,
.point-game-machine[data-point-game-outcome="win"] .point-game-ladder-detail .runner,
.point-game-machine[data-point-game-outcome="lose"] .point-game-ladder-detail .runner {
  opacity: 1;
}

.point-game-ladder-svg text {
  font-size: 26px;
  font-weight: 900;
  text-anchor: middle;
}

.point-game-ladder-svg .lose {
  fill: var(--brand);
}

.point-game-ladder-svg .win {
  fill: var(--gold);
}

.point-game-roulette-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  aspect-ratio: 1;
}

.point-game-roulette-wheel {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 10px solid #fff;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold) 0deg 180deg, var(--brand) 180deg 360deg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  transform: rotate(0deg);
  transition: transform 3.25s cubic-bezier(0.12, 0.72, 0.08, 1);
  will-change: transform;
}

.point-game-roulette-wheel span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50%;
  height: 100%;
}

.point-game-roulette-wheel .win {
  top: 0;
  left: 25%;
  color: var(--ink);
}

.point-game-roulette-wheel .lose {
  right: 25%;
  bottom: 0;
  color: #fff;
  transform: rotate(180deg);
}

.point-game-roulette-pin {
  position: absolute;
  top: -4px;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 38px solid var(--ink);
}

.point-game-roulette-stage > strong {
  position: absolute;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow);
}

.point-game-machine[data-point-game-outcome="running"] .point-game-roulette-wheel {
  transform: rotate(var(--point-game-spin-end, 2160deg));
}

.point-game-machine[data-point-game-outcome="running"] .point-game-fighter strong {
  animation: pointGamePulse .42s ease-in-out infinite alternate;
}

.point-game-machine[data-point-game-outcome="running"] [data-roulette-center] {
  animation: pointGamePulse .36s ease-in-out infinite alternate;
}

@keyframes pointGamePulse {
  to {
    transform: scale(1.08);
  }
}

.point-game-machine[data-point-game-outcome="win"] .point-game-result strong {
  color: var(--green);
}

.point-game-machine[data-point-game-outcome="lose"] .point-game-result strong,
.point-game-machine[data-point-game-outcome="error"] .point-game-result strong {
  color: var(--brand);
}

.point-game-machine[data-point-game-outcome="draw"] .point-game-result strong {
  color: var(--blue);
}

.point-game-machine {
  align-items: stretch;
}

.point-game-stage {
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 36, 47, 0.14), transparent 32%),
    radial-gradient(circle at 78% 24%, rgba(214, 156, 31, 0.18), transparent 34%),
    #fbfcfd;
}

.point-game-choice-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.point-game-choice-grid button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  transition:
    transform 120ms ease-out,
    border-color 120ms ease-out,
    background 120ms ease-out;
}

.point-game-choice-grid button:hover:not(:disabled),
.point-game-choice-grid button:focus-visible,
.point-game-choice-grid button.is-active {
  border-color: var(--brand);
  background: rgba(216, 36, 47, 0.08);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.point-game-rps-stage {
  width: min(760px, 100%);
}

.point-game-fighter {
  position: relative;
  min-height: 260px;
  border-width: 2px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.72);
}

.point-game-fighter::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(104, 114, 125, 0.42);
  border-radius: 8px;
  pointer-events: none;
}

.point-game-fighter strong {
  display: grid;
  place-items: center;
  min-width: 136px;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.point-game-versus {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 86px;
}

.point-game-versus strong {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.point-game-versus span {
  min-width: 72px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 5px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.point-game-machine[data-point-game-outcome="running"] .point-game-fighter {
  animation: pointGameShake 560ms ease-in-out infinite alternate;
}

.point-game-machine[data-point-game-outcome="running"] .point-game-versus strong {
  animation: pointGamePulse 360ms ease-in-out infinite alternate;
}

@keyframes pointGameShake {
  to {
    transform: translateY(-3px);
  }
}

.point-game-ladder-svg .rail {
  stroke-width: 12;
}

.point-game-ladder-svg .bridge {
  stroke-width: 12;
}

.point-game-ladder-svg .runner-route {
  stroke: rgba(216, 36, 47, 0.24);
  stroke-width: 22;
}

.point-game-ladder-svg .runner {
  r: 16px;
}

.point-game-spin-wheel {
  width: min(390px, 100%);
  aspect-ratio: 1;
  border: 10px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.point-game-spin-wheel canvas {
  width: 100%;
  height: 100%;
}

.point-game-roulette-stage {
  filter: drop-shadow(0 18px 28px rgba(29, 35, 43, 0.18));
}

.point-game-roulette-pin {
  top: -10px;
  border-left-width: 18px;
  border-right-width: 18px;
  border-top-width: 46px;
  filter: drop-shadow(0 4px 6px rgba(29, 35, 43, 0.35));
}

.point-game-roulette-stage > strong {
  width: 104px;
  height: 104px;
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
  z-index: 2;
}

@media (max-width: 900px) {
  .point-game-machine {
    grid-template-columns: 1fr;
  }

  .point-game-rps-stage {
    grid-template-columns: 1fr;
  }

  .point-game-versus {
    min-width: 0;
  }

  .point-game-fighter {
    min-height: 180px;
  }
}

.board-card,
.board-post-card {
  display: grid;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.board-card h2 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.board-card p,
.board-path,
.form-help,
.board-access-notice {
  color: var(--muted);
  font-size: 13px;
}

.board-card button,
.board-post-form button {
  min-height: 36px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.board-write-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.board-write-toolbar > span {
  min-width: 0;
}

.board-write-toolbar [data-board-write-cancel] {
  flex: 0 0 auto;
  padding-inline: 8px;
  white-space: nowrap;
  font-size: 13px;
}

.board-access-notice {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.board-write-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.board-write-action-row .board-write-button {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 34px;
  padding-block: 0;
  padding-inline: 14px;
  border-radius: 6px;
  font-size: 13px;
}

.board-view #boardTitle {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
}

.board-write-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
}

.board-policy-help {
  display: block;
  color: var(--brand);
  font-size: 15px;
  font-weight: 950;
  text-align: left;
  white-space: pre-line;
}

.board-private-policy-help {
  color: var(--brand) !important;
  line-height: 1.45;
}

.board-policy-help > span,
#boardImageHelp > span {
  display: block;
}

.board-draft-notice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 950;
}

.board-draft-list {
  display: grid;
  gap: 8px;
}

.board-draft-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.board-draft-item div {
  display: grid;
  gap: 4px;
}

.board-draft-item span {
  color: var(--muted);
  font-size: 12px;
}

.board-verification-button {
  justify-self: start;
}

.board-card button:disabled {
  border-color: var(--line);
  background: #e8ebef;
  color: #8b95a1;
}

.board-posts {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.board-list-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.board-list-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-list-controls select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  font-weight: 800;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 38px;
}

.board-post-list {
  display: grid;
  gap: 10px;
}

.board-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.board-pagination button {
  min-width: 36px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.board-pagination button.active,
.board-pagination button:hover:not(:disabled) {
  border-color: var(--brand);
  background: #fff;
  color: #111;
}

.board-pagination button:disabled {
  color: #a1a9b2;
  cursor: not-allowed;
}

.member-profile-panel,
.member-profile-section {
  display: grid;
  gap: 12px;
}

.member-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-profile-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 900;
}

.member-profile-actions button:hover,
.member-profile-actions button:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.board-write-page {
  margin-top: 14px;
}

.board-write-page[hidden] {
  display: none;
}

.post-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.post-head-side {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.board-post-card.is-reviewing {
  border-style: none;
}

.board-post-card.is-restricted-preview .post-head {
  grid-template-columns: 1fr;
}

.board-post-card.is-notice {
  background: #fffafa;
  border: 1px solid rgba(216, 36, 47, 0.52);
  padding-block: 8px;
}

.board-post-card.is-notice .post-head {
  gap: 6px;
}

.board-post-card.is-notice .board-post-title,
.board-post-card.is-notice .board-post-detail-title h2,
.home-post-list button.is-notice span {
  font-size: calc(1em + 5pt);
  font-weight: 900;
}

.board-post-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.post-kind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 24px;
  border: 1px solid rgba(216, 36, 47, 0.34);
  border-radius: 999px;
  background: rgba(216, 36, 47, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.board-post-title:hover {
  color: var(--brand);
}

.board-post-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  padding: 22px;
  box-shadow: none;
}

.board-post-detail-page.is-reviewing {
  border-style: none;
}

.board-post-detail-page.is-notice {
  border: 1px solid rgba(216, 36, 47, 0.52);
  background: #fffafa;
}

.board-post-detail-page.is-notice .board-post-detail-title h2 {
  font-size: calc(1em + 5pt);
  font-weight: 900;
}

.board-post-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 0;
  padding-bottom: 12px;
}

.board-post-detail-toolbar mark {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(216, 36, 47, 0.1);
  color: var(--brand-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.post-stat-list {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
}

.post-stat-list-private {
  justify-content: flex-start;
}

.board-post-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 16px;
  border-top: 0;
  padding-top: 0;
}

.verification-required-panel {
  display: grid;
  gap: 12px;
  text-align: left;
}

.verification-required-panel .board-post-detail-title {
  justify-content: flex-start;
}

.restricted-post-title {
  justify-self: stretch;
  max-width: min(100%, 560px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 800;
}

.board-post-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.board-post-detail-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: #202833;
  font-size: 24px;
  line-height: 1.35;
}

.board-post-detail-title-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.board-post-detail-title .secret-post-lock {
  width: 16px;
  height: 16px;
}

.board-post-body {
  margin: 0;
  color: #2f3742;
  font-size: 17px;
  line-height: 1.8;
}

.board-post-meta-card {
  display: grid;
  gap: 6px;
  border-block: 0;
  background: var(--surface);
  padding: 4px 0;
}

.board-post-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.board-post-meta-row-top {
  justify-content: space-between;
}

.board-post-meta-row-bottom {
  flex-wrap: wrap;
}

.board-post-meta-row-top .board-secret-toggle {
  margin-left: auto;
}

.review-detail-panel {
  display: grid;
  gap: 14px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  padding: 14px;
}

.review-shop-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.review-shop-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.review-shop-copy {
  display: grid;
  gap: 5px;
}

.review-shop-copy strong {
  color: #202833;
  font-size: 20px;
}

.review-shop-copy em {
  color: var(--brand-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.review-score-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #ccd4df;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.review-score-total {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #202833;
  font-weight: 900;
}

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

.review-score-grid > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #dce2eb;
  border-radius: 6px;
  background: #fbfcfd;
  padding: 0 10px;
  white-space: nowrap;
}

.review-star-display {
  --review-star-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #c9d0da;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.review-star-display.is-large {
  --review-star-size: 26px;
  font-size: 26px;
}

.review-star-display.is-small {
  --review-star-size: 16px;
  font-size: 16px;
}

.review-star-display.is-compact {
  --review-star-size: 12px;
  font-size: 12px;
}

.review-star {
  position: relative;
  display: inline-block;
  width: var(--review-star-size);
  height: var(--review-star-size);
  font-size: var(--review-star-size);
  color: #c9d0da;
}

.review-star::before {
  content: none;
}

.review-star svg,
.review-rating-star svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.review-star-base {
  color: #c9d0da;
  fill: #c9d0da;
}

.review-star-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--star-fill, 0%);
  overflow: hidden;
  color: #ffc928;
  pointer-events: none;
}

.review-star-fill .review-star-fill-icon {
  width: var(--review-star-size);
  height: var(--review-star-size);
  min-width: var(--review-star-size);
  max-width: none;
  fill: #ffc928;
}

.board-post-report-action {
  display: flex;
  justify-content: flex-end;
}

.board-detail-action-bar {
  display: flex;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.board-detail-action-bar .board-reaction-actions,
.board-detail-action-bar .board-post-report-action,
.board-detail-action-bar .board-editor-actions {
  display: contents;
}

.board-detail-action-bar button {
  flex: 1 1 0;
  min-width: 112px;
  min-height: 44px;
  white-space: nowrap;
}

.board-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.board-editor-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
}

.board-detail-action-bar .board-editor-actions button {
  min-height: 44px;
}

.board-post-detail span {
  color: var(--muted);
  font-size: 12px;
}

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

.post-images img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.board-reaction-actions {
  display: flex;
  gap: 8px;
}

.board-reaction-actions button.active {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.board-filter-panel {
  margin-top: 12px;
}

.board-filter-panel[hidden] {
  display: none;
}

.board-filter-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.board-filter-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr)) minmax(56px, 64px);
  align-items: end;
  gap: 8px;
}

.board-filter-meta label {
  display: grid;
  grid-template-rows: auto 42px;
  min-width: 0;
  gap: 4px;
}

.board-filter-meta label > span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.board-filter-meta input,
.board-filter-meta select,
.board-search-dock input,
.board-search-dock select {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  min-height: 42px;
  line-height: 1.2;
}

.board-filter-meta button,
.board-search-dock button {
  height: 42px;
  min-height: 42px;
  padding-inline: 10px;
  white-space: nowrap;
}

.board-search-dock {
  display: grid;
  grid-template-columns: minmax(100px, 120px) minmax(0, 1fr) minmax(56px, 64px) minmax(64px, 72px);
  align-items: stretch;
  gap: 6px;
  justify-self: stretch;
  margin-top: 12px;
  width: 100%;
}

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

.job-kind-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.job-region-select,
.job-kind-select {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.job-region-select select,
.job-kind-select select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #fff;
  color: var(--ink);
  padding: 0 34px 0 10px;
  font-weight: 900;
}

.review-fields[hidden] {
  display: none;
}

.board-post-form {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.board-post-form .form-grid {
  display: grid;
  gap: 14px;
}

.board-post-form label,
.board-post-form .board-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.board-post-form input,
.board-post-form select,
.board-post-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 14px 12px;
}

.board-post-form textarea {
  min-height: 216px;
  resize: vertical;
}

.board-post-form .board-rich-editor {
  width: 100%;
  min-width: 0;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  outline: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.board-post-form .board-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}

.board-post-form .board-rich-editor:focus {
  border-color: var(--brand);
}

.board-post-form .board-rich-editor * {
  max-width: 100%;
}

.board-rich-toolbar {
  display: grid;
  grid-template-columns: minmax(52px, 64px) repeat(7, 36px);
  gap: 6px;
  align-items: center;
  width: 100%;
}

.board-rich-toolbar button,
.board-rich-toolbar select,
.board-rich-toolbar input[type="color"] {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.board-rich-toolbar button {
  padding: 0 8px;
  cursor: pointer;
}

.board-rich-toolbar input[type="color"] {
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
}

.board-rich-toolbar input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.board-rich-toolbar input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 999px;
}

.toolbar-italic-t {
  display: inline-block;
  font-style: italic;
}

.toolbar-underline-t {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.align-glyph {
  display: grid;
  gap: 3px;
  width: 18px;
}

.align-glyph i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.align-glyph-left i:nth-child(2) {
  width: 13px;
}

.align-glyph-center {
  justify-items: center;
}

.align-glyph-center i:nth-child(2) {
  width: 13px;
}

.align-glyph-right {
  justify-items: end;
}

.align-glyph-right i:nth-child(2) {
  width: 13px;
}

.board-rich-align {
  display: block;
}

.board-rich-align-left {
  text-align: left;
}

.board-rich-align-center {
  text-align: center;
}

.board-rich-align-right {
  text-align: right;
}

.board-rich-size-13 {
  font-size: 13px;
}

.board-rich-size-15 {
  font-size: 15px;
}

.board-rich-size-17 {
  font-size: 17px;
}

.board-rich-size-20 {
  font-size: 20px;
}

.board-rich-size-24 {
  font-size: 24px;
}

.review-rating-field {
  grid-column: auto;
}

.review-rating-picker {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: 4px;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px 12px;
}

.review-rating-star {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  color: #c8d0db;
}

.review-rating-star-base {
  color: #c8d0db;
}

.review-rating-star-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rating-fill, 0%);
  overflow: hidden;
  color: #ffc928;
  pointer-events: none;
}

.review-rating-star-fill .review-rating-star-fill-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  max-width: none;
}

.review-rating-choice {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 50%;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent;
  padding: 0;
  cursor: pointer;
}

.board-post-form .review-rating-choice {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: transparent;
  font-weight: 400;
}

.review-rating-choice.is-left {
  left: 0;
}

.review-rating-choice.is-right {
  right: 0;
}

.review-rating-choice:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.board-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.board-image-preview span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
}

.board-watermark {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 18vw, 240px), 1fr));
  gap: clamp(42px, 6vw, 84px) clamp(24px, 4vw, 64px);
  align-content: start;
  overflow: hidden;
  width: 140vw;
  min-height: 140vh;
  padding: clamp(28px, 7vw, 96px);
  transform: rotate(-16deg);
  transform-origin: center;
}

.board-watermark-tile {
  display: inline-block;
  min-width: max-content;
  color: rgba(216, 36, 47, 0.2);
  font-size: clamp(14px, 2.5vw, 28px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.board-view {
  position: relative;
  overflow: visible;
}

.account-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.account-page[hidden] {
  display: none;
}

.account-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.account-summary > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-logout-button {
  margin-left: auto;
  min-height: 28px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.account-logout-button:hover,
.account-logout-button:focus-visible {
  background: var(--brand);
  color: #fff;
}

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

.account-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.account-card h2,
.account-activity-list h3 {
  margin: 0;
  font-size: 16px;
}

.account-activity {
  margin-top: 12px;
}

.account-activity-list {
  display: grid;
  gap: 8px;
}

.account-activity-list article {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 8px;
}

.account-activity-list span,
.account-activity-list small {
  color: var(--muted);
  font-size: 12px;
}

.referral-card {
  margin-top: 12px;
}

.referral-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.referral-copy-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.referral-copy-grid input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  padding: 0 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.referral-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.referral-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 6px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.board-view > :not(.board-watermark) {
  position: relative;
  z-index: 1;
}

.category-strip button,
.region-tabs button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8fa;
  color: #39424d;
  padding: 0 11px;
  white-space: nowrap;
}

.category-strip button.active,
.region-tabs button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  min-height: 330px;
}

.hero-main,
.hero-empty,
.mini-banner,
.login-panel,
.section-block,
.side-card,
.ad-tile,
.business-card,
.community-card,
.gallery figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-empty {
  display: grid;
  place-content: center;
  gap: 10px;
  min-height: 330px;
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
}

.hero-empty strong {
  font-size: 24px;
}

.hero-empty span {
  color: var(--muted);
}

.hero-empty button,
.filter-summary button,
.recent-actions button {
  justify-self: center;
  min-height: 34px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  padding: 0 12px;
  font-weight: 900;
}

.hero-main {
  position: relative;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  min-height: 330px;
}

.hero-main img,
.mini-banner img,
.ad-tile img,
.business-card img,
.gallery img,
#detailContent img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e3e7eb;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
}

.hero-copy {
  position: absolute;
  z-index: 1;
  left: 28px;
  bottom: 28px;
  max-width: 520px;
  color: #fff;
}

.hero-copy span,
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0;
  color: #f1f2f3;
  font-size: 16px;
}

.hero-side {
  display: grid;
  gap: 10px;
}

.mini-banner {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  min-height: 98px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: none;
}

.mini-banner div,
.ad-tile div {
  min-width: 0;
  padding: 12px;
}

.mini-banner strong,
.ad-tile strong,
.business-card h3,
.post-row strong,
.side-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-banner span,
.ad-tile span,
.meta-line,
.post-row span,
.rank-row small,
.side-link span {
  color: var(--muted);
  font-size: 12px;
}

.login-panel {
  padding: 16px;
}

.panel-title,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-title span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.login-grid button,
.text-button,
.card-action {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 34px;
}

.login-grid button:hover,
.text-button:hover,
.card-action:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.login-grid button:disabled {
  border-color: var(--line);
  background: #eef1f4;
  color: #8b95a1;
  cursor: not-allowed;
}

.login-grid button:disabled:hover {
  border-color: var(--line);
  color: #8b95a1;
}

.quick-notice {
  display: grid;
  gap: 4px;
  min-height: 74px;
  border-radius: 8px;
  background: #fff5e1;
  padding: 13px;
}

.quick-notice span {
  color: var(--muted);
  font-size: 12px;
}

.ad-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.ad-tile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 82px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.content-flow {
  display: grid;
  gap: 16px;
}

.section-block,
.side-card {
  padding: 18px;
}

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

h1,
h2 {
  margin-bottom: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 20px;
}

.region-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 720px;
  padding-bottom: 2px;
}

.region-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.region-summary-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.region-summary-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 36, 47, 0.1);
}

.region-summary-card button {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.region-summary-card > button {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0;
}

.region-summary-card strong,
.region-summary-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.region-summary-card > button strong {
  color: var(--text);
  font-size: 15px;
}

.region-summary-card > button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.region-summary-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-summary-card div button {
  border: 1px solid #dde3ea;
  border-radius: 999px;
  background: #f7f9fb;
  padding: 5px 8px;
  color: #424b57;
  font-size: 12px;
  font-weight: 800;
}

.region-summary-card div b {
  color: var(--accent);
}

.search-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-results-head span {
  color: var(--muted);
  font-size: 12px;
}

.search-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.search-result-list a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 4px 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  padding: 10px;
  text-decoration: none;
}

.search-result-list b {
  grid-row: span 2;
  align-self: start;
  border-radius: 5px;
  background: #eef6ff;
  color: var(--blue);
  padding: 4px 6px;
  text-align: center;
  font-size: 12px;
}

.search-result-list strong,
.search-result-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-list span {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 22px;
  text-align: center;
}

body.dark-mode .empty-state {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  border: 1px solid #f0d2d5;
  border-radius: 8px;
  background: #fff7f8;
  padding: 12px 14px;
}

.filter-summary div {
  display: grid;
  gap: 6px;
}

.filter-summary span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-summary b {
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  padding: 4px 8px;
  font-size: 12px;
}

.recent-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.recent-actions button {
  justify-self: auto;
  min-height: 30px;
  font-size: 12px;
}

.muted.small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.business-card {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.thumb span {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.business-body {
  padding: 13px;
}

.meta-line {
  display: flex;
  gap: 7px;
  margin-bottom: 7px;
}

.meta-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.business-body p {
  min-height: 42px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.card-action {
  display: grid;
  place-items: center;
  width: 100%;
  font-weight: 800;
}

.attendance-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.attendance-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 70px 92px 70px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  padding: 8px 10px;
  font-size: 13px;
}

.attendance-row time {
  color: var(--brand);
  font-weight: 900;
}

.attendance-row strong,
.attendance-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-row b {
  border-radius: 5px;
  background: #e8f6f1;
  color: var(--green);
  padding: 4px 6px;
  text-align: center;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.compact-head {
  margin-bottom: 12px;
}

.post-list,
.community-columns {
  display: grid;
  gap: 9px;
}

.post-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  color: inherit;
  padding: 11px;
  text-decoration: none;
}

.post-row strong {
  margin: 4px 0 5px;
}

.post-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.community-card {
  padding: 12px;
  box-shadow: none;
}

.community-card h3 {
  margin-bottom: 9px;
  font-size: 15px;
}

.community-card a,
.side-link {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-top: 1px solid var(--line);
  color: inherit;
  padding: 9px 0;
  text-decoration: none;
}

.community-card a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card small {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gallery figure {
  overflow: hidden;
  margin: 0;
  box-shadow: none;
}

.gallery-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
}

.gallery img {
  aspect-ratio: 1 / 1;
  height: auto;
}

.gallery figcaption {
  min-height: 38px;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 12px;
}

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

.side-card h2 {
  margin-bottom: 12px;
}

.accent-card {
  border-color: #f1c86c;
  background: #fffaf0;
}

.rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  text-align: left;
}

button.side-link {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.rank-row:hover span,
.side-link:hover strong {
  color: var(--brand);
}

.rank-row b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.rank-row span,
.rank-row small {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#detailDialog {
  width: min(820px, calc(100% - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

#detailDialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

#authDialog,
#signupTypeNoticeDialog,
#sessionDialog {
  width: min(420px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

#authDialog::backdrop,
#signupTypeNoticeDialog::backdrop,
#sessionDialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.signup-type-notice-content {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.signup-type-notice-content h2,
.signup-type-notice-content p {
  margin: 0;
}

.signup-type-notice-content .primary-action {
  justify-self: end;
  min-width: 88px;
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  padding: 8px 10px;
}

#detailContent {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
}

#detailContent img {
  min-height: 360px;
}

#detailContent div {
  padding: 28px;
}

#detailContent .info-dialog-content {
  grid-column: 1 / -1;
  padding: 28px;
}

.info-dialog-content > img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 420px;
  border-radius: 8px;
  object-fit: contain;
}

.dialog-badge {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #eef6ff;
  color: var(--blue);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

#detailContent p {
  color: var(--muted);
  line-height: 1.6;
}

#detailContent a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 0 13px;
  text-decoration: none;
  font-weight: 800;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.dialog-actions button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.portal-ad-popup {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 120;
  width: min(330px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(20, 28, 38, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.portal-ad-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: rgba(20, 28, 38, 0.72);
  color: #fff;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.portal-ad-popup-media {
  display: block;
  width: 100%;
  height: 154px;
  border: 0;
  background: #f2f4f7;
  padding: 0;
  cursor: pointer;
}

.portal-ad-popup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-ad-popup-body {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.portal-ad-popup-body strong,
.portal-ad-popup-body span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-ad-popup-body strong {
  color: var(--text);
  font-size: 15px;
}

.portal-ad-popup-body span,
.portal-ad-popup-body label {
  color: var(--muted);
  font-size: 12px;
}

.portal-ad-popup-body label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 3px;
}

.auth-form,
.session-form {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.auth-form {
  padding: 28px;
}

#authEyebrow {
  display: none !important;
}

.auth-form h2,
.session-form h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 24px;
}

.auth-form label,
.auth-form fieldset {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.auth-form [hidden] {
  display: none !important;
}

.auth-form fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.auth-form legend {
  margin-bottom: 6px;
  font-weight: 800;
}

.nickname-mode-toggle {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nickname-mode-toggle[hidden] {
  display: none !important;
}

.nickname-mode-toggle legend {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.nickname-mode-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 10px;
}

.nickname-mode-toggle label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
}

.nickname-mode-toggle input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
}

.auth-account-type {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.auth-account-type legend {
  grid-column: 1 / -1;
}

.auth-account-type label {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}

.auth-account-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-account-type label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
}

.auth-form input,
.auth-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  outline: 0;
  background: var(--surface-2);
  color: var(--ink);
}

.auth-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 38px;
}

.auth-file-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.auth-image-preview {
  display: flex;
  min-height: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-image-preview:empty {
  display: none;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(216, 36, 47, 0.12);
}

.auth-form .primary-action,
.auth-switch,
.auth-recovery {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
}

.auth-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-message.is-error {
  color: var(--brand);
  font-weight: 700;
}

.session-countdown {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.session-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.session-actions .primary-action,
.session-actions .text-button {
  min-height: 40px;
  border-radius: 6px;
}

.member-panel {
  display: grid;
  gap: 16px;
}

.member-panel h3 {
  margin: 4px 0 -4px;
  font-size: 16px;
}

.point-summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #f1c86c;
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
}

.point-summary strong {
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 6px 9px;
}

.point-summary span {
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.point-summary small {
  color: var(--muted);
}

.member-list {
  display: grid;
  gap: 10px;
}

.member-list article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.member-message-thread {
  display: grid;
  gap: 8px;
}

.member-message-dialog .member-message-bubble {
  color: #fff;
}

.member-message-dialog .member-message-bubble p,
.member-message-dialog .member-message-bubble span {
  color: #fff !important;
}

.member-message-dialog .member-message-bubble.is-incoming {
  background: #4d0d13;
  border-color: #cf2635;
}

.member-message-dialog .member-message-bubble.is-outbound {
  background: #096733;
  border-color: #1eb86a;
}

.member-list code {
  width: fit-content;
  border-radius: 5px;
  background: #eef6ff;
  color: var(--blue);
  padding: 4px 7px;
  font-weight: 800;
}

.member-list span {
  color: var(--muted);
  font-size: 12px;
}

.member-form {
  display: grid;
  gap: 10px;
}

.member-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.member-form input,
.member-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  outline: 0;
}

.verification-chat .verification-message img {
  width: min(220px, 100%);
  max-height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.verification-qr-panel {
  display: grid;
  gap: 12px;
}

.verification-qr-code {
  width: min(240px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.verification-qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

.verification-sms-link {
  width: fit-content;
  text-decoration: none;
}

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

.member-form input:focus,
.member-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(216, 36, 47, 0.12);
}

.portal-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(420px, calc(100% - 36px));
  border-radius: 8px;
  background: #202833;
  color: #fff;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.portal-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .header-inner,
  .hero-grid,
  .layout,
  .hero-stage,
  .split-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  body:not(.auth-gate-open) {
    padding-top: 150px;
  }

  .home-user-rank-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .home-user-rank-total {
    display: none;
  }

  .job-kind-select {
    grid-template-columns: auto minmax(96px, 1fr);
    width: 100%;
  }

  body.mobile-menu-open,
  body.mobile-account-open {
    overflow: hidden;
  }

  .header-inner {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    width: min(100% - 8px, 1480px);
    gap: 6px;
    padding: 8px 0;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    justify-content: center;
  }

  .brand-logo-picture {
    width: min(230px, 58vw);
  }

  .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    justify-self: start;
    align-content: center;
    gap: 3px;
  }

  .mobile-account-toggle {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    justify-self: end;
  }

  .mobile-menu-backdrop:not([hidden]),
  .mobile-menu-panel,
  .mobile-account-backdrop:not([hidden]),
  .mobile-account-panel {
    display: block;
  }

  body.mobile-menu-open .mobile-menu-panel {
    transform: translateX(0);
  }

  body.mobile-account-open .mobile-account-panel {
    transform: translateX(0);
  }

  main,
  .board-shell,
  .category-strip {
    width: min(100% - 8px, 1480px);
    max-width: calc(100% - 8px);
  }

  .main-nav {
    display: none;
  }

  .category-strip {
    display: none;
  }

  .home-platform-head {
    align-items: center;
  }

  .home-platform-head h2,
  .home-platform-head button,
  .home-post-list button,
  .board-post-title,
  .member-panel button,
  .sidebar button {
    font-size: 14px;
  }

  .board-post-card.is-notice .board-post-title,
  .home-post-list button.is-notice span {
    font-size: 16px;
  }

  .home-post-list mark,
  .post-head mark {
    font-size: 11px;
    padding-inline: 6px;
  }

  .board-shell {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .board-member-panel {
    display: none;
  }

  .home-platform-panel,
  .login-panel,
  .account-page,
  .board-post-card,
  .board-post-detail-page,
  .board-filter-form {
    border-radius: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .home-platform-grid,
  .home-review-grid,
  .home-ranking-grid,
  .point-game-grid,
  .point-game-lobby-grid,
  .account-grid,
  .account-activity-grid,
  .referral-copy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .point-game-machine {
    grid-template-columns: 1fr;
  }

  .ad-strip,
  .home-platform-grid,
  .home-review-grid,
  .home-ranking-grid,
  .business-grid,
  .attendance-board,
  .gallery,
  .region-overview,
  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-search-dock {
    justify-self: stretch;
  }

  .review-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .review-fields label > span {
    font-size: 13px;
  }

  .review-fields input,
  .review-fields select,
  .review-rating-picker {
    min-height: 48px;
    padding: 10px 8px;
    font-size: 14px;
  }

  .review-rating-field {
    grid-column: auto;
  }

  .attendance-row {
    grid-template-columns: 56px minmax(0, 1fr) 64px;
  }

  .attendance-row span:nth-of-type(2) {
    display: none;
  }

  #detailContent {
    grid-template-columns: 1fr;
  }

  #detailContent img {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .auth-form {
    padding: 24px;
  }

  .search-box {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .hero-main {
    min-height: 260px;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .mini-banner,
  .ad-tile {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .ad-strip,
  .home-platform-grid,
  .home-review-grid,
  .home-ranking-grid,
  .point-game-grid,
  .point-game-lobby-grid,
  .account-grid,
  .account-activity-grid,
  .referral-copy-grid,
  .business-grid,
  .attendance-board,
  .gallery,
  .region-overview,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .account-logout-button {
    width: auto;
    margin-left: auto;
    min-height: 30px;
  }

  .point-game-arena-head {
    display: grid;
  }

  .point-game-rps-stage {
    grid-template-columns: 1fr;
  }

  .point-game-stage {
    min-height: 300px;
  }

  .board-write-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .board-write-action-row .board-write-button {
    justify-self: end;
  }

  .board-post-detail-page {
    padding: 14px;
  }

  .board-write-toolbar {
    gap: 6px;
  }

  .board-write-toolbar > span {
    font-size: 13px;
    line-height: 1.35;
  }

  .board-write-toolbar [data-board-write-cancel] {
    padding-inline: 6px;
    font-size: 12px;
  }

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

  .board-post-detail-title h2 {
    font-size: 20px;
  }

  .board-post-body {
    font-size: 16px;
  }

  .board-filter-form {
    padding: 6px;
  }

  .board-filter-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 46px;
    align-items: end;
    gap: 4px;
  }

  .board-filter-meta label {
    grid-template-rows: auto 36px;
  }

  .board-filter-meta label > span {
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
  }

  .board-filter-meta input,
  .board-filter-meta select,
  .board-search-dock input,
  .board-search-dock select {
    height: 36px;
    min-height: 36px;
    padding: 6px 4px;
    font-size: 13px;
  }

  .board-filter-meta button,
  .board-search-dock button {
    height: 36px;
    min-height: 36px;
    padding-inline: 2px;
    font-size: 13px;
  }

  .board-search-dock {
    grid-template-columns: 84px minmax(0, 1fr) 52px 58px;
    gap: 4px;
  }

  .board-post-meta-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .board-post-meta-card .post-stat-list {
    margin-left: 0;
  }

  .review-shop-line,
  .review-score-grid {
    grid-template-columns: 1fr;
  }

  .review-shop-line {
    align-items: stretch;
  }

  .review-shop-thumb {
    min-height: 44px;
  }

  .board-detail-action-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    inline-size: 100%;
    max-inline-size: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .board-detail-action-bar button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-inline: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: clip;
  }

  .section-head,
  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-ad-popup {
    right: 10px;
    bottom: 70px;
    width: calc(100vw - 20px);
  }
}

body.dark-mode {
  --surface: #171b21;
  --ink: #f3f5f7;
  --muted: #b8c0ca;
  --line: #343b45;
  background: #11151a;
  color: var(--ink);
}

body.dark-mode .site-header,
body.dark-mode .mobile-menu-panel,
body.dark-mode .mobile-account-panel,
body.dark-mode .home-platform-panel,
body.dark-mode .board-shell,
body.dark-mode .board-main,
body.dark-mode .board-post-detail-page,
body.dark-mode .board-post-card,
body.dark-mode .member-panel,
body.dark-mode .point-game-arena,
body.dark-mode .point-game-stage,
body.dark-mode .point-game-control {
  background: var(--surface);
  color: var(--ink);
}

.mobile-menu-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
}

.mobile-theme-toggle {
  min-width: 58px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.board-shell,
.board-main,
.board-post-detail-page,
.board-post-card,
.board-filter-form,
.board-search-dock,
.point-game-arena,
.point-game-poster,
.point-game-machine,
.point-game-stage,
.point-game-control,
.point-game-result,
.board-comments,
.board-comment,
.board-comment-form {
  border-color: transparent !important;
}

.board-post-card,
.board-post-detail-page,
.point-game-arena {
  box-shadow: none;
}

.board-view-head,
.section-head {
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

.board-comments {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  background: #fff;
}

.board-comments-head,
.board-comment-meta,
.board-comment-form-actions,
.board-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-comments-head h3 {
  margin: 0;
  font-size: 18px;
}

.board-comment-form {
  display: grid;
  gap: 8px;
  background: #fff;
}

.board-comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  resize: vertical;
  font-size: 16px;
}

.board-comment-secret-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.board-comment-list {
  display: grid;
  gap: 10px;
}

.board-comment {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  background: transparent;
}

.board-comment-meta {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 12px;
}

.board-comment-meta mark {
  border-radius: 999px;
  background: #fff3cd;
  color: #946200;
  padding: 2px 7px;
}

.board-comment-body {
  color: var(--ink);
  line-height: 1.65;
}

.board-comment-actions {
  justify-content: flex-end;
}

.board-comment-actions button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 900;
}

.black-phone-panel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  border-radius: 999px;
  background: #fff4f5;
  color: var(--brand-dark);
  padding: 8px 12px;
  font-weight: 900;
}

.board-filter-meta-job {
  grid-template-columns: minmax(0, 1fr) minmax(160px, .6fr) auto;
}

.board-filter-meta-black {
  grid-template-columns: minmax(0, 220px) 64px;
  justify-content: start;
}

.home-review-rank-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.home-review-rank-row .home-user-rank-total {
  display: none;
}

.point-game-arena {
  background: #fff;
}

.point-game-arena .eyebrow,
.point-game-arena-head h2,
.point-game-control strong,
.point-game-control > p {
  display: none;
}

.point-game-rps-stage {
  grid-template-columns: 1fr;
  gap: 18px;
}

.point-game-rps-reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
}

.point-game-rps-reel span {
  display: grid;
  place-items: center;
  min-height: 118px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f3f5f7);
  color: var(--brand);
  font-size: 40px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--line);
  animation: rpsReel 620ms linear infinite;
}

.point-game-rps-reel span:nth-child(2) {
  animation-delay: 140ms;
}

.point-game-rps-reel span:nth-child(3) {
  animation-delay: 280ms;
}

.point-game-rps-result-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(620px, 100%);
}

@keyframes rpsReel {
  50% {
    transform: translateY(-4px);
    filter: brightness(1.06);
  }
}

.point-game-ladder-stage {
  grid-template-columns: minmax(86px, 120px) minmax(0, 1fr) minmax(86px, 120px);
  gap: 12px;
}

.ladder-side-stake {
  display: grid;
  gap: 6px;
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ladder-side-stake input,
.point-game-control input {
  font-size: 16px;
}

.point-game-roulette-preview {
  background: conic-gradient(from -90deg, #fff 0deg 180deg, var(--brand) 180deg 360deg);
  color: var(--ink);
}

.point-game-roulette-preview span:last-child {
  color: #fff;
}

@media (max-width: 820px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .point-game-rps-result-row,
  .point-game-ladder-stage {
    grid-template-columns: 1fr;
  }

  .ladder-side-stake {
    width: 100%;
  }

  .board-filter-meta-job,
  .board-filter-meta-black {
    grid-template-columns: minmax(0, 1fr) 52px;
  }
}

.rps-hand-cycle.is-loop,
.rps-hand-cycle.is-video {
  display: grid;
  place-items: center;
  width: min(150px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.point-game-rps-preview .rps-hand-cycle.is-loop,
.point-game-rps-preview .rps-hand-cycle.is-video {
  width: min(96px, 100%);
}

.point-game-rps-stage .rps-hand-cycle.is-loop,
.point-game-rps-stage .rps-hand-cycle.is-video {
  width: min(86px, 100%);
}

.rps-loop-image,
.rps-loop-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border: 0;
}

.point-game-machine-rockPaperScissors .point-game-rps-result-row {
  grid-template-columns: minmax(88px, 1fr) minmax(56px, 72px) minmax(104px, 1fr);
  gap: clamp(12px, 3vw, 28px);
}

.point-game-machine-rockPaperScissors .point-game-versus {
  min-width: 56px;
  z-index: 2;
}

.point-game-machine-rockPaperScissors .point-game-fighter.is-server {
  margin-left: 8px;
}

.point-game-machine-rockPaperScissors .point-game-fighter {
  display: grid;
  place-items: center;
}

.point-game-machine-rockPaperScissors .rps-hand-slot {
  display: grid;
  place-items: center;
  width: clamp(76px, 24vw, 96px);
  min-height: clamp(76px, 24vw, 96px);
  aspect-ratio: 1;
  text-align: center;
}

.point-game-machine-rockPaperScissors .rps-hand-slot.rps-video-slot {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.point-game-machine-rockPaperScissors .rps-hand-slot .rps-hand-cycle.is-loop,
.point-game-machine-rockPaperScissors .rps-hand-slot .rps-hand-cycle.is-video {
  margin: 0;
}

@media (max-width: 480px) {
  .point-game-machine-rockPaperScissors .point-game-rps-result-row {
    grid-template-columns: minmax(84px, 1fr) 48px minmax(96px, 1fr);
    gap: 10px;
  }

  .point-game-machine-rockPaperScissors .point-game-versus {
    min-width: 48px;
  }

  .point-game-machine-rockPaperScissors .point-game-versus strong {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .point-game-machine-rockPaperScissors .point-game-versus span {
    min-width: 48px;
    padding: 4px 5px;
    font-size: 10px;
  }

  .point-game-machine-rockPaperScissors .point-game-fighter.is-server {
    margin-left: 6px;
  }
}
