:root {
    --ink: #172d2b;
    --muted: #71807c;
    --paper: #f5f6f2;
    --line: #e3e7e0;
    --green: #244a3c;
    --orange: #f17043;
    --lime: #e4f5a4;
    --white: #fff;
    --radius: 16px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select {
    font: inherit
}

button,
a,
input,
select {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:disabled {
    cursor: wait;
    opacity: .6
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #ee8d44;
    outline-offset: 4px
}

::selection {
    background: #e4f5a4;
    color: #142a2a
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: clamp(30px, 2.7vw, 44px);
    letter-spacing: -1.8px;
    font-weight: 650;
    line-height: 1.15;
    margin-bottom: 12px
}

h2 {
    font-size: 24px;
    letter-spacing: -.7px;
    font-weight: 650;
    margin-bottom: 12px
}

h3 {
    font-size: 18px;
    letter-spacing: -.3px
}

p {
    line-height: 1.6
}

small {
    font-size: 16px
}

.muted,
.subtitle {
    color: var(--muted)
}

.subtitle {
    font-size: 18px;
    margin: 0
}

.eyebrow,
.tiny-label {
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 1.7px;
    color: #708179;
    margin-bottom: 12px
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 238px;
    background: #142c2b;
    color: #d7e1d9;
    display: flex;
    flex-direction: column;
    padding: 37px 22px 24px;
    z-index: 5
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 8px 63px;
    font-size: 20px;
    letter-spacing: 1.4px;
    font-weight: 800
}

.brand small {
    display: block;
    font-size: 12px;
    color: #91a7a0;
    letter-spacing: 3px;
    margin-top: 6px
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: var(--lime);
    border-radius: 11px;
    color: #193832;
    display: grid;
    place-content: center;
    font-size: 32px;
    font-style: italic;
    position: relative;
    letter-spacing: -6px;
    padding-right: 8px
}

.brand-mark span {
    font-size: 18px;
    position: absolute;
    right: 6px;
    top: 1px
}

.nav-label {
    font-size: 13px;
    letter-spacing: 1.7px;
    color: #7f9890;
    font-weight: 650;
    margin: 0 15px 18px
}

.sidebar nav {
    display: grid;
    gap: 7px
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 17px;
    color: #afc2b9;
    transition: background .15s
}

.sidebar nav a>span:first-child {
    font-size: 21px;
    width: 23px
}

.sidebar nav a:hover {
    background: #203d37;
    color: #fff
}

.sidebar nav a.active {
    background: var(--lime);
    color: #19372b;
    font-weight: 700
}

.nav-arrow {
    margin-left: auto;
    font-size: 20px;
    opacity: 0
}

.active .nav-arrow {
    opacity: 1
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 40px
}

.sidebar-note {
    border: 1px solid #3a5048;
    border-radius: 12px;
    margin: 0 5px 26px;
    padding: 22px 20px;
    position: relative;
    overflow: hidden
}

.sidebar-note .tiny-label {
    font-size: 12px;
    color: #a3b89e;
    letter-spacing: 1.5px
}

.sidebar-note p {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 350;
    margin: 15px 0 35px;
    color: #e6eade;
    letter-spacing: -.5px
}

.sidebar-note strong {
    font-weight: 600;
    color: var(--lime)
}

.mini-puck {
    display: block;
    width: 50px;
    height: 15px;
    border-radius: 50%;
    background: #6e8c72;
    transform: rotate(-22deg);
    box-shadow: 0 8px 0 #314e3e, 0 11px 0 #476546;
    margin-left: 7px
}

.organizer-link {
    font-size: 15px;
    color: #b0c1b7;
    display: flex;
    align-items: center;
    padding: 6px 9px
}

.organizer-link span {
    margin-left: auto
}

.shell {
    margin-left: 238px;
    min-height: 100vh
}

.topbar {
    height: 80px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;
    background: #fafbf8;
    gap: 16px
}

.pool-title {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--muted)
}

.topbar-right form {
    margin-left: 12px
}

.status-dot,
.green-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background: #a8cc7f;
    flex-shrink: 0
}

.green-dot {
    background: #3c8d69
}

main {
    padding: 35px 42px 45px;
    max-width: 1610px;
    margin: auto
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 8px 0 29px
}

.page-heading .eyebrow {
    margin-bottom: 13px
}

