/* A chess club, with the board at the centre of the experience. */
.topbar { background: var(--bg); backdrop-filter: none; border-bottom: 0; padding: 0 30px; }
.desktop-context { font-size: 14px; font-weight: 500; color: var(--text-3); }
.sidebar { border: 0; padding: 25px 14px; gap: 7px; }
.brand { gap: 8px; padding: 0 0 28px; font-size: 17px; }
.brand small { font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; margin-top: 3px; }
.nav-link { padding: 12px; font-size: 15px; border: 0; border-radius: 6px; }
.nav-link.active { background: #3c4730; color: #d9eac1; box-shadow: inset 3px 0 var(--green); }
.nav-label { font-family: var(--sans); font-size: 12px; letter-spacing: .06em; }
.btn { border-radius: 7px; }
.btn:hover { background: #49473f; border-color: #666252; }
.btn-primary { background: var(--green); border-color: transparent; color: #1d2713; box-shadow: 0 3px 0 #628333; font-weight: 750; }
.btn-primary:hover { background: #a4cb66; border-color: transparent; }
.btn-primary:active { box-shadow: 0 1px 0 #628333; }
.content { max-width: 1320px; padding: 24px 32px 55px; }
.content.wide, .arena-content { max-width: 1320px; }
.arena-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 26px; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .1em; color: var(--text-3); }
.arena-heading h1 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.045em; margin-top: 5px; }
.text-link { display: inline-flex; gap: 5px; align-items: center; color: var(--text-2); font-size: 14px; }
.text-link:hover { color: var(--green); }
.arena-layout, .play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; align-items: start; }
.board-column { gap: 10px; }
.board-wrap { max-width: 100%; }
.board { border: 0; border-radius: 5px; box-shadow: 0 6px 18px #0002; }
.sq { min-width: 0; min-height: 0; }
.player-bar { background: transparent; border: 0; padding: 0; min-height: 48px; border-radius: 0; }
.player-bar.turn { background: transparent; box-shadow: none; }
.player-bar.turn .who::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-radius: 50%; background: var(--green); }
.player-bar .who { font-size: 16px; font-weight: 700; }
.player-bar .sub { font-family: var(--sans); font-size: 13px; }
.free-label { color: #bed993; font-size: 12px; font-weight: 650; white-space: nowrap; }
.casual-label { color: var(--text-3); font-size: 13px; }
.board-caption { display: flex; gap: 7px; align-items: center; justify-content: center; font-size: 13px; color: var(--text-3); margin-top: 3px; }
.board-caption .ic { width: 15px; height: 15px; }
.opponent-picker { background: var(--panel); padding: 23px; border-radius: 10px; }
.picker-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.picker-heading h2 { font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.picker-intro { font-size: 14px; color: var(--text-3); margin: 5px 0 19px; }
.opponent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.opponent-choice { display: flex; flex-direction: column; gap: 7px; align-items: center; background: none; border: none; padding: 0 2px; color: var(--text-2); cursor: pointer; min-width: 0; font-size: 12px; font-weight: 600; }
.opponent-choice .avatar { width: 74px; height: 74px; border-radius: 12px; border: 3px solid transparent; outline: 1px solid #ffffff0a; transition: transform .15s, outline-color .15s; }
.opponent-choice:hover .avatar { transform: translateY(-3px); outline-color: #9fb878; }
.opponent-choice.selected { color: #dfefc7; }
.opponent-choice.selected .avatar { border-color: var(--green); outline: 2px solid var(--green); }
.selected-opponent { display: flex; gap: 13px; align-items: center; margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); }
.avatar.avatar-portrait { width: 78px; height: 78px; border: 0; border-radius: 10px; }
.selected-opponent h3 { font-size: 19px; font-weight: 750; margin-bottom: 6px; }
.selected-opponent p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0; }
.opponent-rule { margin-top: 20px; border-left: 3px solid var(--green); padding-left: 13px; }
.opponent-rule .eyebrow { color: #bad68e; font-size: 11px; }
.opponent-rule p { font-size: 14px; line-height: 1.55; margin: 4px 0; }
.opponent-rule .text-link { font-size: 12px; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 14px; font-size: 14px; color: var(--text-2); }
.side-options { display: flex; gap: 6px; }
.side-options button { width: 43px; height: 39px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.side-options button.chosen { border-color: var(--green); background: #465038; }
.side-options svg { width: 31px; height: 31px; }
.side-options .ic { width: 18px; height: 18px; }
.start-game { width: 100%; padding: 15px; font-size: 19px; }
.start-game .ic { width: 21px; height: 21px; fill: currentColor; }
.guest-note { text-align: center; color: var(--text-3); font-size: 12px; margin: 11px 0 15px; }
.all-opponents { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.all-opponents:hover { color: var(--green); }
.daily-ribbon { display: flex; align-items: center; gap: 19px; margin: 30px 0 34px; padding: 20px 24px; border-radius: 8px; background: #33372b; border: 1px solid #49503b; }
.daily-ribbon:hover { background: #3b422f; }
.daily-icon { color: var(--green); display: grid; place-items: center; }
.daily-icon .ic { width: 34px; height: 34px; }
.daily-ribbon .eyebrow { color: #bed993; font-size: 11px; }
.daily-ribbon h3 { font-size: 18px; margin: 3px 0; }
.daily-ribbon p { font-size: 13px; color: var(--text-2); margin: 0; }
.ribbon-action { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.collection-heading h2 { font-size: 23px; font-weight: 750; }
.collection-heading p { font-size: 14px; color: var(--text-3); margin: 5px 0 0; }
.bot-grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.bot-card { padding: 21px; border: 1px solid transparent; border-radius: 9px; gap: 16px; }
.bot-card .head { align-items: center; gap: 13px; }
.bot-card .head .avatar { width: 66px; height: 66px; border: 0; }
.bot-card .name { font-size: 18px; }
.bot-card .tagline { font-size: 13px; margin-top: 4px; }
.bot-card .rule { background: none; border: 0; padding: 0; font-size: 14px; min-height: 65px; }
.bot-card .foot { padding-top: 13px; border-top: 1px solid var(--line-soft); gap: 6px; }
.bot-card.locked { opacity: 1; }
.card-action { display: flex; align-items: center; gap: 3px; font-size: 13px; color: var(--text-2); }
.chip { font-size: 11px; letter-spacing: 0; padding: 3px 7px; border-radius: 4px; }
.home-collection { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-collection .bot-card .head { flex-wrap: wrap; }
.section-title { font-family: var(--sans); font-size: 13px; }
.rule-box .rb-head .avatar { width: 55px; height: 55px; }
.rule-box .rb-body { padding: 18px; }
.rule-text { font-size: 15px; }
.live-indicator { font-family: var(--sans); font-size: 13px; text-transform: none; letter-spacing: 0; }
.cs-note { font-size: 12px; }
.footer { border-top-color: var(--line-soft); font-size: 13px; }
.avatar .bot-portrait { display: block; width: 100%; height: 100%; background-image: url('/img/bot-portraits.png'); background-size: 300% 200%; background-position: var(--portrait-x) var(--portrait-y); }
.bot-collection .collection-section { margin-top: 30px; }
.bot-collection .collection-heading { margin-bottom: 20px; }
.bot-collection .eyebrow { display: block; margin-bottom: 6px; }
.starters .bot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.starters .bot-card { border: 1px solid #566343; background: #32362b; padding: 24px; }
.starters .bot-card:hover { border-color: var(--green); background: #3a412f; }
.starters .bot-card .head { flex-direction: column; align-items: flex-start; gap: 17px; }
.starters .bot-card .head .avatar { width: 100px; height: 100px; border-radius: 14px; }
.starters .bot-card .name { font-size: 23px; }
.starters .bot-card .rule { min-height: 70px; }
.starters .card-action { color: #cce7a6; font-weight: 700; }
.premium-collection { padding-top: 26px; border-top: 1px solid var(--line); }
.premium-collection .bot-card .head .dim { color: #c6b178; }
.premium-collection .bot-card { background: #302f2a; }
.bot-collection + #noResults:empty { display: none; }
.filters { padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); gap: 12px; }
.filters #botSearch { margin-left: auto; }
@media (max-width: 720px) { .starters .bot-grid { grid-template-columns: 1fr; } .starters .bot-card .head { flex-direction: row; align-items: center; } .starters .bot-card .head .avatar { width: 80px; height: 80px; } .filters #botSearch { max-width: 100% !important; margin-left: 0; } .starters .bot-card .rule { min-height: 0; } }
@media (min-width: 1500px) { .arena-layout, .play-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; } .opponent-picker { padding: 26px; } .opponent-choice .avatar { width: 82px; height: 82px; } }
@media (max-width: 1150px) { .arena-layout, .play-layout { grid-template-columns: minmax(0, 1fr) 325px; gap: 20px; } .content { padding: 18px 22px 45px; } .opponent-picker { padding: 18px; } .opponent-choice .avatar { width: 66px; height: 66px; } .home-collection { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 940px) { .desktop-context { display: none; } .mobile-nav { background: #201f1c; } .mobile-nav a { font-size: 12px; } .arena-heading h1 { font-size: 29px; } .content { padding-bottom: 90px; } }
@media (max-width: 720px) {
  .arena-layout, .play-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .arena-heading { align-items: start; margin-bottom: 18px; }
  .arena-heading > .text-link { display: none; }
  .arena-heading h1 { font-size: 27px; }
  .content { padding: 15px 14px 90px; }
  .board-wrap { max-width: 100%; }
  .opponent-picker { padding: 22px; }
  .opponent-choice .avatar { width: 80px; height: 80px; }
  .opponent-grid { gap: 18px 8px; }
  .lobby-player .free-label { display: none; }
  .daily-ribbon { padding: 18px; gap: 13px; flex-wrap: wrap; }
  .ribbon-action { margin-left: 47px; }
  .daily-ribbon .grow { min-width: 190px; }
  .collection-heading h2 { font-size: 21px; }
  .collection-heading > .text-link { display: none; }
  .home-collection, .bot-grid { grid-template-columns: minmax(0, 1fr); }
  .home-collection .bot-card .head { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .opponent-choice:hover .avatar { transform: none; } }
