/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

:root {
    --navy:    #0D2636;
    --cream:   #F5E4C8;
    --red:     #C23A28;
    --gray:    #CED2D6;
    --darkred: #8A2B1C;

    --color-bg:      #F5E4C8;
    --color-surface: #ffffff;
    --color-text:    #0D2636;
    --color-muted:   #5a6a74;
    --color-border:  #d6cfc4;
    --radius:        8px;
    --max-width:     1120px;

    --font-heading: 'Montserrat', 'Noto Sans JP', sans-serif;
    --font-body:    'Source Sans 3', 'Noto Sans JP', sans-serif;
    --font-jp:      'Noto Sans JP', sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--darkred); }

main { flex: 1; }

.container {
    width: min(var(--max-width), 92%);
    margin: 0 auto;
}

.inline-form { display: inline; }
.muted { color: var(--color-muted); }

/* ── Language toggle ─────────────────────────────────────────────────────── */
[data-lang="ja"] .lang-en { display: none !important; }
[data-lang="en"] .lang-ja { display: none !important; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 38, 54, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 228, 200, 0.14);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--cream);
    text-decoration: none;
}
.brand:hover { text-decoration: none; color: #fff; }

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(245, 228, 200, 0.20);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    background: rgba(245, 228, 200, 0.06);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(18px, 2.4vw, 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social {
    display: flex;
    gap: 0.5rem;
}

.lang-switch {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(245, 228, 200, 0.3);
}

.lang-btn {
    background: transparent;
    color: var(--cream);
    border: none;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.15s;
}
.lang-btn:hover { background: rgba(245, 228, 200, 0.15); }
.lang-btn[aria-pressed="true"] {
    background: var(--red);
    color: #fff;
}

/* ── Header nav ──────────────────────────────────────────────────────────── */
.header-nav {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(245, 228, 200, 0.15);
    flex-wrap: wrap;
}

.navlink {
    color: rgba(245, 228, 200, 0.8);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}
.navlink:hover {
    background: rgba(245, 228, 200, 0.1);
    color: #fff;
    text-decoration: none;
}

.navlink-accent {
    color: var(--cream);
    background: var(--red);
}
.navlink-accent:hover {
    background: var(--darkred);
    color: #fff;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.4;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--darkred);
    border-color: var(--darkred);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-secondary:hover {
    background: var(--navy);
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background: var(--darkred);
    color: #fff;
    border-color: var(--darkred);
}
.btn-danger:hover {
    background: #6e2216;
    border-color: #6e2216;
    color: #fff;
    text-decoration: none;
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--cream);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    padding: 0;
}
.btn-link:hover { text-decoration: underline; color: #fff; }
.btn-link-danger { color: var(--red); font-size: 0.75rem; }
.btn-link-danger:hover { color: var(--darkred); }

/* ── Flash messages ──────────────────────────────────────────────────────── */
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.flash-success {
    background: #e0f0e3;
    color: #2a6e3f;
    border: 1px solid #b5d8b8;
}
.flash-error {
    background: #f9e3e0;
    color: var(--darkred);
    border: 1px solid #e8b5ad;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/inside1.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 38, 54, 0.88) 0%, rgba(13, 38, 54, 0.7) 100%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(0, 340px);
    gap: 2rem;
    padding: 3rem 0;
    width: min(var(--max-width), 92%);
    margin: 0 auto;
    align-items: start;
}

.card-soft {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    color: #fff;
}

.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cream);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.hero-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.hero-actions .btn-primary {
    background: var(--red);
    border-color: var(--red);
}
.hero-actions .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-mini {
    font-size: 0.8rem;
    color: rgba(245, 228, 200, 0.6);
}

/* ── Hero side panel ─────────────────────────────────────────────────────── */
.hero-panel {
    position: relative;
    overflow: hidden;
}

.watermark {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    opacity: 0.08;
    border-radius: 50%;
    pointer-events: none;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--cream);
}

.panel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.panel-list li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    align-items: baseline;
}
.panel-list .k {
    flex-shrink: 0;
    width: 1.3em;
}

.panel-note {
    font-size: 0.8rem;
    color: rgba(245, 228, 200, 0.6);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section {
    padding: 3rem 0;
}

.section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.section-sub {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.subsection-title {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.card-title-sm {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cream);
}

/* ── Pricing grid ─────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}

.list-plain {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.93rem;
}
.list-plain .mutedline {
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* ── Menu grid ────────────────────────────────────────────────────────────── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}

.menu-group {
    margin-bottom: 1.25rem;
}

.menu-group-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.93rem;
    gap: 0.5rem;
}
.menu-list .item { flex: 1; }
.menu-list .price {
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}
.menu-list .note {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.menu-subnote {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.4rem;
}

.divider {
    height: 1px;
    background: var(--color-border);
    margin: 1rem 0;
}

/* ── Info grid ────────────────────────────────────────────────────────────── */
.grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1rem;
}

.list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.93rem;
}