.button {
    border: 1px solid transparent;
    background: var(--ink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 650;
    font-size: 16px;
    line-height: 1.5;
    white-space: nowrap;
    transition: background .15s, transform .15s
}

.button:hover {
    background: #315e4d;
    transform: translateY(-1px)
}

.button.secondary {
    background: transparent;
    border-color: #d8ded4;
    color: var(--ink)
}

.button.secondary:hover {
    background: #e8ede3
}

.button.orange {
    background: var(--orange);
    color: #1d2c26
}

.button.orange:hover {
    background: #ff8b5e
}

.button.full {
    width: 100%
}

.text-button {
    padding: 0;
    background: none;
    border: 0;
    color: var(--green);
    font-weight: 650;
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 3px
}

.inline-link {
    font-size: 16px;
    font-weight: 650;
    color: #315a45
}

.inline-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px
}

.tag {
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: .5px;
    white-space: nowrap
}

.tag.neutral {
    background: #eff1eb;
    color: #6e7e72
}

.tag.success {
    background: #edf4dc;
    color: #466d2f
}

.tag.danger {
    background: #fcece6;
    color: #a84d35
}

.tag.amber {
    background: #fbf1db;
    color: #95732d
}

.tag.live {
    background: #eff6de;
    color: #4d7329
}

.topbar .tag {
    font-size: 12px;
    padding: 5px 7px
}

.hero {
    position: relative;
    isolation: isolate;
    border-radius: var(--radius);
    background: #213e31;
    color: #fff;
    overflow: hidden;
    min-height: 303px;
    display: flex;
    justify-content: space-between;
    padding: 34px 37px
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 60% 100%, #50624670, transparent 65%), linear-gradient(110deg, #203a2d, transparent)
}

.hero-copy {
    z-index: 2
}

.hero-label {
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 650;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #d4e4b4;
    text-transform: uppercase;
    margin-bottom: 20px
}

.hero h2 {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -1.7px;
    margin-bottom: 16px;
    font-weight: 550
}

.hero p {
    color: #b4c8b7;
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 23px
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 17px
}

.hero-actions>span {
    font-size: 14px;
    color: #b6c6b1
}

.hero-actions .button {
    font-size: 15px;
    padding: 11px 14px
}

.hero-art {
    position: absolute;
    right: 0;
    top: 0;
    width: 43%;
    height: 100%;
    overflow: hidden;
    opacity: .96
}

.orbit {
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid #a9c38b26;
    border-radius: 50%;
    right: -2px;
    top: 0;
    transform: rotate(-25deg) scaleY(.72)
}

.orbit-two {
    width: 445px;
    height: 445px;
    right: -60px;
    top: -55px
}

.ice-line {
    position: absolute;
    width: 1px;
    height: 600px;
    background: #a9c38b20;
    transform: rotate(38deg);
    right: 40%;
    top: -130px
}

.line-two {
    right: 75%;
    background: #a9c38b12
}

.puck {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: repeating-radial-gradient(ellipse, #1a2821 0, #1a2821 2px, #28382c 3px, #1c2a21 4px);
    right: 28%;
    top: 65px;
    transform: rotate(-28deg) scaleY(.70);
    box-shadow: -5px 6px 0 #0e201a, -10px 12px 0 #14261c, -14px 17px 0 #102118, -18px 23px 0 #15291c, -23px 29px 0 #0f2017, -26px 35px 0 #0f1b13, -32px 50px 35px #071c1270;
    border: 2px solid #6b7c4d80;
    display: grid;
    place-content: center
}

.puck span {
    font-size: 115px;
    font-weight: 850;
    font-style: italic;
    color: var(--lime);
    text-shadow: 3px 3px #31482e;
    transform: rotate(20deg);
    line-height: 1
}

.art-label {
    position: absolute;
    right: 22%;
    bottom: 26px;
    color: #a0b980;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    transform: rotate(-15deg)
}

.art-cross {
    position: absolute;
    color: #819e65;
    font-size: 20px;
    font-weight: 200
}

.cross-one {
    right: 18%;
    top: 35px
}

.cross-two {
    right: 76%;
    bottom: 62px
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 23px 0 35px
}

.metrics article {
    background: #fff;
    border: 1px solid var(--line);
    padding: 20px 21px 17px;
    border-radius: 12px;
    min-height: 136px
}

.metric-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    letter-spacing: 1.2px;
    font-weight: 750;
    color: #728071;
    gap: 8px
}

.metric-label>span {
    font-size: 19px;
    color: #829780
}

.metric-label>.green-dot {
    width: 6px;
    height: 6px
}

