/* ==========================================================================
   Campus Log landing
   BaseballLog / Field Club 디자인 — 필드 그린 · 코럴 팔레트, 스코어보드 타이포
   ========================================================================== */

/* 헤더/메뉴바 색(--cl-primary, --cl-bg-elevated 등)은 tokens.css 로 전역화됨 —
   여기는 랜딩 페이지 콘텐츠(카드·배지 등)에서만 쓰는 나머지 팔레트만 남긴다. */
:root {
    --cl-primary-dark: #064634;
    --cl-secondary: #093a2a;
    --cl-teal: #0e9f9a;
    --cl-mint: #8cf0bd;
    --cl-success: #087853;
    --cl-warning: #c87512;
    --cl-danger: #d14343;

    --cl-bg: #f3f7f4;
    --cl-surface: #FFFFFF;
    --cl-surface-2: #f8fbf9;
    --cl-line-strong: #cfe1d6;
    --cl-inverse: #FFFFFF;

    --cl-radius-sm: 6px;
    --cl-radius-lg: 12px;
    --cl-shadow: 0 14px 28px rgba(9, 58, 42, .08);
    --cl-number: var(--cl-font);
}

[data-theme="dark"] {
    --cl-bg: #06120d;
    --cl-surface: #0c2319;
    --cl-surface-2: #10281e;
    --cl-line-strong: #2f5a44;
    --cl-shadow: none;
}

html,
body {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font-family: var(--cl-font);
    letter-spacing: 0;
}

body {
    background: var(--cl-bg);
    color: var(--cl-text);
}

a {
    color: inherit;
}

.page-landing {
    min-height: 100vh;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(8, 120, 83, .06), transparent 420px),
        var(--cl-bg);
}

[data-theme="dark"] .page-landing {
    background:
        linear-gradient(180deg, rgba(140, 240, 189, .07), transparent 420px),
        var(--cl-bg);
}

.page-landing ~ footer {
    margin-top: 0;
    border-top: 1px solid var(--cl-line);
    background: var(--cl-bg-elevated);
    color: var(--cl-text-muted);
}

/* 헤더/메뉴바 스타일은 static/css/pc/base/header.css 로 전역화됨 (모든 PC 페이지 공통) */

/* Layout */
.landing-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 34px 72px;
}

.landing-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.landing-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

/* ── Welcome row / hero ─────────────────────────────────────── */
.welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.date-label,
.eyebrow,
.section-kicker {
    margin: 0;
    color: var(--cl-primary);
    font: 800 11px var(--cl-number);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.welcome-row h1 {
    margin: 9px 0 0;
    color: var(--cl-text);
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.18;
    letter-spacing: -.03em;
}

.welcome-row h1 span {
    color: var(--cl-primary);
}

.welcome-copy {
    max-width: 480px;
    margin: 10px 0 0;
    color: var(--cl-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.season-brief {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--cl-primary);
    font: 800 10px var(--cl-number);
    letter-spacing: .1em;
}

.season-brief i {
    display: block;
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    background: var(--cl-accent);
}

.welcome-visual {
    flex: 0 0 auto;
}

.stadium-card {
    position: relative;
    overflow: hidden;
    width: 380px;
    height: 150px;
    border: 1px solid var(--cl-line-strong);
    border-radius: var(--cl-radius-lg);
    background: var(--cl-secondary);
    box-shadow: 0 17px 34px rgba(9, 58, 42, .18);
}

.stadium-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .88;
}

.stadium-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 20, 15, .86), rgba(6, 20, 15, .1) 72%);
}

.stadium-caption {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #fff;
}

.stadium-caption span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #bde8d5;
    font: 800 9px var(--cl-number);
    letter-spacing: .12em;
}

.stadium-caption i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cl-mint);
    box-shadow: 0 0 0 4px rgba(140, 240, 189, .16);
    animation: cl-pulse 1.8s ease-in-out infinite;
}

.stadium-caption strong {
    font-size: 13px;
}

.stadium-score {
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 12px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(6, 20, 15, .46);
    color: #e5f3ed;
    font: 800 9px var(--cl-number);
    letter-spacing: .06em;
}

@keyframes cl-pulse {
    50% { opacity: .42; transform: scale(.82); }
}

