/* Phase 7 home: game controls first, discovery immediately after. */
body {
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 6% 12%, #245740 0, transparent 38rem),
    radial-gradient(ellipse at 94% 0, #b4863218 0, transparent 32rem),
    #091812;
}
.top-nav { border-bottom-color: #d6d9be24; background: #0a1b14e8; }
.wordmark { gap: 9px; color: #f2ce7f; letter-spacing: .08em; }
.wordmark small { color: #cdb372; letter-spacing: .11em; }
#shell { width: min(1200px, calc(100% - 40px)); padding: 26px 0 100px; }

.home-landing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  align-items: center;
  gap: clamp(38px, 6vw, 86px);
  min-height: 520px;
  padding: 38px 0 48px;
  border-bottom: 1px solid #e8cf9224;
  isolation: isolate;
}
.home-landing::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 24%;
  width: 390px;
  height: 390px;
  border: 1px solid #e9bd671f;
  border-radius: 50%;
  background: radial-gradient(circle, #d7a7450d, transparent 68%);
  content: "";
  transform: translate(-50%, -50%) rotate(-12deg);
}
.home-landing-copy { min-width: 0; }
.home-kicker { display: flex; align-items: center; gap: 11px; color: #e9c77d; font-size: 10px; letter-spacing: .2em; }
.home-kicker i { width: 28px; height: 1px; background: #e9bd67; }
.home-landing h1 { margin: 18px 0; color: #fff4da; font: 400 clamp(58px, 7vw, 86px)/.91 Georgia, serif; letter-spacing: -.055em; }
.home-landing h1 em { color: #f0c56d; font-style: italic; }
.home-landing-copy > p { max-width: 565px; margin: 0; color: #c1cec2; font-size: 16px; line-height: 1.75; }
.home-landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.home-landing .hero-cta, .home-secondary-cta { min-height: 50px; gap: 18px; padding: 12px 19px; border-radius: 10px; font-size: 13px; }
.home-secondary-cta { border-color: #d7dfd234; color: #eff2e2; background: #ffffff08; }
.home-assurances { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 23px 0 0; padding: 0; color: #c6cebc; font-size: 9px; font-weight: 800; letter-spacing: .07em; list-style: none; }
.home-assurances li { display: flex; align-items: center; gap: 6px; }
.home-assurances span { color: #e9bd67; font-size: 11px; }

.home-start-card {
  position: relative;
  align-self: center;
  margin: 0;
  padding: 25px;
  overflow: hidden;
  border: 1px solid #eace9042;
  border-radius: 22px;
  background: linear-gradient(145deg, #214633f5, #0d2a1ff7);
  box-shadow: 0 28px 70px #0006, inset 0 1px #fff8dc12;
}
.home-start-card::before { position: absolute; top: 0; right: 25px; left: 25px; height: 2px; border-radius: 0 0 10px 10px; background: linear-gradient(90deg, transparent, #efc76f, transparent); content: ""; }
.home-start-card .player-card-head { align-items: flex-start; padding-bottom: 17px; border-bottom: 1px solid #d9dfc81f; }
.home-start-card .player-avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 22px; }
.home-start-card .player-card-copy { min-width: 0; }
.home-start-card .player-card-copy h2 { margin: 5px 0 4px; color: #fff0cf; font: 500 28px/1.1 Georgia, serif; letter-spacing: -.025em; }
.home-start-card .player-card-copy p { font-size: 11px; line-height: 1.45; }
.home-start-card .eyebrow { font-size: 8px; letter-spacing: .16em; }
.home-start-card .match-settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }
.home-start-card .switch-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.home-start-card .switch-group-label { grid-column: 1 / -1; margin-bottom: 6px; font-size: 8px; }
.home-start-card .switch-option { min-width: 0; min-height: 36px; padding: 7px 8px; border-color: #d2ddcf2e; background: #071d15; font-size: 11px; }
.home-start-card .switch-option[aria-pressed="true"] { z-index: 1; border-color: #f4d98c; color: #251b09; background: linear-gradient(155deg, #ffda7a, #eab647); box-shadow: inset 0 1px #fff7d166; }
.home-start-card .player-actions { margin-top: 16px; }
.home-start-card .player-action-group { padding: 0; border: 0; background: none; }
.home-start-card .player-action-group h3 { margin: 0 0 3px; color: #f6ead1; font-size: 13px; }
.home-start-card .player-action-group > p { margin: 0 0 11px; font-size: 10px; }
.home-start-card .player-action-group > .switch-group { margin-bottom: 12px; }
.home-start-card .player-action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.home-start-card .player-action-buttons button { min-height: 47px; padding-inline: 8px; border-radius: 10px; font-size: 12px; }

.home-recovery { margin: 22px 0 0; }
.home-recovery .recovery-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 20px; padding: 17px 19px; border: 1px solid #e8bd645c; border-radius: 15px; background: linear-gradient(110deg, #294a35, #122c21); box-shadow: 0 10px 24px #0003; }
.home-recovery .recovery-card::before { display: none; }
.home-recovery .eyebrow, .home-recovery h3, .home-recovery p { grid-column: 1; margin: 0; }
.home-recovery h3 { color: #fff0cf; }
.home-recovery p { color: #bfcbbf; font-size: 12px; }
.home-recovery .button { grid-column: 2; grid-row: 1 / 5; min-width: 180px; }

.content-section { margin: 43px 0; }
.content-section > h2 { margin-bottom: 6px; color: #fff0cf; font: 500 31px/1.15 Georgia, serif; letter-spacing: -.025em; }
.home-tables > h2::before { display: block; margin-bottom: 7px; color: #e7c273; font: 800 9px/1 sans-serif; letter-spacing: .18em; content: "JUEGA AHORA"; }
.home-tables > .muted { margin: 0 0 22px; color: #b8c4b8; }
.public-table-group { margin-top: 24px; }
.public-table-group > h3 { margin: 0 0 12px; color: #dfc98f; font: 600 12px/1 sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.public-table-grid { gap: 11px; }
.public-table-card { gap: 10px; padding: 16px; border-color: #cbd7c828; border-radius: 15px; background: linear-gradient(145deg, #1b3d2d, #10291f); box-shadow: 0 9px 22px #0002; }
.public-table-card:hover { border-color: #e9bd678c; box-shadow: 0 14px 30px #0005; }
.table-card-head h3 { color: #fff0cf; font-family: inherit; font-size: 15px; }
.table-state { padding: 4px 7px; border-radius: 999px; background: #ffffff09; font-size: 8px; }
.table-card-seats { min-height: 38px; padding: 8px; border: 1px solid #ced8c51c; border-radius: 9px; background: #061a1399; font-size: 11px; }
.public-table-card > p { margin: 1px 0; font-size: 10px; }
.public-table-card > button { min-height: 38px; border-radius: 9px; font-size: 11px; }
.public-tables-more { width: fit-content; min-width: 190px; margin: 20px auto 0; }

.home-tournaments .content-section { margin: 43px 0; }
.tournament-empty-cta, .community-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 34px 0; padding: 23px 25px; border: 1px solid #d4d9bd2c; border-radius: 17px; background: linear-gradient(125deg, #214633, #10291f); }
.tournament-empty-copy h2, .community-card h2 { margin: 5px 0; color: #fff0cf; font: 500 24px/1.2 Georgia, serif; }
.tournament-empty-copy p, .community-card p { margin: 0; font-size: 12px; }
.tournament-empty-cta .button, .community-card .button { flex-shrink: 0; }

@media (max-width: 900px) {
  .home-landing { grid-template-columns: minmax(0, 1fr) minmax(350px, 410px); gap: 28px; }
  .home-landing h1 { font-size: clamp(52px, 7vw, 68px); }
}
@media (max-width: 760px) {
  #shell { width: min(100% - 28px, 620px); padding-top: 0; }
  .home-landing { grid-template-columns: 1fr; min-height: 0; gap: 28px; padding: 35px 0; overflow-x: clip; }
  .home-landing::before { top: 160px; left: 50%; width: 280px; height: 280px; }
  .home-landing h1 { margin: 14px 0; font-size: clamp(47px, 14vw, 64px); }
  .home-landing-copy > p { font-size: 14px; line-height: 1.65; }
  .home-assurances { gap: 8px 14px; }
  .home-start-card { width: 100%; padding: 20px; }
  .home-recovery .recovery-card { grid-template-columns: 1fr; }
  .home-recovery .button { grid-column: 1; grid-row: auto; margin-top: 9px; }
  .public-table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tournament-empty-cta, .community-card { align-items: stretch; flex-direction: column; }
}
@media (max-width: 390px) {
  .home-landing-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .home-landing .hero-cta, .home-secondary-cta { min-width: 0; gap: 7px; padding-inline: 10px; font-size: 11px; }
  .home-start-card { padding: 17px; }
  .home-start-card .player-card-head { gap: 10px; }
  .home-start-card .player-avatar { flex-basis: 42px; width: 42px; height: 42px; }
  .home-start-card .player-card-copy h2 { font-size: 25px; }
  .home-start-card .match-settings-row { gap: 7px; }
  .home-start-card .switch-option { padding-inline: 4px; font-size: 10px; }
  .home-start-card .player-action-buttons button { font-size: 11px; }
  .public-table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .public-table-card { gap: 8px; padding: 11px; }
  .table-card-head { align-items: flex-start; gap: 4px; }
  .table-card-head h3 { font-size: 13px; }
  .table-state { padding: 3px 5px; font-size: 6px; }
  .table-card-seats { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px; min-height: 34px; padding: 6px; font-size: 8px; }
  .public-table-card > p { font-size: 8px; }
  .public-table-card > button { min-height: 36px; padding: 7px 5px; font-size: 9px; }
}

/* Compact home: keep play controls and available tables close together. */
#shell:has(.home-landing){padding-top:12px;padding-bottom:80px}
.home-landing{min-height:0;gap:32px;padding:16px 0 20px;grid-template-columns:minmax(0,1fr) minmax(350px,440px)}
.home-landing::before{width:260px;height:260px}
.home-landing h1{margin:10px 0;font-size:clamp(44px,5vw,62px);line-height:1.02}
.home-landing-copy>p{font-size:14px;line-height:1.45}
.home-landing-actions{gap:8px;margin-top:14px}
.home-landing .hero-cta,.home-secondary-cta{min-height:44px;padding:9px 14px;gap:8px;font-size:12px}
.home-assurances{margin-top:12px;gap:8px 12px}
.home-start-card{padding:16px;border-radius:18px;box-shadow:0 16px 36px #0005,inset 0 1px #fff8dc12}
.home-start-card .player-card-head{gap:10px;padding-bottom:10px}
.home-start-card .player-avatar{flex-basis:36px;width:36px;height:36px;font-size:17px}
.home-start-card .player-card-copy h2{font-size:23px;margin:2px 0}
.home-start-card .player-card-copy p{margin:3px 0;font-size:11px;line-height:1.35}
.home-start-card .match-settings-row{margin-top:8px;gap:8px}
.home-start-card .switch-group-label{margin-bottom:4px;font-size:9px}
.home-start-card .switch-option{min-height:44px;padding:7px 5px;font-size:11px}
.home-start-card .player-actions{margin-top:10px}
.home-start-card .player-action-group h3{display:none}
.home-start-card .player-action-group>p{margin:0 0 6px;line-height:1.35}
.home-start-card .player-action-group>.switch-group{margin-bottom:8px}
.home-start-card .player-action-buttons{gap:8px}
.home-start-card .player-action-buttons button{min-height:44px;padding:8px;font-size:12px}
.home-start-card .player-action-group>.ghost{min-height:44px;width:100%;padding:8px;margin-top:4px;font-size:11px}
.home-recovery{margin:12px 0 0}
.home-recovery .recovery-card{padding:12px 14px;gap:4px 12px}
.home-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:20px 0}
.home-tables>h2,.home-tables>.muted,.home-tables>.public-tables-more{grid-column:1/-1}
.home-tables>h2{font-size:25px;margin:0}
.home-tables>h2::before{margin-bottom:4px;font-size:8px}
.home-tables>.muted{margin:0;font-size:12px;line-height:1.4}
.home-tables .public-table-group{margin:0}
.home-tables .public-table-group>h3{margin-bottom:8px;font-size:11px}
.home-tables .public-table-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.home-tables .public-table-card{padding:11px;gap:6px;border-radius:12px}
.home-tables .table-card-head{flex-wrap:wrap;gap:4px}
.home-tables .table-card-head h3{font-size:13px}
.home-tables .table-card-seats{min-height:32px;padding:6px;font-size:10px}
.home-tables .public-table-card>button{min-height:44px;padding:8px;font-size:11px}
.home-tables .public-tables-more{margin:0 auto}
.home-tournaments .content-section{margin:20px 0}
.home-tournaments .content-section>h2{font-size:25px;margin:0 0 10px}
.home-tournaments .tournament-card{padding:14px}
.home-tournaments .tournament-empty-cta,.home-landing~.community-card{gap:12px;margin:20px 0;padding:16px;border-radius:14px}
.home-tournaments .tournament-empty-copy h2,.home-landing~.community-card h2{font-size:21px;margin:3px 0}
.home-tournaments .tournament-empty-copy p,.home-landing~.community-card p{font-size:11px;line-height:1.4}
@media(max-width:760px){
  #shell:has(.home-landing){width:calc(100% - 24px);padding-top:6px}
  .home-landing{grid-template-columns:1fr;gap:10px;padding:8px 0 14px}
  .home-landing::before{display:none}
  .home-kicker{font-size:8px;letter-spacing:.13em;gap:7px}.home-kicker i{width:18px}
  .home-landing h1{font-size:30px;margin:7px 0;letter-spacing:-.04em}
  .home-landing h1 br{display:none}
  .home-landing-copy>p{font-size:12px;line-height:1.4}
  .home-landing-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:10px;gap:8px}
  .home-assurances{display:none}
  .home-start-card{padding:12px}
  .home-start-card .player-card-copy h2{font-size:22px}
  .home-start-card .player-card-head{padding-bottom:8px}
  .home-start-card .player-actions{margin-top:8px}
  .home-start-card .player-action-buttons button{font-size:11px}
  .home-tables{grid-template-columns:1fr;gap:10px;margin:16px 0}
  .home-tables .public-table-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .home-tables>h2{font-size:23px}
  .home-tables>.muted{font-size:11px}
  .home-tables .table-state{font-size:8px;padding:3px 5px}
  .home-tables .table-card-seats{font-size:9px}
  .home-tournaments .tournament-empty-cta,.home-landing~.community-card{gap:8px;margin:16px 0;padding:12px}
  .home-tournaments .tournament-empty-copy h2,.home-landing~.community-card h2{font-size:19px}
  .home-recovery .recovery-card{grid-template-columns:minmax(0,1fr) auto;gap:3px 8px}
  .home-recovery .button{grid-column:2;grid-row:1/5;min-width:0;max-width:130px;margin:0;padding:8px;font-size:11px}
}
