/* ================= Tournaments ================= */

[x-cloak] { display: none !important; }

.form-control[type="date"] { color-scheme: dark; }

/* gold-outline button */
.il-btn-ghost,
.il-btn-ghost:visited {
    background: transparent;
    color: var(--il-gold) !important;
    border: 1.5px solid rgba(183,155,90,0.6);
    border-radius: 12px;
    font-weight: 600;
}
.il-btn-ghost:hover,
.il-btn-ghost:focus {
    background: rgba(183,155,90,0.12);
    border-color: var(--il-gold);
}

.il-btnrow { display: flex; gap: 10px; }
.il-btnrow .btn { flex: 1; }

.il-card + .il-card,
.il-wind + .il-card { margin-top: 16px; }

.il-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.il-card-link { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--il-gold); }

/* ---------- Tournament list ---------- */
.il-tlist { display: flex; flex-direction: column; gap: 8px; }

.il-titem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--il-surface-2);
    border: 1px solid var(--il-border);
    text-decoration: none;
    color: var(--il-text);
    transition: border-color .2s ease;
}
.il-titem:hover { border-color: rgba(183,155,90,0.5); color: var(--il-text); }
.il-titem-main { min-width: 0; }
.il-titem-name {
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.il-titem-meta {
    font-size: 13px;
    color: var(--il-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.il-titem-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.il-titem-count { font-size: 12px; color: var(--il-muted); }

/* ---------- Badges / tags ---------- */
.il-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
}
.il-badge-upcoming { background: rgba(183,155,90,0.15); color: var(--il-gold); }
.il-badge-live     { background: rgba(46,125,50,0.28);  color: #7FD688; }
.il-badge-done     { background: rgba(255,255,255,0.08); color: var(--il-muted); }

.il-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--il-muted);
    margin-left: auto;
    align-self: center;
}

/* ---------- Walk-through steps ---------- */
.il-wizard { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; }
.il-wizard li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--il-muted);
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.il-wizard li span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: rgba(255,255,255,0.08);
}
.il-wizard li.active { color: #fff; border-color: var(--il-gold); }
.il-wizard li.active span { background: var(--il-gold); color: var(--il-black); }
.il-wizard li.done { color: var(--il-gold); border-color: rgba(183,155,90,0.5); }
.il-wizard li.done span { background: rgba(183,155,90,0.3); color: #fff; }

/* ---------- Course search ---------- */
.il-search-status { font-size: 13px; color: var(--il-muted); margin-top: 8px; }
.il-results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.il-result {
    text-align: left;
    background: var(--il-surface-2);
    border: 1px solid var(--il-border);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--il-text);
    display: flex;
    flex-direction: column;
}
.il-result:hover,
.il-result:focus { border-color: var(--il-gold); outline: none; }
.il-result-name { font-weight: 600; }
.il-result-meta { font-size: 12px; color: var(--il-muted); }

.il-link { color: var(--il-gold); text-decoration: none; font-weight: 600; font-size: 14px; }
.il-link:hover { color: var(--il-gold-hover); }

.il-picked {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--il-surface-2);
    border: 1px solid rgba(183,155,90,0.4);
    margin-bottom: 14px;
}
.il-picked-name { font-weight: 700; }
.il-picked-meta { font-size: 13px; color: var(--il-muted); }

/* ---------- Par editor ---------- */
.il-pargrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.il-parcell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.il-parcell label { font-size: 11px; color: var(--il-muted); font-weight: 600; }

.il-parselect {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--il-bg);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 8px 0;
    text-align: center;
    text-align-last: center;
    font-weight: 700;
    font-size: 16px;
}
.il-parselect:focus { outline: none; border-color: var(--il-gold); }
.il-holeselect { width: 110px; }

.il-partotal { margin-top: 10px; font-size: 14px; color: var(--il-muted); }
.il-partotal strong { color: #fff; }

/* ---------- Format options ---------- */
.il-options { display: flex; flex-direction: column; gap: 8px; }
.il-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--il-border);
    background: var(--il-surface-2);
    cursor: pointer;
}
.il-option input { margin-top: 4px; accent-color: var(--il-gold); }
.il-option:has(input:checked) { border-color: var(--il-gold); background: rgba(183,155,90,0.08); }
.il-option.disabled { opacity: .45; cursor: not-allowed; }
.il-option-body { display: flex; flex-direction: column; flex: 1; }
.il-option-title { font-weight: 700; }
.il-option-desc { font-size: 13px; color: var(--il-muted); }

/* ---------- Tournament page ---------- */
.il-thead { margin-bottom: 14px; }
.il-thead .il-badge { margin-bottom: 6px; }
.il-thead-meta { font-size: 14px; color: var(--il-muted); }

.il-code-card { text-align: center; }
.il-code-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--il-gold);
    margin-bottom: 6px;
}
.il-code {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 64px;
    letter-spacing: 10px;
    padding-left: 10px;
    line-height: 1;
    color: #fff;
    margin: 4px 0 14px;
}
.il-code-new {
    border-color: rgba(183,155,90,0.6);
    box-shadow: 0 0 0 1px rgba(183,155,90,0.25), var(--il-shadow);
}
.il-code-link { color: var(--il-muted); word-break: break-all; }

.il-code-input {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 34px;
    letter-spacing: 8px;
    text-align: center;
    text-transform: uppercase;
}

.il-players { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.il-players li { display: flex; align-items: center; gap: 10px; }
.il-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--il-green);
    border: 1px solid rgba(183,155,90,0.5);
    color: var(--il-gold);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.il-player-name { font-weight: 600; }

.il-parstrip { font-size: 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--il-border); }
.il-parstrip + .il-parstrip { margin-top: 8px; }
.il-parrow { display: grid; grid-template-columns: 40px repeat(9, 1fr) 36px; text-align: center; }
.il-parrow span { padding: 6px 0; }
.il-parrow-head { background: var(--il-surface-2); color: var(--il-muted); font-weight: 600; }
.il-parrow:not(.il-parrow-head) { color: #fff; font-weight: 700; }
.il-parrow span:first-child { text-align: left; padding-left: 8px; color: var(--il-muted); font-weight: 600; }
.il-parrow span:last-child { background: rgba(183,155,90,0.12); color: var(--il-gold); }
.il-partot { margin-top: 8px; font-size: 13px; color: var(--il-muted); text-align: right; }
.il-partot strong { color: #fff; }

/* ---------- Footer ---------- */
.il-footer { margin-top: 28px; font-size: 11px; color: var(--il-muted); text-align: center; opacity: .8; }
.il-footer a { color: var(--il-muted); }