:root{--ink:#102c37;--teal:#097c8e;--mint:#79eadb;--line:#d6e4e8}
body{background:#edf4f6;color:var(--ink);font-family:"IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif}
.masthead{background:#091f29;color:white;padding:0 max(5vw,20px) 65px;overflow:hidden;background-image:radial-gradient(ellipse at 21% 60%,#144d5b,transparent 52%)}
.brandbar{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff1f;max-width:1180px;margin:auto}
.brand{width:145px;height:53px;overflow:hidden;background:white;border-radius:8px;display:block}.brand img{width:100%;height:100%;object-fit:cover;object-position:50% 51%;mix-blend-mode:multiply}
.brandbar span{color:#a8d5d9;font-size:.84rem}.hero{min-height:310px;max-width:1180px;margin:auto;display:grid;grid-template-columns:1.15fr 1fr;gap:20px;align-items:center}
.hero h1{font-size:clamp(2rem,4.6vw,3.9rem);line-height:1.18;letter-spacing:-.035em;max-width:610px;margin:0 0 15px}.hero p{color:#a8cbd1;max-width:40ch}
.scene{height:280px;display:grid;place-items:center;perspective:850px;position:relative;isolation:isolate}
.plinth{width:210px;height:190px;position:relative;transform:rotateX(56deg) rotateZ(-35deg);transform-style:preserve-3d;background:repeating-linear-gradient(90deg,#66d0d52c 0 1px,transparent 1px 17px),repeating-linear-gradient(0deg,#66d0d52c 0 1px,transparent 1px 17px),#154654;border:1px solid #7bddc8;box-shadow:0 12px 0 #0a3542,0 13px 0 #2a7f89,0 38px 60px #0009;animation:build-in .9s ease-out both}
.tower{position:absolute;width:49px;height:49px;transform-style:preserve-3d;transform:translateZ(var(--height));background:linear-gradient(135deg,#d4faf0,#53aeb7);border:1px solid #b9f9ed}
.tower::before,.tower::after{content:"";position:absolute;inset-inline-start:0;width:100%;height:var(--height);background:repeating-linear-gradient(0deg,#bfe8ef36 0 1px,transparent 1px 13px),repeating-linear-gradient(90deg,#ceeee93f 0 1px,transparent 1px 12px),linear-gradient(135deg,#388998,#194a59);border:1px solid #77bac187}
.tower::before{top:100%;transform-origin:top;transform:rotateX(-90deg)}.tower::after{top:0;left:100%;right:auto;transform-origin:top left;transform:rotateX(-90deg) rotateY(90deg);background-color:#143e50}
.plinth{direction:ltr}.tower{direction:ltr}.tower.one{--height:82px;left:33px;top:90px}.tower.two{--height:139px;left:91px;top:54px}.tower.three{--height:102px;left:148px;top:24px}
@keyframes build-in{from{opacity:0;transform:translateY(20px) rotateX(56deg) rotateZ(-49deg)}}
main{width:min(1180px,92%);margin:-39px auto 42px;position:relative}.panel{border-color:var(--line);border-radius:18px;padding:clamp(16px,3vw,28px);box-shadow:0 12px 34px #183d4810}
.upload-heading{margin-bottom:17px}.upload-heading p{margin:4px 0 0;color:#536d77}.upload form{padding:14px;border:1px dashed #8eb6be;background:#f4fafa;border-radius:12px}
.upload input[type=file]{background:#fff;border-color:#c7dde2;min-width:0}.upload input::file-selector-button{border:0;background:#e3f2f4;color:#115868;border-radius:6px;padding:6px 9px;margin-inline-end:8px;cursor:pointer}
button{background:#08758a;border-radius:9px;font-weight:600}button:hover:not(:disabled){background:#075969}.secondary{background:#234754}.word-note:hover:not(:disabled){background:#cfe9ed}.word-note{background:#eaf4f6}
.options summary{cursor:pointer;font-weight:600}.options label{margin:12px 0}.notice{color:#516c75;font-size:.86rem}.semantic-option{display:flex;gap:10px;align-items:start;margin-top:15px;font-size:.89rem}.semantic-option input{width:auto;accent-color:var(--teal);margin-top:.45em}
#word-list li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px}#word-list li>button:only-child{grid-column:1/-1}#word-list li>input[type=checkbox]{width:19px;height:19px;accent-color:var(--teal)}#word-list li>input:not([type=checkbox]){grid-column:2;margin:0}.reference{padding:0 4px}.reference small{font-size:.83rem}
:focus-visible{outline:3px solid #25a8bb;outline-offset:3px}
@media(max-width:670px){.hero{grid-template-columns:1fr;gap:0;padding-top:24px}.scene{height:195px}.plinth{scale:.72}.brandbar{height:64px}.upload form{display:grid}.upload form label{min-width:0}.masthead{padding-bottom:54px}}
@media(prefers-reduced-motion:reduce){.plinth{animation:none}}