/* ── Team switcher ──────────────────────────────────────────── */
.team-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 18px 20px;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-lg);
    background: var(--cl-surface);
    box-shadow: var(--cl-shadow);
}

.switcher-heading {
    display: flex;
    align-items: center;
    gap: 19px;
    min-width: 0;
}

.switcher-heading > div {
    min-width: 108px;
}

.switcher-heading strong {
    display: block;
    margin-top: 4px;
    color: var(--cl-text);
    font-size: 16px;
}

.switcher-heading p {
    max-width: 320px;
    margin: 0;
    padding-left: 19px;
    border-left: 1px solid var(--cl-line);
    color: var(--cl-text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.switcher-heading p b {
    color: var(--cl-text-soft);
}

.team-filter-group {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.team-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--cl-line);
    border-radius: 999px;
    background: var(--cl-bg-elevated);
    color: var(--cl-text-soft);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.team-filter:hover {
    border-color: var(--cl-line-strong);
    background: var(--cl-bg-muted);
}

.team-filter.active {
    border-color: var(--cl-primary);
    background: var(--cl-bg-muted);
    color: var(--cl-primary);
}

.team-filter b {
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(8, 120, 83, .14);
    font: 800 10px var(--cl-number);
}

.team-dot {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--cl-bg-muted);
    color: var(--cl-primary);
    font: 800 10px var(--cl-number);
    overflow: hidden;
}

.team-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-dot.all {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--cl-primary);
    color: transparent;
}

.team-dot.all::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-left: 1px solid var(--cl-accent);
    border-right: 1px solid var(--cl-accent);
    border-radius: 50%;
    transform: rotate(42deg);
}

/* ── Shared section header ──────────────────────────────────── */
.section-header,
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.section-title,
.section-heading h2 {
    margin: 6px 0 0;
    color: var(--cl-text);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.section-more,
.link-button,
.soft-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    background: var(--cl-bg-elevated);
    color: var(--cl-text-soft);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.link-button,
.soft-link {
    border-color: transparent;
    background: transparent;
    padding: 0;
    color: var(--cl-primary);
}

.section-more:hover {
    border-color: var(--cl-line-strong);
    color: var(--cl-primary);
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-scope-select select {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    background: var(--cl-bg-elevated);
    color: var(--cl-text-soft);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.team-section-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--cl-text-muted);
    border: 1px dashed var(--cl-line);
    border-radius: var(--cl-radius-md);
    background: var(--cl-bg-elevated);
}

.team-section-empty p { margin: 0 0 10px; font-size: 14px; }

/* ── Schedule / game timeline ───────────────────────────────── */
.game-timeline {
    display: grid;
    grid-template-columns: 1fr 1.24fr 1fr;
    gap: 14px;
}

.game-card {
    position: relative;
    min-height: 268px;
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-lg);
    background: var(--cl-surface);
    box-shadow: var(--cl-shadow);
}

.game-card.previous::before,
.game-card.upcoming::before {
    content: "";
    position: absolute;
    top: 0;
    left: 19px;
    right: 19px;
    height: 3px;
    background: linear-gradient(90deg, var(--cl-primary) 0 22%, transparent 22% 27%, var(--cl-line) 27% 100%);
}

.game-glimpse {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 74px;
    height: 52px;
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
    background: var(--cl-secondary);
}

.game-glimpse img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .88;
}

.game-glimpse::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6, 20, 15, .65), transparent);
}

.game-glimpse figcaption {
    position: absolute;
    z-index: 1;
    left: 6px;
    bottom: 5px;
    color: #e6f7ed;
    font: 800 7px var(--cl-number);
    letter-spacing: .1em;
}

.game-glimpse > span {
    position: absolute;
    z-index: 1;
    right: 5px;
    top: 5px;
    color: #fff;
    font: 800 7px var(--cl-number);
    letter-spacing: .05em;
}

.game-card.next {
    border: 0;
    overflow: hidden;
    background: var(--cl-secondary);
    box-shadow: 0 17px 32px rgba(9, 58, 42, .26);
    color: #fff;
}

.game-action-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

.game-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(6, 20, 15, .94), rgba(8, 47, 34, .74) 58%, rgba(8, 47, 34, .28));
}

