.year-word-modal{position:fixed;inset:0;z-index:1600;display:grid;place-items:center;padding:24px;background:rgba(20,21,18,.76);backdrop-filter:blur(12px)}
.year-word-modal.hidden{display:none}.year-word-dialog{position:relative;width:min(1180px,96vw);height:min(850px,94vh);overflow:hidden;border:1px solid rgba(224,207,178,.22);border-radius:28px;background:#141a17;color:#f2eadc;box-shadow:0 30px 90px rgba(0,0,0,.42);display:grid;grid-template-rows:auto 1fr auto}
.year-word-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:26px 30px 20px;border-bottom:1px solid rgba(224,207,178,.15)}.year-word-dialog>header span,.year-word-preview-heading>span,.year-word-dialog .step{font:600 11px/1.4 system-ui;letter-spacing:.22em;color:#c49b67}.year-word-dialog h2{margin:4px 0 2px;font:600 30px/1.2 "Source Han Serif CN",serif}.year-word-dialog h3{margin:5px 0 12px;font:600 19px/1.35 "Source Han Serif CN",serif}.year-word-dialog p{margin:0;color:#a99f90}.year-word-close{width:42px;height:42px;border:1px solid rgba(232,218,194,.25);border-radius:50%;background:transparent;color:#eee4d3;font-size:26px}
.year-word-body{min-height:0;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(410px,.92fr)}.year-word-body>main{overflow:auto;padding:24px 30px}.year-word-body>main>section{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid rgba(226,211,186,.12)}.year-word-body>aside{min-width:0;padding:24px;background:#0d1210;border-left:1px solid rgba(226,211,186,.12);display:flex;flex-direction:column}.year-word-preview-heading h3{font-size:25px;margin-bottom:4px}.year-word-preview-heading p{min-height:22px}
.year-word-modes,.year-word-templates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.year-word-modes button,.year-word-templates button,.year-word-suggestions button{position:relative;text-align:left;border:1px solid rgba(221,202,170,.24);border-radius:14px;background:rgba(255,255,255,.025);color:#eee4d4;padding:14px;transition:background .18s,border-color .18s}.year-word-modes button:hover,.year-word-templates button:hover,.year-word-suggestions button:hover{background:rgba(216,188,142,.07)}.year-word-modes button.active,.year-word-templates button.active,.year-word-suggestions button.active{border-color:#c69d65;background:linear-gradient(135deg,rgba(143,111,68,.24),rgba(88,93,71,.18))}.year-word-modes strong,.year-word-modes small,.year-word-templates strong,.year-word-templates small{display:block}.year-word-modes small,.year-word-templates small{margin-top:4px;color:#a99f90;line-height:1.45}.year-word-templates span{font:600 9px system-ui;letter-spacing:.15em;color:#b89161}.year-word-templates i{position:absolute;right:11px;top:10px;color:#d4b27e;font-style:normal}
#yearWordStory{box-sizing:border-box;width:100%;height:112px;resize:vertical;border:1px solid rgba(221,202,170,.24);border-radius:14px;background:#0d1310;color:#f3eadb;padding:13px 15px;font:14px/1.7 system-ui;outline:none}#yearWordStory:focus,.year-word-manual input:focus{border-color:#bd9865;box-shadow:0 0 0 3px rgba(189,152,101,.1)}.year-word-story-meta{display:flex;justify-content:space-between;margin:7px 2px 11px;color:#8f887c}.year-word-keywords{display:flex;flex-wrap:wrap;gap:7px}.year-word-keywords button{border:1px solid rgba(221,202,170,.18);border-radius:999px;background:transparent;color:#bdb4a6;padding:6px 11px}.year-word-keywords button.active{border-color:#b99260;background:#3b3528;color:#f3e7d3}.year-word-dialog button.secondary{margin-top:13px;border:1px solid #a8875d;border-radius:11px;background:transparent;color:#ecdcbf;padding:10px 18px}
.year-word-suggestions{display:grid;gap:9px}.year-word-suggestions>p{padding:20px;border:1px dashed rgba(221,202,170,.2);border-radius:14px;text-align:center}.year-word-suggestions button{display:grid;grid-template-columns:60px 1fr;align-items:center}.year-word-suggestions b{font:600 44px/1 "Source Han Serif CN",serif;color:#e6cfaa}.year-word-suggestions span,.year-word-suggestions strong,.year-word-suggestions small{display:block}.year-word-suggestions small{margin-top:5px;color:#a99f90}.year-word-manual{display:flex;align-items:center;gap:12px;margin-top:13px;color:#b9af9e}.year-word-manual input{width:78px;height:44px;border:1px solid rgba(221,202,170,.24);border-radius:11px;background:#0d1310;color:#f0dfc4;text-align:center;font:600 25px "Source Han Serif CN",serif;outline:none}.field-error{min-height:18px!important;margin-top:6px!important;color:#d98c78!important;font-size:12px}
.year-word-preview{min-height:0;margin-top:18px;flex:1;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(230,214,188,.13);border-radius:19px;background:radial-gradient(circle at 65% 32%,#34342d,#121815 60%,#080b09)}.year-word-placeholder{text-align:center}.year-word-placeholder strong{display:block;font:700 190px/1 "Source Han Serif CN",serif;color:#d5c09b;opacity:.86}.year-word-placeholder small{letter-spacing:.2em;color:#8f8678}.year-word-compare{width:100%;height:100%;display:grid;grid-template-columns:32% 68%;gap:1px;background:#3a362f}.year-word-compare figure{position:relative;margin:0;overflow:hidden;background:#111}.year-word-compare img{width:100%;height:100%;object-fit:cover}.year-word-compare figcaption{position:absolute;left:10px;bottom:10px;padding:5px 8px;border-radius:999px;background:rgba(0,0,0,.62);font-size:11px}.year-word-preview.landscape{aspect-ratio:4/3;flex:none}.year-word-orientation,.year-word-result-actions{display:flex;gap:8px;margin-top:12px}.year-word-orientation button,.year-word-result-actions button{flex:1;border:1px solid rgba(221,202,170,.24);border-radius:10px;background:transparent;color:#ddd1bd;padding:9px}.year-word-orientation button.active,.year-word-result-actions button.primary{background:#8d724c;color:#fff4e3;border-color:#8d724c}.year-word-result-actions{flex-wrap:wrap}.year-word-result-actions button{min-width:29%}
.year-word-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 30px;border-top:1px solid rgba(224,207,178,.14);background:#111714}.year-word-dialog>footer p{color:#d6cbbb}.year-word-dialog>footer p.error{color:#e28f7c}.year-word-dialog>footer small{display:block;margin-top:4px;color:#857e72}.year-word-dialog>footer>button{min-width:250px;border:0;border-radius:14px;background:#9a7b50;color:#fff7e8;padding:11px 24px;font:600 16px system-ui}.year-word-dialog>footer>button small{color:#ead9bd;font-size:11px}.year-word-dialog>footer>button:disabled{opacity:.42}
.year-word-confirm{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:rgba(6,8,7,.78);backdrop-filter:blur(8px)}.year-word-confirm.hidden,.year-word-orientation.hidden,.year-word-result-actions.hidden{display:none}.year-word-confirm>div{width:min(420px,86%);padding:28px;border:1px solid rgba(224,207,178,.25);border-radius:20px;background:#1a211d;box-shadow:0 20px 60px rgba(0,0,0,.4)}.year-word-confirm>div>span{font:600 10px system-ui;letter-spacing:.18em;color:#c99f69}.year-word-confirm dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}.year-word-confirm dl div{padding:12px;border:1px solid rgba(224,207,178,.13);border-radius:11px}.year-word-confirm dt{font-size:12px;color:#938a7c}.year-word-confirm dd{margin:4px 0 0;font-weight:600}.year-word-confirm>div>div{display:flex;gap:9px}.year-word-confirm button{flex:1;border:1px solid rgba(224,207,178,.22);border-radius:10px;background:transparent;color:#e9decb;padding:10px}.year-word-confirm button.primary{background:#94764d}
@media(max-width:900px){.year-word-modal{padding:0}.year-word-dialog{width:100vw;height:100vh;border-radius:0}.year-word-body{grid-template-columns:1fr}.year-word-body>aside{display:none}.year-word-dialog>header{padding:18px 20px}.year-word-body>main{padding:20px}.year-word-dialog>footer{padding:14px 20px}.year-word-dialog>footer>button{min-width:210px}}
