@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');
:root{--ink:#233e36;--muted:#809087;--green:#285c49;--paper:#f6f7f1;--line:#e1e7dd;--gold:#e8bc70}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans SC',system-ui,sans-serif;font-size:14px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}header{height:88px;padding:0 5%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#fbfcf8}.brand{font-size:27px;font-weight:900;letter-spacing:3px}.brand span{color:#b18a4a}.brand small{display:inline-block;font-size:9px;letter-spacing:2px;font-weight:500;margin-left:15px;color:var(--muted)}nav,#account{display:flex;align-items:center;gap:12px}nav{color:var(--muted);font-size:12px}.online-dot,.live b{height:6px;width:6px;background:#619c6d;border-radius:50%;display:inline-block}#account{margin-left:22px;color:var(--ink)}.avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;background:#e4ebdf;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.login{border:1px solid var(--line);padding:9px 20px;border-radius:8px}main{max-width:1360px;margin:auto;padding:0 5%}.hero{display:flex;justify-content:space-between;align-items:center;padding:55px 0 45px;min-height:355px}.eyebrow{font-size:10px;letter-spacing:2px;color:#879987;font-weight:600}.hero .eyebrow{letter-spacing:3px;font-size:12px}.hero h1{font-size:46px;line-height:1.3;letter-spacing:1px;margin:17px 0;font-weight:900}.hero h1 em{color:#548168;font-style:normal}.hero p{color:#879085;line-height:1.9;font-size:13px}.hero-tags{display:flex;gap:22px;margin-top:22px;font-size:11px;color:#6e8273}.hero-art{position:relative;width:390px;height:280px;isolation:isolate}.orbit{position:absolute;inset:25px 8px 0;border-radius:50%;background:#e9eddf;transform:rotate(-12deg);border:1px dashed #c5d3c0}.building{position:absolute;bottom:65px;border:8px solid #fff6df;box-shadow:12px 12px 0 #ccd7c2;transform:skewY(-8deg);display:flex;flex-wrap:wrap;gap:12px;padding:12px;align-content:flex-start}.building i{width:17px;height:24px;background:#89a48c;border-radius:2px}.b1{left:64px;width:76px;height:90px;background:#bacfb8}.b2{left:156px;width:86px;height:162px;background:#eac786;border-color:#fbe6b9}.b2 i{background:#ab925f}.b3{left:258px;width:64px;height:113px;background:#99b4a0}.die{position:absolute;font-size:88px;bottom:25px;left:105px;color:#fff;background:#3e6852;width:80px;height:85px;line-height:74px;border-radius:16px;box-shadow:7px 9px 0 #c2cec0;transform:rotate(-14deg)}.coin{position:absolute;background:#e9bb61;border:5px solid #f7d995;color:#967038;border-radius:50%;width:49px;height:49px;text-align:center;line-height:39px;font-size:23px;font-weight:800;box-shadow:3px 4px 0 #c7a258}.c1{right:39px;top:23px;transform:rotate(20deg)}.c2{right:50px;bottom:41px;transform:rotate(-15deg)}.art-label{position:absolute;bottom:0;left:120px;font-size:9px;letter-spacing:3px;color:#81937e}.lobby-grid{display:grid;grid-template-columns:1fr 350px;gap:24px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px}.section-head{display:flex;justify-content:space-between;align-items:center}.section-head h2,h2{font-size:20px;margin:6px 0 16px}.badge{background:#edf2e8;color:#607e63;border-radius:5px;padding:3px 8px;font-size:11px;font-weight:500;margin-left:5px}.live{font-size:11px;color:#81917e}.live b{margin-right:5px}.filters{display:flex;gap:10px;border-bottom:1px solid var(--line);padding:8px 0 19px}.filter{background:transparent;color:#839080;font-size:12px;border-radius:6px;padding:7px 12px}.filter.active{background:#eaf0e5;color:#3b6447}.empty{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#8b9988}.empty-icon{font-size:45px;color:#becfbb;margin-bottom:12px}.empty strong{font-weight:500;color:#657c64}.empty p{font-size:12px}.room-card{padding:20px 0;border-bottom:1px solid var(--line)}.room-card:last-child{border-bottom:0}.room-card-top{display:flex;justify-content:space-between;align-items:center}.room-card h3{font-size:16px;margin:0}.room-card p{font-size:12px;color:var(--muted)}.room-meta{display:flex;align-items:center;gap:12px;font-size:11px;color:#879482;margin-top:15px}.room-meta button{margin-left:auto}.status{font-size:10px;padding:4px 8px;border-radius:5px;background:#edf3e7;color:#71946c}.status.playing{background:#fff4df;color:#b59054}label{display:block;font-size:12px;margin:15px 0 0;color:#546652}input,select{width:100%;border:1px solid var(--line);background:#fafbf7;border-radius:7px;padding:11px 12px;margin-top:7px;color:var(--ink);outline:none}input:focus,select:focus{border-color:#759978;box-shadow:0 0 0 3px #eaf0e5}input::placeholder{color:#a4afa0;font-size:12px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.muted{color:#9aa492;font-size:10px;margin-left:5px}.primary{background:var(--green);color:#fff;border-radius:7px;padding:12px 20px;font-weight:500}.primary:hover{background:#1b4838}.secondary{background:#edf2e8;color:#3d6449;border:1px solid #dce5d7;border-radius:7px;padding:10px 16px}.full{width:100%;margin-top:22px}.divider{font-size:10px;color:#97a38f;text-align:center;margin:23px 0 15px;display:flex;align-items:center;gap:10px}.divider:before,.divider:after{content:'';height:1px;background:var(--line);flex:1}.join-form{display:flex;gap:8px}.join-form input{margin:0;min-width:0}.join-form button{white-space:nowrap}.tip{display:flex;gap:14px;margin:20px 4px;color:#7a8b73;font-size:11px}.tip>span{font-size:26px;color:#a58c57}.tip strong{font-size:11px;font-weight:500}.tip p{line-height:1.9;margin-bottom:0}.rules{margin:28px 0 40px;padding:20px 24px;background:#edf1e6;border:1px solid #e4e9da;border-radius:12px}.rules h3{font-size:12px;margin:0 0 8px}.rules p{color:#809072;font-size:11px;line-height:1.9;margin:0}footer{display:flex;justify-content:space-between;padding:22px 5%;border-top:1px solid var(--line);font-size:10px;color:#98a18f}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#264837;color:white;padding:14px 25px;border-radius:9px;box-shadow:0 6px 30px #233e3633;z-index:50;max-width:90%}[hidden]{display:none!important}.game-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0 20px}.game-heading h1{font-size:25px;margin:8px 0}.info-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.text-button{background:transparent;color:#77916f;font-size:12px;padding:6px}.info-top strong{font-size:13px}#roomInfo{padding:15px 20px;margin-bottom:20px}#infoDetails{color:#819077;font-size:12px;line-height:2;margin-top:10px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;margin-bottom:40px}.board-wrap{position:relative;aspect-ratio:1;background:#e8edde;border-radius:18px;border:1px solid #d7e2cd;padding:12px;align-self:start}#board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr));height:100%;gap:5px}.tile{border-radius:6px;background:#fffef7;border:1px solid #dfe5d5;overflow:hidden;position:relative;text-align:center;font-size:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:9px 2px 2px}.tile:before{content:'';position:absolute;height:7px;background:var(--tile);top:0;left:0;right:0}.tile b{font-size:10px;white-space:nowrap}.tile small{font-size:9px;color:#819077}.tokens{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;min-height:12px;margin-top:4px}.token{width:13px;height:13px;border-radius:50%;background:var(--player);color:#fff;font-size:8px;line-height:13px;box-shadow:0 0 0 1px #fff}.tile.owned{background:#f8f3e4}.tile.upgradable{cursor:pointer;box-shadow:inset 0 0 0 2px #93b084}#boardCenter{position:absolute;inset:18% 17%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}#boardCenter h2{font-size:24px;margin:18px 0 8px}#diceDisplay{font-size:58px;color:#487359;letter-spacing:10px}#turnHelp{font-size:12px;color:#7e8e73;line-height:1.8;margin:5px 0 16px}#controls{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}#purchase{font-size:12px;margin-top:14px}#purchase button{margin-top:8px}.game-side{display:flex;flex-direction:column;gap:15px}.game-side .panel{padding:20px}.game-side h2{font-size:16px}.game-side h3{font-size:13px;margin:0 0 14px}.player{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #edf0e7}.player-info{flex:1;min-width:0}.player-info strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-info small{font-size:10px;color:#98a18d}.player-money{font-size:13px;font-weight:700}.player.current{background:#f2f5eb;border-radius:7px;padding:12px 6px}.spectator{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:7px 0;font-size:12px}.spectator button{font-size:10px;padding:5px 8px}#logs{max-height:250px;overflow:auto;color:#7e8c74;font-size:11px;line-height:1.9}#logs p{margin:7px 0;padding-bottom:7px;border-bottom:1px solid #f0f2eb}#inviteBox:has(button){background:#fff2d9;border:1px solid #e8d4a9;padding:15px;border-radius:10px;margin-bottom:15px}#inviteBox button{margin-left:10px}
@media(min-width:1500px){main{padding:0 35px}}@media(max-width:1000px){.hero-art{width:340px;transform:scale(.9)}.lobby-grid{grid-template-columns:1fr 310px;gap:16px}.game-layout{grid-template-columns:1fr 250px}.tile b{font-size:9px}.tile small{font-size:8px}#boardCenter h2{font-size:18px}}@media(max-width:760px){header{height:70px;padding:0 5%}.brand{font-size:23px}.brand small{display:none}nav{gap:5px}nav>#connection,nav>.online-dot{display:none}#account{margin-left:0;font-size:11px}.hero{padding:30px 0;min-height:0}.hero h1{font-size:34px}.hero p{font-size:12px}.hero-art{display:none}.hero-tags{gap:12px;font-size:10px}.lobby-grid{display:flex;flex-direction:column}.directory,.lobby-grid aside{width:100%}.panel{padding:20px}.lobby-grid aside{order:-1}.create h2{margin-bottom:10px}.rules{margin-top:20px}footer{gap:15px;line-height:1.7;flex-direction:column}.game-layout{grid-template-columns:1fr}.game-side{display:grid;grid-template-columns:1fr 1fr}.game-side>.panel:last-child{grid-column:1/-1}.board-wrap{padding:5px;border-radius:10px}#board{gap:3px}.tile{font-size:8px;padding-top:6px;border-radius:4px}.tile b{font-size:8px;white-space:normal;line-height:1.2}.tile small{font-size:7px}.tile:before{height:4px}.tokens{gap:1px;margin-top:1px;min-height:8px}.token{height:9px;width:9px;line-height:9px;font-size:6px}#boardCenter h2{font-size:17px;margin:6px 0}#boardCenter .eyebrow{font-size:7px;letter-spacing:1px}#diceDisplay{font-size:35px;letter-spacing:4px}#turnHelp{font-size:10px;margin:3px 0 8px}#controls button{font-size:11px;padding:8px 10px}#purchase{font-size:10px;margin-top:5px}#purchase button{font-size:10px;padding:6px 9px;margin-top:4px}.game-heading h1{font-size:20px}.game-heading button{font-size:11px;padding:8px}.info-top strong{font-size:11px}.game-side .panel{padding:13px}.player{gap:6px}.player-money{font-size:11px}.avatar{width:25px;height:25px}.game-side .section-head h2{font-size:14px}.game-side .badge{font-size:9px}.player-info strong{font-size:11px}}

@media(max-width:760px){header{height:auto;min-height:70px;flex-wrap:wrap;gap:10px;padding-top:14px;padding-bottom:14px}header nav{justify-content:flex-end;flex-wrap:wrap;max-width:100%}#account{max-width:100%;flex-wrap:wrap;gap:7px}#account strong{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#returnOnline{font-size:11px;padding:8px 10px}}