.metrics strong {
    font-size: 34px;
    letter-spacing: -1.3px;
    display: block;
    font-weight: 600;
    margin: 12px 0 8px;
    line-height: 1
}

.metrics strong small {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    margin-left: 9px;
    color: var(--muted)
}

.metrics p {
    color: var(--muted);
    font-size: 14px;
    margin: 0
}

.metrics .date-metric {
    font-size: 22px;
    letter-spacing: -.8px;
    margin: 19px 0 13px
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px
}

.section-heading h2 {
    font-size: 20px;
    margin: 0
}

.section-heading .eyebrow {
    font-size: 12px;
    margin-bottom: 8px
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.game-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px
}

.game-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 17px 17px 0;
    overflow: hidden
}

.game-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px
}

.game-card-top>span:last-child {
    font-size: 12px;
    color: #79857b;
    text-align: right
}

.game-card .tag {
    font-size: 12px;
    padding: 4px 6px
}

.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    min-height: 40px
}

.team-row img {
    object-fit: contain;
    width: 38px;
    height: 38px
}

.team-placeholder {
    font-size: 13px;
    background: #edf2e5;
    padding: 9px;
    border-radius: 50%
}

.team-name {
    min-width: 0;
    flex: 1
}

.team-name strong {
    display: block;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4
}

.team-name small {
    display: block;
    font-size: 12px;
    letter-spacing: .2px;
    color: var(--muted);
    margin-top: 4px
}

.score {
    font-size: 23px;
    font-weight: 550;
    color: #a2aaa0;
    font-variant-numeric: tabular-nums
}

.winning .score {
    color: var(--green)
}

.game-card-bottom {
    border-top: 1px solid #edf0e8;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #86917f;
    font-size: 12px
}

.data-note {
    font-size: 14px;
    color: #7e8b80;
    line-height: 1.7;
    margin: 16px 0 0
}

.side-panel .section-heading {
    padding-top: 0
}

.survivor-row {
    display: flex;
    gap: 11px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 15px 0
}

.survivor-row:hover strong {
    color: #668135
}

.entry-avatar {
    display: inline-grid;
    place-content: center;
    flex-shrink: 0;
    background: #e8ece0;
    color: #536644;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 650;
    font-variant-numeric: tabular-nums
}

.entry-avatar.small {
    width: 31px;
    height: 31px;
    font-size: 14px;
    border-radius: 8px
}

.survivor-row>div {
    flex: 1
}

.survivor-row strong {
    display: block;
    font-size: 15px
}

.survivor-row small {
    display: block;
    color: #7b897e;
    font-size: 13px;
    margin-top: 6px
}

.survivor-row .tag {
    font-size: 12px
}

.tip {
    border: 1px solid #dbe2cb;
    background: #eaf0dc;
    border-radius: 12px;
    padding: 22px;
    margin-top: 25px
}

.tip .eyebrow {
    font-size: 12px;
    color: #778757
}

.tip h3 {
    font-size: 21px;
    margin: 12px 0 9px
}

.tip p {
    font-size: 15px;
    color: #788468;
    line-height: 1.7;
    margin-bottom: 18px
}

.tip .inline-link {
    font-size: 14px
}

.side-empty {
    font-size: 16px;
    line-height: 1.8;
    padding: 18px 0 24px
}

.empty-state {
    text-align: center;
    border: 1px dashed #d5decd;
    border-radius: 12px;
    padding: 45px 30px;
    background: #f9faf6
}

.empty-state h3 {
    margin: 15px 0 9px;
    font-size: 20px
}

.empty-state p {
    color: var(--muted);
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 22px
}

.empty-icon {
    font-size: 30px;
    color: #8da373
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden
}

.panel>.empty-state {
    border: 0
}

.winner-banner {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #eaf2d7;
    border: 1px solid #d3e5b9;
    padding: 24px 30px;
    border-radius: 14px;
    margin-bottom: 30px
}

.winner-banner>span {
    font-size: 38px;
    color: #74934e
}

.winner-banner h2 {
    margin: 0 0 6px
}

.winner-banner p:last-child {
    font-size: 16px;
    margin: 0
}

.date-tabs {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 0 0 14px;
    margin: 0 0 22px;
    scrollbar-width: thin
}

.date-tabs a {
    white-space: nowrap;
    font-size: 16px;
    padding: 13px 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff
}

.date-tabs a.selected {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink)
}

.date-tabs a:hover {
    border-color: #718d56
}

.standings-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0 0 30px;
    border-bottom: 1px solid var(--line);
    padding: 4px 0 25px
}