/* ── LINE card ────────────────────────────────────────────────────────────── */
.callout {
    text-align: center;
    padding: 2rem;
}

.line-card {
    border: 2px solid #06C755;
    background: #f5fff8;
}

.callout-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.25rem;
    text-align: left;
}

.callout-badge {
    background: #06C755;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.callout-title {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.15rem;
}
.callout-text {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.line-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.line-qr {
    width: 160px;
    height: 160px;
    border-radius: var(--radius);
}

.line-qr-note {
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* ── Find a Game section ─────────────────────────────────────────────────── */
.find-a-game-section {
    background: var(--navy);
    color: #fff;
    padding: 3rem 0;
}

.find-a-game-section .section-title { color: var(--cream); }
.find-a-game-section .section-sub { color: rgba(245, 228, 200, 0.6); }
.find-a-game-section .subsection-title { color: var(--cream); }
.find-a-game-section .muted { color: rgba(245, 228, 200, 0.6); }

.find-a-game-section .party-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.find-a-game-section .party-card:hover {
    border-color: var(--red);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.find-a-game-section .party-card-title { color: var(--cream); }
.find-a-game-section .party-card-game { color: var(--red); }
.find-a-game-section .party-card-time,
.find-a-game-section .party-card-meta { color: rgba(245, 228, 200, 0.6); }

.find-a-game-section .filter-form label {
    color: var(--cream);
}
.find-a-game-section .filter-form select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.filter-row select {
    flex: 1;
    max-width: 360px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.95rem;
}

.filter-row-multi {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filter-field {
    flex: 1;
    min-width: 160px;
}
.filter-field select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.95rem;
}

.filter-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--navy);
}

/* ── Game grid / cards ─────────────────────────────────────────────────── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 0.75rem;
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
}

.game-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
}

.game-card-meta {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.game-card-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.badge-lang-ja    { background: #fce4e4; color: var(--darkred); }
.badge-lang-en    { background: #e0eaf4; color: #2c5282; }
.badge-lang-both  { background: #e8f5e0; color: #2a6e3f; }
.badge-lang-other { background: var(--gray); color: var(--color-muted); }
.badge-cat        { background: rgba(13, 38, 54, 0.08); color: var(--navy); }

.find-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.find-actions .btn-secondary {
    color: var(--cream);
    border-color: rgba(245, 228, 200, 0.4);
}
.find-actions .btn-secondary:hover {
    background: rgba(245, 228, 200, 0.15);
    color: #fff;
}

/* ── Party grid ──────────────────────────────────────────────────────────── */
.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.party-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    color: var(--color-text);
    transition: box-shadow 0.15s, border-color 0.15s;
}
.party-card:hover {
    box-shadow: 0 2px 12px rgba(13, 38, 54, 0.1);
    border-color: var(--red);
    text-decoration: none;
}
.party-card-game {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--red);
    font-weight: 600;
}
.party-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
}
.party-card-time {
    font-size: 0.88rem;
    color: var(--color-muted);
}
.party-card-meta {
    font-size: 0.78rem;
    color: var(--color-muted);
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
}
.badge-open      { background: #e0f0e3; color: #2a6e3f; }
.badge-full      { background: #fef3cd; color: #b38a1d; }
.badge-locked    { background: var(--gray); color: var(--color-muted); }
.badge-cancelled { background: #f9e3e0; color: var(--darkred); }
.badge-host      { background: rgba(194, 58, 40, 0.1); color: var(--red); }

/* ── Parties header (Find a Game page) ──────────────────────────────────── */
.parties-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.parties-header h2 { margin: 0; }

.parties-section { margin-bottom: 2.5rem; }

/* Past tables */
.past-tables-section { opacity: 0.85; }
.past-tables-list {
    display: flex;
    flex-direction: column;
}
.past-table-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.45rem 0.5rem;
    font-size: 0.9rem;
}
.past-table-row:nth-child(odd) {
    background: rgba(13, 38, 54, 0.04);
    border-radius: var(--radius);
}
.past-table-game {
    font-size: 0.78rem;
    color: var(--color-muted);
    min-width: 0;
    flex-shrink: 0;
}
.past-table-title {
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.past-table-meta {
    font-size: 0.8rem;
    color: var(--color-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .past-table-row {
        flex-wrap: wrap;
        gap: 0.15rem 0.5rem;
    }
    .past-table-title { width: 100%; }
}

.party-card-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.empty-state {
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.games-catalog { margin-top: 2rem; }

/* ── Directions & Map ────────────────────────────────────────────────────── */
.directions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.directions-map {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.directions-map iframe {
    width: 100%;
    min-height: 400px;
    border-radius: var(--radius);
}

.map-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.directions-text .card-title {
    margin-bottom: 1.25rem;
}

.directions-method {
    margin-bottom: 1.25rem;
}
.directions-method:last-child {
    margin-bottom: 0;
}

.directions-method-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.directions-steps {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.93rem;
}

.directions-note {
    font-size: 0.93rem;
    color: var(--color-muted);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(245, 228, 200, 0.5);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}
.site-footer a { color: var(--cream); }

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.25rem;
}

.footer-line { color: rgba(245, 228, 200, 0.7); }
.footer-small { font-size: 0.8rem; }

/* ══════════════════════════════════════════════════════════════════════════
   Sub-pages: party detail, create, auth, find-a-game
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper for sub-pages ──────────────────────────────────────────── */
.page-section {
    padding: 2rem 0;
}

.section-narrow {
    max-width: 480px;
    margin: 0 auto;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form { margin-top: 1.5rem; }

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.95rem;
    background: var(--color-surface);
    color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(194, 58, 40, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-alt {
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.form-fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
}
.form-fieldset legend {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    padding: 0 0.5rem;
}

.form-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

/* ── Party detail page ───────────────────────────────────────────────────── */
.party-header {
    margin-bottom: 2rem;
}
.party-header-game {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--red);
    font-weight: 600;
}
.party-header h1 {
    font-size: 1.6rem;
    color: var(--navy);
    margin: 0.25rem 0 0.5rem;
}

.party-detail-grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 300px);
    gap: 2rem;
    align-items: start;
}

.detail-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    margin-bottom: 1.5rem;
}
.detail-list dt {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-muted);
}
.detail-list dd {
    font-size: 0.95rem;
}

.party-description {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.party-members-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.party-members-panel h2 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.member-list {
    list-style: none;
}
.member-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.member-list li:last-child { border-bottom: none; }

/* ── Voting ──────────────────────────────────────────────────────────────── */
/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

/* ── Messages ─────────────────────────────────────────────────────────────── */
.messages-section {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.messages-section h2 { margin-bottom: 0.75rem; }
.messages-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.message {
    padding: 0.6rem 0.75rem;
}
.message:nth-child(odd) {
    background: rgba(13, 38, 54, 0.04);
    border-radius: var(--radius);
}
.message-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
    font-size: 0.85rem;
}
.message-time {
    color: var(--color-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    margin-left: auto;
}
.message-body {
    font-size: 0.93rem;
    line-height: 1.5;
    padding-left: 0.05rem;
}
.message-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}
.message-form textarea {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.9rem;
    resize: vertical;
    background: var(--navy);
    color: var(--cream);
}
.message-form textarea::placeholder { color: rgba(245, 228, 200, 0.5); }
.message-form textarea:focus {
    outline: none;
    border-color: var(--red);
}

/* ── Profile tables ───────────────────────────────────────────────────── */
.profile-tables {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.profile-table-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}
.profile-table-card:hover {
    border-color: var(--red);
    text-decoration: none;
}
.profile-table-game {
    font-size: 0.78rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.profile-table-title {
    font-weight: 600;
    margin: 0.15rem 0 0.3rem;
}
.profile-table-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* ── Admin ───────────────────────────────────────────────────────────────── */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.admin-header h1 { margin: 0; }
.admin-header-actions { display: flex; gap: 0.5rem; }

.admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.admin-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-decoration: none;
    color: var(--navy);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-nav-card:hover {
    border-color: var(--red);
    box-shadow: 0 2px 12px rgba(13, 38, 54, 0.1);
    text-decoration: none;
}
.admin-nav-count {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
}
.admin-nav-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.admin-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    background: rgba(13, 38, 54, 0.03);
}
.admin-table tbody tr:hover {
    background: rgba(13, 38, 54, 0.02);
}
.admin-actions { text-align: right; }

.btn-danger {
    background: var(--darkred);
    color: #fff;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.btn-danger:hover {
    background: #6b1f12;
    color: #fff;
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }
    .hero-title { font-size: 1.35rem; }

    .header-inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0;
    }
    .brand { flex: 1 1 100%; }
    .header-actions {
        flex: 1 1 100%;
        gap: 8px;
        flex-wrap: wrap;
    }
    .header-auth { flex-wrap: wrap; gap: 0.4rem 0.75rem; }
    .social { display: none; }
    .brand-title { font-size: 16px; }

    .header-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.15rem;
        padding: 0.4rem 0;
    }

    .party-detail-grid { grid-template-columns: 1fr; }

    .pricing-grid,
    .menu-grid,
    .grid3 { grid-template-columns: 1fr; }

    .party-grid { grid-template-columns: 1fr; }

    .find-actions { flex-direction: column; }
    .find-actions .btn { text-align: center; }

    .directions-grid { grid-template-columns: 1fr; }
}