.game-card.next::after {
    content: "";
    position: absolute;
    right: -33px;
    bottom: -51px;
    width: 158px;
    height: 158px;
    transform: rotate(45deg);
    border: 18px solid rgba(255, 255, 255, .10);
}

.game-card.next > *:not(.game-action-photo):not(.game-photo-overlay) {
    position: relative;
    z-index: 2;
}

.game-status {
    color: var(--cl-text-muted);
    font: 800 10px var(--cl-number);
    letter-spacing: .12em;
}

.next-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d4ede1;
    font: 800 10px var(--cl-number);
    letter-spacing: .12em;
}

.next-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cl-mint);
    box-shadow: 0 0 0 4px rgba(140, 240, 189, .16);
    animation: cl-pulse 1.8s ease-in-out infinite;
}

.game-date {
    margin: 14px 0 0;
    color: var(--cl-text-soft);
    font: 700 13px var(--cl-number);
}

.next .game-date {
    color: #d3eadf;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 34px;
    text-align: center;
}

.match-teams > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.match-type-line,
.match-subtype-line {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.match-type-line {
    color: var(--cl-primary);
    font: 800 10px var(--cl-number);
    letter-spacing: .04em;
}

.match-subtype-line {
    color: var(--cl-text-muted);
    font-size: 10px;
}

.game-card.next .match-type-line {
    color: #dff5ea;
}

.game-card.next .match-subtype-line {
    color: #c9e7da;
}

.crest {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: var(--cl-bg-muted);
    color: var(--cl-primary);
    font: 800 13px var(--cl-number);
    overflow: hidden;
}

.crest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-teams b {
    max-width: 94px;
    overflow: hidden;
    color: var(--cl-text);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.next .match-teams b {
    color: #fff;
}

.score {
    display: flex;
    gap: 5px;
    color: var(--cl-primary);
    font: 800 36px/.85 var(--cl-number);
    letter-spacing: -.04em;
}

.score em {
    font-style: normal;
}

.score i {
    color: var(--cl-text-muted);
    font-style: normal;
}

.versus {
    font: 800 20px var(--cl-number);
    color: var(--cl-primary);
}

.next .versus {
    color: #d0ebdf;
}

.versus.muted {
    color: var(--cl-text-muted);
}

.game-note {
    margin: 26px 0 0;
    color: var(--cl-text-muted);
    font-size: 12px;
}

.game-note.success {
    color: var(--cl-primary);
    font: 800 11px var(--cl-number);
    letter-spacing: .02em;
}

.game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--cl-line);
    color: var(--cl-text-muted);
    font-size: 12px;
}

.game-card.next .game-footer {
    border-top-color: rgba(255, 255, 255, .2);
    color: #d8eee3;
}

.field-button,
.team-game-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cl-primary);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.game-card.next .field-button {
    color: #fff;
}

.field-button:hover {
    color: var(--cl-accent);
}

.game-card.next .field-button:hover {
    color: #dff5ea;
}

.team-game-link {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--cl-line);
    background: var(--cl-bg-elevated);
    color: var(--cl-text);
}

.team-game-link:hover {
    border-color: var(--cl-primary);
    color: var(--cl-primary);
}

/* ── Home grid (투표 + 나의 기록) ────────────────────────────── */
.home-grid {
    display: grid;
    grid-template-columns: 1.38fr .82fr;
    gap: 18px;
}

.participation-card,
.my-record-card {
    min-height: 300px;
    padding: 22px;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-lg);
    background: var(--cl-surface);
    box-shadow: var(--cl-shadow);
}

.participation-card {
    border-top: 3px solid var(--cl-primary);
}

.attendance-score {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--cl-accent);
}

.attendance-score b {
    font: 800 24px/.8 var(--cl-number);
    letter-spacing: -.03em;
}

.attendance-score span {
    font: 800 8px/1.18 var(--cl-number);
    letter-spacing: .08em;
}

.vote-list {
    display: flex;
    flex-direction: column;
}

.vote-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px 0;
    border-top: 1px solid var(--cl-line);
}

.vote-item:first-child {
    border-top: 0;
}

.event-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 9px;
    background: var(--cl-bg-muted);
    color: var(--cl-primary);
    font-size: 15px;
    font-weight: 800;
}