.standings-strip>span {
    font-size: 15px;
    color: var(--muted)
}

.standings-strip strong {
    display: block;
    font-size: 25px;
    letter-spacing: -.7px;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 6px
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 25px;
    border-bottom: 1px solid var(--line)
}

.table-toolbar h2 {
    font-size: 18px;
    margin: 0
}

.table-controls {
    display: flex;
    gap: 10px
}

.table-toolbar input,
.table-toolbar select {
    font-size: 15px;
    padding: 9px 12px;
    margin: 0;
    max-width: 220px
}

.table-toolbar select {
    max-width: 130px
}

.table-scroll {
    overflow-x: auto;
    max-width: 100%
}

table {
    border-collapse: collapse;
    width: 100%;
    white-space: nowrap;
    font-size: 16px;
    text-align: left
}

thead {
    background: #fafbf8
}

th {
    font-size: 13px;
    letter-spacing: .8px;
    color: #7a887c;
    font-weight: 650;
    text-transform: uppercase;
    padding: 15px 25px
}

td {
    padding: 17px 25px;
    border-top: 1px solid #edf0e9;
    font-size: 15px
}

tbody tr:hover {
    background: #fcfdf9
}

.entry-cell {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 16px;
    font-weight: 650
}

.filter-empty {
    padding: 10px 25px;
    font-size: 17px
}

.panel>.data-note {
    padding: 0 25px 20px
}

.notice {
    padding: 15px 20px;
    border-radius: 9px;
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.7;
    border: 1px solid #d9e1d0;
    background: #edf3e3;
    color: #526944
}

.notice.error {
    background: #fbedeb;
    color: #a04435;
    border-color: #f0d1c8
}

.notice.success {
    background: #eaf3e0;
    color: #4c6e36;
    border-color: #d2e3c0
}

.notice.info {
    background: #edf1e8;
    border-color: #dce4d5;
    color: #607453
}

.rule-intro {
    background: #e8eedc;
    border-radius: 14px;
    padding: 35px;
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 25px
}

.rule-intro>span {
    font-size: 32px;
    color: #9baa83;
    font-weight: 400
}

.rule-intro h2 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0
}

.rule-intro p {
    font-size: 17px;
    color: #68775c;
    margin: 0
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px
}

.rule-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px
}

.rule-number {
    font-size: 30px;
    font-weight: 650;
    color: #8f9f77;
    display: block;
    margin-bottom: 30px
}

.rule-card h3 {
    font-size: 21px;
    margin-bottom: 13px
}

.rule-card p {
    font-size: 16px;
    color: var(--muted);
    margin: 0;
    line-height: 1.8
}

label {
    display: block;
    font-size: 15px;
    font-weight: 650;
    margin-bottom: 18px
}

input:not([type=radio]):not([type=hidden]),
select {
    display: block;
    width: 100%;
    margin: 9px 0 0;
    border: 1px solid #dce2d5;
    border-radius: 7px;
    background: #fafbf8;
    padding: 12px 13px;
    color: var(--ink);
    font-size: 17px;
    min-width: 0
}

input[type=search]::-webkit-search-cancel-button {
    cursor: pointer
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px
}

.form-section {
    padding: 28px;
    margin-bottom: 25px
}

.form-section h2 {
    font-size: 22px
}

.form-section p {
    font-size: 16px;
    line-height: 1.8
}

.form-section .section-heading {
    margin-bottom: 25px
}

.form-section .section-heading .eyebrow {
    margin-bottom: 12px
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.plain-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0
}

.plain-fieldset:disabled {
    opacity: .5
}

.plain-fieldset:disabled button {
    cursor: not-allowed
}

.registration-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.registration-control strong {
    font-size: 16px
}

.registration-control p {
    font-size: 14px
}

.invite-actions {
    display: flex;
    gap: 15px
}

.payment {
    border: 0
}

.block {
    display: block;
    margin-top: 6px
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 26px 0
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 60px auto;
    align-items: start
}

.login-panel {
    padding: 38px
}

.login-panel h2 {
    font-size: 29px;
    letter-spacing: -1px;
    margin-top: 24px
}

.login-panel>p {
    font-size: 16px;
    margin-bottom: 25px
}

.login-panel .data-note {
    padding: 0;
    margin-top: 22px;
    margin-bottom: 0
}

.login-decoration {
    font-size: 150px;
    line-height: 1.1;
    font-style: italic;
    font-weight: 900;
    color: #c7d9aa;
    margin: 40px 0 0 30px;
    letter-spacing: -20px;
    transform: rotate(-9deg)
}

