:root{--ink:#182749;--blue:#253f87;--paper:#fcfcf9;--line:#cbd1d4;--mist:#edf1f5;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--paper);scroll-behavior:smooth}
*{box-sizing:border-box}
body{margin:0}
.wrap{width:min(1180px,90%);margin:auto}
header,footer,nav,.brand,.total{display:flex;align-items:center;justify-content:space-between}
header{height:76px}
a{color:inherit}
.brand,nav a,.button{text-decoration:none}
.brand{font-size:21px;font-weight:800;letter-spacing:-1px;gap:.5em}
.brand i{display:inline-block;width:20px;height:24px;border:4px solid}
nav{gap:24px;font-size:14px}
nav b{padding:3px 7px;background:var(--mist);border-radius:4px;font-size:12px}
.hero{background:#dbe6ef;overflow:hidden}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4%;min-height:390px;padding:38px 0}
.place{font-size:14px;margin:0}
h1,h2,p{margin-top:0}
h1{font-family:"Arial Narrow",Arial,sans-serif;font-size:clamp(54px,6.4vw,94px);line-height:.94;letter-spacing:-.066em;margin:18px 0 20px}
.hero p,.intro,.note,.terms,dialog p{line-height:1.5}
.button{display:inline-block;background:var(--blue);border:0;border-radius:5px;color:white;padding:13px 21px;font:600 15px/1.3 Inter,Arial,sans-serif;cursor:pointer}
.button:disabled{background:#586577;cursor:default}
.gallery{position:relative;height:305px;width:min(100%,500px);margin:auto;isolation:isolate}
.frame{position:absolute;padding:4.5%;border:7px ridge;background:#faf8f1;box-shadow:6px 8px 10px #31435c32,2px 2px 3px #19273c4d}
.white{width:44%;height:86%;left:5%;top:3%;border-color:#fffdf7;transform:rotate(-7deg)}
.black{width:52%;height:77%;right:2%;bottom:0;border-color:#32373c;transform:rotate(5deg)}
.poster{height:100%;width:100%}
.rings{background:repeating-radial-gradient(ellipse at 50% 103%,#e9b85e 0 10%,#f2d897 10% 15%,#6b7a89 15% 20%,#e0c782 20% 24%)}
.horizon{background:radial-gradient(circle at 64% 27%,#f3c06d 0 10%,transparent 10.5%),radial-gradient(ellipse at 0% 132%,#748eab 0 55%,transparent 55.5%),radial-gradient(ellipse at 95% 105%,#384e7e 0 47%,transparent 47.5%),#c4d6e2}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.51fr);align-items:start;gap:6%;padding:52px 0}
h2{font-size:clamp(25px,3vw,37px);letter-spacing:-.045em;line-height:1.05;margin-bottom:12px}
.intro,.terms,.note,#empty,dialog p{color:#475571}
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
th,td{text-align:left;padding:10px 4px;border-bottom:1px solid var(--line)}
thead th{font-weight:500;font-size:14px}
tbody th{font-size:20px}
input{font:inherit;text-align:center;width:clamp(55px,7vw,100px);min-height:42px;border-radius:4px;background:#fff;border:1px solid #aab4bd;color:var(--ink)}
.dot{display:inline-block;width:.72em;height:.72em;border-radius:50%;margin-right:5px;border:1px solid #9198a0}
.dark{background:#1d1d1d}.light{background:white}
.note{font-size:14px;margin:16px 0}
.note strong{color:var(--ink)}
aside{background:var(--mist);padding:28px;border-radius:7px}
aside h2,dialog h2{font-size:26px}
#empty,.terms{font-size:14px}
#lines{padding:0;list-style:none}
#lines li{display:flex;justify-content:space-between;gap:8px;margin:11px 0;font-size:14px}
#lines strong{white-space:nowrap}
.total{border-top:1px solid var(--line);padding:17px 0 8px}
.total strong{font-size:24px}
aside .button{width:100%}
footer{border-top:1px solid var(--line);padding:20px 0 28px;font-size:13px}
dialog{width:min(470px,92vw);border:0;border-radius:8px;padding:28px;color:var(--ink)}
dialog::backdrop{background:#17264188}
.close{float:right;border:0;background:none;font-size:26px;cursor:pointer}
textarea{font:inherit;width:100%;height:155px;padding:12px;resize:vertical;margin-bottom:16px}
#chats{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
#chats .button{flex:1 0 auto;text-align:center}
#copy{color:var(--blue);background:var(--mist)}
#status:empty,#chats:empty{display:none}
#status{margin:10px 0 0}
:focus-visible{outline:3px solid #b15b16;outline-offset:3px}
@media(max-width:760px){.workspace{grid-template-columns:1fr;gap:24px;padding:32px 0}.gallery{height:230px}aside{padding:22px} }
@media(max-width:540px){header{height:60px}nav{gap:12px}.brand{font-size:17px}.hero-inner{grid-template-columns:1fr;padding:26px 0;gap:16px}.gallery{width:85%;height:205px}h1{font-size:58px}.hero p{margin-bottom:12px}.place{font-size:13px}thead th{font-size:12px}tbody th{font-size:16px}th,td{padding:9px 2px}.intro{font-size:14px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}
