@import url('/fonts.css');
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.download .eyebrow {
  color: inherit;
}
#contact-success {
  color: var(--green2);
  font-size: 14px;
  margin-top: 16px;
}
:root {
  --green: #173f35;
  --green2: #275a47;
  --cream: #f8f6ef;
  --gold: #dfb66b;
  --ink: #21392f;
  --muted: #66756b;
  --line: #e1e5d9;
  --white: #fffef9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    16px/1.65 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a:hover {
  color: #997037;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b57b29;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -1.8px;
  line-height: 1.12;
}
h1 {
  font-size: clamp(42px, 5.3vw, 76px);
}
h2 {
  font-size: clamp(32px, 3.3vw, 46px);
}
h3 {
  font-size: 21px;
  line-height: 1.3;
}
p {
  color: var(--muted);
}
.header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 1280px;
  padding: 22px 40px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 1.2px;
  white-space: nowrap;
}
.brand small {
  display: block;
  text-align: center;
  font-size: 10px;
  letter-spacing: 4px;
  margin-top: 5px;
}
.brand-tile {
  display: grid;
  place-items: center;
  width: 37px;
  height: 45px;
  background: var(--green);
  border-radius: 7px;
  color: var(--gold);
  font: 30px Georgia;
  box-shadow: 0 3px 0 #8e9b77;
}
nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
}
nav a[aria-current='page'] {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 9px;
  text-decoration-color: #b48f51;
}
.nav-account {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--green);
  padding: 14px 25px;
  border-radius: 7px;
  background: var(--green);
  color: white;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}