.login-decoration span {
    font-size: 100px;
    vertical-align: super
}

.pick-night {
    border: 0;
    padding: 0;
    margin: 36px 0
}

.pick-night legend {
    padding: 0;
    margin-bottom: 20px
}

.pick-night legend .eyebrow {
    display: block;
    font-size: 13px
}

.night-title {
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.7px
}

.pick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.pick-matchup {
    padding: 16px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px
}

.pick-matchup-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px
}

.team-choice {
    border: 1px solid #e6eadf;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 8px 0 0;
    cursor: pointer;
    position: relative
}

.team-choice:hover {
    background: #f5f8ed
}

.team-choice:has(input:checked) {
    border-color: #97b573;
    background: #eff5df
}

.team-choice:has(input:focus-visible) {
    outline: 3px solid #ee8d44;
    outline-offset: 3px
}

.team-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px
}

.team-choice img {
    object-fit: contain;
    width: 32px;
    height: 32px
}

.team-choice>span:not(.choice-indicator) {
    flex: 1;
    min-width: 0
}

.team-choice strong {
    font-size: 14px;
    font-weight: 650;
    display: block;
    line-height: 1.4
}

.team-choice small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 5px
}

.choice-indicator {
    width: 15px;
    height: 15px;
    border: 1px solid #c3cdb7;
    border-radius: 50%;
    flex-shrink: 0
}

.team-choice:has(input:checked) .choice-indicator {
    border: 4px solid #557942;
    background: #fff
}

.submit-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: #e8efdb;
    border-radius: 12px;
    padding: 24px 28px
}

.submit-bar strong {
    font-size: 21px
}

.submit-bar p {
    font-size: 15px;
    color: #748064;
    margin: 8px 0 0
}

.submit-bar .error-text {
    color: #a04435;
    font-weight: 650
}

.error-text:empty {
    display: none
}

footer {
    max-width: 1610px;
    margin: auto;
    border-top: 1px solid var(--line);
    padding: 23px 42px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
    color: #919b8d
}

footer>span:first-child {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 20;
    background: var(--lime);
    color: var(--ink);
    padding: 15px
}

.skip-link:focus {
    top: 10px
}

[hidden] {
    display: none !important
}

@media(min-width:1600px) {
    .hero {
        min-height: 340px;
        padding: 44px
    }

    .hero h2 {
        font-size: 47px
    }

    .hero-art {
        right: 8%;
        width: 39%
    }

    .puck {
        top: 80px;
        width: 180px;
        height: 180px
    }

    .game-card-top>span:last-child {
        font-size: 13px
    }

    .team-name strong {
        font-size: 17px
    }

    .team-name small {
        font-size: 13px
    }

    .metrics {
        gap: 20px
    }

    .metrics article {
        padding: 25px
    }

    .metrics strong {
        font-size: 39px
    }

    .metrics .date-metric {
        font-size: 26px
    }

    .metric-label {
        font-size: 13px
    }
}

@media(max-width:1250px) {
    .sidebar {
        width: 210px;
        padding-left: 17px;
        padding-right: 17px
    }

    .shell {
        margin-left: 210px
    }

    .topbar {
        padding: 0 28px
    }

    main {
        padding: 30px 28px 40px
    }

    .dashboard-columns {
        grid-template-columns: minmax(0, 1fr) 245px;
        gap: 20px
    }

    .hero-art {
        width: 40%;
        opacity: .8
    }

    .hero-copy {
        max-width: 70%
    }

    .hero h2 {
        font-size: 36px
    }

    .metrics {
        gap: 10px
    }

    .metrics article {
        padding: 17px 15px
    }

    .metric-label {
        font-size: 12px;
        letter-spacing: .6px
    }

    .metrics strong {
        font-size: 29px
    }

    .metrics strong small {
        font-size: 13px
    }

    .metrics .date-metric {
        font-size: 19px
    }

    .game-grid,
    .pick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .game-grid.compact {
        grid-template-columns: 1fr
    }

    .rules-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero-actions>span {
        display: none
    }

    .rule-intro {
        grid-template-columns: 40px 1fr 1fr;
        gap: 20px
    }

    .brand {
        margin-left: 5px;
        gap: 9px;
        font-size: 18px
    }

    footer {
        padding: 23px 28px
    }

    .admin-grid {
        gap: 18px
    }

    .form-section {
        padding: 23px
    }

    .form-grid {
        gap: 0 12px
    }
}

