: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}}

a.game-card{color:inherit;text-decoration:none;cursor:pointer;text-align:left;}

.yt-box{display:flex;flex-direction:column;gap:8px;margin:12px 0}.yt-frame{width:100%;aspect-ratio:16/9;min-height:200px;display:block;border:0;background:#111;border-radius:12px}.yt-source{color:#b42318;font-size:12px}
/* TomoGames v1.3: scoped to new features only. */
.tg-chat-media{position:relative;max-width:100%;align-self:stretch;border-radius:10px;overflow:hidden}
.tg-chat-image{width:fit-content;display:flex;flex-direction:column;gap:5px;align-items:flex-end}
.tg-chat-image .attachment{display:block;max-width:min(280px,100%)}
.tg-chat-image .tg-save{color:inherit;background:#f4f5f7;border-radius:8px;padding:4px 10px;font-size:12px;text-decoration:none}
.tg-chat-video{width:min(320px,75vw);background:#101010;aspect-ratio:16/9;display:grid;place-items:center;isolation:isolate}
.msg .tg-chat-video .attachment{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:0;grid-area:1/1}
.tg-video-center{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:48px;height:48px;padding:0;border-radius:50%;color:white;background:#0009;font-size:20px;opacity:0;transition:opacity .16s;z-index:2}
.tg-video-controls{position:absolute;inset:auto 0 0;padding:16px 8px 6px;background:linear-gradient(transparent,#000c 35%,#000e);color:white;opacity:0;pointer-events:none;transition:opacity .16s;z-index:3}
.tg-chat-video:hover .tg-video-controls,.tg-chat-video:focus-within .tg-video-controls,.tg-chat-video:hover .tg-video-center,.tg-chat-video:focus-within .tg-video-center{opacity:1;pointer-events:auto}
.tg-chat-video.tg-playing:not(:focus-within) .tg-video-center{opacity:0;pointer-events:none}
.tg-video-line{display:flex;align-items:center;gap:4px;min-width:0}.tg-video-btn,.tg-video-controls .tg-save{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:white;border-radius:6px;padding:5px 4px;font-size:12px;white-space:nowrap;text-decoration:none;flex-shrink:0;min-height:30px}
.tg-video-controls input[type=range]{display:block;accent-color:#fff;padding:0;border:0;border-radius:0;background:transparent;width:100%;height:15px;margin:0;min-width:0;cursor:pointer}
.tg-video-controls .tg-video-line input[type=range]{width:40px;flex:1;max-width:70px}.tg-video-time{font-size:10px;flex:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.tg-chat-video:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;border-radius:0}.tg-chat-video:fullscreen .tg-video-controls{padding:20px 20px 12px}.tg-chat-video:fullscreen .tg-video-line{gap:12px}
@media (hover:none),(pointer:coarse){.tg-chat-video .tg-video-controls,.tg-chat-video:not(.tg-playing) .tg-video-center{opacity:1;pointer-events:auto}}
@media(max-width:420px){.tg-chat-video{width:min(320px,74vw)}.tg-video-line{gap:2px}.tg-video-controls .tg-video-line input[type=range]{max-width:35px}.tg-video-btn,.tg-video-controls .tg-save{padding:4px 2px;font-size:11px}.tg-video-time{font-size:9px}}
.igutube-view .brand{font-weight:850;letter-spacing:-.045em}.igutube-view .play-icon{background:#ff0033}
.igutube-view .tools{gap:8px;padding:3px 0 8px}.igutube-view .tools input[type=search]{border-radius:24px;border:1px solid #d7d7d7;background:#fff;padding:10px 17px;flex-basis:36%}.igutube-view .tools button{border-radius:8px;font-size:13px}.igutube-view .tools button.primary{border-radius:22px}
.igutube-view .media-grid{gap:26px 16px}.igutube-view .post-card{border-radius:0;box-shadow:none;min-width:0}.igutube-view .post-card:hover:not(:disabled){filter:none}.igutube-view .post-card:hover .thumbnail{border-radius:5px}.igutube-view .thumbnail{transition:border-radius .15s}.igutube-view .post-title{font-weight:700;font-size:15px;line-height:1.4;margin:10px 0 5px}.igutube-view .post-card small{font-size:12px;color:#606060;line-height:1.5}
.tg-watch-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,31%);gap:22px;align-items:start}.tg-watch-layout.tg-watch-solo{grid-template-columns:1fr}.tg-watch-layout .post-detail{width:100%;max-width:none;min-width:0}.tg-watch-layout .post-player{max-height:65vh;border-radius:12px}.tg-watch-layout .post-detail h2{font-size:20px;line-height:1.35;overflow-wrap:anywhere}.tg-watch-layout .post-meta{gap:8px}.tg-watch-layout .post-meta button{border-radius:24px}.tg-watch-layout .description{font-size:14px;background:#f2f2f2}.tg-watch-related h3{font-size:14px;margin:0 0 12px}.tg-related-card{display:grid;grid-template-columns:minmax(90px,46%) minmax(0,1fr);gap:9px;padding:0;background:none;border-radius:0;text-align:left;width:100%;margin-bottom:10px}.tg-related-card .thumbnail{border-radius:8px}.tg-related-text{min-width:0}.tg-related-text strong{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.tg-related-text small{display:block;color:#606060;font-size:11px;margin-top:4px;overflow-wrap:anywhere}
@media(max-width:760px){.tg-watch-layout{grid-template-columns:1fr}.tg-watch-related{border-top:1px solid var(--line);padding-top:15px}.tg-related-card{grid-template-columns:140px minmax(0,1fr)}.igutube-view .tools input[type=search]{flex-basis:100%}.igutube-view .post-title{font-size:13px}.igutube-view .media-grid{gap:19px 10px}}
.tg-battle-intro,.tg-battle-card{max-width:620px;margin:0 auto 15px}.tg-battle-intro .row{margin-top:12px;flex-wrap:wrap}.tg-battle-intro select{flex:1;min-width:130px}.tg-battle-intro .muted{margin:7px 0}.tg-battle-intro h2{margin:0 0 7px}.tg-battle-card h3{margin:0 0 12px}.tg-battle-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-width:380px;margin:10px auto;touch-action:manipulation}.tg-battle-grid button{aspect-ratio:1;min-width:0;padding:0;font-size:clamp(15px,4vw,23px);font-variant-numeric:tabular-nums;background:#eaf0ff;color:#243a73}.tg-battle-grid button.tg-number-done{background:#f1f2f5;color:#a0a3aa;opacity:.55}.tg-battle-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tg-battle-score{display:grid;gap:4px;background:#f6f7f9;padding:10px;border-radius:12px;min-width:0}.tg-battle-score small{overflow-wrap:anywhere}.tg-battle-score strong{font-size:20px;font-variant-numeric:tabular-nums}.tg-battle-next{text-align:center;font-size:18px;font-weight:750;margin:12px 0 0}.tg-battle-count{text-align:center;font-size:48px;font-weight:800;padding:30px}.tg-battle-result{font-size:22px}

/* IGUTUBE-only discovery and watch layout. */
.igutube-view .private-head{margin-bottom:12px}.tg-igu-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:13px}.tg-igu-search{display:flex;align-items:stretch;flex:1;min-width:180px;max-width:620px;margin-right:auto}.tg-igu-search input{border-radius:24px 0 0 24px;border:1px solid #d6d6d6;background:white;min-width:0;flex:1;padding:10px 16px}.tg-igu-search-submit{border:1px solid #d6d6d6;border-left:0;border-radius:0 24px 24px 0;padding:8px 18px;background:#f8f8f8}.tg-igu-top>button{border-radius:22px;white-space:nowrap}.tg-igu-filters{display:flex;gap:8px;overflow-x:auto;padding:0 0 9px;scrollbar-width:thin}.tg-igu-filters button{flex:none;background:#f1f1f1;border-radius:8px;white-space:nowrap;font-size:13px;padding:8px 12px}.tg-igu-filters button.selected{background:#171717;color:white}.tg-igu-options{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:5px 0}.tg-igu-options label{display:flex;align-items:center;gap:8px;font-size:12px}.tg-igu-options select{font-size:12px;padding:6px 8px;border-radius:8px;max-width:170px}.tg-igu-note{color:#666;font-size:11px;line-height:1.5;margin:4px 0 10px}.tg-igu-note a{color:#2464ad}.tg-igu-status{font-size:12px;color:#666;line-height:1.5;margin:8px 0}.tg-igu-status:empty{display:none}.tg-igu-section{grid-column:1/-1;margin:7px 0 0;font-size:16px}.tg-igu-card-body{display:flex;align-items:flex-start;gap:9px;margin-top:10px}.tg-igu-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#e8edf8;color:#28375e;font-size:12px;font-weight:700}.tg-igu-card-info{flex:1;min-width:0}.igutube-view .tg-igu-card .post-title{margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.tg-igu-card-info small{display:block;overflow-wrap:anywhere}.tg-source-label{color:#525252;font-weight:700}.tg-igu-description{background:#f2f2f2;border-radius:12px;margin:14px 0;font-size:14px}.tg-igu-description summary{padding:12px 14px;cursor:pointer;font-weight:650}.tg-igu-description .description{margin:0;padding:0 14px 14px;background:none}.tg-watch-related .tg-igu-card{margin-bottom:18px;width:100%}.tg-watch-related .tg-igu-card .tg-igu-avatar{width:26px;height:26px;font-size:10px}
@media(max-width:600px){.tg-igu-search{flex-basis:100%;max-width:none}.tg-igu-top>button{font-size:12px}.tg-igu-card-body{gap:5px}.tg-igu-avatar{width:24px;height:24px;font-size:9px}.tg-igu-options label{font-size:11px}.tg-igu-options select{max-width:125px}.tg-igu-card-info small{font-size:11px!important}}


/* Friend score matches only. */
.tg-battle-play:not(:empty){max-width:760px;margin:0 auto 15px}.tg-battle-play [hidden]{display:none!important}.tg-battle-intro>label select{width:100%}.tg-battle-play .game-shell{margin:0 auto}.tg-battle-card .tg-battle-stats{margin-top:12px}
/* Version 1.3.1: only the added home entry, chat video and IGUTUBE layout. */
#homeBattleButton{grid-column:1/-1}
#homeBattleButton .extra-icon{background:#eaf0ff;color:#4764a4}
.msg .tg-chat-video{display:block;position:relative;width:min(320px,74vw);max-width:100%;aspect-ratio:16/9;max-height:min(440px,65vh);min-width:0;background:#101010}
.msg .tg-chat-video.tg-portrait{width:min(250px,74vw);aspect-ratio:9/16}
.msg .tg-chat-video .attachment{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;object-fit:contain!important;object-position:center;grid-area:auto;border-radius:0}
.msg .tg-chat-video:fullscreen{width:100vw!important;height:100vh!important;max-width:none;max-height:none;aspect-ratio:auto!important}
.msg .tg-chat-video .tg-video-line{flex-wrap:wrap;justify-content:flex-end;gap:3px}
.igutube-view .tg-igu-top{display:block;margin-bottom:12px}
.igutube-view .tg-igu-search{width:100%;max-width:720px;margin:0 auto;min-width:0}
.igutube-view .tg-igu-actions{display:flex;justify-content:flex-end;gap:10px;margin:12px 0 4px;flex-wrap:wrap}
.igutube-view .tg-igu-actions button{border-radius:24px;font-size:14px;font-weight:600;min-height:44px;padding:10px 20px;white-space:nowrap}
.igutube-view .tg-igu-filters{margin-top:4px}
.igutube-view .tg-watch-layout.tg-watch-below{grid-template-columns:minmax(0,1fr);max-width:none}
.igutube-view .tg-watch-recommendations{margin:22px 0 26px;min-width:0}
.igutube-view .tg-watch-recommendations h3{font-size:17px;margin:0 0 14px}
.igutube-view .tg-watch-recommendations .media-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
@media(max-width:700px){.igutube-view .tg-watch-recommendations .media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.igutube-view .tg-igu-actions{justify-content:flex-start}.igutube-view .tg-igu-actions button{padding:9px 16px}}
/* Version 1.3.2: only IGUTUBE header spacing and the independent game rooms. */
.igutube-view .tg-igu-top{margin-bottom:3px}
.igutube-view .tg-igu-actions{margin:4px 0 0;gap:7px}
.igutube-view .tg-igu-filters{margin-top:2px;padding-bottom:5px}
.igutube-view .tg-igu-options{margin:2px 0 5px}
.igutube-view .tg-igu-options label{margin:0}
.igutube-view .tg-igu-footnotes{margin:18px 0 0;padding-top:9px;border-top:1px solid var(--line)}
.igutube-view .tg-igu-footnotes .tg-igu-note{display:block;margin:3px 0}
#battleView .tg-battle-card{display:flex;flex-direction:column;gap:10px}
#battleView .tg-battle-intro{display:flex;flex-direction:column;gap:7px}
#battleView .tg-battle-intro label{margin:5px 0 0}
#battleView .tg-battle-intro hr{width:100%}
#battleView .tg-room-code strong{font-size:27px;letter-spacing:.14em;font-variant-numeric:tabular-nums}
#battleView .tg-room-status{max-width:620px;margin:0 auto 8px;color:#b02938;min-height:0}
#battleView .tg-room-status:empty{display:none}
#battleView .tg-battle-card label{margin:0}
#battleView .tg-battle-card select{width:100%}
#battleView .tg-battle-score{overflow-wrap:anywhere}
.tg-hit-form{margin:12px 0;gap:8px;display:flex;align-items:center}
.tg-hit-form input{flex:1;min-width:0;font-size:20px;letter-spacing:.18em;font-variant-numeric:tabular-nums;text-align:center}
.tg-hit-form button{flex:none}
.tg-hit-history{max-height:300px;overflow:auto;text-align:left}
.tg-hit-art{background:#e8edf9;color:#3c538b}
.tg-hit-symbol{display:flex;align-items:center;gap:8px;font-weight:850;font-size:clamp(20px,4vw,34px);letter-spacing:.1em}
.tg-hit-symbol i{font-style:normal;display:grid;place-items:center;border:2px solid currentColor;border-radius:12px;width:1.6em;height:1.75em;background:#ffffff9c}
/* Version 1.3.3: turn-based Hit & Blow only. */
#battleView .tg-hb-secret{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px;background:#f6f7f9;border-radius:12px}
#battleView .tg-hb-secret strong{font-size:28px;letter-spacing:.25em;font-variant-numeric:tabular-nums}
#battleView .tg-hb-turn{text-align:center;font-weight:750;margin:0;padding:9px;border-radius:10px;background:#f6f7f9;overflow-wrap:anywhere}
#battleView .tg-hb-your-turn{background:#e6f5ed;color:#226b43}
#battleView .tg-hb-histories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
#battleView .tg-hb-history{min-width:0;border:1px solid var(--line,#e4e5e7);border-radius:12px;padding:8px;max-height:440px;overflow:auto}
#battleView .tg-hb-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;text-align:center;font-size:14px}
#battleView .tg-hb-table caption{font-weight:750;text-align:left;padding:5px 3px 10px;overflow-wrap:anywhere}
#battleView .tg-hb-table th{font-size:12px;background:#f6f7f9;position:sticky;top:0}
#battleView .tg-hb-table th,#battleView .tg-hb-table td{padding:7px 3px;border-bottom:1px solid var(--line,#e4e5e7)}
#battleView .tg-hb-table td:nth-child(2){font-weight:750;letter-spacing:.07em}
#battleView .tg-hb-correct{background:#e6f5ed;color:#226b43}
@media(max-width:600px){#battleView .tg-hb-histories{grid-template-columns:minmax(0,1fr)}#battleView .tg-hb-history{max-height:260px}#battleView .tg-hb-table th,#battleView .tg-hb-table td{padding:8px 4px}}

/* TomoGames v1.3.7: IGUTUBE comments and clickable brand only. */
.igutube-view button.tg-igu-brand{appearance:none;background:transparent;border:0;padding:0;margin:0;min-height:0;color:inherit;cursor:pointer;text-align:left;box-shadow:none;border-radius:5px;flex-shrink:0}
.igutube-view button.tg-igu-brand:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.igutube-view .tg-igu-local-comments,.igutube-view .tg-yt-comments{margin:20px 0;min-width:0}
.igutube-view .tg-igu-local-comments>h3,.igutube-view .tg-yt-comment-head h3{margin:0 0 10px;font-size:17px}
.igutube-view .tg-yt-comment-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px 12px;flex-wrap:wrap}
.igutube-view .tg-yt-comment-head a{font-size:12px}
.igutube-view .tg-yt-comment-meta{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}
.igutube-view .tg-yt-comment-meta strong{font-size:14px}
.igutube-view .tg-yt-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 7px}
.igutube-view .tg-yt-comment-status{font-size:13px;margin:10px 0}
.igutube-view .tg-yt-comments>button{margin-top:10px}
/* TomoGames v1.3.8: only group management, notification badges, and Hit & Blow. */
.tg-unread{display:inline-flex!important;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 4px;border-radius:99px;background:#dc3545;color:white;font-size:10px;font-weight:750;line-height:1;vertical-align:middle;margin-left:5px;flex-shrink:0}
#menuButton{position:relative}#menuButton>.tg-unread{position:absolute;right:-6px;top:-6px;margin:0}
.tg-group-checks{max-height:210px;overflow:auto}.tg-group-checks .checkline{padding:6px 0}
.tg-igu-local-comments [hidden],.tg-yt-comments [hidden]{display:none!important}
#gameCards .tg-hit-art{display:flex;align-items:center;justify-content:center;background:#f1f4fb;overflow:hidden}
#gameCards .tg-hit-art svg{width:79%;height:79%;max-width:255px;max-height:100%;display:block}
.tg-hit-standalone #gameView{display:block!important}.tg-hit-standalone .game-shell{max-width:620px;margin:auto}.tg-hit-standalone .tg-hit-history{max-height:45vh;overflow:auto}
@media(max-width:480px){.tg-unread{min-width:17px;height:17px;font-size:9px}.tg-hit-standalone .game-toolbar{gap:6px}.tg-hit-standalone .game-shell{padding:12px}}
/* v1.3.9: scoped CPU duel and group management only */
.tg-hit-standalone .game-shell{max-width:780px}
.tg-cpu-setup,.tg-cpu-arena{display:grid;gap:15px;text-align:left}
.tg-cpu-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.tg-cpu-level{display:grid;gap:5px;text-align:left;background:#f7f8fa;border:1px solid var(--line);padding:13px 10px;min-width:0}
.tg-cpu-level strong{font-size:15px}.tg-cpu-level small{font-weight:500;line-height:1.45;overflow-wrap:anywhere}
.tg-cpu-level.selected{background:#edf2ff;border-color:#7794d8;color:#2f4b85}.tg-cpu-level.selected small{color:#425b8d}
.tg-cpu-secret-form{display:grid;gap:8px}.tg-cpu-secret-form label{margin:0}.tg-cpu-secret-form input{margin-top:5px;font-size:22px;letter-spacing:.3em;font-variant-numeric:tabular-nums;text-align:center}
.tg-cpu-top{display:flex;align-items:center;justify-content:space-between}.tg-cpu-mode{font-size:12px;background:#f1f3f7;border-radius:999px;padding:5px 12px;font-weight:750}
.tg-cpu-secret{background:#f5f6f9;border-radius:14px;display:grid;gap:4px;text-align:center;padding:12px}.tg-cpu-own{font-size:28px;letter-spacing:.25em;font-variant-numeric:tabular-nums}
.tg-cpu-turn{font-weight:750;text-align:center;padding:10px;border-radius:10px;background:#f3f4f7}.tg-cpu-turn[data-turn=player]{background:#e9f4ed;color:#256341}.tg-cpu-turn[data-turn=done]{display:none}
.tg-cpu-arena .tg-hit-form{margin:0;flex-wrap:nowrap}.tg-cpu-arena .formerror:empty,.tg-cpu-setup .formerror:empty{display:none}
.tg-cpu-result{text-align:center;background:#f5f6f8;padding:16px;border-radius:14px}.tg-cpu-result[data-won=true]{background:#e9f4ed;color:#256341}.tg-cpu-result h2{font-size:28px}
.tg-cpu-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tg-cpu-table{min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px;max-height:360px;overflow:auto}.tg-cpu-table h3{margin-bottom:8px;font-size:14px}.tg-cpu-table table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums;text-align:center}.tg-cpu-table th{font-size:10px;color:var(--muted);font-weight:700}.tg-cpu-table th,.tg-cpu-table td{padding:7px 2px;border-bottom:1px solid var(--line)}.tg-cpu-digits{font-weight:800;letter-spacing:.08em}.tg-cpu-hit{color:#267747;font-weight:750}.tg-cpu-blow{color:#94630c;font-weight:750}.tg-cpu-empty{padding:10px 0}
.tg-gm{display:grid;gap:14px}.tg-gm-head{display:flex;align-items:center;gap:12px;background:#f5f6f8;border:1px solid var(--line);border-radius:14px;padding:14px}.tg-gm-icon,.tg-gm-avatar{flex:none;display:grid;place-items:center;background:#e5ebf8;color:#3f568a;font-weight:750;border-radius:50%}.tg-gm-icon{width:44px;height:44px;font-size:20px}.tg-gm-avatar{width:34px;height:34px;font-size:14px}.tg-gm-info{min-width:0;flex:1;display:grid;gap:2px;overflow-wrap:anywhere}.tg-gm-info strong{font-size:14px}.tg-gm-info small{font-size:11px}
.tg-gm-section{border:1px solid var(--line);border-radius:14px;padding:13px;display:grid;gap:10px}.tg-gm-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.tg-gm-section h3,.tg-gm-danger h3{font-size:15px}.tg-gm-count,.tg-gm-badge{background:#f0f1f4;color:#656a76;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:700;white-space:nowrap}
.tg-gm-list{max-height:240px;overflow:auto;display:grid;gap:0}.tg-gm-row{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 0;border-bottom:1px solid var(--line)}.tg-gm-row:last-child{border-bottom:0}.tg-gm-remove{flex:none;font-size:12px;padding:8px 11px}.tg-gm-choice{display:flex;align-items:center;gap:9px;margin:0;font-weight:400;border-bottom:1px solid var(--line);cursor:pointer}.tg-gm-choice:last-child{border-bottom:0}.tg-gm-choice input{flex:none;width:18px;height:18px;accent-color:#222}.tg-gm-choice .tg-gm-row{flex:1;border:0}.tg-gm-empty{font-size:12px;color:var(--muted);padding:10px 0}.tg-gm-add{width:100%;font-size:14px}.tg-gm-danger{display:grid;gap:7px;border:1px solid #f0d6d6;background:#fffafa;border-radius:14px;padding:13px}.tg-gm-danger button{justify-self:start}.tg-gm-status{font-size:13px;margin-top:8px;color:#256341}.tg-gm-status.formerror{color:#ad222b}.tg-gm-status:empty{display:none}
@media(max-width:480px){.tg-cpu-levels{gap:6px}.tg-cpu-level{padding:10px 7px}.tg-cpu-level strong{font-size:13px}.tg-cpu-level small{font-size:10px}.tg-cpu-tables{grid-template-columns:1fr;gap:9px}.tg-cpu-table{max-height:260px}.tg-gm-section{padding:10px}.tg-gm-head{padding:11px}}
/* Game-only presentation, v1.4 preview. No private-page selectors. */
#gameCards .art{background:#f9f9f9}
#gameCards .art img{object-fit:contain;transition:transform .2s ease;filter:grayscale(1)}
#gameCards .game-card:hover .art img{transform:scale(1.035)}
.game-shell[data-game]{--g-ink:#242424;--g-paper:#fff;--g-soft:#f2f2f2;--g-border:#dedede;--muted:#686868;--line:#dedede;max-width:840px;width:100%;color:var(--g-ink);text-align:left;margin:auto;min-width:0}
.tg-hit-standalone .game-shell[data-game],.playing .game-shell[data-game]{max-width:840px;max-height:none}
.game-shell .tg14-heading{display:flex;align-items:center;gap:12px;padding:15px 19px;background:#232323;color:#fff;border-radius:16px;margin:0 0 12px;min-width:0}
.game-shell .tg14-heading h2{font-size:clamp(17px,3vw,25px);margin:0;line-height:1.35;font-weight:850;letter-spacing:-.035em;min-width:0}
.game-shell .tg14-mark{font-size:26px;line-height:1;border:1px solid #626262;border-radius:9px;width:39px;height:39px;display:grid;place-items:center;flex:none}
.game-shell .tg14-kicker{font-size:9px;font-weight:750;letter-spacing:.16em;color:#9c9c9c;line-height:1.4}
.game-shell .tg14-heading .tg14-kicker{margin-left:auto;color:#c6c6c6;white-space:nowrap}
.game-shell .tg14-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,225px);gap:16px;align-items:start}
.game-shell[data-game=hitblow] .tg14-layout{grid-template-columns:minmax(0,1fr)}
.game-shell .tg14-stage{min-width:0;text-align:center}
.game-shell .tg14-stage>p.muted{font-size:12px;margin:0 0 6px;line-height:1.5}
.game-shell .tg14-guide{border:1px solid #e0e0e0;background:#fafafa;border-radius:15px;padding:17px;display:grid;gap:10px;text-align:left;min-width:0;align-self:start;margin-top:25px}
.game-shell .tg14-guide h3{font-size:16px;line-height:1.4;letter-spacing:-.02em}
.game-shell .tg14-guide p{font-size:13px;line-height:1.65}
.game-shell .tg14-guide p.muted{font-size:12px}
.game-shell .tg14-guide svg{width:100%;height:92px;display:block;margin-top:4px;align-self:end}
.game-shell .game-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;justify-content:center;margin:0 0 11px;padding:7px;background:#f3f3f3;border:1px solid #e8e8e8;border-radius:13px}
.game-shell .game-toolbar .stat{flex:1 1 78px;background:#fff;border-radius:9px;min-width:0;padding:6px 10px;box-shadow:none;border:1px solid #e8e8e8;text-align:center}
.game-shell .stat small{font-size:10px;font-weight:750;letter-spacing:.08em;color:#6c6c6c}
.game-shell .stat strong{font-size:clamp(17px,3vw,23px);font-weight:850;line-height:1.3;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.game-shell .game-toolbar button{background:#fff;border:1px solid #ddd;color:#222;padding:10px 12px;font-size:12px;border-radius:9px;white-space:nowrap}
.game-shell .game-toolbar button.primary,.game-shell button.primary{background:#242424;color:white;border-color:#242424}
.game-shell .board,.playing .game-shell .board{width:min(100%,360px);max-width:100%;min-width:0;margin:10px auto;aspect-ratio:1;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:9px;background:#282828;border-radius:17px;position:relative;touch-action:none}
.game-shell .board .tile{position:relative;border-radius:9px;box-shadow:none;transition:none;font-size:clamp(20px,5vw,32px);font-weight:800;line-height:1;color:#282828;background:#f7f7f7;aspect-ratio:1;min-height:0;min-width:0;border:0;padding:0;font-variant-numeric:tabular-nums}
.game-shell[data-game=puzzle] .board .tile:not(.blank){background:#f7f7f7;color:#262626;box-shadow:inset 0 -2px 0 #dadada}
.game-shell[data-game=puzzle] .board .tile:not(.blank):hover:not(:disabled){background:#e0e0e0;filter:none}
.game-shell[data-game=puzzle] .board .tile:not(.blank):active{transform:scale(.98);box-shadow:none}
.game-shell[data-game=puzzle] .board .tile:not(.blank):disabled{opacity:1}
.game-shell .board .tile.blank{background:#424242;opacity:1;box-shadow:none}
.game-shell .merge-board .tile.v0{background:#414141;color:transparent}
.game-shell .merge-board .tile.v2{background:#fafafa;color:#222}
.game-shell .merge-board .tile.v4{background:#e0e0e0;color:#222}
.game-shell .merge-board .tile.v8{background:#a7a7a7;color:#141414}
.game-shell .merge-board .tile.v16{background:#767676;color:white}
.game-shell .merge-board .tile.v32,.game-shell .merge-board .tile.v64{background:#5c5c5c;color:white}
.game-shell .merge-board .tile.v128,.game-shell .merge-board .tile.v256{background:#454545;color:white;border:1px solid #a0a0a0}
.game-shell .merge-board .tile.v512,.game-shell .merge-board .tile.v1024,.game-shell .merge-board .tile.v2048,.game-shell .merge-board .tile.big{background:#171717;color:white;border:1px solid #f5f5f5;font-size:clamp(17px,4vw,25px)}
.game-shell .reaction-zone,.playing .game-shell .reaction-zone{width:100%;min-height:250px;height:auto;padding:23px 14px;background:#f3f3f3;color:#242424;gap:7px;border:2px solid #e1e1e1;box-shadow:none;transition:none;border-radius:18px;touch-action:manipulation}
.game-shell .reaction-zone.wait{background:#dedede;border-color:#c8c8c8;color:#292929}
.game-shell .reaction-zone.go{background:#242424;border-color:#242424;color:#fff}
.game-shell .reaction-zone.done{background:#fff;border-color:#242424;color:#242424}
.game-shell .reaction-zone strong{font-size:clamp(24px,5vw,37px);font-weight:850;letter-spacing:-.03em;line-height:1.15}
.game-shell .reaction-zone .tg14-target{display:grid;place-items:center;width:112px;height:112px;border:3px solid currentColor;border-radius:50%;position:relative;margin-bottom:12px;box-shadow:0 0 0 8px #85858522}
.game-shell .reaction-zone .tg14-target:before{content:'';width:68px;height:68px;border:2px solid currentColor;border-radius:50%;opacity:.8}
.game-shell .reaction-zone .tg14-target:after{content:'';position:absolute;width:22px;height:22px;border-radius:50%;background:currentColor}
.game-shell .reaction-zone.wait .tg14-target:after{width:6px;height:6px}
.game-shell .reaction-zone.go .tg14-target{outline:5px dashed #fff8;outline-offset:7px;box-shadow:none}
.game-shell .reaction-zone .tg14-reaction-sub{font-size:13px;font-weight:650;opacity:.88}
.game-shell .reaction-zone:active{filter:none}
.game-shell .controls{display:flex;gap:7px;margin:10px auto;justify-content:center}
.game-shell .controls button{background:#f2f2f2;border:1px solid #ddd;color:#242424;font-size:20px;border-radius:10px;min-width:51px;min-height:44px;line-height:1.2}
.game-shell .controls button.primary{background:#232323;color:#fff;width:100%;font-size:16px;min-height:46px}
.game-shell .game-canvas,.playing .game-shell .game-canvas{width:100%;height:auto;max-height:none;aspect-ratio:2;background:#fafafa;border:2px solid #252525;border-radius:16px}
.game-shell .game-status{min-height:22px;line-height:1.5;font-size:13px;color:#5e5e5e;text-align:center;margin:5px 0 0}
.game-shell .game-status.tg14-success{color:#202020;font-weight:850;letter-spacing:.02em}
.game-shell .tg-cpu-setup,.game-shell .tg-cpu-arena{gap:11px;text-align:left}
.game-shell .tg-cpu-levels{gap:8px}
.game-shell .tg-cpu-level{background:#f5f5f5;border:1px solid #ddd;padding:15px 10px;color:#222;border-radius:12px}
.game-shell .tg-cpu-level.selected{background:#242424;border-color:#242424;color:#fff}
.game-shell .tg-cpu-level.selected small{color:#ddd}
.game-shell .tg-cpu-secret{background:#f4f4f4;border:1px solid #ddd;border-radius:12px;padding:8px}
.game-shell .tg-cpu-own{font-size:30px;color:#242424;font-weight:850;letter-spacing:.25em}
.game-shell .tg-cpu-mode{background:#f1f1f1;color:#363636}
.game-shell .tg-cpu-turn{background:#e7e7e7;color:#333;padding:9px}
.game-shell .tg-cpu-turn[data-turn=player]{background:#232323;color:#fff}
.game-shell .tg-cpu-table{border:1px solid #dedede;border-radius:12px;padding:0 0 6px;max-height:310px}
.game-shell .tg-cpu-table h3{background:#292929;color:#fff;font-size:14px;padding:10px 13px;margin:0;text-align:left}
.game-shell .tg-cpu-table table{font-size:14px}
.game-shell .tg-cpu-table th{font-size:10px;background:#f2f2f2;color:#686868}
.game-shell .tg-cpu-table td{padding:8px 4px}
.game-shell .tg-cpu-table .tg-cpu-digits{letter-spacing:.14em;font-size:17px;color:#222}
.game-shell .tg-cpu-table .tg-cpu-hit{color:#222;font-weight:900}
.game-shell .tg-cpu-table .tg-cpu-blow{color:#666;font-weight:750}
.game-shell .tg-cpu-empty{padding:9px 12px;text-align:center}
.game-shell .tg-cpu-result,.game-shell .tg-cpu-result[data-won=true]{background:#f1f1f1;color:#252525;border:1px solid #d8d8d8}
.game-shell .tg-cpu-result[data-won=true] h2{letter-spacing:.07em}
.game-shell .tg-hit-form input{font-size:23px;letter-spacing:.3em;font-weight:800;text-align:center;min-width:0}
.game-shell .tg-hit-form button{white-space:nowrap}
.game-shell .tg14-keypad{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:5px}
.game-shell .tg14-key{font-size:18px;font-weight:800;padding:9px 0;background:#f0f0f0;border:1px solid #ddd;border-radius:8px;min-width:0;touch-action:manipulation}
.game-shell .tg14-backspace{font-size:15px}
.game-shell .tg14-key:active:not(:disabled){background:#252525;color:white}
.game-shell button:focus-visible,.game-shell input:focus-visible{outline:2px solid #696969;outline-offset:3px}
@media(max-width:620px){
 .game-shell .tg14-layout{grid-template-columns:minmax(0,1fr);gap:8px}
 .game-shell .tg14-guide{margin-top:0;grid-template-columns:minmax(0,1fr) 80px;gap:3px 10px;padding:10px 12px}
 .game-shell .tg14-guide .tg14-kicker,.game-shell .tg14-guide h3,.game-shell .tg14-guide p{grid-column:1}
 .game-shell .tg14-guide svg{grid-column:2;grid-row:1/5;height:70px;margin:0;align-self:center}
 .game-shell .tg14-guide h3{font-size:13px}.game-shell .tg14-guide p{font-size:11px}.game-shell .tg14-guide p.muted{font-size:10px}
 .game-shell .tg14-heading{padding:10px 12px;border-radius:12px;gap:8px;margin-bottom:9px}
 .game-shell .tg14-mark{font-size:20px;width:32px;height:32px}
 .game-shell .tg14-heading .tg14-kicker{display:none}
 .game-shell .board,.playing .game-shell .board{width:min(100%,320px);padding:8px;gap:5px}
 .game-shell .tg-cpu-tables{grid-template-columns:minmax(0,1fr);gap:8px}
 .game-shell .tg-cpu-table{max-height:230px}
 .game-shell .tg14-keypad{grid-template-columns:repeat(5,minmax(0,1fr))}
 .game-shell .tg14-backspace{grid-column:1/-1;padding:5px}
 .game-shell .reaction-zone,.playing .game-shell .reaction-zone{min-height:225px}
}
/* Keep the original game chrome, allow content to scroll if the new guide/history needs it. */
body.playing{height:auto;min-height:100dvh;overflow:visible}
body.playing #gameRoot{display:block;min-height:0}
@media(prefers-reduced-motion:reduce){.game-shell *,#gameCards .art img{animation:none!important;transition:none!important}}

/* v1.4: access-key manager only. */
.tg14-key-list{display:grid;gap:8px}.tg14-key-row{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:12px;min-width:0}.tg14-key-row .grow{min-width:0;overflow-wrap:anywhere;display:grid;gap:3px}.tg14-key-row small{font-size:11px}.tg14-key-actions{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end;flex:none}.tg14-key-actions button{font-size:12px;padding:8px 10px}.tg14-key-panel{display:grid;gap:8px;border:1px solid #bbb}.tg14-key-panel input{font:13px ui-monospace,monospace;width:100%;letter-spacing:0}.tg14-key-panel[hidden]{display:none!important}
@media(max-width:390px){.tg14-key-row{align-items:flex-start;flex-wrap:wrap}.tg14-key-actions{width:100%;justify-content:flex-start}}

/* TomoGames v1.4.1: only the post edit dialog. */
.tg141-editor{min-width:0;gap:12px}.tg141-editor textarea{min-height:112px;resize:vertical}.tg141-editor .tg141-thumbnail{display:grid;gap:9px;min-width:0}.tg141-thumb{display:block;width:100%;max-width:320px;aspect-ratio:16/9;object-fit:contain;background:#f2f2f2;border-radius:10px;border:1px solid var(--line,#ddd)}.tg141-editor input[type=file]{max-width:100%}.tg141-editor .tg141-actions{justify-content:flex-end;flex-wrap:wrap;gap:8px}.tg141-editor .tg141-actions .primary{min-width:120px}.tg141-editor .tg141-source{display:grid;gap:6px;overflow-wrap:anywhere}.tg141-editor .formerror:empty{display:none}.tg141-thumbnail .row{flex-wrap:wrap;gap:6px}.tg141-editor label{min-width:0}.tg141-editor label input:not([type=checkbox]),.tg141-editor label select,.tg141-editor label textarea{max-width:100%;box-sizing:border-box}

/* TomoGames v1.4.2: four independent Hit & Blow digit cells only. */
#battleView .tg142-digits,.game-shell .tg142-digits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:min(100%,268px);max-width:100%;min-width:0;flex:1 1 170px}
#battleView .tg142-digits input,.game-shell .tg142-digits input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:auto;aspect-ratio:1;min-height:0;padding:0;margin:0;text-align:center;font-size:clamp(18px,5vw,28px);font-weight:800;line-height:1;letter-spacing:0;font-variant-numeric:tabular-nums;border:1px solid #ccc;border-radius:9px;background:#fafafa;color:#222}
#battleView .tg142-digits input:focus,.game-shell .tg142-digits input:focus{border-color:#222;outline:2px solid #777;outline-offset:1px;background:#fff}
#battleView .tg142-digits input:disabled,.game-shell .tg142-digits input:disabled{opacity:.55}
#battleView .tg-hit-form,.game-shell .tg-cpu-arena .tg-hit-form{flex-wrap:wrap;align-items:center;gap:9px}
.game-shell .tg-cpu-secret-form .tg142-secret-label{font-size:14px;font-weight:700}
@media(max-width:340px){#battleView .tg142-digits,.game-shell .tg142-digits{gap:4px;flex-basis:135px}}

/* v1.4.4 profile icons; private member UI only. */
.tg-profile-avatar{display:inline-grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:50%;overflow:hidden;background:#e8e8e8;color:#333;font-weight:700;vertical-align:middle;font-size:14px}.tg-profile-avatar img,.tg-igu-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.tg-profile-preview{display:flex;justify-content:center;padding:12px}.tg-profile-preview .tg-profile-avatar{width:96px;height:96px;font-size:35px}.tg-profile-welcome,.tg-profile-author{display:flex;align-items:center;gap:8px;min-width:0}.tg-profile-author .tg-profile-avatar{width:24px;height:24px;font-size:12px}.tg-profile-welcome h2{margin:0}.member-line .tg-profile-avatar{margin-right:6px}

/* v1.4.7: YouTube channel profile row only. */
.tg-yt-profile-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 12px;min-width:0}.tg-yt-profile-row .tg-igu-avatar{flex:0 0 40px;width:40px;height:40px}.tg-yt-profile-row strong{min-width:0;overflow-wrap:anywhere}.tg-yt-profile-row a{font-size:12px;color:inherit;text-decoration:underline}.tg-yt-profile-row a[hidden]{display:none}
/* v1.5.1 scoped administration report */
.tg-audit-entry{display:block;width:100%;text-align:left;border:1px solid var(--line);padding:14px;border-radius:12px;margin:0 0 12px;background:#fff;color:#181818;font-weight:750}.tg-audit-entry:hover{background:#f5f5f5}.tg-audit-view{display:grid;gap:12px}.tg-audit-section{display:grid;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px}.tg-audit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.tg-audit-tile{display:grid;gap:4px;text-align:center;background:#f5f5f5;border-radius:8px;padding:8px 2px}.tg-audit-tile strong{font-size:20px;font-variant-numeric:tabular-nums}.tg-audit-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}.tg-audit-row span:first-child{min-width:0;overflow-wrap:anywhere}.tg-audit-row small{text-align:right}.tg-audit-status{white-space:nowrap;font-size:12px;font-weight:750}.tg-audit-status[data-state=PASS],.tg-audit-tile[data-state=PASS] strong{color:#176239}.tg-audit-status[data-state=WARN],.tg-audit-tile[data-state=WARN] strong{color:#875900}.tg-audit-status[data-state=FAIL],.tg-audit-tile[data-state=FAIL] strong{color:#af2029}.tg-audit-status[data-state=SKIP]{color:#666}

/* TomoGames v1.5.4: IGUTUBE watch only. No changes to game/chat pages. */
.igutube-view .tg-watch-layout.tg-watch-v154{display:grid;grid-template-columns:minmax(0,2.18fr) minmax(250px,1fr);grid-template-areas:"bar bar" "main related";column-gap:20px;row-gap:14px;align-items:start;width:100%;max-width:1660px;margin:0 auto;min-width:0}
.igutube-view .tg-watch-v154 .tg154-watch-bar{grid-area:bar;display:flex;align-items:center;gap:12px;min-width:0;width:100%;margin:0;padding:0}
.igutube-view .tg154-watch-bar>.tg-igu-search{min-width:0;max-width:720px;width:auto;flex:1;margin:0}
.igutube-view .tg154-watch-bar>button{flex:0 0 auto;white-space:nowrap}
.igutube-view .tg-watch-v154>.post-detail{grid-area:main;min-width:0;width:100%;max-width:none;margin:0;padding:0;overflow:visible}
.igutube-view .tg-watch-v154>.tg-watch-recommendations{grid-area:related;min-width:0;width:100%;margin:0;padding:0;border:0}
.igutube-view .tg-watch-v154>.tg-watch-recommendations[hidden]{display:none!important}
.igutube-view .tg-watch-v154>.tg-watch-recommendations h3{margin:0 0 12px;font-size:16px}
.igutube-view .tg-watch-v154>.tg-watch-recommendations .media-grid{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px;align-items:start;margin:0;min-width:0}
.igutube-view .tg-watch-v154 .tg-watch-recommendations .tg-igu-card{display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:10px;align-items:start;width:100%;min-width:0;margin:0;padding:0;text-align:left;background:none;box-shadow:none;overflow:visible}
.igutube-view .tg-watch-v154 .tg-watch-recommendations .thumbnail{width:100%;aspect-ratio:16/9;max-height:none;height:auto;min-width:0;overflow:hidden;border-radius:9px;position:relative}
.igutube-view .tg-watch-v154 .tg-watch-recommendations .thumbnail img{width:100%;height:100%;object-fit:cover;display:block}
.igutube-view .tg-watch-v154 .tg-watch-recommendations .tg-igu-card-body{display:flex;gap:6px;min-width:0;margin:0;padding:0;align-items:flex-start}
.igutube-view .tg-watch-v154 .tg-watch-recommendations .tg-igu-avatar{width:24px;height:24px;flex:0 0 24px;font-size:10px}
.igutube-view .tg-watch-v154 .tg-watch-recommendations .tg-igu-card-info{min-width:0;flex:1}
.igutube-view .tg-watch-v154 .tg-watch-recommendations .post-title{font-size:13px;line-height:1.35;margin:0 0 4px;overflow-wrap:anywhere}
.igutube-view .tg-watch-v154 .tg-watch-recommendations small{font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.igutube-view .tg-watch-v154 .post-detail .tg154-player:not(:fullscreen){display:block;position:relative;width:100%;height:auto;max-width:100%;max-height:none!important;min-height:0;aspect-ratio:auto;background:transparent;margin:0;padding:0;border:0;border-radius:12px;overflow:hidden}
.igutube-view .tg-watch-v154 .post-detail .tg154-player-media:not(:fullscreen){display:block;position:static;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;object-fit:contain!important;object-position:center;aspect-ratio:auto;background:transparent;margin:0;padding:0;border:0;border-radius:12px}
.igutube-view .tg-watch-v154 .post-detail .tg154-player.tg154-embed{aspect-ratio:16/9!important;width:100%;height:auto!important;background:transparent!important}
.igutube-view .tg-watch-v154 .post-detail .tg154-player.tg154-embed iframe{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;aspect-ratio:16/9!important;display:block;border:0;margin:0;padding:0}
.igutube-view .tg-watch-v154 .post-detail iframe.tg154-player.tg154-embed{position:static!important;aspect-ratio:16/9!important;height:auto!important;width:100%!important}
.igutube-view .tg-watch-v154 .post-detail .tg154-player.tg154-portrait{width:min(100%,420px);margin:0 auto}
.igutube-view .tg-watch-v154 .post-detail .tg154-player.tg154-square{width:min(100%,680px);margin:0 auto}
.igutube-view .tg-watch-v154 .post-detail h2{font-size:clamp(17px,1.5vw,23px);line-height:1.4;margin:12px 0;overflow-wrap:anywhere}
.igutube-view .tg-watch-v154 .post-detail .tg-igu-description{margin:14px 0}
.igutube-view .tg-watch-v154 .post-detail .tg-igu-local-comments,.igutube-view .tg-watch-v154 .post-detail .tg-yt-comments{margin:18px 0 0;min-width:0}
.igutube-view .tg-watch-v154 .post-detail .row{flex-wrap:wrap;min-width:0}
.igutube-view .tg-watch-v154 .post-detail .row input{min-width:0;max-width:100%}
@media(max-width:900px){
 .igutube-view .tg-watch-layout.tg-watch-v154{grid-template-columns:minmax(0,1fr);grid-template-areas:"bar" "main" "related";gap:14px}
 .igutube-view .tg-watch-v154>.tg-watch-recommendations{margin:8px 0 0;padding-top:12px;border-top:1px solid var(--line,#ddd)}
 .igutube-view .tg-watch-v154 .tg-watch-recommendations .tg-igu-card{grid-template-columns:minmax(0,43%) minmax(0,1fr)}
 .igutube-view .tg-watch-v154 .post-detail .tg154-player.tg154-portrait{width:min(100%,380px)}
}
@media(max-width:480px){
 .igutube-view .tg-watch-v154 .tg154-watch-bar{gap:7px}
 .igutube-view .tg154-watch-bar .tg-igu-search-submit{padding:8px 12px}
 .igutube-view .tg154-watch-bar>.tg-igu-search input{padding:9px 10px;min-width:0;width:0}
 .igutube-view .tg-watch-v154 .post-detail .tg154-player:not(:fullscreen),.igutube-view .tg-watch-v154 .post-detail .tg154-player-media:not(:fullscreen){border-radius:8px}
}

.igutube-view:has(.tg-watch-v154),.igutube-view #privateRoot:has(.tg-watch-v154){max-width:1660px!important;width:100%;box-sizing:border-box}
.igutube-view .tg-watch-v154 .post-detail .tg154-media-wrap:not(:fullscreen){position:relative;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;background:transparent!important;padding:0!important}
.igutube-view .tg-watch-v154 .post-detail .tg154-player.tg154-embed:not(:fullscreen){aspect-ratio:auto!important}
.igutube-view .tg-watch-v154 .post-detail iframe.tg154-player-media:not(:fullscreen){position:static!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:16/9!important;border:0}
.igutube-view .tg-watch-v154 .post-detail .tg154-player.tg154-portrait:not(:fullscreen){width:fit-content!important;max-width:100%!important;margin:0 auto}
.igutube-view .tg-watch-v154 .post-detail .tg154-portrait video.tg154-player-media:not(:fullscreen),.igutube-view .tg-watch-v154 .post-detail video.tg154-player.tg154-portrait:not(:fullscreen){width:auto!important;max-width:100%!important;height:auto!important;max-height:min(76vh,820px)!important;object-fit:contain!important;margin:0 auto}
.igutube-view .tg-watch-v154 .post-detail .tg154-player.tg154-square:not(:fullscreen){width:min(100%,680px)!important;margin:0 auto}
.igutube-view .tg-watch-v154 .post-detail iframe.tg154-player.tg154-embed:not(:fullscreen){aspect-ratio:16/9!important}


/* TG18-DESIGN: UI only; original game and security code retained. */
:root{--tg18-screen:100vh;--tg18-head:104px;--tg18-wave:79px;--tg18-foot:38px;--tg18-gap:16px;--tg18-line:#c8dadd;--tg18-ink:#294752}
@supports(height:100svh){:root{--tg18-screen:100svh}}
.tg18-header{position:relative;flex:none;height:var(--tg18-wave);padding:0!important;border:0!important;background:transparent;color:var(--tg18-ink);overflow:hidden;z-index:3}
.tg18-header .wordmark{position:absolute;top:13px;left:50%;transform:translateX(-50%);font-weight:850;letter-spacing:-.06em;line-height:1;font-size:clamp(24px,5vw,43px);background:none;z-index:2;white-space:nowrap;max-width:calc(100% - 100px);overflow:hidden;text-overflow:ellipsis;display:block;text-align:center}
.tg18-header .topactions{display:none}
.tg18-header .header-wave{display:block;position:absolute;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none}
.tg18-header .portrait-wave{display:none}
.tg18-header .wave-track{animation:waveSway 3.8s ease-in-out infinite alternate;transform-box:view-box;transform-origin:center}
#tg18HomeGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(86vw,1800px);margin:auto;column-gap:0;row-gap:clamp(10px,2.6vh,24px);align-items:center;justify-items:center;transform-origin:center;--tile-size:min(20vw,360px,max(16.25vw,calc((var(--tg18-screen) - var(--tg18-head) - var(--tg18-foot) - 24px - var(--tg18-gap))/2)))}
#tg18HomeGrid .tg18-app{width:var(--tile-size);max-width:100%;aspect-ratio:1;display:grid;place-items:center;padding:5.5%;border:1.4px solid var(--tg18-line);border-radius:clamp(14px,3vw,26px);box-shadow:0 3px 13px #183e4710;color:var(--tg18-ink);text-decoration:none;transition:transform .18s,background .18s}
#tg18HomeGrid .tg18-app svg{width:91%;height:91%;display:block;pointer-events:none}
#tg18HomeGrid .tg18-app:hover{transform:translateY(-2px)}#tg18HomeGrid .tg18-app:active{transform:scale(.96)}
#tg18HomeGrid [data-ui=hit]{background:#f0f7fb}#tg18HomeGrid [data-ui=merge]{background:#fff6e9}#tg18HomeGrid [data-ui=records]{background:#f0f8f1}#tg18HomeGrid [data-ui=catalog]{background:#f5f1fc}#tg18HomeGrid [data-ui=friends]{background:#eef9f8}#tg18HomeGrid [data-ui=ranking]{background:#fdf1f4}
#homeView:not(.tg18-catalog) #gameCards,#homeView:not(.tg18-catalog) .home-extras{display:none}
#homeView.tg18-catalog #tg18HomeGrid{display:none}
#tg18CatalogHead{display:flex;align-items:center;gap:12px;margin:0 0 14px}
body.tg18-home #main{position:relative;z-index:2;max-width:none;padding:0 16px;display:flex;flex-direction:column;flex:1}
body.tg18-home #homeView:not(.tg18-catalog){display:flex;flex-direction:column;justify-content:center;flex:1;min-height:calc(var(--tg18-screen) - var(--tg18-wave) - var(--tg18-foot));padding:8px 0 12px;animation:none}
body.tg18-home #homeView.tg18-catalog{max-width:1120px;width:100%;margin:auto}
body.tg18-home .footer{position:relative;z-index:2;padding:4px 14px;min-height:var(--tg18-foot);border-top:1px solid #e1eaeb;width:min(92%,1360px);max-width:none;color:#637e86}
#tg18Replay{background:none;font-size:11px;font-weight:500;padding:5px 2px;color:#637e86}
/* The approved 3.8-second timeline; only production selectors differ. */
#tg18Mouth,#tg18Intro{position:fixed;inset:0;overflow:hidden;pointer-events:none;visibility:hidden}#tg18Mouth{z-index:1;background:#f4bdca}#tg18Throat{position:absolute;left:50%;top:65%;width:min(22vw,34vh);aspect-ratio:1;border-radius:50%;background:#d894a6;transform:translate(-50%,-50%);opacity:1}#tg18White{position:absolute;inset:0;background:#fff;opacity:1}#tg18Intro{z-index:50;isolation:isolate;touch-action:manipulation}.jaw{position:absolute;inset:0;transform-origin:50% 60%;pointer-events:none}.jaw svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible}.jaw .portrait-shark{display:none}
#tg18Skip{position:absolute;top:max(12px,env(safe-area-inset-top));right:12px;font-size:11px;background:#ffffffed;border:1px solid #e1e9e9;border-radius:999px;padding:8px 12px;z-index:4;color:#667d85;pointer-events:auto}
.tg18-opening #tg18Intro,.tg18-opening #tg18Mouth{animation:visibleDuring 3800ms linear both}.tg18-opening #tg18Intro{animation-duration:2770ms}
.tg18-opening .upper{animation:upperL 2770ms cubic-bezier(.56,.06,.72,.70) both}.tg18-opening .lower{animation:lowerL 2770ms cubic-bezier(.56,.06,.72,.70) both}.tg18-opening #tg18Throat{animation:throatGrow 2770ms cubic-bezier(.56,.06,.72,.70) both}.tg18-opening #tg18White{animation:whiteIn 2950ms linear both}.tg18-opening #tg18HomeGrid{animation:appsGrow 2770ms cubic-bezier(.56,.06,.72,.70) both}.tg18-opening .tg18-header{animation:headerIn 3800ms linear both}.tg18-opening .tg18-header .header-wave{animation:waveEnter 3800ms ease-out both}.tg18-opening .tg18-header .wordmark{animation:logoEnter 3800ms ease-out both}.tg18-opening .footer{animation:controlsIn 3800ms linear both}.tg18-opening #main{animation:enableUI 3800ms linear both}
@media(orientation:portrait){:root{--tg18-wave:83px;--tg18-head:123px;--tg18-gap:clamp(10px,3vw,18px)}.jaw .landscape-shark,.tg18-header .landscape-wave{display:none}.jaw .portrait-shark,.tg18-header .portrait-wave{display:block}.jaw{transform-origin:50% 50%}.tg18-header .wordmark{font-size:40px;top:15px}#tg18HomeGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--tg18-gap);width:min(76vw,390px,calc((var(--tg18-screen) - var(--tg18-head)*2 - var(--tg18-gap)*2 - 12px)*.6667 + var(--tg18-gap)));--tile-size:100%}#tg18HomeGrid .tg18-app{padding:8px;border-radius:clamp(15px,5vw,25px)}#tg18Throat{left:64%;top:43%;width:min(27vw,25vh)} }
@media(orientation:portrait) and (max-height:560px){:root{--tg18-wave:66px;--tg18-head:99px;--tg18-gap:9px}.tg18-header .wordmark{font-size:34px;top:10px}#tg18HomeGrid{width:min(74vw,340px,calc((var(--tg18-screen) - var(--tg18-head) - var(--tg18-foot) - 24px)*.6667))}}
@media(orientation:landscape) and (max-height:500px){:root{--tg18-wave:60px;--tg18-head:94px;--tg18-foot:35px;--tg18-gap:11px}.tg18-header .wordmark{top:8px;font-size:32px}#tg18HomeGrid{--tile-size:min(20vw,360px,max(16.25vw,calc((var(--tg18-screen) - var(--tg18-wave) - var(--tg18-foot) - 30px)/2)));row-gap:10px}}
@media(prefers-reduced-motion:reduce){.tg18-opening #tg18Intro,.tg18-opening #tg18Mouth,.tg18-opening .jaw,.tg18-opening #tg18Throat,.tg18-opening #tg18White,.tg18-opening #tg18HomeGrid,.tg18-opening .tg18-header,.tg18-opening .tg18-header .header-wave,.tg18-opening .tg18-header .wordmark,.tg18-opening .footer,.tg18-opening #main,.tg18-header .wave-track{animation:none!important}}
/* Inner views: the actual existing game components are rearranged, never simulated. */
body.tg18-inner .tg18-header{height:clamp(54px,9.5svh,76px)}body.tg18-inner .tg18-header .wordmark{top:10px;font-size:clamp(20px,4vw,31px);letter-spacing:-.025em}
body.tg18-inner #main{max-width:1380px;padding:0 clamp(10px,2.5vw,28px)}
body.tg18-inner #gameView,body.tg18-inner #recordsView,body.tg18-inner #battleView{padding:8px 0 10px}
#gameView .section-head{margin:0 0 7px;min-height:36px}#gameView #gameLabel{display:none}
#gameView .game-shell{max-width:1260px!important;background:transparent;border:0;padding:0;box-shadow:none}
#gameView .tg14-heading{display:none}
#gameView .tg18-game-layout{display:grid;grid-template-columns:minmax(112px,.85fr) minmax(0,3.4fr) minmax(132px,1fr);gap:clamp(8px,1.6vw,18px);align-items:stretch}
#gameView .tg18-game-layout .tg14-stage,#gameView .tg18-game-layout .game-toolbar,#gameView .tg18-game-layout .tg14-guide{min-width:0;background:white;border:1.4px solid #c8dadd;border-radius:18px;padding:10px;margin:0;box-shadow:0 3px 13px #183e470b}
#gameView .tg18-game-layout .tg14-stage{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#gameView .tg18-game-layout .game-toolbar{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:8px}
#gameView .tg18-game-layout .game-toolbar .stat{flex:none;min-width:0;padding:7px 4px;border:0;border-bottom:1px solid #dce7e9;border-radius:0}
#gameView .tg18-game-layout .game-toolbar button{min-height:40px;padding:5px;font-size:12px}
#gameView .tg18-game-layout .tg14-guide{grid-column:3;grid-row:1;display:flex;flex-direction:column;justify-content:center;gap:7px;font-size:12px;align-self:stretch;text-align:left}
#gameView .tg18-game-layout .tg14-guide svg,#gameView .tg18-game-layout .tg14-kicker,#gameView .tg18-game-layout .tg14-stage>p.muted{display:none}
#gameView .tg18-game-layout .tg14-guide h3{font-size:14px}#gameView .tg18-game-layout .board{width:min(100%,460px,max(152px,calc(var(--tg18-screen) - 125px)));aspect-ratio:1;min-width:0;margin:2px auto}
#gameView .tg18-game-layout .tg14-guide .controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:6px 0 0;width:100%}
#gameView .tg18-game-layout .controls button{min-width:0;min-height:40px;padding:5px;font-size:19px}
#gameView .tg18-game-layout .game-status{min-height:0;font-size:12px;line-height:1.4}
#gameView .game-shell[data-game=hitblow] .tg14-layout{display:block}#gameView .game-shell[data-game=hitblow] .tg14-stage{border:1px solid #c8dadd;border-radius:17px;padding:10px}
#gameView .tg-cpu-tables{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#gameView .tg-cpu-table{max-height:clamp(100px,26svh,240px);overflow:auto;overscroll-behavior:contain}#gameView .tg-cpu-table td,#gameView .tg-cpu-table th{padding:5px 3px}
#gameView .tg-cpu-setup,#gameView .tg-cpu-arena{gap:7px}#gameView .tg14-keypad{gap:4px}#gameView .tg14-key{min-height:38px;padding:4px}
#gameView .tg-cpu-levels{gap:6px}#gameView .tg-cpu-level{padding:8px}#gameView .tg-cpu-level small{font-size:11px}
#recordsView .section-head h2,#battleView .section-head h2{display:none}#recordList{border:1px solid #c8dadd;border-radius:18px;padding:10px;overflow:hidden}#recordList .record-line{padding:12px 10px;border-bottom:1px solid #e1eaeb}#recordList .record-line:last-child{border:0}
#recordList .tg18-record-head{display:flex;justify-content:space-between;gap:8px;padding:7px 10px;color:#486771;font-weight:750;background:#e6f4f6;border-radius:10px}
#battleView .tg-battle-intro.tg18-room-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:transparent;border:0;box-shadow:none;padding:0;margin:auto;max-width:920px}
.tg18-room-panel{display:flex;flex-direction:column;gap:8px;border:1px solid #c8dadd;border-radius:20px;padding:16px;min-width:0;background:#fff}.tg18-room-panel h3{border-bottom:1px solid #dce7e9;padding:0 0 9px;color:#486771}.tg18-room-panel label{margin:0!important}.tg18-room-panel button{min-height:42px}.tg18-room-panel input{min-height:42px}.tg18-room-note{grid-column:1/-1;text-align:center}
@media(orientation:portrait){#gameView .tg18-game-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:520px;margin:auto}#gameView .tg18-game-layout .tg14-stage{grid-row:1;grid-column:1/-1;padding:7px}#gameView .tg18-game-layout .game-toolbar{grid-row:2;grid-column:1;padding:7px;gap:4px;justify-content:space-evenly}#gameView .tg18-game-layout .tg14-guide{grid-row:2;grid-column:2;padding:8px;gap:4px}#gameView .tg18-game-layout .tg14-guide p{font-size:11px;line-height:1.35}#gameView .tg18-game-layout .tg14-guide h3{font-size:12px}#gameView .tg18-game-layout .board{width:min(100%,380px,max(156px,calc(var(--tg18-screen) - 325px)));padding:6px;gap:5px}#gameView .tg18-game-layout .game-toolbar .stat{padding:3px 2px}#gameView .tg18-game-layout .game-toolbar .stat strong{font-size:21px}#gameView .tg18-game-layout .tg14-guide .controls{margin:3px 0 0}#gameView .tg18-game-layout .controls button{min-height:36px}#gameView .tg-cpu-tables{grid-template-columns:repeat(2,minmax(0,1fr))}#gameView .tg-cpu-table h3{font-size:12px}#gameView .tg-cpu-table td{font-size:11px}#gameView .tg-cpu-table .tg-cpu-digits{font-size:12px;letter-spacing:0}#gameView .tg-cpu-table{padding:5px}#battleView .tg-battle-intro.tg18-room-layout{grid-template-columns:1fr;gap:8px;max-width:490px}.tg18-room-panel{padding:10px 12px;gap:5px}.tg18-room-panel h3{padding-bottom:4px;font-size:16px}.tg18-room-panel input{min-height:39px;padding:6px 9px}.tg18-room-panel button{min-height:39px;padding:6px}.tg18-room-note{font-size:11px}body.tg18-inner .footer{padding:4px 12px}}
@media(orientation:landscape) and (max-height:500px){#gameView .tg18-game-layout .board{width:min(100%,max(135px,calc(var(--tg18-screen) - 125px)))}#gameView .tg18-game-layout .tg14-stage,#gameView .tg18-game-layout .game-toolbar,#gameView .tg18-game-layout .tg14-guide{padding:6px;gap:5px}#gameView .tg18-game-layout .game-toolbar .stat{padding:3px}#gameView .tg18-game-layout .tg14-guide .controls button{min-height:34px}}
#tg18RankingGames{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}#tg18RankingGames button{min-height:42px}
@keyframes visibleDuring{0%,99.9%{visibility:visible}100%{visibility:hidden}}
@keyframes upperL{from{transform:translateY(0) scale(1)}to{transform:translateY(-94%) scale(1.3)}}
@keyframes lowerL{from{transform:translateY(0) scale(1)}to{transform:translateY(67%) scale(1.22)}}
@keyframes throatGrow{from{transform:translate(-50%,-50%) scale(1)}to{transform:translate(-50%,-65%) scale(7)}}
@keyframes whiteIn{0%,28%{opacity:0;clip-path:circle(0% at 50% 55%)}91%,100%{opacity:1;clip-path:circle(155% at 50% 55%)}}
@keyframes appsGrow{0%{opacity:0;transform:scale(.05)}13%{opacity:1;transform:scale(.13)}100%{opacity:1;transform:scale(1)}}
@keyframes headerIn{0%,73%{visibility:hidden;opacity:0}74%,100%{visibility:visible;opacity:1}}
@keyframes waveEnter{0%,73%{clip-path:inset(0 100% 0 0);transform:translate(-15%,-8px)}100%{clip-path:inset(0);transform:translate(0,0)}}
@keyframes logoEnter{0%,79%{opacity:0;transform:translateX(calc(-50% - 60vw))}82%{opacity:1;transform:translateX(calc(-50% - 40vw))}100%{opacity:1;transform:translateX(-50%)}}
@keyframes controlsIn{0%,91%{opacity:0}100%{opacity:1}}@keyframes enableUI{0%,99%{pointer-events:none}100%{pointer-events:auto}}
@media(orientation:portrait){.tg18-opening .upper{animation-name:upperP}.tg18-opening .lower{animation-name:lowerP}.tg18-opening #tg18Throat{animation-name:throatP}@keyframes upperP{from{transform:translate(0,0) scale(1)}to{transform:translate(-8%,-90%) scale(1.26)}}@keyframes lowerP{from{transform:translate(0,0) scale(1)}to{transform:translate(8%,88%) scale(1.26)}}@keyframes throatP{from{left:64%;top:43%;transform:translate(-50%,-50%) scale(1)}to{left:50%;top:50%;transform:translate(-50%,-50%) scale(8)}}}
@keyframes waveSway{from{transform:translate(-18px,-1px)}to{transform:translate(18px,2px)}}
body:not(.tg18-ready) #homeView #gameCards{display:grid}body:not(.tg18-ready) #homeView .home-extras{display:grid}body:not(.tg18-ready) #tg18HomeGrid button{display:none}

/* TG19-IGUTUBE: scoped member pages; public games and opening remain unchanged. */
body.tg19-private{background:#fff;--tg19-ink:#263d43;--tg19-line:#e6e9eb;--tg19-side-width:206px;--tg19-head-height:64px;color:var(--tg19-ink)}
body.tg19-private>.top,body.tg19-private>.footer{display:none!important}
body.tg19-private #main{width:100%;max-width:none!important;padding:0!important;margin:0!important}
#privateView.tg19-shell{width:100%;max-width:none!important;margin:0!important;padding:0 26px 24px calc(var(--tg19-side-width) + 26px)!important;min-height:100dvh;animation:none;min-width:0}
.tg19-head{position:sticky;top:0;z-index:15;display:flex;align-items:center;gap:20px;height:var(--tg19-head-height);margin:0 -26px 14px calc(-1 * (var(--tg19-side-width) + 26px));padding:0 26px;background:#fff;border-bottom:1px solid var(--tg19-line)}
.tg19-head .tg19-brand{min-width:0;flex:0 0 calc(var(--tg19-side-width) - 26px);font-size:23px;letter-spacing:-.055em;background:transparent;box-shadow:none;color:#263d43;display:flex;align-items:center;gap:7px;padding:0;border:0}
.tg19-brand .play-icon{background:#d83e49;color:white;border-radius:6px;padding:4px 8px;line-height:1.1;font-size:13px}
.tg19-search-mount{flex:1;min-width:0;max-width:640px;margin:0 auto}
.tg19-head .tg-igu-search{width:100%;min-width:0;margin:0!important;max-width:none;display:flex}
.tg19-head .tg-igu-search input{min-width:0;border-color:var(--tg19-line);font-size:16px;padding:8px 14px;height:42px}
.tg19-head .tg-igu-search-submit{background:#f5f7f7;border-color:var(--tg19-line);font-size:13px;white-space:nowrap;padding:0 14px}
.tg19-head-actions{display:flex;gap:6px;margin-left:auto;flex-shrink:0;align-items:center}
.tg19-nav-button,.tg19-profile-button{border:0;box-shadow:none;background:transparent;display:flex;align-items:center;gap:12px;min-width:0;text-align:left;padding:11px 12px;color:inherit;border-radius:9px;font-size:14px;font-weight:600;position:relative}
.tg19-nav-button svg{width:23px;height:23px;flex:0 0 23px;display:block}
.tg19-nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tg19-selected{background:#eaf3f3!important;color:#23464b!important}
.tg19-nav-button:hover,.tg19-profile-button:hover{background:#f1f5f5}
.tg19-header-icon{width:44px;height:44px;padding:10px;justify-content:center}
.tg19-header-icon .tg19-nav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tg19-header-icon .tg-unread{position:absolute;top:1px;right:0;margin:0}
.tg19-head:has(.tg-igu-search) .tg19-search-toggle{display:none}
.tg19-side{position:fixed;left:0;top:var(--tg19-head-height);bottom:0;width:var(--tg19-side-width);padding:10px 10px 12px;border-right:1px solid var(--tg19-line);display:flex;flex-direction:column;gap:12px;z-index:14;overflow-y:auto;overscroll-behavior:contain;background:white}
.tg19-side nav,.tg19-side-rooms{display:flex;flex-direction:column;gap:3px;min-width:0}
.tg19-side-rooms{border-top:1px solid var(--tg19-line);padding-top:9px;min-height:0;overflow:auto}
.tg19-side-rooms h3{font-size:11px;color:#73858a;padding:0 12px 4px;font-weight:600}
.tg19-side-rooms .tg19-room{padding:8px 12px;font-size:12px}
.tg19-side-rooms .tg19-room svg{width:17px;height:17px;flex-basis:17px}
.tg19-side-profile{margin-top:auto;padding-top:10px;border-top:1px solid var(--tg19-line)}
.tg19-profile-button .tg-profile-avatar{width:27px;height:27px;flex:0 0 27px}
.tg19-bottom{display:none}
#privateView.tg19-shell .tg-igu-filters{position:sticky;top:var(--tg19-head-height);z-index:10;background:#fff;margin:0 0 7px;padding:7px 0 9px;gap:7px;scrollbar-width:none}
#privateView.tg19-shell .tg-igu-filters::-webkit-scrollbar{display:none}
#privateView.tg19-shell .tg-igu-filters button{border-radius:99px;font-size:13px;background:#f2f4f4;color:#3d5359;padding:8px 15px;min-height:36px}
#privateView.tg19-shell .tg-igu-filters button.selected{background:#29474d;color:#fff}
.tg19-options{margin:0 0 11px;font-size:12px;color:#64767b}
.tg19-options summary{cursor:pointer;list-style:none;display:inline-flex;gap:5px;align-items:center;background:#f7f8f8;border-radius:8px;padding:5px 10px}
.tg19-options summary::after{content:'⌄'}
.tg19-options[open] summary::after{content:'⌃'}
.tg19-options[open] .tg-igu-options{margin:8px 0}
#privateView.tg19-shell>.media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}
#privateView.tg19-shell .tg-igu-card{min-width:0;overflow:hidden}
#privateView.tg19-shell .tg-igu-card .thumbnail{border-radius:10px;background:#eef0f1}
#privateView.tg19-shell .tg-igu-card-body{gap:9px;margin-top:8px;align-items:flex-start}
#privateView.tg19-shell .tg-igu-card .post-title{font-size:15px;line-height:1.4;font-weight:700;color:#263d43}
#privateView.tg19-shell .tg-igu-card-info small{color:#6b777a}
#privateView.tg19-shell .tg-igu-status:empty{display:none}
#privateView.tg19-shell>.media-grid>.empty,#privateView.tg19-shell .tg-igu-section{grid-column:1/-1}
#privateView.tg19-shell>.chat-layout{margin-top:6px}
#privateView.tg19-shell[data-tg19-tab="menu"] .tg-profile-welcome{margin:8px 0 16px}
#privateView.tg19-shell[data-tg19-tab="menu"]>.panel{max-width:650px;margin-top:15px}
/* Authentication stays a real dialog, with the original form and security logic. */
#modal.tg19-auth{background:rgba(255,255,255,.94);border:1px solid #d5e0e1;max-width:min(390px,calc(100% - 28px));border-radius:24px;padding:24px;box-shadow:0 20px 70px #173c4426;backdrop-filter:blur(14px)}
#modal.tg19-auth::backdrop{background:#16343e38;backdrop-filter:blur(3px)}
#modal.tg19-auth .primary{background:#29474d}
@media (max-width:900px){body.tg19-private{--tg19-side-width:172px}#privateView.tg19-shell{padding-right:16px!important;padding-left:calc(var(--tg19-side-width) + 16px)!important}.tg19-head{margin-left:calc(-1 * (var(--tg19-side-width) + 16px));margin-right:-16px;padding:0 16px;gap:10px}.tg19-head .tg19-brand{flex-basis:calc(var(--tg19-side-width) - 16px);font-size:20px}.tg19-side{padding-inline:6px}.tg19-nav-button,.tg19-profile-button{gap:8px;padding-inline:9px}}
@media (orientation:portrait),(max-width:700px){
 body.tg19-private{--tg19-head-height:56px;--tg19-side-width:0px}
 #privateView.tg19-shell{padding:0 12px calc(77px + env(safe-area-inset-bottom))!important}
 .tg19-head{margin:0 -12px 3px;padding:0 13px;gap:8px;min-height:56px;height:auto;flex-wrap:wrap}
 .tg19-head .tg19-brand{flex:1 0 auto;font-size:23px;min-height:56px}
 .tg19-head-actions{gap:2px}
 .tg19-head:has(.tg-igu-search) .tg19-search-toggle{display:flex}
 .tg19-search-mount{display:none;order:3;flex:0 0 100%;padding-bottom:9px}
 .tg19-head.tg19-search-open .tg19-search-mount:not(:empty){display:block}
 #privateView.tg19-shell:has(.tg19-search-open) .tg-igu-filters{top:107px}
 .tg19-side{display:none}
 .tg19-bottom{position:fixed;z-index:25;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom));height:56px;background:#fffffff5;border:1px solid #dce4e5;border-radius:24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:3px 6px;box-shadow:0 4px 18px #16343e15;backdrop-filter:blur(12px)}
 .tg19-bottom .tg19-nav-button{flex-direction:column;justify-content:center;gap:1px;padding:2px 4px;font-size:10px;border-radius:19px;min-height:46px}
 .tg19-bottom .tg19-nav-button svg{width:23px;height:23px;flex-basis:23px}
 #privateView.tg19-shell .tg-igu-filters{margin:0 0 4px;padding:5px 0 7px}
 #privateView.tg19-shell .tg-igu-filters button{min-height:34px;padding:6px 12px;font-size:12px}
 .tg19-options{margin-bottom:7px}
 #privateView.tg19-shell>.media-grid{grid-template-columns:minmax(0,1fr);gap:17px}
 #privateView.tg19-shell>.media-grid .tg-igu-card .thumbnail{border-radius:10px}
 #privateView.tg19-shell .tg-igu-card-body{gap:8px;margin-top:7px}
 #privateView.tg19-shell .tg-igu-card .post-title{font-size:14px}
 #privateView.tg19-shell .tg-watch-layout .media-grid{grid-template-columns:minmax(0,1fr)}
 #privateView.tg19-shell .chat-layout{grid-template-columns:minmax(0,1fr)}
 #privateView.tg19-shell .messages{height:clamp(125px,calc(100dvh - 330px),440px)}
 #privateView.tg19-shell .post-detail{width:100%;min-width:0}
}
@media (prefers-reduced-motion:reduce){.tg19-shell *{scroll-behavior:auto!important}}
.tg19-account-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--tg19-line)}
#privateView.tg19-shell .tg-igu-card .tg-source-label{font-size:11px;line-height:1.4}
.tg19-own-posts{margin:22px 0;min-width:0}.tg19-own-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.tg19-own-posts .media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media(orientation:portrait),(max-width:700px){.tg19-own-posts .media-grid{grid-template-columns:minmax(0,1fr)}.tg19-own-posts{margin:17px 0}}

/* UI20 game-only overrides: the home, IGUTUBE, wave and shark animation are untouched. */
body.tg20-solo{--tg20-height:100vh;--tg20-head:66px;--tg20-gap:clamp(8px,1.5vw,18px);color:#294752;min-height:var(--tg20-height);height:auto;overflow:visible}
@supports(height:100svh){body.tg20-solo{--tg20-height:100svh}}
body.tg20-solo .tg18-header{height:var(--tg20-head);min-height:var(--tg20-head)}
body.tg20-solo .tg18-header .wordmark{top:10px;line-height:1.2;font-size:clamp(18px,3.2vw,32px);max-width:calc(100% - 110px);letter-spacing:0}
body.tg20-solo #main{max-width:1440px;width:100%;padding:0 clamp(8px,2vw,26px);display:flex;flex-direction:column;flex:1;min-height:0}
body.tg20-solo #gameView{display:flex!important;flex:1;flex-direction:column;padding:6px 0 10px;animation:none;min-height:0}
body.tg20-solo #gameView[hidden]{display:none!important}
body.tg20-solo #gameView .section-head{display:flex;justify-content:space-between;margin:0 0 8px;min-height:36px;gap:6px}
body.tg20-solo #gameLabel{display:none}
body.tg20-solo #gameView .section-head button{padding:5px 10px;border:1px solid #d4e3e7;border-radius:10px;color:#486771;font-size:12px;min-height:34px;background:white}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game){display:flex;flex:1;align-items:center;min-height:0}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game)>.game-shell[data-game]{width:100%;max-width:1340px!important;min-width:0;max-height:none;padding:0!important;margin:0 auto;background:none;border:0;box-shadow:none;color:#294752;--muted:#657b82;--line:#d7e3e6}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg14-heading{display:none}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout{display:grid;grid-template-columns:minmax(104px,1fr) minmax(0,4fr) minmax(125px,1.15fr);gap:var(--tg20-gap);align-items:stretch;max-width:none;margin:auto}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-stage,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-stats,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-guide{background:#fff;border:1.5px solid #c9dade;border-radius:22px;min-width:0;min-height:0;margin:0;box-shadow:none;padding:clamp(10px,1.5vw,20px)}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage{grid-area:1/2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;min-height:min(440px,max(160px,calc(var(--tg20-height) - 150px)))}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage>p.muted{display:none}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats{grid-area:1/1;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:0}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats .stat{min-width:0;flex:none;background:none;border:0;border-bottom:1px solid #e1eaec;border-radius:0;padding:12px 2px;text-align:center}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats .stat:last-of-type{border-bottom:0}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats small{display:block;font-size:12px;letter-spacing:0;color:#657b82}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats strong{display:block;font-size:clamp(18px,2.2vw,30px);color:#294752;line-height:1.2;overflow-wrap:anywhere;margin-top:5px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide{grid-area:1/3;display:flex;flex-direction:column;justify-content:center;align-items:stretch;text-align:left;gap:10px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-panel-title{border-bottom:1px solid #dce7e9;padding-bottom:7px;font-size:15px;line-height:1.3;color:#294752}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-help{font-size:13px;line-height:1.55;overflow-wrap:anywhere}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide>button,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide .controls button{border:1px solid #d2e1e4;background:#e8f2f4;border-radius:10px;color:#294752;min-height:42px;min-width:0;padding:5px;font-size:13px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide .controls{width:100%;display:grid;gap:6px;margin:0}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-directions{grid-template-columns:repeat(2,minmax(0,1fr))}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-directions button{font-size:23px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .board{width:min(100%,480px,max(146px,calc(var(--tg20-height) - 152px)));max-width:100%;min-width:0;aspect-ratio:1;margin:0;flex:none}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .reaction-zone{height:clamp(130px,calc(var(--tg20-height) - 155px),430px);min-height:0;width:100%;padding:8px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .game-canvas{width:100%;max-height:calc(var(--tg20-height) - 150px);object-fit:contain;border-radius:12px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .game-status{font-size:11px;min-height:0;margin:0;line-height:1.3}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .game-status:empty{display:none}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-hb-info{display:grid;gap:6px;text-align:center;margin-top:6px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-hb-info .tg-cpu-secret{padding:4px;background:#f3f7f7;border-color:#dce7e9}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-hb-info .tg-cpu-own{font-size:clamp(15px,2.3vw,24px);letter-spacing:.08em}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .tg-cpu-setup,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .tg-cpu-arena{width:100%;max-width:660px;gap:7px;min-width:0;text-align:left}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-setup>h2{font-size:18px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-setup>p.muted,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-arena>p.muted{font-size:11px;line-height:1.4}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-setup>h3{font-size:13px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-levels{gap:5px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-level{padding:8px;min-height:40px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-level small{font-size:10px;line-height:1.4}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-secret-form{gap:5px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-secret-form button,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-hit-form button{min-height:40px;padding:5px 10px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-turn{padding:5px 8px;font-size:13px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-tables{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-table{max-height:clamp(86px,25svh,220px);min-height:80px;overflow:auto;overscroll-behavior:contain;padding:0 0 4px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-table h3{font-size:12px;padding:6px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-table td,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-table th{padding:4px 2px;font-size:11px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-table .tg-cpu-digits{font-size:13px;letter-spacing:.02em}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg14-keypad{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg14-key{min-height:34px;padding:4px;font-size:16px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg14-backspace{grid-column:auto}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg142-digits{min-width:0;max-width:100%;gap:4px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg142-digits input{min-width:0;min-height:38px;height:40px;max-width:100%;font-size:20px;padding:3px;margin:0}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-hit-form{display:flex;flex-wrap:wrap;gap:5px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-result{padding:8px}
:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-result h2{font-size:18px}
body.tg20-solo .footer{display:none}
@media(orientation:portrait){
 body.tg20-solo{--tg20-head:62px;--tg20-gap:8px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game){align-items:flex-start}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px;align-items:stretch}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-stage,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-stats,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-guide{padding:10px;border-radius:17px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage{grid-area:1/1/2/3;min-height:0}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats{grid-area:2/1;justify-content:center}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide{grid-area:2/2;gap:6px;justify-content:center}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats .stat{padding:5px 2px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats strong{font-size:22px;margin-top:2px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-panel-title{font-size:13px;padding-bottom:4px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-help{font-size:11px;line-height:1.45}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .board{width:min(100%,400px,max(150px,calc(var(--tg20-height) - 325px)));padding:7px;gap:5px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .reaction-zone{height:min(360px,max(156px,calc(var(--tg20-height) - 278px)))}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide .controls button{min-height:38px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide>button{min-height:38px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-hb-info .tg-cpu-own{font-size:19px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-table{max-height:clamp(83px,19svh,180px)}
}
@media(orientation:portrait) and (max-height:650px){
 body.tg20-solo{--tg20-head:48px}
 body.tg20-solo .tg18-header .wordmark{top:7px;font-size:20px}
 body.tg20-solo #gameView .section-head{margin-bottom:4px;min-height:31px}
 body.tg20-solo #gameView .section-head button{min-height:30px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide{padding:6px!important}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .board{width:min(100%,max(145px,calc(var(--tg20-height) - 290px)))}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide .controls button{min-height:34px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide>button{min-height:34px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-level small{display:none}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-setup>p.muted,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-arena>p.muted{display:none}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-table{max-height:85px;min-height:68px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg14-key{min-height:32px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats strong{font-size:19px}
}
@media(orientation:landscape) and (max-height:500px){
 body.tg20-solo{--tg20-head:48px;--tg20-gap:8px}
 body.tg20-solo .tg18-header .wordmark{top:5px;font-size:22px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-stage,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-stats,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-guide{padding:7px;border-radius:14px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage{min-height:0}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .board{width:min(100%,max(140px,calc(var(--tg20-height) - 118px)))}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stats .stat{padding:6px 2px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide{gap:5px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-help{font-size:11px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide .controls button,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide>button{min-height:32px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-setup>p.muted,:is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-arena>p.muted{display:none}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg-cpu-table{max-height:80px;min-height:65px}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg14-keypad{grid-template-columns:repeat(11,minmax(0,1fr))}
 :is(body.tg20-solo #gameRoot,body.tg21-duel .tg-duel-game) .tg14-key{min-height:30px}
}
/* More specific than the old hitblow-only block layout. */
:is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .game-shell[data-game] .tg20-layout{display:grid!important}
:is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout>.tg20-guide{align-self:stretch}
:is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage{border:1.5px solid #c9dade;border-radius:22px}
@media(orientation:portrait) and (max-height:650px){
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .board{width:min(100%,max(145px,calc(var(--tg20-height) - 347px)))}
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .reaction-zone{height:min(285px,max(140px,calc(var(--tg20-height) - 312px)))}
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide .controls{gap:4px}
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .tg20-guide .tg20-help{line-height:1.35}
}
@media(orientation:landscape) and (max-height:500px){
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .tg20-stage .board{width:min(100%,max(140px,calc(var(--tg20-height) - 130px)))}
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .tg20-layout[data-game=hitblow] .tg14-keypad{grid-template-columns:repeat(11,minmax(0,1fr))}
}
@media(orientation:portrait) and (max-height:650px){
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .game-shell[data-game=hitblow] .tg20-stats .stat{padding:2px}
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .game-shell[data-game=hitblow] .tg20-hb-info{gap:3px;margin-top:0}
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .game-shell[data-game=hitblow] .tg-cpu-mode{padding:2px 6px;font-size:11px}
 :is(body.tg20-solo #gameView #gameRoot,body.tg21-duel .tg-duel-game) .game-shell[data-game=hitblow] .tg-cpu-secret{gap:1px;padding:3px}
}

body.tg21-duel{--tg20-height:var(--tg18-screen);--tg20-gap:8px}body.tg21-duel .tg-duel-game .tg20-layout [hidden]{display:none!important}body.tg21-duel .tg-duel-game{width:100%}

/* TG21-FINAL: shared presentation, no new external resources. */
:root{--tg21-hand:'Hachi Maru Pop','Yomogi','Klee One','Hiragino Maru Gothic ProN','HGMaruGothicMPRO','UD Digi Kyokasho NK-R','Yu Gothic UI','Meiryo',sans-serif}
body.tg21-catalog .tg18-header .wordmark,body.tg20-solo .tg18-header .wordmark,body.tg18-inner .tg18-header .wordmark{font-family:var(--tg21-hand);font-weight:700;letter-spacing:.025em}
body.tg21-catalog #homeView.tg18-catalog{display:flex;flex-direction:column;justify-content:center;flex:1;max-width:1200px;padding:6px 0 18px;animation:none}
body.tg21-catalog #tg18CatalogHead{display:flex;min-height:38px;margin:0 0 10px}body.tg21-catalog #tg18CatalogHead h2{display:none}
body.tg21-catalog #gameCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,3vw,24px);align-content:center;justify-items:center;width:min(100%,860px);margin:auto;padding:0;max-width:none;flex:1}
body.tg21-catalog #gameCards>.game-card{width:100%;max-width:220px;aspect-ratio:1;display:flex;align-items:center;justify-content:center;padding:9%;color:#294752;border:1.5px solid #c8dadd;border-radius:clamp(17px,4vw,28px);background:#f2f7f8;box-shadow:0 3px 13px #183e4710;transition:transform .18s;text-decoration:none;text-align:center;min-width:0}
body.tg21-catalog #gameCards>.game-card:hover{transform:translateY(-2px)}body.tg21-catalog #gameCards>.game-card:active{transform:scale(.96)}
body.tg21-catalog #gameCards>.game-card[data-game=puzzle]{background:#f0f7fb;color:#477b9a}body.tg21-catalog #gameCards>.game-card[data-game=reaction]{background:#f5f1fc;color:#7569a3}body.tg21-catalog #gameCards>.game-card[data-game=merge]{background:#fff6e9;color:#a46130}body.tg21-catalog #gameCards>.game-card[data-game=cat]{background:#f0f8f1;color:#527e68}body.tg21-catalog #gameCards>.game-card[data-game=hitblow]{background:#eef9f8;color:#398187}
body.tg21-catalog .tg21-game-name{font-family:var(--tg21-hand);font-size:clamp(20px,3.2vw,35px);font-weight:700;line-height:1.3;letter-spacing:.025em;overflow-wrap:anywhere;word-break:normal}
body.tg21-catalog #homeView .home-extras,body.tg21-catalog .footer,#tg18Replay{display:none!important}
#recordsView{position:relative;min-height:calc(var(--tg18-screen) - var(--tg18-wave) - 22px);padding-bottom:66px!important}#recordsView .section-head h2{display:none}
#recordsView #menuButton{position:absolute;right:0;bottom:max(10px,env(safe-area-inset-bottom));display:grid;place-items:center;min-width:48px;min-height:44px;border:0;background:transparent;border-radius:10px;font-size:23px;color:#526e77;letter-spacing:2px;box-shadow:none;padding:4px 9px}
#recordsView #recordList{margin:12px 0 8px;background:white;box-shadow:none;border:1px solid #d4e2e6;border-radius:16px}#recordsView .record-line{min-height:50px}
body.tg20-solo #rankingButton,body.tg20-solo #backGame{white-space:nowrap}body.tg20-solo .tg20-layout [hidden]{display:none!important}body.tg20-solo .tg20-guide button[hidden]{display:none!important}
#privateView.tg19-shell[data-tg19-tab=menu]>.tg21-profile{display:flex;justify-content:flex-start;padding:8px 0 12px}#privateView.tg19-shell[data-tg19-tab=menu]>.tg21-profile button{background:#e8f2f4;color:#294752;border:1px solid #d4e2e6;border-radius:12px;min-height:44px;padding:10px 18px;font-weight:600}
.tg21-mobile-account{display:none;margin-top:14px;padding-top:12px;border-top:1px solid #e2e9eb;gap:6px;flex-wrap:wrap}.tg21-mobile-account button{min-height:40px}
body.tg21-account-page #privateView .private-head{position:sticky;top:0;background:#fff;z-index:5;border-bottom:1px solid #e2e9eb;padding:10px 0;gap:8px}body.tg21-account-page #privateView>.panel{border-color:#d4e2e6;box-shadow:none;border-radius:16px}
#battleView .tg-battle-card,#battleView .tg-battle-score,#battleView .tg-hb-history{border:1px solid #c9dade;border-radius:16px;box-shadow:none;background:#fff;color:#294752}#battleView .tg-battle-score small{color:#657b82}#battleView .tg-battle-grid button{border-radius:10px;background:#e8f2f4;color:#294752}#battleView .tg-battle-grid button.tg-number-done{opacity:.42}#battleView .tg-battle-card .primary{background:#d8ebee;color:#294752;border:1px solid #c9dade}#battleView .tg-hb-history{max-height:clamp(100px,30svh,300px);overflow:auto;overscroll-behavior:contain}#battleView .tg-battle-play:empty{display:none}#battleView .tg-battle-card>small{line-height:1.45}#battleView .section-head h2{display:none}
@media(orientation:portrait){body.tg21-catalog #gameCards{grid-template-columns:repeat(2,minmax(0,1fr));width:min(84vw,420px);gap:clamp(9px,3vw,15px)}body.tg21-catalog #gameCards>.game-card{max-width:calc((var(--tg18-screen) - 154px)/3);border-radius:20px;padding:7%}body.tg21-catalog .tg21-game-name{font-size:clamp(15px,5.4vw,29px)}#recordsView{min-height:calc(var(--tg18-screen) - var(--tg18-wave) - 20px)}.tg21-mobile-account{display:flex}#battleView .tg-battle-card{padding:10px}#battleView .tg-hb-histories{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#battleView .tg-hb-table :is(th,td){padding:4px 2px;font-size:11px}}
@media(max-width:700px){.tg21-mobile-account{display:flex}}
@media(orientation:landscape) and (max-height:500px){body.tg21-catalog #gameCards{width:min(92%,840px);gap:8px}body.tg21-catalog #gameCards>.game-card{max-width:max(88px,calc((var(--tg18-screen) - 125px)/2));border-radius:16px;padding:6%}body.tg21-catalog .tg21-game-name{font-size:clamp(14px,2.6vw,24px)}body.tg21-catalog #tg18CatalogHead{min-height:30px;margin-bottom:4px}body.tg21-catalog #homeView.tg18-catalog{padding-bottom:7px}}

/* Hand-drawn text paths only, with readable real text for assistive technology. */
#gameCards .tg21-lettering{width:100%;height:100%;display:block;pointer-events:none;flex:none}#gameCards .tg21-game-name{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
body.tg21-catalog #gameCards>.game-card{position:relative;padding:4%}
#battleView .tg-battle-card.tg21-active-room{display:grid;grid-template-columns:minmax(128px,1fr) minmax(0,3.2fr) minmax(128px,1fr);gap:10px;max-width:1260px;width:100%;padding:0;border:0;background:transparent;align-items:stretch}#battleView .tg21-active-room>aside,#battleView .tg21-room-stage{display:flex;flex-direction:column;gap:7px;justify-content:center;min-width:0;border:1.5px solid #c9dade;border-radius:18px;padding:12px;background:white;color:#294752}#battleView .tg21-active-room>aside>h3{font-size:14px;border-bottom:1px solid #dce7e9;padding-bottom:6px}#battleView .tg21-room-stats .tg-battle-stats{grid-template-columns:1fr;gap:4px}#battleView .tg21-room-stats .tg-room-code{display:flex;flex-wrap:wrap}#battleView .tg21-room-stats .tg-room-code button{font-size:11px;padding:5px}#battleView .tg21-room-stats [data-room-clock]{text-align:center;font-size:14px;font-weight:700}#battleView .tg21-room-stage .tg-battle-grid{width:min(100%,420px,max(145px,calc(var(--tg18-screen) - 190px)));max-width:100%;margin:auto}#battleView .tg21-room-stage .tg-battle-next{text-align:center}#battleView .tg21-room-stage .tg-hb-histories{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#battleView .tg21-room-stage .tg-hb-history{padding:0;min-width:0}#battleView .tg21-room-guide button{min-height:40px;background:#e8f2f4;border:1px solid #c9dade;color:#294752;border-radius:10px}#battleView .tg21-room-guide p{font-size:13px;line-height:1.45}#battleView .tg21-room-stage .tg142-digits{max-width:100%;min-width:0}#battleView .tg21-room-stage .tg142-digits input{min-width:0;padding:3px;font-size:20px}
@media(orientation:portrait){#battleView .tg-battle-card.tg21-active-room{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-width:520px;margin:auto}#battleView .tg21-room-stage{grid-area:1/1/2/3;padding:8px}#battleView .tg21-room-stats{grid-area:2/1}#battleView .tg21-room-guide{grid-area:2/2}#battleView .tg21-active-room>aside{padding:8px;gap:4px}#battleView .tg21-room-stage .tg-battle-grid{width:min(100%,400px,max(150px,calc(var(--tg18-screen) - 355px)))}#battleView .tg21-room-guide p{font-size:11px}#battleView .tg21-room-stage .tg-hb-history{max-height:19svh}#battleView .tg21-room-stats .tg-battle-score{padding:4px}#battleView .tg21-room-stats .tg-battle-score strong{font-size:13px}#battleView .tg21-room-guide button{min-height:36px;font-size:12px;padding:5px}}
@media(orientation:landscape) and (max-height:500px){#battleView .tg21-active-room>aside,#battleView .tg21-room-stage{padding:7px;gap:4px}#battleView .tg21-room-stage .tg-battle-grid{width:min(100%,max(140px,calc(var(--tg18-screen) - 145px)))}#battleView .tg21-room-stats .tg-battle-score{padding:4px}#battleView .tg21-room-guide button{min-height:32px;font-size:12px;padding:4px}#battleView .tg21-room-stage .tg-hb-history{max-height:90px}}

/* TG22-FOUR-FIXES: ONLY Hit & Blow spacing, game controls, and the new result dialog. */
button[data-tg22-press]{touch-action:manipulation}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg20-stage{padding-block:20px!important;justify-content:center}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] :is(.tg-cpu-setup,.tg-cpu-arena){gap:14px}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] :is(.tg-cpu-secret-form,.tg-hit-form){gap:10px}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg-cpu-levels{gap:8px}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg-cpu-level{padding-block:12px}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg-cpu-turn{padding-block:10px}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg-cpu-tables{gap:9px}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg-cpu-table{min-height:104px;max-height:clamp(110px,25svh,240px)}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg14-keypad{gap:7px}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg14-key{min-height:44px}
body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg142-digits input{height:44px;min-height:44px}
#battleView .tg-hb-duel .tg21-room-stage{padding-block:16px;gap:12px}
.tg22-result-dialog{box-sizing:border-box;width:min(420px,calc(100% - 28px));max-width:calc(100% - 28px);max-height:calc(100% - 24px);overflow:auto;margin:auto;padding:22px;border:1.5px solid #c9dade;border-radius:22px;color:#294752;background:#fff;box-shadow:0 12px 45px #29475225;text-align:center}
.tg22-result-dialog::backdrop{background:#29475265}
.tg22-result-dialog h2{font-size:clamp(20px,5vw,26px);margin:0 0 9px;color:#294752}
.tg22-result-game{font-size:13px;color:#657b82;margin:0}
.tg22-result-score{display:block;font-size:clamp(26px,7vw,38px);line-height:1.25;margin:7px 0 12px;color:#294752;font-variant-numeric:tabular-nums}
.tg22-result-question{font-weight:700;margin:0 0 14px}
.tg22-result-form{display:grid;gap:9px;text-align:left}.tg22-result-form label{display:grid;gap:5px;font-size:13px}
.tg22-result-form input{width:100%;box-sizing:border-box;min-height:44px;border-radius:10px;border:1px solid #c9dade;font-size:16px}
.tg22-result-note,.tg22-result-status{font-size:12px;line-height:1.45;color:#657b82;margin:0}.tg22-result-status:empty{display:none}
.tg22-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tg22-result-actions button{min-height:44px;border-radius:11px;white-space:normal;padding:8px;font-size:14px}.tg22-result-actions .primary{background:#d9ecef;color:#294752;border:1px solid #c9dade}.tg22-result-dialog [hidden]{display:none!important}
@media(orientation:portrait) and (max-height:680px){
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg20-stage{padding-block:12px!important}
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] :is(.tg-cpu-setup,.tg-cpu-arena){gap:9px}
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg-cpu-table{min-height:88px;max-height:105px}
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg14-key{min-height:38px}
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg14-keypad{gap:5px}
}
@media(orientation:landscape) and (max-height:500px){
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg20-stage{padding-block:12px!important}
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] :is(.tg-cpu-setup,.tg-cpu-arena){gap:10px}
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg-cpu-table{min-height:84px;max-height:105px}
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg14-key{min-height:36px}
 body.tg20-solo #gameView #gameRoot .game-shell[data-game=hitblow] .tg14-keypad{gap:5px}
 .tg22-result-dialog{padding:14px}.tg22-result-dialog h2{margin-bottom:3px}.tg22-result-score{margin:3px 0 6px}.tg22-result-question{margin-bottom:6px}.tg22-result-form{gap:6px}
}

/* TW25-INDEPENDENT-GAMES */
/* TG23: only lettering and additional game screens. */
:root{--tg23-font:"GN-キルゴUかなNA","GN-KillGothic-U-KanaNA","GN-KillGothic_U Kana NA","Noto Sans CJK JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
#tg18HomeGrid .tg23-label,#gameCards .tg23-label{font-family:var(--tg23-font);font-weight:900;line-height:1.12;letter-spacing:-.045em;text-align:center;word-break:normal;overflow-wrap:anywhere;width:100%;max-width:100%;font-size:clamp(16px,3.6vw,38px);display:block;pointer-events:none}
#tg18HomeGrid [data-ui=hit]{color:#477b9a}#tg18HomeGrid [data-ui=merge]{color:#a46130}#tg18HomeGrid [data-ui=records]{color:#527e68}#tg18HomeGrid [data-ui=catalog]{color:#7569a3}#tg18HomeGrid [data-ui=friends]{color:#398187}#tg18HomeGrid [data-ui=ranking]{color:#a95c78}
#tg18HomeGrid .tg23-label img,#gameCards .tg23-label img{display:block;width:100%;height:auto;max-height:100%;object-fit:contain;pointer-events:none}
@media(orientation:portrait){#tg18HomeGrid .tg23-label,#gameCards .tg23-label{font-size:clamp(18px,6.4vw,32px)}}
@media(orientation:landscape) and (max-height:500px){#tg18HomeGrid .tg23-label,#gameCards .tg23-label{font-size:clamp(14px,3.1vw,31px)}}
body.tg21-catalog #gameCards>.tg23-custom-card{font:inherit;color:#294752;cursor:pointer;min-height:0;white-space:normal}
body.tg23-custom-playing #rankingButton{display:none!important}
.tg23-custom-shell{display:grid;grid-template-columns:minmax(105px,1fr) minmax(0,3.8fr) minmax(105px,1fr);gap:12px;width:100%;max-width:1280px;margin:0 auto;align-items:stretch}
.tg23-custom-shell>aside,.tg23-custom-stage{border:1.5px solid #c9dade;background:white;border-radius:18px;min-width:0;padding:12px;display:flex;flex-direction:column;gap:8px;justify-content:center;color:#294752}
.tg23-custom-shell h3{font-size:15px;margin:0 0 4px;border-bottom:1px solid #dce7e9;padding-bottom:6px}.tg23-custom-shell p{margin:0;font-size:13px;overflow-wrap:anywhere}.tg23-game-frame{width:100%;height:max(210px,calc(var(--tg18-screen) - 155px));border:0;background:#fff;display:block;border-radius:9px}.tg23-custom-stage{padding:5px}
@media(orientation:portrait){.tg23-custom-shell{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tg23-custom-stage{grid-area:1/1/2/3}.tg23-game-frame{height:max(240px,calc(var(--tg18-screen) - 290px))}.tg23-custom-shell>aside{padding:9px;justify-content:start}.tg23-custom-shell p{font-size:12px}}
.tg23-manager-form,.tg23-manager-list{display:grid;gap:9px}.tg23-manager-form label{display:grid;gap:4px}.tg23-manager-form input[type=file]{max-width:100%}.tg23-manager-list .panel{display:grid;gap:6px}
/* Actual licensed outlines, not a redistributed font. Keep existing tile colors and geometry. */
#tg18HomeGrid .tg23-label-art,#gameCards .tg23-label-art{width:91%;height:91%;display:block;pointer-events:none;flex:none}
#tg18CatalogHead #tg23AddGame{margin-left:auto;white-space:nowrap;font-size:13px;min-height:36px}
body.tg21-catalog #gameCards:has(.tg23-custom-card){flex:0;align-content:start}
body.tg21-catalog #gameCards>.tg23-custom-card{padding:8%;}
@media(orientation:portrait){.tg23-game-frame{height:max(200px,calc(var(--tg18-screen) - 355px))}}

/* TW25: brand, fixed title-only community tiles, no opening-animation changes. */
.tg24-brand-art{display:block;width:clamp(150px,45vw,245px);max-width:100%;height:auto;max-height:1em;margin:auto;overflow:visible}.tg24-brand-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0!important}
#tg18CatalogHead #twSubmit{margin-left:auto;white-space:nowrap;font-size:13px;min-height:36px;display:inline-flex;align-items:center;text-decoration:none}
#gameCards .tw-game-art{width:94%;height:94%;object-fit:contain;pointer-events:none}#gameCards .tw-game-art[hidden],#gameCards .tg23-label[hidden]{display:none!important}

/* TW26-IGU-STAY: only the mobile IGUTUBE navigation and authentication recovery. */
@media (orientation:portrait),(max-width:700px){
 #privateView.tg19-shell .tg19-bottom{grid-template-columns:repeat(4,minmax(0,1fr))}
 #privateView.tg19-shell .tg19-bottom .tg27-return{padding-inline:1px}
}
#privateView .tg27-reauth{width:min(420px,100%);margin:24px auto;display:grid;gap:12px;padding:20px}
#privateView.tg27-restoring{visibility:hidden}

/* TW26-IGU-MYPAGE: account actions visible above the user's posts. */
#privateView.tg19-shell[data-tg19-tab=menu]>.tg28-account{display:grid;grid-template-columns:repeat(auto-fit,minmax(142px,1fr));gap:8px;width:100%;max-width:680px;margin:0 0 16px;padding:10px;background:#fff;border:1px solid #dce4e5;border-radius:16px;box-sizing:border-box}
#privateView .tg28-account .tg19-nav-button{min-height:52px;width:100%;justify-content:flex-start;gap:8px;padding:10px 12px;background:#f3f6f6;border:1px solid #e1e8e9;color:#294752;box-sizing:border-box}
#privateView .tg28-account .tg19-nav-button:hover{background:#e8f2f4}
#privateView .tg28-account .tg19-nav-button:focus-visible{outline:2px solid #537e91;outline-offset:2px}
#privateView .tg28-account .tg19-nav-label{white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:13px;line-height:1.4}
#privateView .tg28-account .tg28-exit{background:#e8f2f4;border-color:#d4e2e6}
@media(orientation:portrait),(max-width:700px){
 #privateView.tg19-shell .tg19-bottom{grid-template-columns:repeat(3,minmax(0,1fr))}
 #privateView.tg19-shell[data-tg19-tab=menu]>.tg28-account{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;padding:8px;gap:7px}
 #privateView .tg28-account .tg19-nav-button{padding:8px;gap:6px}
 #privateView .tg28-account .tg19-nav-button svg{width:20px;height:20px;flex-basis:20px}
}

/* TW26-IGU-ADMIN-BACK: simple admin header, no cross-page navigation. */
#privateView .private-head.tg29-admin-head{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:12px;min-width:0;position:sticky;top:0;background:#fff;z-index:5;padding:10px 0;border-bottom:1px solid #e2e9eb;margin-bottom:16px}
#privateView .tg29-admin-head .tg29-admin-back{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:44px;min-width:78px;width:auto;padding:9px 14px;background:#e8f2f4;border:1px solid #d4e2e6;border-radius:12px;color:#294752;font-size:14px}
#privateView .tg29-admin-back svg{width:21px;height:21px;flex:0 0 21px}
#privateView .tg29-admin-back .tg19-nav-label{white-space:nowrap;overflow:visible;font-size:14px}
#privateView .tg29-admin-head .brand{flex:1;min-width:0;font-size:22px;font-weight:800;color:#263d43}
