:root {
    color-scheme: light;
    color: #18302c;
    background: #f1f6f3;
    font: 1rem/1.55 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #124e43; }

.site-header {
    background: #123b32;
    padding: 1rem max(1.25rem, calc((100vw - 42rem) / 2));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
}

.site-header a {
    color: #fff;
}
.site-header .site-brand {
    font-size: 1.25rem;
    font-weight: 750;
    text-decoration: none;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.skip-link { position: absolute; left: -100vw; }
.skip-link:focus { left: 1rem; top: 1rem; padding: .5rem; background: white; z-index: 2; }
.inbox-item { border-bottom: 1px solid #cdded5; padding: .55rem 0 1rem; overflow-wrap: anywhere; }
.inbox-item form { margin-top: .75rem; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(8rem,1fr)); }
fieldset, select { min-width: 0; }

main {
    margin: clamp(1rem, 5vw, 3rem) auto;
    padding: clamp(1rem, 5vw, 2.5rem);
    width: min(42rem, calc(100% - 2rem));
    background: #fff;
    border: 1px solid #cdded5;
    border-radius: .65rem;
}

h1 { font-size: clamp(1.65rem, 5vw, 2.4rem); line-height: 1.15; margin: 0 0 1.25rem; }
p { max-width: 57ch; }
form { max-width: 32rem; }
label { display: block; font-weight: 600; margin-bottom: 1rem; }

input:not([type="hidden"], [type="checkbox"]), select {
    display: block;
    width: 100%;
    margin-top: .3rem;
    padding: .6rem;
    border: 1px solid #78958b;
    border-radius: .25rem;
    font: inherit;
}

fieldset { margin: 0 0 1rem; border: 1px solid #cdded5; }
fieldset label:last-child { margin-bottom: 0; }

button, .button {
    display: inline-block;
    border: 1px solid #124e43;
    border-radius: .3rem;
    padding: .55rem 1rem;
    margin: 0 .35rem .35rem 0;
    background: #124e43;
    color: white;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
}

button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #986a16; outline-offset: 3px; }
.secondary { background: transparent; color: #124e43; }
.logout { margin-top: 1.25rem; }
.message, .success { padding: .65rem; border-left: .25rem solid; overflow-wrap: anywhere; }
.message { background: #fceeee; color: #7a2923; }
.success { background: #e7f4ed; color: #124e43; }
dl { padding: .75rem; background: #f1f6f3; }
dl div { padding: .25rem; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
.catalog-image { display: block; max-width: min(100%, 20rem); max-height: 20rem; object-fit: contain; }
details { border: 1px solid #cdded5; border-radius: .3rem; margin: .75rem 0; padding: .65rem .85rem; }
summary { cursor: pointer; font-weight: 650; }
.campaign-image { margin-block: 1rem; }
.campaign-hint { font: 700 1.7rem/1.4 ui-monospace, monospace; letter-spacing: .18em; }
.campaign-result { border: 1px solid #cdded5; padding: 1rem 1.2rem; border-radius: .45rem; }
.campaign-wheel { width: min(12rem, 65vw); aspect-ratio: 1; margin: 1rem 0; border-radius: 50%; border: .45rem solid #123b32;
    background: conic-gradient(#f5d679 0 45deg,#d5ebe1 45deg 90deg,#a5c8b6 90deg 135deg,#e6ad64 135deg 180deg,
    #f5d679 180deg 225deg,#d5ebe1 225deg 270deg,#a5c8b6 270deg 315deg,#e6ad64 315deg); }
.campaign-playing .campaign-wheel { animation: campaign-spin .425s ease-out both; }
.campaign-dice { display: grid; place-items: center; background: #e5efe8; width: 5rem; height: 5rem;
    border: 1px solid #83a092; border-radius: .65rem; margin: 1rem .2rem; font-size: 4rem; line-height: 1; }
.campaign-playing .campaign-dice { animation: campaign-roll .425s ease-out both; }
.campaign-scratch { display: block; width: 100%; max-width: 480px; height: auto; touch-action: none;
    background: #e3efe8; margin: 1rem 0; border-radius: .4rem; }
.campaign-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(7rem,1fr)); gap: .65rem; }
.campaign-choice { min-height: 4.4rem; margin: 0; }
.choice-5 { border: 4px double #d3e3da; }
.choice-6,.choice-7 { border-top: .55rem solid #dfbd76; }
.choice-8 { border-radius: 45%; }
.campaign-playing .campaign-selected { animation: campaign-reveal .425s ease-in-out both; }
@keyframes campaign-spin { to { transform: rotate(570deg); } }
@keyframes campaign-roll { 60% { transform: translateY(-1rem) rotate(75deg); } to { transform: rotate(165deg); } }
@keyframes campaign-reveal { 60% { transform: translateY(-.4rem) scale(1.05); } to { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
    .campaign-playing .campaign-wheel,.campaign-playing .campaign-dice,.campaign-playing .campaign-selected { animation: none; }
}
details form { margin-top: .75rem; }