@media(max-width:960px) {
    .sidebar {
        width: 180px;
        padding: 28px 13px
    }

    .shell {
        margin-left: 180px
    }

    .brand {
        font-size: 16px;
        gap: 8px;
        margin: 0 0 45px
    }

    .brand small {
        font-size: 12px;
        letter-spacing: 2px
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 26px
    }

    .sidebar nav a {
        padding: 12px 9px;
        font-size: 16px;
        gap: 8px
    }

    .sidebar-note {
        padding: 18px 13px
    }

    .sidebar-note p {
        font-size: 18px
    }

    .nav-label {
        font-size: 12px;
        margin-left: 10px
    }

    .topbar .tag {
        display: none
    }

    .dashboard-columns {
        grid-template-columns: 1fr
    }

    .side-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px
    }

    .side-panel .section-heading {
        grid-column: 1/-1
    }

    .side-panel .tip {
        grid-column: 1/-1
    }

    .game-grid.compact {
        grid-template-columns: 1fr 1fr
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
        gap: 14px
    }

    .metrics article {
        min-height: 125px;
        padding: 20px
    }

    .metrics strong {
        font-size: 33px
    }

    .metrics .date-metric {
        font-size: 23px
    }

    .metric-label {
        font-size: 12px
    }

    .hero-art {
        width: 47%;
        right: -45px;
        opacity: .6
    }

    .hero-copy {
        max-width: 85%
    }

    .hero {
        padding: 30px;
        min-height: 300px
    }

    .admin-grid {
        grid-template-columns: 1fr;
        gap: 0
    }

    .login-layout {
        gap: 30px;
        grid-template-columns: 1fr;
        margin: 20px auto;
        max-width: 500px
    }

    .login-decoration {
        display: none
    }

    .table-toolbar {
        align-items: flex-start;
        flex-direction: column
    }

    .table-controls {
        width: 100%
    }

    .table-toolbar input {
        max-width: none
    }

    .rule-intro {
        grid-template-columns: 40px 1fr
    }

    .rule-intro p {
        grid-column: 2
    }

    .page-heading {
        align-items: flex-start
    }

    .page-heading .button {
        font-size: 15px;
        padding: 10px 12px
    }

    footer {
        flex-direction: column;
        gap: 10px
    }

    .standings-strip {
        gap: 25px
    }

    .standings-strip strong {
        font-size: 22px
    }
}

