*{box-sizing:border-box}html{min-height:100%;background:#101622;color:#f5eddc;font:17px/1.5 'Segoe UI',sans-serif}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 80% 28%,#253344 0,transparent 46%),repeating-linear-gradient(90deg,transparent 0 79px,#ffffff04 80px)}header,main{width:min(100% - 36px,880px);margin:auto}header{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid #54606b}header b,.k{letter-spacing:.17em;font-size:.8rem;color:#e4bc72}main{padding:clamp(32px,7vh,70px) 0}h1,h2{font-family:Georgia,serif;font-weight:400;line-height:1.04;margin:.25em 0}h1{font-size:clamp(3.5rem,11vw,7rem)}h2{font-size:clamp(2.4rem,7vw,4.4rem)}p{max-width:58ch;color:#d4d9dc}.hero{display:grid;grid-template-columns:1fr 32%;align-items:center;gap:18px}.gem{position:relative;aspect-ratio:1;background:radial-gradient(ellipse at 50% 70%,#72dbcb33,transparent 60%);display:grid;place-items:center;border:1px solid #64757a;border-radius:50% 50% 2px 2px;box-shadow:inset 0 -10px #34404a}.jewel{width:68%;aspect-ratio:1.55;clip-path:polygon(0 30%,23% 0,77% 0,100% 30%,50% 100%);background:conic-gradient(from 27deg at 50% 30%,#93fff1 0 15%,#4e9baf 15% 33%,#226373 33% 47%,#a0e1da 47% 63%,#4a9f9d 63% 76%,#d5fff3 76% 91%,#6cc9c1 91%)}.panel,dialog{background:#1d2733;border:1px solid #53606a;padding:clamp(18px,4vw,32px);border-radius:8px;margin-top:24px}dialog{color:inherit;max-width:min(560px,92vw);margin:auto}dialog::backdrop{background:#080d16cc}.line,.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.line{justify-content:space-between;border-bottom:1px solid #424d58;padding:10px 0}.actions{margin-top:18px}button,input,select{font:inherit;border-radius:5px;padding:11px 16px}button{background:#eac27b;color:#18202a;border:1px solid transparent;font-weight:650;cursor:pointer}button:hover{filter:brightness(1.13)}header button,.secondary{background:transparent;border:1px solid #71808a;color:#f0ebde}input,select{background:#121b26;color:#fff;border:1px solid #6a7680;max-width:100%}label{display:grid;gap:5px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:18px 0}.error{color:#ffb29e}.big{font:2rem Georgia,serif}.muted{color:#b8c2c9}.alarm{color:#ffaf97}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #97ebe1;outline-offset:3px}@media(max-width:520px){.hero{grid-template-columns:1fr 26%}.panel{margin-top:16px}.actions button{flex:1}.fields{grid-template-columns:1fr 1fr}}
/* Museum after dark */
:root{color-scheme:dark;--paper:#fff0cc;--gold:#e3bd72;--mint:#a3ead4}
html{background:#06191b;color:var(--paper)}
body{background:linear-gradient(180deg,#05191bdb,#06191bf2 72%),url("art/museum.webp") center top/cover fixed}
header,main{width:min(calc(100% - 36px),1080px)}
header{border-color:#b29b6266;padding:16px 0}
header b{display:flex;align-items:center;gap:10px;font-size:.9rem;color:var(--paper)}
.brandmark{color:var(--mint);font:2.1rem/1 Georgia,serif}
main{padding:clamp(18px,3vw,36px) 0 50px}
.hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:235px;overflow:hidden;padding:clamp(22px,4.5vw,60px);border:1px solid #c2a0668c;border-radius:3px;background:linear-gradient(90deg,#041616e6 0%,#041616a1 41%,transparent 72%),url("art/museum.webp") 70% 50%/cover}
.hero:has(h1){min-height:clamp(335px,48vh,530px)}
.hero>div{max-width:58%}
.hero .k{color:#f3d999;font-weight:700;letter-spacing:.14em}
.hero p{max-width:31ch;color:#f0eadc;margin-bottom:0}
.hero h1{font-size:clamp(4.2rem,9vw,7.7rem);letter-spacing:-.065em;line-height:.8;margin:.2em 0}
.hero h1 em{font-weight:400;color:var(--gold)}
.hero h2{overflow-wrap:anywhere}
.hero p+.k{display:inline-block;margin-top:15px}
.panel,dialog{background:#10282b;border-color:#597575;border-radius:3px}
dialog{max-height:85vh;overflow:auto}
.launch{margin:0;border-top:0;background:#0d2628;padding:clamp(18px,3vw,34px)}
.launch h2{font-size:clamp(1.6rem,3.2vw,2.4rem)}
.launch .actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.launch button{text-align:left;padding:14px 18px;line-height:1.25;font-size:1.15rem}
.launch small{display:block;font-size:.85rem;margin-top:5px;font-weight:400}
button{border-radius:3px;background:#f0cf8c;color:#18211f}
.secondary,header button{color:#e6f5ed;background:#163536;border-color:#62827b}
input,select{background:#092326;color:#f0f6ef}
.line{border-color:#3d5a58}
.k{color:var(--gold)}
main>.k{margin-bottom:10px}
.big{color:var(--mint)}
summary{cursor:pointer}
input{min-width:0;width:100%}
@media(max-width:600px){
 header,main{width:calc(100% - 24px)}
 .hero{padding:20px;min-height:220px;background-position:67% 50%}
 .hero:has(h1){min-height:320px;background-position:62% 50%}
 .hero>div{max-width:83%}
 .hero p{max-width:22ch;text-shadow:0 1px 5px #041619}
 .hero h1{font-size:4.8rem}
 .hero .k{font-size:.75rem}
 .launch .actions{grid-template-columns:1fr}
 .panel .actions button{min-width:min(150px,100%)}
}
.room-banner {
 position:relative;
 isolation:isolate;
 display:grid;
 align-items:center;
 min-height:clamp(235px,25vw,330px);
 overflow:hidden;
 background:#092326;
 border:1px solid #a58958;
 border-radius:3px;
}
.room-banner img {
 position:absolute;
 z-index:-2;
 right:0;
 width:72%;
 height:100%;
 object-fit:cover;
 object-position:65% center;
}
.room-banner::before {
 content:"";
 position:absolute;
 inset:0;
 z-index:-1;
 background:linear-gradient(90deg,#092326 24%,#092326ed 36%,#09232670 54%,transparent 75%);
}
.room-banner>div {max-width:54%;padding:clamp(20px,4vw,48px)}
.room-banner h2 {font-size:clamp(2rem,5.3vw,4.2rem);overflow-wrap:anywhere}
.room-banner p {max-width:32ch}
@media(max-width:650px) {
 .room-banner {display:block;min-height:0}
 .room-banner img {display:block;position:static;width:100%;height:auto;aspect-ratio:2.65;object-fit:cover}
 .room-banner::before {display:none}
 .room-banner>div {max-width:100%;padding:14px 18px 18px}
 .room-banner p {max-width:none;margin:8px 0}
}
.room-banner .room-rule {padding:8px 12px;border-left:3px solid var(--gold);background:#092326de;color:#fff1ce;max-width:39ch}

/* Illustrated rules booklet */
#help {padding:0;width:min(40rem,94vw);max-width:94vw;max-height:88vh;max-height:88dvh;overflow:auto;overscroll-behavior:contain;background:#10282b;color:#f9efdc;border:1px solid #ab9364}
.guide-bar {position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#10282b;border-bottom:1px solid #8d7853;padding:.3rem 1rem}
.guide-bar span {font-size:.75rem;letter-spacing:.15em;color:#efce8e}
.guide-bar button {min-height:44px;padding:.4rem .8rem;background:transparent;color:#fae8c5;border:0;text-decoration:underline;text-underline-offset:3px}
.guide-cover {padding:clamp(4.5rem,14vw,8rem) 1.3rem 1.2rem;background:linear-gradient(0deg,#0a2124 2%,#091c21dd 38%,#10232722 95%),url("art/porzellansaal.webp") center 40%/cover}
#help .guide-cover h2 {font:normal clamp(2rem,6vw,3.25rem)/1.1 Georgia,serif;color:#ffe1aa;margin:0}
.guide-cover p {margin:.6rem 0 0;max-width:45ch}
.guide-body {padding:.3rem clamp(1rem,4vw,1.7rem) 1.3rem}
#help h3 {font:normal 1.45rem/1.2 Georgia,serif;color:#f0d59b;margin:1.25rem 0 .5rem}
.guide-choices {margin:.8rem 0}
.guide-choices div {padding:.65rem .8rem;border-left:3px solid #a1d2bf;background:#193637;margin:.32rem 0}
.guide-choices dt {font-weight:bold;color:#ffe1aa}
.guide-choices dd {margin:.2rem 0 0}
.guide-tip {color:#d6ebde}
#help details {margin:.5rem 0;padding:0;background:#123033;border:1px solid #456262}
#help summary {padding:.8rem;cursor:pointer;color:#ffe1aa;line-height:1.35}
#help details img {display:block;width:100%;height:clamp(6rem,25vw,9rem);object-fit:cover}
#help details p {margin:.7rem .85rem 1rem}
.guide-body form {margin-top:1.25rem}

body { padding-bottom: calc(3.25rem + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
.legal {
  position: fixed; inset: auto 0 0; z-index: 10;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(90deg, #082124ee, #102a2bd9, #082124ee),
              url("art/museum.webp") center 60% / cover;
  border-top: 1px solid #ad9765; color: #f7ecda;
}
.legal::before {
  content: ""; position: absolute; top: -7px; left: 50%;
  width: 112px; height: 13px; transform: translateX(-50%); pointer-events: none;
  background: url("art/footer-ornament.svg") center / contain no-repeat;
}
.legal nav { display: flex; align-items: center; justify-content: center; gap: .65rem; }
.legal a { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 .4rem;
  color: inherit; text-decoration: underline; text-underline-offset: .22em; }
.legal span { color: #d6bb83; }
.legal a:focus-visible { outline: 2px solid #a7ead9; outline-offset: -3px; }
main > a { color: inherit; }
