@font-face{font-family:Lif;src:url(fonts/lif.ttf) format('truetype');font-display:swap}
:root{--paper:#f6f1e6;--white:#fffaf0;--ink:#2a2633;--muted:#6b6574;--yellow:#f3cf50;--pink:#efb6d4;--mint:#bcd8ae;--blue:#bddce9;--purple:#baa3d3;--line:#2a26332b;--display:Lif,system-ui,sans-serif;--square:72px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 system-ui,-apple-system,sans-serif;min-height:100dvh}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}[hidden]{display:none!important}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #80629b;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,h3,.wordmark,.lif-mark,.button,.mode-tabs,.opponent-name,.turn-message,.tool-button,.room-card strong,.player-bar strong,.intro-card,.sticker,summary,.finished-card strong,.section-head{font-family:var(--display);font-weight:400}h1{font-size:clamp(44px,5.8vw,79px);line-height:1.08;letter-spacing:-.025em}h2{font-size:34px;line-height:1.2}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.icon{height:21px;width:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.top{height:84px;display:flex;align-items:center;gap:22px;padding:10px clamp(18px,4vw,60px);border-bottom:1px solid var(--line);max-width:1600px;margin:auto}.wordmark{font-size:42px;line-height:1;text-decoration:none;letter-spacing:-1px}.wordmark span{color:#b27d9f}.lif-mark{font-size:22px;font-feature-settings:'ss01';text-decoration:none}.top>.lif-mark{border-left:1px solid var(--line);padding-left:22px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.icon-button{width:44px;height:44px;border:1px solid var(--line);background:transparent;display:inline-flex;justify-content:center;align-items:center;border-radius:12px}.help-button{min-height:44px;border:0;background:none;font-size:14px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:2px solid var(--ink);padding:12px 18px;min-height:49px;border-radius:13px;box-shadow:2px 3px 0 var(--ink);font-size:19px;background:var(--white);text-decoration:none;transition:transform .15s,box-shadow .15s}.button:hover:not(:disabled){transform:translateY(-2px);box-shadow:3px 5px var(--ink)}.button:active:not(:disabled){transform:translate(2px,3px);box-shadow:0 0 var(--ink)}.primary{background:var(--yellow)}.text-button{border:0;background:transparent;padding:10px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px;font-size:14px}.eyebrow{display:block;font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:15px}.small{font-size:13px;color:var(--muted)}.error{color:#9b383b;min-height:24px;font-size:14px}.home-screen{max-width:1240px;margin:auto;padding:25px 35px 45px}.hero{display:grid;grid-template-columns:1.18fr 1fr;align-items:center;gap:30px;min-height:360px;margin:0 0 25px}.hero-copy{padding-top:18px}.hero h1{margin-bottom:20px}.hero h1 span{color:#b27d9f}.hero p{font-size:17px;color:var(--muted);line-height:1.65}.hero-scene{height:335px;position:relative;isolation:isolate}.hero-board{position:absolute;inset:116px 16px 9px 15px;border:3px solid var(--ink);border-radius:19px;background:repeating-conic-gradient(#b5cda5 0 25%,#fff5d9 0 50%) 0/100px 100px;transform:rotate(-8deg) skewX(6deg);box-shadow:6px 8px var(--ink)}.hero-piece{position:absolute;filter:drop-shadow(4px 6px 0 #2a263323);width:135px;height:170px}.hero-king{left:38%;top:6px;transform:rotate(7deg);animation:royal-rock 5s ease-in-out infinite}.hero-knight{left:2%;bottom:5px;transform:rotate(-12deg)}.hero-pawn{right:2%;bottom:-10px;width:110px;animation:pawn-bob 3s ease-in-out infinite}.hero-star{position:absolute;display:block;color:#bd9634;font-size:40px;font-weight:700}.star-one{right:0;top:45px;transform:rotate(15deg)}.star-two{left:15px;top:42px;color:#9e85b5;font-size:29px}.sticker{position:absolute;padding:8px 18px;border:2px solid var(--ink);box-shadow:3px 4px var(--ink);border-radius:13px 18px 15px 8px;background:var(--pink);font-size:25px;z-index:2}.hello-sticker{right:4px;top:14px;transform:rotate(8deg)}.resume-button{display:inline-flex;border:1px solid var(--ink);padding:10px 15px;min-height:44px;border-radius:10px;background:#e5e2f0;font-family:var(--display)}
.piece{width:100%;height:100%;overflow:visible;display:block;--piece-fill:#fff3d1;--piece-edge:#2a2633;--face-fill:#2a2633}.piece .body{fill:var(--piece-fill);stroke:var(--piece-edge);stroke-width:3.7;stroke-linecap:round;stroke-linejoin:round}.piece.black{--piece-fill:#76618f;--piece-edge:#2a2633;--face-fill:#fff8e6}.piece .detail{fill:none;stroke-width:3}.face{fill:var(--face-fill);stroke:none}.face .smile{fill:none;stroke:var(--face-fill);stroke-width:2.2;stroke-linecap:round}.face .eyes{transform-origin:0 0;animation:blink 7s infinite;animation-delay:var(--blink-delay,-2s)}.face .surprised{display:none}.shine{fill:none;stroke:#fff6;stroke-width:2.5;stroke-linecap:round}.hero-king .piece{--piece-fill:var(--yellow)}.hero-knight .piece{--piece-fill:var(--purple)}.hero-pawn .piece{--piece-fill:var(--pink)}
.mode-tabs{display:flex;gap:9px;justify-content:center;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:25px}.mode-tabs button{border:1px solid transparent;min-height:48px;padding:10px 25px;background:transparent;border-radius:13px;font:20px var(--display)}.mode-tabs button[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:var(--white);transform:rotate(-1deg)}.section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;gap:15px}.section-head h2{font-size:27px;margin:0}.section-head p{margin:0;font:14px system-ui;color:var(--muted)}.opponents{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}.opponent-card{border:2px solid var(--ink);border-radius:19px;box-shadow:4px 5px var(--ink);padding:0;text-align:left;color:var(--ink);background:var(--white);overflow:hidden;position:relative;transition:transform .25s,box-shadow .25s}.opponent-card:nth-child(2){transform:rotate(1deg)}.opponent-card:nth-child(3){transform:rotate(-1deg)}.opponent-card:hover{transform:translateY(-9px) rotate(-1deg);box-shadow:7px 12px var(--ink)}.opponent-art{position:relative;height:167px;background:var(--character-color);display:flex;justify-content:center;align-items:center;border-bottom:2px solid var(--ink)}.opponent-art>.piece{height:148px;width:135px;transition:transform .25s;filter:drop-shadow(3px 4px 0 #2a26331f)}.opponent-card:hover .opponent-art>.piece{transform:rotate(-8deg) translateY(-5px)}.portrait-orbit{width:19px;height:19px;border:2px solid var(--ink);position:absolute;left:22%;top:35px;border-radius:50%;background:var(--yellow)}.portrait-orbit:last-child{left:auto;right:18%;top:auto;bottom:37px;width:10px;height:10px;background:var(--white)}.opponent-copy{display:block;padding:16px 17px 18px}.opponent-topline{display:flex;justify-content:space-between;align-items:center;gap:7px}.opponent-name{font-size:28px;line-height:1.2}.level-pips{display:flex;gap:3px}.level-pips i{width:7px;height:7px;border:1px solid var(--ink);border-radius:50%}.level-pips i.on{background:var(--ink)}.opponent-level{display:block;font-size:12px;color:var(--muted);margin:5px 0 9px}.opponent-line{display:block;font:13px/1.5 system-ui;min-height:39px}.play-tag{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:14px;padding-top:10px;font:16px var(--display)}.play-tag .icon{width:18px}.setup{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin-top:30px}.setup-label,.clock-option{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.segments{display:flex;gap:4px;flex-wrap:wrap}.segments button{background:none;min-height:43px;border:1px solid transparent;padding:7px 13px;border-radius:10px;font-size:13px;display:inline-flex;align-items:center;gap:7px}.segments button[aria-pressed=true]{background:var(--white);border-color:var(--ink)}.side-dot{height:14px;width:14px;display:inline-block;border-radius:50%;border:1.5px solid var(--ink)}.white-dot{background:#fff3d1}.black-dot{background:#76618f}.clock-option{margin:0;display:grid;gap:7px;min-width:150px}.clock-option select{min-height:43px;padding:7px 10px;background:var(--white);border:1px solid var(--ink);border-radius:9px;font-size:14px}.home-foot{border-top:1px solid var(--line);margin:28px 0 0;padding-top:17px;font-size:13px;color:var(--muted);text-align:center}.home-foot button{color:var(--ink);font-size:13px}.friend-picker,.local-picker{display:grid;grid-template-columns:.75fr 1.25fr;align-items:center;gap:45px;min-height:350px;padding:10px 18px}.friend-picker h2,.local-picker h2{font-size:42px}.friend-art,.local-picker>div:first-child{display:flex;align-items:center;justify-content:center}.friend-art .piece,.local-picker .piece{width:140px;height:180px}.friend-art .piece:first-child{transform:rotate(-11deg);--piece-fill:var(--pink)}.friend-art .piece:last-child{transform:rotate(11deg);--piece-fill:var(--mint)}.friend-actions{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin:16px 0}.friend-actions>span{font-size:13px;color:var(--muted)}.field{display:grid;gap:7px;font-size:13px;max-width:400px}.field input,#room-input{height:47px;border:1px solid var(--ink);padding:9px 12px;background:var(--white);border-radius:10px;font-size:16px;min-width:0}.friend-actions form{display:flex;gap:8px}#room-input{width:110px;letter-spacing:3px;font-family:var(--display)}.local-picker p{max-width:440px;color:var(--muted)}.local-picker>div:first-child .piece{width:140px;transform:rotate(-10deg)}.local-picker>div:first-child .piece:last-child{transform:rotate(10deg)}
.site-footer{max-width:1240px;margin:0 auto;padding:20px 35px 28px;display:flex;align-items:center;gap:20px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.site-footer .lif-mark{color:var(--ink)}.site-footer>span{flex:1}.site-footer button,.site-footer a:last-child{font-size:12px}.lobby-screen{max-width:760px;min-height:70dvh;margin:30px auto;padding:10px 24px;text-align:center}.lobby-screen>.text-button{display:block}.lobby-screen h1{font-size:52px;margin:20px 0}.room-card{border:2px solid var(--ink);border-radius:20px;background:var(--white);box-shadow:5px 6px var(--ink);padding:22px;margin:25px auto;max-width:480px}.room-card>span{font-size:13px}.room-card strong{display:block;font-size:clamp(36px,8vw,64px);letter-spacing:.1em;margin:10px 0}.room-share{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.lobby-players{display:flex;justify-content:center;gap:35px;margin:30px 0}.lobby-person{width:180px;text-align:center}.lobby-person>.piece{width:90px;height:105px;margin:auto}.lobby-person strong{display:block;font:23px var(--display)}.lobby-person small{font-size:12px;color:var(--muted)}.lobby-person.empty{opacity:.5}.lobby-person.empty>.piece{filter:grayscale(1)}
.game-screen{max-width:1180px;margin:auto;padding:18px 25px 35px}.game-bar{display:flex;align-items:center;gap:25px;justify-content:space-between;padding:0 0 13px;min-height:60px}.opponent-mini{display:flex;align-items:center;gap:10px;min-width:140px}.opponent-mini>span{height:46px;width:46px;padding:4px;border:1px solid var(--ink);border-radius:13px;background:var(--pink)}.opponent-mini small{display:block;font-size:10px;color:var(--muted)}.opponent-mini strong{display:block;font:20px var(--display)}.turn-message{font-size:24px;margin:0;text-align:center}.turn-message.thinking:after{content:'…';animation:thinking 1.5s infinite}.play-layout{display:grid;grid-template-columns:minmax(0,736px) minmax(210px,285px);justify-content:center;gap:32px}.board-column{min-width:0}.board-shell{position:relative;border:3px solid var(--ink);border-radius:15px;background:var(--ink);box-shadow:5px 6px var(--ink);overflow:hidden}.board{display:grid;grid-template-rows:repeat(8,1fr);aspect-ratio:1;isolation:isolate}.board-row{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));min-height:0}.square{position:relative;aspect-ratio:1;border:0;border-radius:0;background:#fff3d6;padding:4%;display:flex;align-items:center;justify-content:center;touch-action:none;min-width:0;overflow:visible}.square.dark{background:#abc6a0}.square:focus-visible{outline:3px solid #644a7f;outline-offset:-4px;z-index:3}.square.last:after{content:'';position:absolute;inset:2px;background:#f3cf5070;z-index:0;border-radius:5px}.square.selected{background:#f1d154}.square.selected>.piece{animation:chosen .9s ease-in-out infinite}.square.legal:before{content:'';position:absolute;width:22%;height:22%;border-radius:50%;background:#2a26334a;z-index:3;pointer-events:none}.square.legal.capture:before{inset:4%;width:auto;height:auto;background:none;border:4px solid #72588b;border-radius:50%}.square.in-check{background:#eead9d}.square.in-check .smile{display:none}.square.in-check .surprised{display:block}.square.in-check>.piece{animation:king-alert .45s ease-in-out 2}.square.hint{outline:4px solid #79589b;outline-offset:-5px}.square .piece{position:relative;pointer-events:none;z-index:1;max-height:98%;filter:drop-shadow(1px 3px 0 #2a263321)}.square.moved .piece{animation:piece-arrive .3s cubic-bezier(.15,.75,.3,1)}.coord{position:absolute;z-index:2;font:11px/1 system-ui;font-weight:600;color:#3e513c;pointer-events:none}.coord.file{bottom:4px;right:4px}.coord.rank{top:4px;left:4px}.player-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:51px;padding:8px 2px}.player-bar .player-name{font:18px var(--display);line-height:1.2}.player-bar small{font:11px system-ui;color:var(--muted);margin-left:8px}.player-bar.active .player-name:before{content:'';display:inline-block;width:8px;height:8px;margin-right:8px;background:#72588b;border-radius:50%;vertical-align:middle}.clock{font:26px var(--display);font-variant-numeric:tabular-nums;line-height:1.2;padding:6px 12px;border:1px solid var(--line);border-radius:8px;background:var(--white);min-width:94px;text-align:center}.clock.low{color:#ad3d37;background:#f4d2c8}.taken{display:flex;flex-wrap:wrap;gap:0;align-items:center;min-height:16px;max-width:350px;margin-top:3px}.taken .piece{width:18px;height:20px;filter:none}.board-tools{display:flex;justify-content:space-between;gap:7px;padding:10px 0 0}.tool-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 10px;border:1px solid var(--line);background:var(--white);border-radius:10px;font-size:14px}.hint-line{font-size:13px;color:#72588b;min-height:20px;margin:9px 0}.game-side{padding-top:50px}.speech-card{background:#e8e0ee;border:1px solid #b7a0c6;border-radius:17px;padding:18px 18px 15px;position:relative;min-height:160px;margin-bottom:20px}.speech-card>div{height:75px;width:75px;position:absolute;top:-37px;right:12px;transform:rotate(8deg)}.speech-card p{font:20px/1.4 var(--display);padding-top:19px;margin-bottom:0}.moves-panel{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fffaf099}.moves-panel summary{cursor:pointer;font-size:18px;padding:13px;min-height:48px}.moves-panel summary span{float:right;font:12px system-ui;background:#e4dbeb;border-radius:20px;padding:3px 7px}.moves-panel ol{max-height:260px;overflow:auto;padding:0;margin:0;list-style-position:inside;font:14px/1.8 system-ui}.moves-panel li{display:flex;gap:15px;padding:5px 12px}.moves-panel li:nth-child(odd){background:#2a263307}.moves-panel li>span:first-child{width:19px;opacity:.55}.moves-panel li>span:not(:first-child){width:75px}.moves-panel>button{margin:0 12px;font-size:12px}.draw-actions{display:grid;justify-items:start;margin-top:12px;gap:7px}.online-status{font-size:13px;padding:12px;background:#f1e1bd;border:1px solid #b29e7a;border-radius:11px;margin:15px 0}.offer-card{border:2px solid #a489b8;background:#f1e7f6;border-radius:14px;padding:15px;font-size:14px;margin:16px 0}.offer-card>div{display:flex;gap:10px;margin-top:10px}.offer-card .button{font-size:14px;padding:7px 11px;min-height:40px}.finished-card{background:var(--yellow);padding:18px;border:2px solid var(--ink);border-radius:16px;margin:15px 0;box-shadow:3px 4px var(--ink)}.finished-card strong{display:block;font-size:25px;line-height:1.3}.finished-card button{margin-top:15px;width:100%}.finished-card p{font-size:13px;margin:12px 0 0}.paused{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px;background:#f6f1e6ed;backdrop-filter:blur(5px)}.paused strong{font:42px var(--display)}.paused p{font-size:15px}.paused .button{margin-top:15px}
dialog{padding:35px;border:2px solid var(--ink);border-radius:21px;background:var(--paper);color:var(--ink);max-width:min(92vw,620px);width:100%;box-shadow:7px 8px var(--ink)}dialog::backdrop{background:#2a26336e;backdrop-filter:blur(4px)}.modal-close{position:absolute;right:12px;top:12px;font:28px system-ui}dialog h2{padding-right:30px;font-size:33px;margin:10px 0 18px}dialog p{font-size:15px}.modal-buttons{display:flex;gap:12px;justify-content:flex-end;margin-top:25px}.promotion-options{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.promotion-options button{display:flex;flex-direction:column;align-items:center;border:1px solid var(--ink);border-radius:13px;background:var(--white);padding:10px;min-height:110px;font:15px var(--display)}.promotion-options .piece{width:75px;height:80px}.help-list{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:15px}.help-list li{display:flex;align-items:center;gap:12px;font-size:13px}.help-list .piece{height:70px;width:55px;flex:none}.help-list b{display:block;font:20px var(--display);margin-bottom:4px}.intro{position:fixed;z-index:30;inset:0;background:#f6f1e6f2;display:flex;justify-content:center;align-items:center;backdrop-filter:blur(8px);padding:22px}.intro-card{text-align:center;max-width:570px;width:100%;animation:card-pop .5s cubic-bezier(.2,1.4,.3,1)}.intro-card>span{font-size:20px}.intro-card>div{display:flex;justify-content:center;gap:28px;height:220px;margin:25px 0}.intro-card .piece{width:170px;animation:intro-bounce .7s ease-in-out alternate infinite}.intro-card .piece:last-child{animation-delay:.3s}.intro-card>strong{display:block;font-size:clamp(32px,6vw,54px);line-height:1.1}.intro-card p{font-size:19px;margin-top:20px}.intro-card button{font-family:system-ui}.toast{position:fixed;z-index:40;bottom:22px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--white);padding:12px 22px;border-radius:13px;font-size:14px;max-width:calc(100vw - 30px);box-shadow:2px 3px #0002;text-align:center}.drag-piece{position:fixed;z-index:40;pointer-events:none;width:82px;height:92px;transform:translate(-50%,-60%);filter:drop-shadow(5px 8px 0 #2a263334)}.square.drag-origin>.piece{opacity:.18}.confetti{position:fixed;pointer-events:none;z-index:20;inset:0;overflow:hidden}.confetti i{position:absolute;top:-30px;width:13px;height:26px;background:var(--confetti-color);border:1px solid var(--ink);animation:confetti-fall 2.7s ease-in forwards;animation-delay:var(--delay)}
@keyframes royal-rock{0%,100%{transform:rotate(6deg) translateY(0)}50%{transform:rotate(-3deg) translateY(-9px)}}@keyframes pawn-bob{0%,85%,100%{transform:translateY(0) rotate(9deg)}92%{transform:translateY(-17px) rotate(-6deg)}}@keyframes blink{0%,44%,49%,100%{transform:scaleY(1)}46%{transform:scaleY(.08)}}@keyframes chosen{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes piece-arrive{from{transform:translate(var(--move-x,0),var(--move-y,0))}to{transform:translate(0,0)}}@keyframes king-alert{25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}@keyframes thinking{50%{opacity:.35}}@keyframes card-pop{from{transform:translateY(35px) scale(.88);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes intro-bounce{to{transform:rotate(-8deg) translateY(-10px)}}@keyframes confetti-fall{to{transform:translate(var(--drift),105vh) rotate(480deg);opacity:0}}
body[data-motion=reduce] *,body[data-motion=reduce] *::before,body[data-motion=reduce] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body[data-motion=reduce] .confetti{display:none}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}
@media(min-width:1450px){.home-screen{padding-top:40px}.hero{min-height:400px}.opponent-art{height:185px}}
@media(max-width:1000px){.home-screen{padding:18px 25px 35px}.hero{gap:15px;min-height:290px}.hero-scene{height:270px}.hero-board{top:100px;background-size:80px 80px}.hero-piece{width:112px;height:145px}.hero-king{left:35%;top:0}.hero-pawn{width:94px}.hello-sticker{font-size:20px}.hero h1{font-size:clamp(40px,6vw,64px)}.opponents{gap:13px}.opponent-art{height:145px}.opponent-art>.piece{height:125px;width:110px}.opponent-copy{padding:13px}.opponent-name{font-size:25px}.opponent-line{font-size:12px}.play-layout{grid-template-columns:minmax(0,680px) 225px;gap:20px}.game-screen{padding-inline:20px}.tool-button{font-size:12px;padding:8px}.tool-button .icon{width:18px}.friend-picker{gap:20px;padding-inline:0}}
@media(max-width:780px){.top{height:69px;padding:10px 18px;gap:15px}.wordmark{font-size:35px}.top>.lif-mark{padding-left:15px;font-size:19px}.help-button{font-size:12px}.top-actions{gap:8px}.hero{grid-template-columns:1.1fr .9fr;min-height:260px}.hero h1{font-size:42px}.hero p{font-size:14px}.hero-scene{height:230px}.hero-king{width:95px;height:125px;left:30%}.hero-knight{width:95px;height:120px;left:-5%}.hero-pawn{width:83px;height:110px;right:-6%}.hero-board{inset:90px 0 10px}.hero-star{font-size:30px}.hello-sticker{font-size:17px;right:-10px;top:-5px}.mode-tabs button{font-size:17px;padding:10px 16px}.section-head{align-items:flex-start}.section-head h2{font-size:23px}.section-head p{font-size:12px}.opponents{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.opponent-art{height:160px}.opponent-art>.piece{height:145px;width:135px}.opponent-name{font-size:28px}.opponent-line{font-size:13px;min-height:38px}.opponent-copy{padding:15px}.play-layout{display:block;max-width:680px;margin:auto}.game-screen{padding:10px 16px 25px}.game-bar{gap:10px;max-width:680px;margin:auto}.opponent-mini{min-width:110px}.opponent-mini>span{height:39px;width:39px}.opponent-mini strong{font-size:17px}.turn-message{font-size:20px}.game-bar>.text-button{font-size:12px}.game-side{padding-top:15px;display:grid;grid-template-columns:1fr;gap:12px}.speech-card{display:none}.moves-panel{order:3}.game-side .draw-actions{display:flex;justify-content:space-between;margin:0}.finished-card{order:-1;margin:0}.site-footer{padding:20px;gap:15px;flex-wrap:wrap}.site-footer>span{flex:auto}.site-footer .text-button{margin-left:auto}.friend-picker{grid-template-columns:1fr;gap:10px}.friend-art{display:none}.friend-picker h2{font-size:36px}.friend-picker>div:last-child{max-width:560px}.friend-actions form{flex:1}.local-picker{gap:20px;padding:10px 0;grid-template-columns:.7fr 1.3fr}.local-picker h2{font-size:32px}.local-picker>div:first-child .piece{width:95px}}
@media(max-width:480px){.home-screen{padding:12px 17px 30px}.hero{position:relative;display:block;padding-bottom:6px;min-height:215px;margin-bottom:18px}.hero-copy{position:relative;z-index:2;padding-top:10px;pointer-events:none}.hero-copy button{pointer-events:auto}.hero h1{font-size:41px;max-width:300px;line-height:1.08;margin-bottom:17px}.hero .eyebrow{font-size:10px;margin-bottom:10px}.hero p{font-size:13px;max-width:235px;margin-bottom:14px}.hero-scene{position:absolute;right:-6px;bottom:2px;width:110px;height:125px;z-index:1}.hero-board{inset:45px 1px 0;background-size:38px 38px;border-width:2px;border-radius:8px;box-shadow:3px 4px var(--ink)}.hero-king{width:66px;height:90px;left:24%;top:0}.hero-knight,.hero-pawn,.hello-sticker,.hero-star{display:none}.mode-tabs{gap:3px;justify-content:space-between;padding-bottom:13px;margin-bottom:18px}.mode-tabs button{font-size:15px;padding:8px 10px;border-radius:10px;min-height:43px;white-space:nowrap}.section-head{display:block;margin-bottom:14px}.section-head h2{font-size:24px;margin-bottom:7px}.section-head p{font-size:12px}.opponents{gap:15px 13px}.opponent-art{height:125px}.opponent-art>.piece{height:117px;width:105px}.opponent-copy{padding:12px}.opponent-name{font-size:25px}.opponent-level{margin:4px 0 7px;font-size:11px}.opponent-line{font-size:12px;line-height:1.4;min-height:50px}.play-tag{font-size:15px;margin-top:10px;padding-top:9px}.level-pips{gap:2px}.level-pips i{width:5px;height:5px}.portrait-orbit{width:13px;height:13px;left:12%;top:25px}.portrait-orbit:last-child{right:12%;bottom:25px;width:8px;height:8px}.setup{display:block;margin-top:24px}.segments button{font-size:12px;padding:7px 8px;min-height:42px}.clock-option{margin-top:15px;display:flex;align-items:center;justify-content:space-between}.clock-option select{width:174px}.home-foot{font-size:12px;margin-top:18px}.home-foot button{display:block;margin:auto;font-size:12px}.site-footer{font-size:11px;padding:14px 17px 20px;gap:8px 15px}.site-footer>.lif-mark{font-size:20px}.site-footer>span{flex:1;font-size:11px}.site-footer>.text-button{margin-left:0}.game-screen{padding:5px 10px 20px}.game-bar{min-height:57px;padding-bottom:4px}.opponent-mini{min-width:90px;gap:6px}.opponent-mini>span{height:34px;width:34px;border-radius:9px}.opponent-mini strong{font-size:15px}.opponent-mini small{font-size:9px}.turn-message{font-size:17px;max-width:135px;line-height:1.2}.game-bar>.text-button{font-size:11px}.board-shell{border-width:2px;border-radius:9px;box-shadow:3px 4px var(--ink)}.square{padding:1%}.square .piece{max-height:97%}.piece .body{stroke-width:4}.coord{font-size:8px}.coord.file{right:2px;bottom:2px}.coord.rank{left:2px;top:2px}.square.legal.capture:before{border-width:3px}.player-bar{min-height:43px;padding:6px 2px}.player-bar .player-name{font-size:16px}.clock{font-size:22px;min-width:76px;padding:4px 9px}.player-bar small{font-size:9px;margin-left:4px}.taken .piece{width:15px;height:17px}.taken{max-width:230px;min-height:10px}.board-tools{gap:5px;padding-top:9px}.tool-button{font-size:11px;padding:8px 6px;gap:5px;flex:1;white-space:nowrap}.tool-button .icon{height:17px;width:17px}.hint-line{font-size:12px;margin:7px 0}.game-side{gap:9px;padding-top:0}.friend-picker h2{font-size:36px}.friend-actions{gap:12px;align-items:stretch}.friend-actions>.button{width:100%}.friend-actions>span{display:none}.friend-actions form{display:flex;width:100%}.friend-actions form .button{flex:1;font-size:17px}.friend-picker .field{max-width:100%}.friend-picker{padding:5px 0}.local-picker{display:block;text-align:center}.local-picker>div:first-child .piece{height:100px;width:90px;margin-bottom:10px}.local-picker h2{font-size:32px}.local-picker p{font-size:14px}.promotion-options{gap:7px}.promotion-options button{padding:7px 3px;font-size:12px}.promotion-options .piece{width:55px;height:68px}dialog{padding:25px 19px;border-radius:16px}dialog h2{font-size:28px}.help-list{grid-template-columns:1fr;gap:12px}.help-list .piece{height:59px;width:48px}.modal-buttons{flex-wrap:wrap}.modal-buttons .button{font-size:16px}.intro-card>div{height:180px;gap:15px}.intro-card .piece{width:130px}.lobby-screen h1{font-size:38px}.room-card{padding:20px 13px}.room-share .button{font-size:16px}.lobby-players{gap:15px}.lobby-person{width:135px}.lobby-person strong{font-size:20px}}

.player-bar>div{min-width:0}.player-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:420px}.turn-message{overflow-wrap:anywhere}@media(max-width:480px){.mode-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.mode-tabs button{white-space:normal;font-size:13px;padding:7px 4px}.player-name{max-width:230px}.top-actions{gap:6px}.help-button{max-width:118px;line-height:1.3}}
.taken:empty{display:none}
@media(min-width:1000px) and (max-height:900px){.top{height:70px}.game-screen{padding-top:10px}.game-bar{min-height:48px;padding-bottom:6px}.game-bar .opponent-mini>span{height:34px;width:34px}.play-layout{grid-template-columns:minmax(0,clamp(360px,calc(100dvh - 300px),660px)) 260px;gap:25px}.player-bar{min-height:43px;padding-block:6px}.game-side{padding-top:43px}}

.square{touch-action:pan-y pinch-zoom}.square.can-drag{touch-action:none}
@media(min-width:481px) and (max-width:780px){.hero-pawn{right:8px}}
@media(max-width:360px){.board-tools{display:grid;grid-template-columns:repeat(var(--tool-count,4),minmax(0,1fr));gap:5px}.tool-button{min-width:0;min-height:55px;flex-direction:column;font-size:10px;gap:3px;padding:5px 2px}}

.hero-star{width:40px;height:40px}.hero-star.star-two{width:29px;height:29px}