@media(max-width:650px) {
    .sidebar {
        position: relative;
        width: 100%;
        padding: 20px 19px 12px;
        display: block
    }

    .brand {
        font-size: 18px;
        margin: 0 0 22px
    }

    .brand small {
        font-size: 12px
    }

    .brand-mark {
        width: 37px;
        height: 37px
    }

    .nav-label,
    .sidebar-bottom,
    .nav-arrow {
        display: none
    }

    .sidebar nav {
        display: flex;
        gap: 5px;
        justify-content: space-between
    }

    .sidebar nav a {
        padding: 9px 9px;
        font-size: 14px;
        gap: 5px;
        white-space: nowrap
    }

    .sidebar nav a>span:first-child {
        font-size: 20px;
        width: auto
    }

    .shell {
        margin: 0
    }

    .topbar {
        height: 58px;
        padding: 0 20px
    }

    .pool-title {
        font-size: 15px;
        max-width: 65%;
        line-height: 1.5
    }

    .topbar-right {
        font-size: 13px
    }

    .topbar-right .text-button {
        font-size: 13px
    }

    main {
        padding: 26px 19px 35px
    }

    .page-heading {
        margin: 0 0 23px;
        flex-wrap: wrap;
        gap: 15px
    }

    .page-heading h1 {
        font-size: 30px;
        letter-spacing: -1.2px
    }

    .subtitle {
        font-size: 16px
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: 1.3px
    }

    .page-heading>.button {
        display: none
    }

    .hero {
        padding: 28px 24px;
        min-height: 320px
    }

    .hero h2 {
        font-size: 37px
    }

    .hero p {
        font-size: 15px
    }

    .hero-copy {
        max-width: 100%
    }

    .hero-art {
        width: 60%;
        right: -55px;
        top: 35px;
        opacity: .35
    }

    .puck {
        right: 13%;
        width: 130px;
        height: 130px
    }

    .puck span {
        font-size: 95px
    }

    .hero h2,
    .hero p,
    .hero-actions {
        position: relative;
        z-index: 2
    }

    .hero-label {
        font-size: 12px
    }

    .hero-actions .button {
        font-size: 15px
    }

    .metrics {
        gap: 11px;
        margin-top: 17px;
        margin-bottom: 29px
    }

    .metrics article {
        padding: 16px 14px;
        min-height: 125px;
        border-radius: 10px
    }

    .metrics strong {
        font-size: 30px;
        margin-top: 17px
    }

    .metrics strong small {
        font-size: 13px;
        margin-left: 5px
    }

    .metrics .date-metric {
        font-size: 21px;
        margin-top: 23px
    }

    .metrics p {
        font-size: 13px
    }

    .metric-label {
        font-size: 12px;
        letter-spacing: .7px
    }

    .metric-label>span {
        font-size: 16px
    }

    .dashboard-columns {
        gap: 28px
    }

    .game-grid,
    .game-grid.compact,
    .pick-grid {
        grid-template-columns: 1fr
    }

    .team-name strong {
        font-size: 17px
    }

    .team-name small {
        font-size: 13px
    }

    .game-card-top>span:last-child {
        font-size: 13px
    }

    .game-card .tag {
        font-size: 12px
    }

    .game-card-bottom {
        font-size: 13px
    }

    .game-card {
        padding: 18px 20px 0
    }

    .team-row {
        gap: 14px
    }

    .team-row img {
        width: 42px;
        height: 42px
    }

    .side-panel {
        display: block
    }

    .side-panel .tip {
        margin-top: 23px
    }

    .section-heading h2 {
        font-size: 19px
    }

    .section-heading .eyebrow {
        font-size: 12px
    }

    .standings-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px
    }

    .table-toolbar {
        padding: 20px
    }

    .table-controls {
        flex-wrap: wrap
    }

    .table-toolbar input {
        width: 100%;
        max-width: none
    }

    .table-toolbar select {
        max-width: none
    }

    td {
        padding: 15px 20px
    }

    th {
        padding: 14px 20px
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .rule-card {
        padding: 24px
    }

    .rule-number {
        margin-bottom: 20px
    }

    .rule-intro {
        padding: 25px;
        grid-template-columns: 1fr;
        gap: 18px
    }

    .rule-intro>span {
        font-size: 19px
    }

    .rule-intro p {
        grid-column: auto
    }

    .rule-intro h2 {
        font-size: 29px
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0
    }

    .form-section {
        padding: 24px
    }

    .form-section h2 {
        font-size: 20px
    }

    .form-section label {
        font-size: 16px
    }

    .submit-bar {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
        gap: 18px
    }

    .pick-matchup-header {
        font-size: 13px
    }

    .team-choice strong {
        font-size: 16px
    }

    .team-choice small {
        font-size: 14px
    }

    .team-choice {
        padding: 14px
    }

    .team-choice img {
        width: 38px;
        height: 38px
    }

    .night-title {
        font-size: 22px
    }

    .login-panel {
        padding: 28px
    }

    .login-layout {
        gap: 30px
    }

    .topbar-right form {
        margin-left: 3px
    }

    .topbar-right .status-dot {
        display: none
    }

    footer {
        padding: 20px;
        font-size: 12px
    }

    .notice {
        font-size: 15px;
        padding: 15px
    }

    .data-note {
        font-size: 13px
    }

    .empty-state {
        padding: 35px 22px
    }

    .empty-state h3 {
        font-size: 19px
    }

    .empty-state p {
        font-size: 16px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

.mobile-organizer {
    display: none
}

@media(max-width:650px) {
    .topbar-right .nhl-label {
        display: none
    }

    .mobile-organizer {
        display: inline;
        color: var(--green);
        font-size: 14px;
        font-weight: 650
    }

    .topbar-right {
        gap: 10px
    }
}

/* Readable typography and fluid use of available desktop space. */
:root {
    font-size: 18px;
    --muted: #586a62
}

body {
    line-height: 1.5
}

main {
    max-width: none;
    padding: 26px 28px 36px
}

footer {
    max-width: none;
    padding: 20px 28px;
    color: var(--muted)
}

.topbar {
    padding: 0 28px;
    height: 72px
}

.page-heading {
    margin: 0 0 22px
}

.hero {
    min-height: 260px;
    padding: 26px 30px
}

.hero-label {
    margin-bottom: 14px
}

.hero p {
    margin-bottom: 18px
}

.hero-copy {
    max-width: 65%
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px
}

.metrics {
    margin: 18px 0 26px;
    gap: 14px
}

.metrics article {
    min-height: 0;
    padding: 18px
}

.metric-label {
    letter-spacing: .7px;
    align-items: flex-start
}

.metrics strong {
    margin: 12px 0 8px
}

.metrics .date-metric {
    margin: 16px 0 12px
}

.dashboard-columns {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 24%);
    gap: 24px
}

.dashboard-columns>*,
.admin-grid>*,
.form-grid>*,
.rules-grid>* {
    min-width: 0
}

.game-grid,
.game-grid.compact,
.pick-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr))
}

