:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;color:#15171c;background:#fff;line-height:1.5;--muted:#717681;--line:#e9eaee;--soft:#f5f6f8;--red:#f03d47}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #7c9aef;outline-offset:3px}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}button{background:#f1f2f5;border-radius:12px;padding:10px 15px;font-weight:650}button:hover:not(:disabled){filter:brightness(.97)}button.primary{background:#191b20;color:#fff}button.red{background:var(--red);color:#fff}button.subtle{background:transparent;color:#616675;padding:8px 10px;font-size:14px}button.danger{background:#fff1f1;color:#ad222b}input,textarea,select{width:100%;padding:10px 12px;border:1px solid #dfe1e6;border-radius:10px;background:#fff}textarea{min-height:100px;resize:vertical}label{font-weight:650;font-size:13px;display:block;margin:12px 0 5px}h1,h2,h3,p{margin:0}h1{font-size:clamp(26px,4.6vw,46px);letter-spacing:-.05em}h2{font-size:23px;letter-spacing:-.025em}h3{font-size:17px}small,.muted{color:var(--muted);font-size:12px}.top{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100% - 1120px)/2));border-bottom:1px solid var(--line)}.wordmark{background:none;display:flex;align-items:center;gap:5px;font-size:24px;font-weight:900;letter-spacing:-.065em;padding:0;white-space:nowrap}.wordmark span{margin-left:-5px}.topactions{display:flex;gap:8px}main{flex:1;width:100%;max-width:1168px;margin:0 auto;padding:0 24px}.page{padding:28px 0 24px;animation:arrive .23s ease-out}.welcome{display:flex;justify-content:space-between;align-items:center;margin:7px 0 28px}.welcome p{margin-top:6px;font-size:14px;color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:.22em;font-weight:800;color:#8c909b;margin-bottom:7px}.tinyicon{color:#7d8de3;font-size:54px;padding:0 12px}.games-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.game-card{background:#fff;border:1px solid #e5e6e9;padding:7px;text-align:left;border-radius:19px;overflow:hidden;box-shadow:0 3px 12px #20273508;transition:transform .18s,box-shadow .18s}.game-card:hover:not(:disabled){transform:translateY(-4px);box-shadow:0 10px 22px #26314c12;filter:none}.art{aspect-ratio:1.48;display:grid;place-items:center;border-radius:13px;overflow:hidden}.art svg{width:100%;height:100%;transition:transform .3s}.game-card:hover svg{transform:scale(1.045)}.art-blue{background:#dceaff}.art-coral{background:#ffdbd1}.art-purple{background:#e7dbff}.art-mint{background:#d8f2e8}.game-info{display:flex;justify-content:space-between;align-items:center;padding:12px 6px 7px;gap:3px}.game-info strong{display:block;font-size:15px;letter-spacing:-.02em}.game-info small{display:block;font-size:11px;margin-top:3px}.game-info>span{font-size:17px;color:#9398a4}.home-extras{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}.extra{display:flex;align-items:center;text-align:left;gap:12px;padding:15px;background:#fafafb;border:1px solid var(--line);border-radius:15px}.extra>span:nth-child(2){flex:1}.extra strong,.extra small{display:block}.extra strong{font-size:14px}.extra-icon{display:grid;place-items:center;background:#fff2d4;color:#c79539;border-radius:12px;width:43px;height:43px;font-size:23px}.record-icon{background:#e6e9ff;color:#6870b9}.footer{max-width:1168px;width:100%;margin:0 auto;padding:12px 24px 18px;display:flex;align-items:center;justify-content:space-between}.footer small{font-size:10px;color:#a8abb3}.dots{background:transparent;color:#a0a4ad;font-size:13px;letter-spacing:2px;padding:9px 13px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.panel{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff}.record-line,.member-line,.room-line,.rank-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.record-line:last-child,.member-line:last-child,.room-line:last-child,.rank-line:last-child{border:0}.game-shell{max-width:530px;margin:auto;text-align:center}.game-shell h2{margin:0 0 4px}.game-toolbar{display:flex;gap:10px;justify-content:center;align-items:center;margin:12px 0;flex-wrap:wrap}.stat{background:#f3f4f7;padding:7px 15px;min-width:93px;border-radius:12px}.stat small,.stat strong{display:block}.stat strong{font-size:20px;font-variant-numeric:tabular-nums}.board{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#e8edf5;border-radius:18px;padding:10px;max-width:min(400px,calc(100dvh - 245px));margin:12px auto;aspect-ratio:1}.tile{font-weight:850;font-size:clamp(14px,5vw,28px);border-radius:10px;display:grid;place-items:center;aspect-ratio:1;padding:0;background:#f9fbff;color:#4864a1;box-shadow:0 2px 2px #1729420a;min-width:0}.tile.blank{background:#dce4f1;box-shadow:none}.merge-board{background:#e6e0ed}.merge-board .tile{color:#604b7a;background:#f2edf8}.merge-board .v0{background:#d7cede;color:transparent}.merge-board .v4{background:#ddd0f2}.merge-board .v8{background:#c7acee}.merge-board .v16{background:#ae8ae5;color:white}.merge-board .v32,.merge-board .v64{background:#9670d7;color:#fff}.merge-board .v128,.merge-board .v256{background:#8056c7;color:#fff}.merge-board .v512,.merge-board .v1024,.merge-board .v2048,.merge-board .big{background:#5d38aa;color:white}.reaction-zone{width:100%;min-height:250px;border-radius:21px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;background:#e4e8ff;color:#3b4189;font-size:23px;touch-action:manipulation}.reaction-zone.wait{background:#f5afa9;color:#662a2a}.reaction-zone.go{background:#9de3bb;color:#135737}.reaction-zone.done{background:#edf0f5;color:#252735}.reaction-zone span{font-size:13px}.controls{display:flex;gap:8px;justify-content:center;margin:10px auto}.controls button{min-width:44px;min-height:42px}.game-canvas{display:block;width:100%;aspect-ratio:2;background:#ecfbf6;border:1px solid #d6eee6;border-radius:17px;touch-action:manipulation}.game-status{min-height:25px;margin-top:8px;font-size:14px;font-weight:650}.private{max-width:1120px;margin:auto}.private-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:16px}.private-head nav{display:flex;flex-wrap:wrap;gap:6px}.private-head nav button{font-size:13px;background:#f4f4f5}.private-head nav button.selected{background:#171717;color:#fff}.brand{display:flex;align-items:center;gap:8px;font-weight:900;font-size:23px;letter-spacing:-.055em}.play-icon{background:#ff0033;color:white;border-radius:7px;padding:4px 9px;font-size:13px}.tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:17px}.tools input{flex:1;min-width:130px}.tools button{border-radius:22px;white-space:nowrap}.tools .selected{background:#191919;color:#fff}.media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 15px}.post-card{padding:0;background:none;text-align:left;display:block;min-width:0}.thumbnail{position:relative;aspect-ratio:16/9;background:#ebecf0;border-radius:12px;overflow:hidden}.thumbnail img{width:100%;height:100%;object-fit:cover}.duration{position:absolute;bottom:6px;right:6px;background:#000c;color:white;font-size:11px;font-weight:750;border-radius:4px;padding:1px 5px}.post-title{margin:8px 0 3px;overflow-wrap:anywhere;font-size:15px;font-weight:750}.post-card small{display:block;overflow-wrap:anywhere}.post-player{max-height:58vh;max-width:100%;width:100%;background:#111;border-radius:13px;object-fit:contain}.post-detail{max-width:860px;margin:auto}.description{padding:14px;background:#f4f4f4;border-radius:12px;margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere}.post-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.tag{background:#f1f1f2;border-radius:7px;padding:4px 8px;font-size:12px}.empty{padding:40px 20px;text-align:center;border:1px dashed #ddd;border-radius:14px;color:#777;font-size:14px}.modal{border:1px solid #e1e2e6;border-radius:18px;max-width:min(620px,calc(100% - 28px));width:100%;max-height:90dvh;overflow:auto;padding:22px;box-shadow:0 20px 100px #15182028}.modal::backdrop{background:#0005}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.modal-head button{background:none;font-size:20px;padding:0 8px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px}.modal-actions .primary{min-width:90px}.stack{display:flex;flex-direction:column;gap:8px}.studio-preview{max-width:100%;max-height:180px;border-radius:12px;background:#222;display:block;margin:10px 0}.uploadbox{border:2px dashed #ddd;border-radius:14px;padding:24px;text-align:center;background:#fafafa;margin-bottom:12px}.uploadbox input{margin-top:12px}.formerror{color:#a72831;font-size:13px;margin:8px 0;white-space:pre-wrap}.checkline{display:flex;gap:9px;align-items:center;font-weight:400;margin:9px 0}.checkline input{width:auto;accent-color:#222}.member-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b9bdc5;margin-right:8px}.member-dot.on{background:#28b678}.chat-layout{display:grid;grid-template-columns:210px 1fr;gap:16px}.room-sidebar{background:#f8f8fa;border-radius:14px;padding:12px;align-self:start}.room-sidebar button{width:100%;text-align:left;margin:4px 0;overflow-wrap:anywhere;background:#fff}.room-sidebar button.selected{background:#1e2026;color:#fff}.chat-body{min-width:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}.chat-title{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 15px;border-bottom:1px solid var(--line)}.messages{height:min(50dvh,440px);overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:12px;background:#fdfdfd}.msg{max-width:85%;align-self:flex-start;display:flex;flex-direction:column;gap:3px}.msg.mine{align-self:flex-end;align-items:flex-end}.msg .bubble{background:#eff0f3;border-radius:13px 13px 13px 4px;padding:9px 12px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.msg.mine .bubble{background:#e2eaff;border-radius:13px 13px 4px 13px}.msg .attachment{max-width: min(280px,100%);max-height:200px;border-radius:9px}.composer{padding:12px;border-top:1px solid var(--line)}.compose-row{display:flex;gap:8px;align-items:center}.compose-row input{min-width:0}.file-label{font-size:13px;margin:6px 0;color:var(--muted)}.notice{padding:12px;border-radius:10px;background:#fff7e7;color:#725222;font-size:13px;margin-bottom:12px}.progress{width:100%;height:10px;margin:14px 0}.comment{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.comment p{white-space:pre-wrap}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.grow{flex:1}.count{font-size:12px;color:#888}.ranking-list{max-height:48vh;overflow:auto}.rank-line strong{font-variant-numeric:tabular-nums}.rank-line span{overflow-wrap:anywhere}.rank-num{width:30px;color:#888;font-size:12px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90%;background:#222;color:#fff;border-radius:13px;box-shadow:0 6px 20px #0003;padding:12px 18px;z-index:99;font-size:13px}#main:focus{outline:none}@keyframes arrive{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:800px){.games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome{margin:0 0 19px}.top{height:62px}.home-extras{margin-top:15px}.game-info strong{font-size:14px}.game-info small{font-size:10px}}@media(max-width:520px){main{padding:0 13px}.top{padding:0 15px}.wordmark{font-size:21px}.page{padding:18px 0}.welcome p{font-size:12px}.tinyicon{font-size:33px}.home-extras{gap:8px}.extra{padding:10px;gap:6px}.extra-icon{width:30px;height:30px;font-size:16px}.extra strong{font-size:12px}.extra small{font-size:10px}.extra>span:last-child{display:none}.game-card{padding:5px;border-radius:13px}.art{border-radius:9px}.game-info{padding:8px 4px 4px}.game-info strong{font-size:12px}.game-info small{font-size:10px}.game-info>span{display:none}.media-grid{gap:16px 9px}.post-title{font-size:13px}.chat-layout{grid-template-columns:1fr;gap:10px}.room-sidebar{display:flex;overflow:auto;align-items:center;gap:5px}.room-sidebar button{width:auto;white-space:nowrap;margin:0;font-size:12px}.messages{height:44dvh}.modal{padding:16px}.private-head nav{width:100%}.game-shell .board{max-width:min(360px,calc(100dvh - 244px));gap:5px}.footer{padding:8px 14px 12px}.game-toolbar{margin:8px 0}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.row>select{width:auto;max-width:100%}.merge-board{touch-action:none}.home-extras .extra{min-width:0}.private .tools+ .row{margin-bottom:12px}
/* Previously created game illustrations; compact non-scrolling play layout. */
.art{background:#fff;aspect-ratio:1.48}.art img{width:100%;height:100%;min-height:0;object-fit:contain;display:block;transition:transform .25s ease}.game-card:hover .art img{transform:scale(1.045)}.game-card{border-color:#eceef1}.game-card .art img{user-select:none}.game-shell .muted{font-size:13px}.game-shell[data-game=puzzle] .tile:not(.blank){background:linear-gradient(150deg,#fff,#eaf1ff);color:#345ba7;box-shadow:0 2px 0 #c3d3ef,0 4px 8px #6988bd12}.game-shell[data-game=puzzle] .tile:not(.blank):active{transform:translateY(2px);box-shadow:none}.game-shell .board{touch-action:none}.game-shell .tile{transition:transform .12s,background .15s}.game-shell .stat{min-width:82px}.playing .top{flex:none}.playing main{min-height:0;display:flex;flex-direction:column}.playing #gameView{padding:10px 0;flex:1;min-height:0;display:flex;flex-direction:column}.playing #gameRoot{flex:1;min-height:0;display:grid;place-items:center}.playing .game-shell{width:100%;max-width:520px}.playing .game-shell .board{width:min(380px,calc(100dvh - 278px),100%);max-width:100%;min-width:160px;margin:8px auto}.playing .game-shell .game-toolbar{margin:8px 0}.playing .game-status{margin:4px 0;min-height:20px}.playing .footer{padding-top:4px;padding-bottom:8px}.playing .game-canvas{max-height:calc(100dvh - 265px);object-fit:contain}.msg .recall-button{font-size:10px;padding:3px 6px;background:none;color:#777}.msg .recalled{color:#888;font-size:12px;background:#f5f5f5;font-style:italic}.recall-notice{font-size:10px;display:block;color:#777}.recall-archive{display:grid;gap:8px;margin-top:12px}.recall-archive .panel{display:grid;gap:7px}.archive-text{white-space:pre-wrap;overflow-wrap:anywhere}.recall-archive .attachment{max-width:100%;max-height:240px}.recall-archive .panel small{display:block}
@media(min-height:570px){.playing{height:100dvh;overflow:hidden}.playing .game-shell{max-height:100%}.playing .game-shell .reaction-zone{height:min(250px,calc(100dvh - 290px))}}
@media(max-width:520px){.playing .game-shell .board{width:min(330px,calc(100dvh - 272px),100%)}.playing .game-shell .muted{font-size:11px}.playing .game-shell .stat{min-width:70px}.playing .game-toolbar{gap:6px}.playing .game-shell .controls button{padding:8px 13px}}