.button:hover {
  background: #2c5d49;
  color: white;
}
.button.small {
  padding: 10px 18px;
  font-size: 13px;
}
.button.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green);
}
.button.outline {
  background: transparent;
  color: var(--green);
  border-color: #bdc8b8;
}
.button.danger {
  background: #8b3931;
  border-color: #8b3931;
}
.menu-button {
  display: none;
}
.hero {
  max-width: 1280px;
  margin: auto;
  padding: 74px 40px 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 36px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green2);
  margin-bottom: 25px;
}
.eyebrow:before {
  content: '';
  height: 7px;
  width: 7px;
  background: #bb9150;
  border-radius: 50%;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero h1 em {
  color: #7b8f64;
  font-weight: 400;
}
.hero-copy > p {
  font-size: 17px;
  max-width: 450px;
  line-height: 1.8;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}
.hero-note {
  font-size: 12px !important;
  display: flex;
  gap: 19px;
}
.hero-note span:before {
  content: '✓';
  margin-right: 7px;
  color: var(--green2);
}
.table-art {
  height: 455px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.table-art:before {
  content: '';
  position: absolute;
  inset: 6px 9px 6px 14px;
  border-radius: 50%;
  background: #edf0e4;
  border: 1px solid #e0e5d5;
  z-index: -2;
}
.table-art:after {
  content: '';
  position: absolute;
  inset: 28px 31px;
  border-radius: 50%;
  border: 1px dashed #cdd6be;
  z-index: -1;
}
.mahjong-table {
  width: 370px;
  height: 310px;
  max-width: 83%;
  background: radial-gradient(ellipse at 40% 30%, #3f7559, #194636);
  border: 12px solid #b39862;
  border-radius: 65px;
  box-shadow:
    0 12px 0 #8b7244,
    0 25px 35px #243c332b,
    inset 0 0 0 3px #e1be7d;
  transform: rotate(-12deg);
  display: grid;
  place-items: center;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: 83%;
  transform: rotate(2deg);
}
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 57px;
  border-radius: 5px;
  background: linear-gradient(130deg, #fffef3, #e8e1ca);
  box-shadow:
    0 5px 0 #a5b597,
    1px 7px 3px #082f3266;
  color: #b4523b;
  font: 32px Georgia;
  border: 1px solid #fff;
}
.tile:nth-child(3n) {
  color: #2e6653;
}
.tile:nth-child(4n) {
  color: #355d86;
}
.tile.raised {
  transform: translateY(-7px);
  box-shadow:
    0 8px 0 #a5b597,
    1px 12px 8px #082f3277;
}
.art-label {
  position: absolute;
  background: var(--white);
  border: 1px solid #e5e5d8;
  border-radius: 12px;
  padding: 14px 19px;
  box-shadow: 0 9px 25px #1e403513;
  font-size: 12px;
  line-height: 1.5;
}
.art-label strong {
  display: block;
  font-size: 14px;
  color: var(--green);
}
.art-label.first {
  top: 19px;
  right: 0;
  transform: rotate(4deg);
}
.art-label.last {
  bottom: 0;
  left: 9px;
  transform: rotate(-4deg);
}
.star {
  position: absolute;
  right: 24px;
  bottom: 40px;
  color: #be9b58;
  font-size: 40px;
}
.benefit-bar {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 23px 0;
  font-size: 13px;
}
.benefit-bar > div {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.benefit-bar > div:last-child {
  border: 0;
}
.benefit-bar b {
  display: block;
  font-size: 14px;
}
.benefit-bar span {
  color: var(--muted);
}
.symbol {
  font: 27px Georgia;
  color: #8c9b74;
}
.section {
  max-width: 1280px;
  padding: 76px 40px;
  margin: auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head h2 {
  margin-bottom: 0;
}
.section-head > a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
}
.card p {
  font-size: 14px;
}
.card h3 {
  margin: 19px 0 12px;
}
.card-icon {
  background: #ecf0e4;
  border-radius: 11px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font: 27px Georgia;
  color: var(--green);
}
.card-link {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
}
.tag {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  background: #ebefdf;
  color: #526b42;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tag.soon {
  background: #f2ede2;
  color: #8a7350;
}
.card.featured {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.card.featured p {
  color: #c4d4c7;
}
.card.featured .card-icon {
  background: #ffffff12;
  color: #dfb66b;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.about {
  background: #eef0e5;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.about h2 {
  max-width: 450px;
}
.steps {
  display: grid;
  gap: 24px;
}
.step {
  display: flex;
  gap: 22px;
}
.step-number {
  font: 24px Georgia;
  color: #9a814e;
  border: 1px solid #cbd3bc;
  border-radius: 50%;
  min-width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
}
.step h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.step p {
  font-size: 14px;
  margin: 0;
}
.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: var(--green);
  border-radius: 16px;
  color: white;
  padding: 42px 48px;
}
.download h2 {
  font-size: 37px;
  margin-bottom: 14px;
}
.download p {
  color: #bfcebd;
  margin-bottom: 0;
  font-size: 14px;
}
.stores {
  display: flex;
  gap: 12px;
}
.store {
  background: #ffffff09;
  border: 1px solid #728b73;
  color: #e4e8da;
  border-radius: 8px;
  padding: 13px 20px;
  text-align: left;
  min-width: 150px;
}
.store small {
  display: block;
  font-size: 10px;
  color: #baccb9;
}
.store b {
  font-size: 18px;
}
.store span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  margin-top: 7px;
}
footer {
  max-width: 1280px;
  margin: auto;
  padding: 5px 40px 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 28px 0 35px;
}
.footer-top p {
  margin: 0;
  font-size: 13px;
}
.footer-top > a:last-child {
  margin-left: auto;
  font-size: 14px;
}
.footer-bottom {
  padding: 23px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 11px;
  color: var(--muted);
}
.footer-bottom > div {
  display: flex;
  gap: 20px;
}
.page {
  max-width: 1200px;
  min-height: 65vh;
  margin: auto;
  padding: 56px 40px 70px;
}
.page-intro {
  max-width: 730px;
  margin-bottom: 35px;
}
.page-intro h1 {
  font-size: clamp(36px, 4vw, 55px);
  margin-bottom: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}
.legal {
  max-width: 850px;
}
.legal h2 {
  font: 600 22px Arial;
  letter-spacing: 0;
  margin-top: 35px;
}
.legal li {
  margin: 10px 0;
  color: var(--muted);
}
.legal a,
.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notice {
  padding: 16px 20px;
  border: 1px solid #e1d4b6;
  background: #f6efdc;
  border-radius: 8px;
  color: #705b32;
  font-size: 14px;
  margin-bottom: 25px;
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.form-panel {
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 32px;
}
.form-panel h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
input,
textarea {
  display: block;
  width: 100%;
  background: white;
  border: 1px solid #bdc7b6;
  border-radius: 6px;
  padding: 12px;
  margin-top: 7px;
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: start;
  font-weight: 400;
}
.check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.form-panel .button {
  width: 100%;
}
.form-note {
  font-size: 13px;
  margin-top: 20px;
  margin-bottom: 0;
}
.form-message {
  color: #a4372c;
  font-size: 14px;
  min-height: 0;
}
.form-message:empty {
  display: none;
}
.search {
  max-width: 420px;
  margin-bottom: 26px;
}
.empty {
  padding: 40px;
  background: #eef0e5;
  border-radius: 12px;
  text-align: center;
  grid-column: 1/-1;
}
.empty h3 {
  margin-bottom: 12px;
}
.empty p {
  max-width: 500px;
  margin: 0 auto 22px;
}
.player {
  display: flex;
  align-items: start;
  gap: 17px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8ebdd;
  display: grid;
  place-items: center;
  font: 24px Georgia;
  flex-shrink: 0;
}
.player h3 {
  margin: 0 0 5px;
}
.player p {
  margin: 0;
  overflow-wrap: anywhere;
}
.club-description {
  overflow-wrap: anywhere;
}
.club-meta {
  font-size: 12px;
  color: var(--muted);
}
.club-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.club-create {
  margin-top: 35px;
  max-width: 600px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.profile-grid .form-panel {
  max-width: none;
}
.game-shell {
  background: var(--green);
  padding: 16px;
  border-radius: 12px;
}
.game-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 13px;
}
.game-bar a {
  color: var(--gold);
}
.game-shell iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 760px;
  max-height: 85dvh;
  background: #f4ebd6;
  border-radius: 6px;
}
.game-help {
  font-size: 13px;
  margin-top: 17px;
}
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(850px, calc(100% - 30px));
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid #cbd2c1;
  border-radius: 12px;
  box-shadow: 0 10px 50px #153d3133;
  font-size: 12px;
}
.cookie-banner strong {
  font-size: 14px;
}
.cookie-banner p {
  margin: 4px 0 0;
  line-height: 1.5;
}
.cookie-banner > a {
  white-space: nowrap;
  text-decoration: underline;
}
.cookie-banner .button {
  white-space: nowrap;
}
.toast {
  position: fixed;
  top: 95px;
  right: 20px;
  background: var(--green);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  max-width: calc(100vw - 40px);
  z-index: 30;
  box-shadow: 0 5px 25px #0002;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  z-index: 50;
  background: white;
  padding: 10px;
}
.loading {
  padding: 80px;
  text-align: center;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 70px;
  }
}
@media (max-width: 1050px) {
  .nav-wrap {
    gap: 20px;
    padding: 20px 25px;
  }
  nav {
    gap: 18px;
  }
  .nav-account {
    gap: 12px;
  }
  .hero {
    padding: 55px 30px;
    gap: 15px;
  }
  .table-art {
    height: 390px;
  }
  .mahjong-table {
    height: 280px;
  }
  .tile {
    height: 49px;
  }
  .art-label.first {
    right: -5px;
  }
  .benefit-bar {
    margin: 0 30px;
  }
  .about-inner {
    gap: 40px;
  }
  .download {
    padding: 35px;
    flex-direction: column;
    align-items: start;
  }
  .footer-bottom {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 17px 20px;
    gap: 16px;
  }
  .brand {
    font-size: 14px;
  }
  .brand-tile {
    width: 31px;
    height: 39px;
  }
  .menu-button {
    display: block;
    margin-left: auto;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 5px;
    width: 42px;
    height: 40px;
    color: var(--green);
  }
  nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    margin: 0;
    padding: 15px 0;
    gap: 20px;
    flex-wrap: wrap;
  }
  nav.open {
    display: flex;
  }
  .nav-account {
    gap: 12px;
  }
  .nav-account > a:first-child {
    font-size: 12px;
  }
  .nav-account .button {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 22px 35px;
    gap: 15px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 20px;
  }
  .hero-note {
    font-size: 11px !important;
    gap: 10px;
  }
  .table-art {
    height: 355px;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
  }
  .mahjong-table {
    width: 320px;
    height: 260px;
    border-width: 10px;
    border-radius: 45px;
  }
  .tile-grid {
    gap: 5px;
  }
  .tile {
    height: 46px;
    font-size: 27px;
  }
  .art-label {
    padding: 10px 13px;
    font-size: 10px;
  }
  .art-label strong {
    font-size: 12px;
  }
  .art-label.first {
    top: 10px;
    right: 3px;
  }
  .art-label.last {
    bottom: 0;
    left: 0;
  }
  .benefit-bar {
    margin: 0 22px;
    padding: 20px 0;
    gap: 14px;
    grid-template-columns: 1fr;
  }
  .benefit-bar > div {
    justify-content: flex-start;
    border: 0;
    padding-left: 9px;
  }
  .benefit-bar b {
    display: inline;
    margin-right: 8px;
  }
  .benefit-bar span {
    font-size: 11px;
  }
  .symbol {
    width: 28px;
  }
  .section {
    padding: 46px 22px;
  }
  .section-head {
    align-items: start;
    gap: 15px;
  }
  .section-head > a {
    font-size: 12px;
    white-space: nowrap;
    padding-top: 8px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 26px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about h2 {
    max-width: 350px;
  }
  .download {
    padding: 30px 23px;
  }
  .download h2 {
    font-size: 32px;
  }
  .stores {
    width: 100%;
    flex-wrap: wrap;
  }
  .store {
    flex: 1;
    min-width: 125px;
    padding: 11px 14px;
  }
  .footer-top {
    gap: 23px;
    flex-wrap: wrap;
  }
  .footer-top > a:last-child {
    margin-left: 0;
  }
  .footer-top p {
    font-size: 12px;
  }
  .footer-bottom {
    gap: 16px;
  }
  .footer-bottom > div {
    flex-wrap: wrap;
    gap: 13px;
  }
  footer {
    padding: 0 22px 20px;
  }
  .page {
    padding: 34px 22px 45px;
  }
  .form-layout,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-panel {
    padding: 24px;
    max-width: none;
  }
  .cookie-banner {
    padding: 15px;
    gap: 12px;
    flex-wrap: wrap;
    bottom: 10px;
  }
  .cookie-banner > div {
    flex-basis: 100%;
  }
  .cookie-banner .button {
    margin-left: auto;
  }
  .game-shell {
    padding: 8px;
    margin: 0 -14px;
  }
  .game-shell iframe {
    height: 76dvh;
    max-height: none;
    min-height: 460px;
  }
  .game-bar {
    padding: 5px;
    font-size: 11px;
  }
  .actions .button {
    padding: 12px 18px;
    gap: 12px;
  }
}
.hero > * {
  min-width: 0;
}
.hero-note {
  flex-wrap: wrap;
}
.card {
  min-width: 0;
}
.card h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 380px) {
  .hero h1 {
    font-size: 41px;
  }
  .table-art {
    height: 320px;
  }
  .mahjong-table {
    width: 265px;
    height: 235px;
  }
  .tile {
    height: 40px;
    font-size: 24px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .benefit-bar b {
    display: block;
  }
  .nav-account {
    margin-left: auto;
  }
  .hero-note {
    gap: 8px;
  }
  .page h1 {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a,
  button {
    transition:
      background 0.15s,
      color 0.15s;
  }
  .table-art {
    animation: appear 0.7s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Club directory: shared spacing and aligned cards at every viewport. */
.clubs-directory .page-intro {
  margin-bottom: 32px;
}
.clubs-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line, #dedfd3);
  border-radius: 18px;
  background: #eeefe6;
}
.clubs-ranking-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
}
.clubs-ranking-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.clubs-directory .clubs-search {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.clubs-search label {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.clubs-directory .clubs-search .button {
  flex: 0 0 auto;
  width: auto;
  min-height: 46px;
}
.clubs-directory .clubs-grid {
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.clubs-directory .club-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
}
.club-card-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 64px;
}
.club-card-avatar {
  flex: 0 0 64px;
}
.club-card-identity {
  display: flex;
  flex: 0 0 64px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.club-card-identity .club-card-avatar {
  flex: none;
}
.club-card-flag {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 18px;
  line-height: 1;
}
.club-card-flag img {
  width: 24px;
  height: 18px;
  object-fit: contain;
}
.club-card-avatar img,
.club-card-avatar .card-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 14px;
  object-fit: cover;
  font-size: 28px;
}
.clubs-directory .club-card h2 {
  margin: 0;
  min-width: 0;
  font-size: 23px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.clubs-directory .club-card-score {
  margin: 20px 0 12px;
  color: var(--ink);
  font-size: 14px;
}
.clubs-directory .club-description {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.club-description:empty {
  display: none;
}
.club-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line, #dedfd3);
}
.clubs-directory .club-card-members {
  margin: 0 0 14px;
  font-size: 13px;
}
.club-card-footer > .button {
  width: 100%;
}
.clubs-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}
.clubs-directory-actions > p {
  margin: 0;
}
.clubs-directory-actions .club-create {
  flex-basis: 100%;
}
@media (max-width: 1000px) {
  .clubs-toolbar {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .clubs-directory .clubs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .clubs-toolbar {
    padding: 20px;
  }
  .clubs-directory .clubs-grid {
    grid-template-columns: 1fr;
  }
  .clubs-directory .club-card {
    padding: 20px;
  }
  .clubs-directory .clubs-search {
    flex-wrap: wrap;
  }
  .clubs-search label {
    flex-basis: 100%;
  }
  .clubs-directory .clubs-search .button {
    width: 100%;
  }
}

/* Club details: overview, members and private conversation. */
.club-detail .club-back {
  display: inline-block;
  margin-bottom: 24px;
}
.club-detail .form-panel {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}
.club-detail .club-summary {
  margin-bottom: 28px;
  padding: 32px;
}
.club-summary-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.club-summary-heading > div:last-child {
  min-width: 0;
}
.club-summary-avatar {
  flex: 0 0 80px;
}
.club-summary-avatar img,
.club-summary-avatar .card-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0;
  border-radius: 20px;
  object-fit: cover;
  font-size: 36px;
}
.club-summary h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  overflow-wrap: anywhere;
}
.club-summary .eyebrow {
  margin: 0;
}
.club-detail .club-description {
  white-space: pre-wrap;
  line-height: 1.7;
}
.club-detail .club-summary > .button {
  width: auto;
  margin-top: 8px;
}
.club-detail .profile-grid {
  align-items: start;
  margin-bottom: 28px;
}
.club-detail .club-content-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}
.club-detail .form-panel h2 {
  font-size: 25px;
  margin: 0 0 22px;
}
.club-detail .club-meta {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.club-member {
  padding: 16px 0;
  border-top: 1px solid var(--line, #dedfd3);
}
.club-member strong,
.club-message strong {
  color: var(--ink);
}
.club-member p {
  margin: 6px 0 0;
  font-size: 13px;
}
.club-detail .actions {
  gap: 8px;
  margin-top: 12px;
}
.club-detail .actions .button,
.club-message .button {
  width: auto;
  font-size: 12px;
  padding: 9px 12px;
}
.club-chat-history {
  max-height: 480px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  margin: 20px 0;
  padding: 0 8px 0 0;
}
.club-message {
  padding: 16px;
  margin-bottom: 12px;
  background: #f1f3eb;
  border-radius: 12px;
}
.club-message-body {
  white-space: pre-wrap;
  line-height: 1.65;
  margin: 8px 0 0;
  color: var(--ink);
}
.club-chat-panel [data-club-latest] {
  width: auto;
}
.club-detail input[type='file'] {
  margin-bottom: 28px;
}
@media (max-width: 760px) {
  .club-detail .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .club-detail .form-panel,
  .club-detail .club-summary {
    padding: 20px;
  }
  .club-summary-heading {
    gap: 16px;
    align-items: flex-start;
  }
  .club-summary-avatar {
    flex-basis: 60px;
  }
  .club-summary-avatar img,
  .club-summary-avatar .card-icon {
    width: 60px;
    height: 60px;
  }
  .club-summary .eyebrow {
    font-size: 10px;
  }
}

.chat-day-heading {
  text-align: center;
  margin: 16px 0;
}
.chat-day-heading span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  background: #e2e9d3;
  color: #193c30;
  font-size: 12px;
  font-weight: 600;
}
.chat-message-time {
  display: block;
  text-align: right;
  direction: ltr;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.7;
}

/* Keep club country controls readable on phones and desktop. */
.club-detail select,
.club-create select,
.clubs-search select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #c9d0c4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
[data-club-country-preview] {
  display: block;
  margin-top: 8px;
  font-weight: normal;
}

.club-card-heading {
  align-items: flex-start;
}
.clubs-directory .club-card h2 {
  flex: 1;
}
.club-card-country {
  flex: 0 1 40%;
  min-width: 0;
  margin-left: auto;
  padding-top: 3px;
  text-align: right;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.club-card-country img {
  margin-right: 3px;
}

.club-detail-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.club-detail-title h1 {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.club-summary-heading > div:last-child {
  flex: 1;
}
.club-detail-title .club-card-country {
  padding-top: 11px;
}