.event-icon.is-training {
    background: rgba(14, 159, 154, .13);
    color: var(--cl-teal);
}

.event-icon.is-event {
    background: rgba(255, 91, 66, .12);
    color: var(--cl-accent);
}

.vote-info small {
    color: var(--cl-text-muted);
    font-size: 10px;
    font-weight: 700;
}

.vote-info h3 {
    margin: 3px 0 0;
    color: var(--cl-text);
    font-size: 13px;
    letter-spacing: -.02em;
}

.vote-info p {
    margin: 5px 0 0;
    color: var(--cl-text-muted);
    font-size: 11px;
}

.avatar-mini {
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-right: 3px;
    border-radius: 50%;
    background: var(--cl-bg-muted);
    color: var(--cl-primary);
    font: 800 8px var(--cl-number);
}

.vote-actions {
    display: flex;
    gap: 5px;
}

.vote-count-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 54px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    color: var(--cl-text-soft);
}

.vote-count-chip strong {
    color: var(--cl-primary);
    font: 800 15px var(--cl-number);
}

.vote-count-chip span {
    max-width: 60px;
    overflow: hidden;
    color: var(--cl-text-muted);
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vote-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--cl-primary);
    border-radius: var(--cl-radius-md);
    background: var(--cl-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.vote-action.is-secondary {
    border-color: var(--cl-line);
    background: var(--cl-bg-elevated);
    color: var(--cl-text-soft);
}

.vote-action:hover {
    background: var(--cl-primary-dark);
    border-color: var(--cl-primary-dark);
}

/* ── My record card ──────────────────────────────────────────── */
.my-record-card {
    position: relative;
    overflow: hidden;
    border: 0;
    background:
        linear-gradient(137deg, var(--cl-primary-dark), #082f24 58%, var(--cl-primary));
    box-shadow: 0 16px 30px rgba(9, 58, 42, .2);
    color: #fff;
}

.my-record-card::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -34px;
    width: 116px;
    height: 116px;
    transform: rotate(45deg);
    border: 18px solid rgba(140, 240, 189, .12);
}

.record-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.pale {
    color: #b2e4c8;
}

.record-top h2 {
    margin: 6px 0 0;
    font-size: 20px;
    letter-spacing: -.03em;
}

.record-top p {
    margin: 6px 0 0;
    color: #afccbd;
    font-size: 10px;
}

.record-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.record-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.record-filter-form select {
    min-width: 132px;
    height: 34px;
    padding: 0 34px 0 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)),
        rgba(255, 255, 255, .08);
    color: #f3fbf6;
    font-size: 11px;
    font-weight: 800;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)),
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .92) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, .92) 50%, transparent 50%);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 0 0, calc(100% - 16px) 14px, calc(100% - 11px) 14px;
    background-size: auto, 5px 5px, 5px 5px;
    cursor: pointer;
}

.record-filter-form select:hover,
.record-filter-form select:focus {
    outline: 0;
    border-color: rgba(140, 240, 189, .46);
    box-shadow: 0 0 0 3px rgba(140, 240, 189, .14);
}

.record-filter-form option {
    color: #10271f;
}

.record-detail {
    padding: 0;
    border: 0;
    background: transparent;
    color: #d0eee0;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.record-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 7px;
    margin-top: 18px;
}

.record-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    color: #c2d9cd;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.record-tab span {
    font: 700 8px var(--cl-number);
    letter-spacing: .07em;
}

.record-tab:hover,
.record-tab.active {
    border-color: var(--cl-mint);
    background: rgba(140, 240, 189, .15);
    color: #fff;
}

.record-panel {
    position: relative;
    z-index: 1;
    margin-top: 14px;
}

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

.record-primary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.record-primary > div {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 7px;
    background: rgba(255, 255, 255, .045);
}

.record-primary small {
    display: block;
    overflow: hidden;
    color: #a9cabb;
    font: 700 8px var(--cl-number);
    letter-spacing: .05em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-primary strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font: 800 26px/.9 var(--cl-number);
    letter-spacing: -.05em;
}

.record-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 9px;
}

.record-detail-grid > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 3px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    background: rgba(255, 255, 255, .025);
}

.record-detail-grid strong {
    color: #fff;
    font: 800 16px/.9 var(--cl-number);
    letter-spacing: -.03em;
}