.game-card-top,
.game-card-bottom,
.pick-matchup-header {
    flex-wrap: wrap
}

.team-name strong,
.team-choice strong {
    font-size: 17px
}

.team-name small,
.team-choice small {
    font-size: 13px
}

.game-card .tag,
.survivor-row .tag {
    font-size: 12px
}

.survivor-row strong {
    font-size: 16px
}

.survivor-row small {
    font-size: 14px
}

.tag {
    white-space: normal
}

.sidebar {
    padding-top: 26px;
    overflow-y: auto
}

.brand {
    margin-bottom: 36px
}

.sidebar nav a {
    font-size: 17px;
    padding: 12px;
    gap: 10px
}

.sidebar-note {
    padding: 18px 14px;
    margin-bottom: 18px
}

.sidebar-note p {
    margin: 12px 0 24px
}

.sidebar-bottom {
    padding-top: 24px
}

.organizer-link {
    font-size: 14px
}

.table-toolbar input,
.table-toolbar select {
    font-size: 16px;
    max-width: none
}

.table-toolbar select {
    width: auto
}

th {
    font-size: 13px;
    letter-spacing: .4px
}

td,
.entry-cell {
    font-size: 16px
}

input:not([type=radio]):not([type=hidden]),
select {
    font-size: 17px
}

.button {
    min-height: 44px
}

.rule-card p,
.form-section p {
    font-size: 16px
}

.section-heading {
    flex-wrap: wrap
}

@media(min-width:1600px) {
    .hero {
        min-height: 270px;
        padding: 28px 34px
    }

    .hero h2 {
        font-size: 44px
    }

    .metrics article {
        padding: 20px
    }
}

@media(min-width:651px) and (max-width:960px) {
    .sidebar {
        width: 200px
    }

    .shell {
        margin-left: 200px
    }
}

@media(max-width:1100px) {
    .dashboard-columns {
        grid-template-columns: 1fr
    }

    .side-panel {
        display: block
    }

    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .hero-copy {
        max-width: 85%
    }

    .table-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .table-controls {
        flex-wrap: wrap
    }

    .table-toolbar input {
        flex: 1;
        min-width: 160px
    }
}

@media(max-width:650px) {
    main {
        padding: 22px 16px 30px
    }

    .sidebar {
        padding: 18px 16px 12px
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px
    }

    .sidebar nav a {
        font-size: 15px;
        white-space: normal
    }

    .topbar {
        height: auto;
        min-height: 64px;
        padding: 12px 16px;
        flex-wrap: wrap
    }

    .pool-title {
        max-width: 100%;
        font-size: 15px;
        overflow-wrap: anywhere
    }

    .topbar-right {
        flex-wrap: wrap
    }

    .hero {
        padding: 24px;
        min-height: 0
    }

    .hero-copy {
        max-width: 100%
    }

    .hero h2 {
        font-size: 36px
    }

    .hero p {
        font-size: 16px
    }

    .hero-art {
        opacity: .2
    }

    .metrics {
        gap: 10px
    }

    .metrics article {
        padding: 16px 12px
    }

    .metrics strong small {
        display: block;
        margin: 8px 0 0
    }

    .metric-label {
        font-size: 12px;
        letter-spacing: 0
    }

    .metrics .date-metric {
        font-size: 23px
    }

    .table-controls {
        flex-direction: column
    }

    .table-toolbar select {
        width: 100%
    }

    footer {
        padding: 20px 16px
    }
}

@media(max-width:360px) {
    .metrics {
        grid-template-columns: 1fr
    }
}
/* Set the final night apart from regular-night picks. */
.pick-night.tiebreaker-night{background:#fff1d6;border:2px solid #b78634;border-radius:16px;padding:22px}
.tiebreaker-night legend{background:#fff1d6;border-radius:8px;padding:8px 12px;max-width:100%}
.tiebreaker-night legend .eyebrow{color:#765119}
.tiebreaker-night .pick-matchup{background:#fffaf0;border-color:#dec69b}
@media(max-width:650px){.pick-night.tiebreaker-night{padding:16px 12px}}
