#racesDialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border-radius:20px;color:var(--finish-text,#fff3d9);background:#172635;overflow:hidden;font-family:var(--body,system-ui,sans-serif)}
#racesDialog::backdrop{background:#071019b8}.races-header,.races-footer{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#1e3040}.races-header{border-bottom:1px solid #536779}.races-header h2{margin:0;font-size:32px}.races-header button{min-width:44px;font-size:26px;padding:6px 12px}.races-body{padding:20px 22px;overflow:auto;max-height:calc(100dvh - 205px);overscroll-behavior:contain}.races-intro{font-size:18px;font-weight:700;margin:0 0 20px}.race-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.race-card{padding:18px;border:1px solid #5d7386;border-radius:16px;background:#22394c;min-width:0}.race-card h3{margin:0;font-size:22px}.race-prize{font-size:38px;font-weight:900;color:#ffce45;margin:8px 0}.race-state{font-weight:800;margin:0 0 10px}.race-deadline{color:#d4e2ec;font-size:15px;line-height:1.5}.race-card details,.races-rules{margin-top:14px}.race-card summary,.races-rules summary{cursor:pointer;font-weight:800;min-height:36px;display:list-item}.race-card ol,.race-card ul{padding-left:22px;font-size:15px;overflow-wrap:anywhere}.race-card li{margin:8px 0}.race-card details p,.races-rules p{font-size:15px;line-height:1.55;color:#d4e2ec}.race-rules-link{display:inline-block;color:#ffce45;font-weight:800;margin-top:14px;min-height:36px}.races-footer{justify-content:flex-end;border-top:1px solid #536779}.races-footer .btn{background:#ffce45;color:#142230;min-width:180px;font-weight:900}.races-entry{min-height:44px}.races-dialog :focus-visible{outline:3px solid #98e9ed;outline-offset:3px}
@media(max-width:550px){.race-cards{grid-template-columns:1fr}.races-header,.races-footer{padding:14px 16px}.races-body{padding:16px;max-height:calc(100dvh - 184px)}.races-header h2{font-size:27px}.race-prize{font-size:34px}.races-footer .btn{width:100%}}

/* Decorative awards keep the race title, amount and entry status as readable text. */
.race-card::before{content:"";display:block;height:112px;margin:0 0 16px;background-position:center;background-repeat:no-repeat;pointer-events:none}
.race-card[data-race="quarterly"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%20116%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23fff3ac%22%2F%3E%3Cstop%20offset%3D%22.4%22%20stop-color%3D%22%23e8b83c%22%2F%3E%3Cstop%20offset%3D%22.7%22%20stop-color%3D%22%23b47b1e%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ffe077%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M24%2058%2014%20108%2033%2098%2044%20113%2051%2068M72%2058%2082%20108%2063%2098%2052%20113%2045%2068%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%238b5b18%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22m24%2076-5%2023%2011-6%207%209%206-27m29%201%205%2023-11-6-7%209-6-27%22%20fill%3D%22%232b465b%22%2F%3E%3Cpath%20d%3D%22m48%203%209%205%2010-1%206%208%2010%204%201%2010%206%208-4%2010%201%2010-8%206-4%2010-10%201-8%206-9-4-10%201-6-8-10-4-1-10-6-8%204-10-1-10%208-6%204-10%2010-1z%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%238b5b18%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%2240%22%20r%3D%2227%22%20fill%3D%22%23dba52d%22%20stroke%3D%22%23fff0a0%22%20stroke-width%3D%223%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%2240%22%20r%3D%2223%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%23a57420%22%2F%3E%3Cpath%20d%3D%22m48%2022%205%2011%2013%201-10%209%203%2013-11-7-11%207%203-13-10-9%2013-1z%22%20fill%3D%22%23fff2b3%22%20stroke%3D%22%239d701d%22%20stroke-width%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M28%2023a27%2027%200%200%201%2018-9%22%20fill%3D%22none%22%20stroke%3D%22%23fff9d0%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");background-size:76px 92px}
.race-card[data-race="annual"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20124%20132%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20stop-color%3D%22%23b47b1e%22%2F%3E%3Cstop%20offset%3D%22.3%22%20stop-color%3D%22%23ffdf78%22%2F%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%23fff3ae%22%2F%3E%3Cstop%20offset%3D%22.75%22%20stop-color%3D%22%23e9b93b%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23b47b1e%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M31%2019H11v16c0%2021%2012%2033%2033%2035M93%2019h20v16c0%2021-12%2033-33%2035%22%20fill%3D%22none%22%20stroke%3D%22%239a681b%22%20stroke-width%3D%2213%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M31%2019H11v16c0%2021%2012%2033%2033%2035M93%2019h20v16c0%2021-12%2033-33%2035%22%20fill%3D%22none%22%20stroke%3D%22%23f4cd61%22%20stroke-width%3D%228%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M30%2012h64l-6%2038c-2%2018-12%2028-26%2028S38%2068%2036%2050z%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%238b5b18%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M27%2011h70v9H27z%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%23a57420%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M56%2077h12v20l13%2011H43l13-11z%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%238b5b18%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M35%20106h54v11H35z%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%238b5b18%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M28%20116h68v12H28z%22%20fill%3D%22%23263e51%22%20stroke%3D%22%23f1c356%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M51%20120h22v4H51z%22%20fill%3D%22%23f6d77c%22%2F%3E%3Cpath%20d%3D%22m62%2030%205%2010%2011%201-8%208%202%2011-10-6-10%206%202-11-8-8%2011-1z%22%20fill%3D%22%23fff1ae%22%20stroke%3D%22%23a8771b%22%20stroke-width%3D%221.4%22%2F%3E%3Cpath%20d%3D%22m42%2025%203%2024%22%20stroke%3D%22%23fff9d0%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");background-size:106px 112px}