.record-detail-grid span {
    color: #b5d3c5;
    font-size: 9px;
    font-weight: 700;
}

.pitcher-grid {
    grid-template-columns: repeat(4, 1fr);
}

.record-empty {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 22px 14px;
    border: 1px dashed rgba(255, 255, 255, .24);
    border-radius: var(--cl-radius-md);
    color: #cfe8db;
    font-size: 13px;
    text-align: center;
}

.record-detail-bottom {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: flex-end;
    margin-top: 14px;
}

/* ── Board preview ───────────────────────────────────────────── */
.board-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.board-preview-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 328px;
    border: 1px solid var(--cl-line);
    border-top: 3px solid var(--cl-primary);
    border-radius: var(--cl-radius-lg);
    background: var(--cl-surface);
    box-shadow: var(--cl-shadow);
}

.board-preview-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 20px 15px;
    border-bottom: 1px solid var(--cl-line);
}

.board-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.board-title-noicon {
    gap: 0;
}

.board-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--cl-line-strong);
    border-radius: 8px;
    background: var(--cl-bg-muted);
    color: var(--cl-primary);
    font: 800 15px var(--cl-number);
}

.board-team-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
}

.board-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-title small {
    display: block;
    color: var(--cl-text-muted);
    font: 800 8px var(--cl-number);
    letter-spacing: .12em;
}

.board-title h3 {
    margin: 3px 0 0;
    color: var(--cl-text);
    font-size: 16px;
    letter-spacing: -.02em;
}

.board-count {
    padding: 4px 6px;
    border: 1px solid rgba(255, 91, 66, .28);
    background: rgba(255, 91, 66, .08);
    color: var(--cl-accent);
    font: 800 9px var(--cl-number);
    letter-spacing: .07em;
}

.board-preview-card ul {
    margin: 0;
    padding: 0 20px;
    list-style: none;
    flex: 1 1 auto;
}

.board-preview-card li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 13px 0;
    border-top: 1px solid var(--cl-line);
}

.board-preview-card li:first-child {
    border-top: 0;
}

.board-tag {
    padding: 3px 5px;
    background: var(--cl-bg-muted);
    color: var(--cl-text-soft);
    font: 800 8px var(--cl-number);
    letter-spacing: .06em;
    white-space: nowrap;
}

.board-tag.notice {
    background: rgba(255, 91, 66, .1);
    color: var(--cl-accent);
}

.board-preview-card li p {
    overflow: hidden;
    margin: 0;
    color: var(--cl-text);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-post-link {
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-post-link:hover {
    color: var(--cl-primary);
}

.board-preview-card time {
    color: var(--cl-text-muted);
    font-size: 9px;
}

.board-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    border: 0;
    border-top: 1px solid var(--cl-line);
    background: var(--cl-bg-muted);
    color: var(--cl-primary);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.team-board {
    border-top-color: var(--cl-secondary);
    background: var(--cl-secondary);
    color: #fff;
}

.team-board header {
    border-color: rgba(255, 255, 255, .14);
}

.team-board .board-icon {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .12);
    color: #d5f0e1;
    overflow: hidden;
}

.team-board .board-title small,
.team-board time {
    color: #aad0bb;
}

.team-board .board-title h3,
.team-board li p,
.team-board .board-post-link {
    color: #fff;
}

.team-board li {
    border-color: rgba(255, 255, 255, .13);
}

.team-board .board-tag {
    background: rgba(255, 255, 255, .14);
    color: #d6efdf;
}

.team-board .board-tag.notice {
    background: rgba(255, 91, 66, .22);
    color: #ffd3c9;
}

.team-board .board-footer {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .12);
    color: #d8f4e4;
}

.board-preview-card .team-section-empty,
.team-board .team-section-empty {
    flex: 1 1 auto;
    margin: 0 20px 18px;
}

.team-board .team-section-empty {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .05);
    color: #cfe8db;
}

.team-board .board-post-link:hover {
    color: #d8f4e4;
}

.board-team-picker {
    flex: none;
    margin-left: auto;
}

