:root { color: #20201d; background: #f7f6f2; font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { appearance: none; background: #20201d; border: 1px solid #20201d; border-radius: .35rem; color: white; cursor: pointer; font-weight: 700; min-height: 2.75rem; padding: .65rem 1rem; }
button:hover { background: #393934; }
button:focus-visible, input:focus-visible { outline: 3px solid #4677bb; outline-offset: 3px; }
button[disabled], input[disabled] { cursor: wait; opacity: .62; }
.page { margin: 0 auto; max-width: 720px; min-height: 100vh; padding: clamp(2rem, 7vw, 5.5rem) 1.25rem; }
.card { background: #fff; border: 1px solid #deddd7; border-radius: .6rem; box-shadow: 0 .35rem 1.5rem #20201d0c; padding: clamp(1.5rem, 5vw, 3rem); }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 7vw, 3.3rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.04; margin: 0 0 1rem; }
p { font-size: 1.05rem; line-height: 1.58; margin: 0; max-width: 38rem; }
.action { margin-top: 1.5rem; }
.notice { color: #6c341e; margin-top: 1rem; }
.slots, .rules { display: grid; gap: 1rem; margin-top: 2rem; }
.slot, .rule { border-top: 1px solid #deddd7; padding-top: 1rem; }
.slot-title { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.reference, .preview { background: #f1f0eb; display: block; height: auto; max-height: 25rem; object-fit: cover; width: 100%; }
.reference-window { aspect-ratio: 1 / 2; overflow: hidden; width: 100%; }
.reference-window .reference { height: 100%; max-height: none; max-width: none; object-fit: fill; width: 300%; }
.reference-window.front .reference { transform: translateX(0); }
.reference-window.side .reference { transform: translateX(-33.333%); }
.reference-window.back .reference { transform: translateX(-66.666%); }
.caption { display: block; font-size: .9rem; margin: .5rem 0 .75rem; }
.accepted { color: #155c38; font-weight: 700; }
.checking { font-weight: 700; }
.file-input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.file-label { background: #20201d; border: 1px solid #20201d; border-radius: .35rem; color: white; cursor: pointer; display: inline-block; font-weight: 700; min-height: 2.75rem; padding: .65rem 1rem; }
.file-label[aria-disabled="true"] { cursor: wait; opacity: .62; }
.confirmation { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.secondary { background: white; color: #20201d; }
.secondary:hover { background: #f1f0eb; }
.rule { align-items: center; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(7rem, 12rem); }
.rule img { height: 7rem; object-fit: cover; width: 100%; }
.rule .reference-window .reference { height: 100%; }
@media (min-width: 620px) { .slots { grid-template-columns: repeat(3, 1fr); } .slot { border: 0; padding-top: 0; } }
@media (max-width: 420px) { .rule { grid-template-columns: 1fr; } .rule img { max-width: 14rem; } }
