*
{
    box-sizing:border-box
}
[hidden]
{
    display:none!important
}

body
{
    user-select:none;
    margin:0;
    background:#0d2e1a;
    color:#f5efe0;
    font:18px/1.4 Georgia,serif;
    min-height:100vh
}

header
{
    padding:14px 20px;
    background:#f5efe0;
    color:#14532d;
    border-bottom:6px solid #f2b705;
    display:flex;
    justify-content:space-between;
    align-items:center
}

.stats-link
{
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    border:3px solid #14532d;
    border-radius:50%;
    background:#fff;
    color:#14532d;
    font:700 20px Georgia,serif;
    text-decoration:none
}

.stats-link:hover,.stats-link:focus-visible
{
    background:#f2b705
}

#info
{
    width:38px;
    height:38px;
    padding:0;
    border-radius:50%;
    border:3px solid #14532d;
    background:#fff;
    color:#14532d;
    font:italic 700 22px Georgia,serif;
    cursor:pointer
}

dialog
{
    max-width:480px;
    width:calc(100% - 32px);
    border:4px solid #14532d;
    border-radius:6px;
    background:#f5efe0;
    color:#14301e;
    padding:20px;
    font:17px/1.45 Georgia,serif
}

dialog::backdrop
{
    background:#000a
}

dialog h2
{
    margin:0 0 10px;
    font:900 26px Impact,"Arial Black",sans-serif
}

dialog ul
{
    margin:8px 0 14px;
    padding-left:20px
}

dialog li
{
    margin-bottom:6px
}

dialog button
{
    background:#14532d;
    font-size:20px
}

h1
{
    margin:0;
    font:900 30px Impact,"Arial Black",sans-serif
}

main
{
    max-width:560px;
    margin:0 auto;
    padding:20px
}

#etat
{
    margin:0 0 16px;
    font-size:20px
}

form
{
    background:#f5efe0;
    color:#14301e;
    padding:20px;
    border-radius:6px
}

label
{
    display:block;
    font-weight:700;
    margin-bottom:14px
}

input[type=text]
{
    display:block;
    width:100%;
    margin-top:4px;
    padding:10px;
    font:inherit;
    border:2px solid #14532d;
    border-radius:4px;
    background:#fff
}

fieldset
{
    border:0;
    padding:0;
    margin:0 0 14px
}

legend
{
    font-weight:700;
    margin-bottom:6px
}

.c
{
    display:grid;
    grid-template-columns:34px 1fr auto;
    align-items:center;
    gap:10px;
    padding:8px 10px;
    margin-bottom:6px;
    border:2px solid #14532d;
    border-radius:4px;
    cursor:pointer;
    font-weight:400;
    position:relative
}

.c:has(input:checked)
{
    background:#f2b705
}

.c b
{
    width:30px;
    height:30px;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#111;
    font:700 16px sans-serif
}

.horse-info
{
    display:grid;
    min-width:0;
    gap:2px
}

.horse-name
{
    overflow-wrap:anywhere
}

.horse-score
{
    color:#45604b;
    font:700 12px/1.2 Georgia,serif
}

.c span:last-child
{
    font:700 15px Impact,sans-serif
}

.c input
{
    position:absolute;
    opacity:0
}

.c.pris
{
    opacity:.42;
    background:#b9b9b9;
    color:#333;
    border-color:#777;
    cursor:not-allowed
}

.c.pris span:last-child
{
    color:#222
}

.c.pris input
{
    pointer-events:none
}

button
{
    width:100%;
    padding:14px;
    font:900 22px Impact,"Arial Black",sans-serif;
    background:#c8102e;
    color:#fff;
    border:0;
    border-radius:4px;
    cursor:pointer
}

button:disabled
{
    opacity:.55;
    cursor:not-allowed
}

button:focus-visible,.c:has(input:focus-visible)
{
    outline:3px solid #14532d;
    outline-offset:2px
}

#ticket
{
    margin-top:16px;
    padding:14px;
    background:#fff8e1;
    color:#222;
    border:2px dashed #14532d;
    border-radius:4px
}

#ticket:empty
{
    display:none
}