.board-team-picker select {
    min-width: 220px;
    height: 42px;
    padding: 0 44px 0 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08)),
        rgba(255, 255, 255, .08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 8px 18px rgba(0, 0, 0, .12);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08)),
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .92) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, .92) 50%, transparent 50%);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 0 0, calc(100% - 18px) 17px, calc(100% - 12px) 17px;
    background-size: auto, 6px 6px, 6px 6px;
    cursor: pointer;
}

.board-team-picker select:focus {
    outline: 0;
    border-color: rgba(255, 255, 255, .48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 0 0 3px rgba(184, 228, 206, .18),
        0 10px 22px rgba(0, 0, 0, .16);
}

.board-team-picker select:hover {
    border-color: rgba(255, 255, 255, .38);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .11)),
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .98) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, .98) 50%, transparent 50%);
}

.board-team-picker option {
    color: #10271f;
}

@media (max-width: 1120px) {
    .board-team-picker {
        width: 100%;
        margin-left: 0;
    }

    .board-team-picker select {
        width: 100%;
        min-width: 0;
    }
}

/* ── Team insight ────────────────────────────────────────────── */
.team-insight {
    display: grid;
    grid-template-columns: .94fr 1fr .35fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-lg);
    background: var(--cl-surface);
    box-shadow: var(--cl-shadow);
}

.insight-main {
    padding: 29px 0 29px 32px;
}

.insight-main h2 {
    margin: 8px 0 0;
    color: var(--cl-text);
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: -.03em;
}

.insight-main h2 em {
    color: var(--cl-primary);
    font-style: normal;
}

.insight-main p {
    margin: 10px 0 0;
    color: var(--cl-text-muted);
    font-size: 12px;
}

.insight-main a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    color: var(--cl-primary);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.insight-photo {
    position: relative;
    min-height: 200px;
    margin: 0;
    overflow: hidden;
    background: var(--cl-secondary);
}

.insight-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
}

.insight-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 47, 36, .48), rgba(8, 47, 36, .05) 80%);
}

.insight-photo figcaption {
    position: absolute;
    z-index: 1;
    bottom: 14px;
    left: 14px;
    color: #dcf2e7;
    font: 800 9px var(--cl-number);
    letter-spacing: .14em;
}

.insight-photo figcaption i {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 5px 1px 0;
    border-radius: 50%;
    background: var(--cl-mint);
}

.insight-score {
    align-self: center;
    padding-left: 25px;
    border-left: 1px solid var(--cl-line);
}

.insight-score > span {
    color: var(--cl-text-muted);
    font: 800 10px var(--cl-number);
    letter-spacing: .11em;
}

.insight-score strong {
    display: block;
    margin-top: 4px;
    color: var(--cl-primary);
    font: 800 46px/.78 var(--cl-number);
    letter-spacing: -.08em;
}

.insight-score p {
    margin: 8px 0 0;
    color: var(--cl-text-muted);
    font-size: 11px;
    line-height: 1.55;
}

.insight-score p b {
    color: var(--cl-text);
}

/* ── Generic states ─────────────────────────────────────────── */
.landing-empty,
.landing-error {
    padding: 26px;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    background: var(--cl-surface);
    color: var(--cl-text-muted);
    text-align: center;
}

.landing-error {
    border-color: rgba(209, 67, 67, .28);
    color: var(--cl-danger);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1180px) {
    .landing-main-grid,
    .team-insight,
    .home-grid {
        grid-template-columns: 1fr;
    }

    .insight-photo {
        display: none;
    }

    .insight-score {
        padding: 22px 25px;
        border-top: 1px solid var(--cl-line);
        border-left: 0;
    }
}

@media (max-width: 980px) {
    .game-timeline,
    .board-preview-grid {
        grid-template-columns: 1fr;
    }

    .welcome-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-visual {
        width: 100%;
    }

    .stadium-card {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .landing-container {
        padding: 18px 18px 60px;
    }
}

@media (max-width: 720px) {
    .switcher-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .switcher-heading p {
        padding-left: 0;
        border-left: 0;
    }

    .vote-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .vote-actions {
        flex-wrap: wrap;
    }

    .record-top,
    .record-side {
        align-items: flex-start;
    }

    .record-side,
    .record-filter-form {
        width: 100%;
    }

    .record-filter-form select {
        flex: 1 1 160px;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .landing-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .section-header,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .record-primary,
    .record-detail-grid,
    .pitcher-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * , *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
