*{box-sizing:border-box} :root{color-scheme:dark;font-family:Inter,"Segoe UI",Arial,sans-serif;color:#f2f5ef;background:#101413;font-synthesis:none}body{margin:0;min-height:100vh;display:flex;flex-direction:column}.wrap{width:min(1160px,calc(100% - 72px));margin:auto}header{border-bottom:1px solid #303731}.mast{height:78px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-weight:720;font-size:25px;letter-spacing:-1.4px}.brandmark{display:inline-block;width:27px;height:28px;background:repeating-linear-gradient(112deg,transparent 0 3px,#b3f88a 3px 9px);transform:skewX(-12deg);border-radius:4px}.mast-label,.hardware{font:600 12px/1.2 "Segoe UI",sans-serif;letter-spacing:.16em;text-transform:uppercase}.mast-label{color:#a4afa6}.wrap:is(main){flex:1;padding:50px 0 48px}h1,h2,h3,p{margin:0}h1{font-size:clamp(34px,4.1vw,60px);font-weight:600;letter-spacing:-.06em;line-height:1.12;margin:0 0 32px}.grid{display:grid;grid-template-columns:1.43fr 1fr;gap:18px}.console,.access{border-radius:19px;min-height:394px;position:relative;overflow:hidden}.console{isolation:isolate;background:radial-gradient(ellipse at 74% 38%,#91ae77 0%,#537252 29%,#324c3d 55%,#20362c 84%);border:1px solid #58705d}.console-grid,.orbit{position:absolute;inset:0;pointer-events:none;z-index:-1}.console-grid{background-image:linear-gradient(90deg,#d7edc30d 1px,transparent 1px),linear-gradient(#d7edc30d 1px,transparent 1px);background-size:36px 36px}.orbit{inset:17% -60% -78% 12%;border:1px solid #d1e8c047;border-radius:50%;transform:rotate(-22deg);box-shadow:0 0 0 30px #d9edce09,0 0 0 60px #d9edce08}.console-title{position:relative;z-index:1;padding:39px 32px;pointer-events:none}.hardware{color:#cce3bf;font-size:10px}.console h2{font-size:clamp(48px,5.4vw,80px);line-height:.95;letter-spacing:-.075em;font-weight:630;margin:14px 0;color:#f2faea}.product{position:absolute;width:auto;height:87%;right:0;top:3%;object-fit:contain;transform:rotate(9deg);filter:drop-shadow(9px 18px 13px #14251ccc);z-index:0}.console-bottom{position:absolute;bottom:27px;left:32px;display:flex;align-items:center;gap:10px;font-size:13px;color:#daead6}.slot{width:15px;height:8px;border:1.5px solid currentColor;border-radius:2px}.access{padding:32px 36px;background:#e7ebdf;color:#1c281f;display:flex;flex-direction:column}.keyicon{height:40px;width:40px;border-radius:12px;background:#d2dcc8;display:grid;place-items:center;font:30px/1 "Segoe UI Symbol",sans-serif;margin-bottom:19px}.access h2{font-size:clamp(27px,3vw,38px);font-weight:620;letter-spacing:-.06em}.access>p:not(.feedback){margin-top:9px;font-size:15px;line-height:1.45;color:#4c594d;max-width:340px}form{margin-top:24px}label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}input,button{font:inherit}input{width:100%;height:47px;background:#f9faf4;border:1px solid #a9b3a3;border-radius:8px;padding:0 14px;color:#17231b;color-scheme:light}input::placeholder{color:#6d796e}button{cursor:pointer}.primary{width:100%;padding:0 16px;height:47px;background:#203f2d;color:#f1f8ec;border:0;border-radius:8px;margin-top:12px;display:flex;align-items:center;justify-content:space-between;font-weight:600}.primary:hover{background:#2c5139}.primary:disabled{opacity:.65;cursor:wait}.primary span{font-size:21px}.feedback{font-size:13px;line-height:1.4;color:#853919;margin-top:10px}.feedback:empty{margin:0}.devices{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}.devices section{padding:22px 24px;border:1px solid #323b33;border-radius:12px;background:#191f1b}.devices h3{font-size:14px;font-weight:580}.devices p{font-size:14px;color:#b8c0b8;margin-top:9px}.dot{display:inline-block;border-radius:100%;width:8px;height:8px;background:#8a938a;margin-right:4px}.dot.on{background:#a7e984}.dot.wait{background:#d5b579}footer{display:flex;justify-content:space-between;align-items:center;min-height:64px;border-top:1px solid #303731;color:#a5afa6;font-size:12px}footer span:first-child{font-weight:650}.playheading,.controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.playheading h1{margin-bottom:16px}.timer{font-variant-numeric:tabular-nums;color:#b2ee92}.screen{aspect-ratio:16/9;position:relative;background:black;border-radius:12px;overflow:hidden}.screen #stream{width:100%;height:100%;position:absolute;inset:0}.screen p{position:absolute;inset:0;display:grid;place-items:center;background:#152018dd}.controls{margin-top:16px;justify-content:flex-start;font-size:14px}.controls button{background:#262f28;border:1px solid #526254;color:#f2f5ef;padding:10px 14px;border-radius:7px}.controls span{color:#bbcabd}.controls span:nth-child(2){margin-right:auto}.controls button:hover{background:#37433a}button:focus-visible,input:focus-visible{outline:3px solid #75a74a;outline-offset:3px}[hidden]{display:none!important}
@media(max-width:850px){.wrap{width:calc(100% - 40px)}.grid{grid-template-columns:1.12fr 1fr}.access{padding:28px}.product{height:68%;top:24%;right:-4%}.console-title{padding:32px 24px}.console-bottom{left:24px}}
@media(max-width:660px){.mast{height:62px}.wrap{width:calc(100% - 32px)}.wrap:is(main){padding:28px 0}.grid{grid-template-columns:1fr;gap:14px}h1{margin-bottom:20px}.console{min-height:240px}.console-title{padding:24px}.console h2{font-size:52px}.product{height:94%;right:3%;top:0}.console-bottom{bottom:19px}.access{padding:25px;min-height:0}.keyicon{display:none}.devices{grid-template-columns:1fr;gap:0;margin-top:18px;border:1px solid #323b33;border-radius:12px;overflow:hidden}.devices section{border:none;border-radius:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px}.devices section+section{border-top:1px solid #323b33}.devices p{margin:0;text-align:right;font-size:12px}.controls{gap:8px}.controls span{width:100%}footer{min-height:55px}}
.pad-mode{display:inline-flex;align-items:center;gap:8px;color:#bbcabd}
.pad-mode label{margin:0;font:inherit}
.pad-mode select{max-width:100%;background:#262f28;border:1px solid #526254;color:#f2f5ef;padding:10px 8px;border-radius:7px;font:inherit}
.pad-mode select:focus-visible{outline:3px solid #75a74a;outline-offset:3px}
.drive-toggle{display:inline-flex;align-items:center;gap:6px;margin:0;color:#bbcabd;font:inherit;cursor:pointer}
.drive-toggle input{width:17px;height:17px;accent-color:#a7e984}
.controls .drive-toggle span{width:auto}
.screen:focus-visible{outline:2px solid #75a74a;outline-offset:3px}

#touch-pad {
  position:absolute; inset:0; container-type:inline-size; pointer-events:none;
  user-select:none; -webkit-user-select:none; -webkit-touch-callout:none;
  --edge:clamp(8px,2%,22px);
}
#touch-pad button, #touch-pad [data-stick] {
  pointer-events:auto; touch-action:none; -webkit-tap-highlight-color:transparent;
  color:white; border:1px solid #ecf4e994; background:#142019a8;
  box-shadow:0 1px 4px #0006; padding:0; font:650 14px/1 "Segoe UI",sans-serif;
}
#touch-pad button {min-width:34px; min-height:34px; border-radius:12px}
#touch-pad .pressed {background:#385f42e8; border-color:#b3f88a}
.touch-rail,.touch-system,.touch-stick-group,.touch-cross {position:absolute}
.touch-rail,.touch-system,.touch-stick-group {display:flex; align-items:center; gap:4px}
.touch-rail,.touch-system {top:max(var(--edge),env(safe-area-inset-top))}
.touch-rail.left,.touch-stick-group.left {left:max(var(--edge),env(safe-area-inset-left))}
.touch-rail.right,.touch-cross.face {right:max(var(--edge),env(safe-area-inset-right))}
.touch-system {left:50%; transform:translateX(-50%)}
#touch-pad .touch-system button {font-size:12px; padding:0 5px}
#touch-pad .touch-rail button {width:clamp(38px,7cqw,66px)}
.touch-stick-group,.touch-cross {bottom:max(var(--edge),env(safe-area-inset-bottom))}
.touch-stick-group {flex-direction:column}
.touch-stick-group.right {right:clamp(130px,24%,224px)}
#touch-pad [data-stick] {
  width:clamp(80px,13cqw,132px); aspect-ratio:1; border-radius:50%; display:grid; place-items:center;
}
[data-stick] i {width:46%; aspect-ratio:1; border-radius:50%; background:#d9e6d2b3; border:1px solid #fff9; pointer-events:none}
.touch-cross {
  --key:clamp(36px,5.8cqw,62px); display:grid; grid-template:repeat(3,calc(var(--key)*.7)) / repeat(3,calc(var(--key)*.7));
  place-items:center; padding:calc(var(--key)*.18);
}
.touch-cross.dpad {left:clamp(104px,19%,204px)}
#touch-pad .touch-cross button {width:var(--key); height:var(--key); border-radius:50%}
.touch-cross button:nth-child(1) {grid-area:1/2}
.touch-cross button:nth-child(2) {grid-area:2/1}
.touch-cross button:nth-child(3) {grid-area:2/3}
.touch-cross button:nth-child(4) {grid-area:3/2}
#touch-pad [data-button="Y"] {color:#ffdc76}
#touch-pad [data-button="X"] {color:#9bd5ff}
#touch-pad [data-button="B"] {color:#ffaaa2}
#touch-pad [data-button="A"] {color:#bcf59f}
@media (orientation:portrait) and (max-width:900px) {
  .screen:has(#touch-pad:not([hidden])) {aspect-ratio:auto; display:flex; flex-direction:column; justify-content:center}
  .screen:has(#touch-pad:not([hidden])) #stream {position:relative; height:auto; aspect-ratio:16/9}
  .screen:has(#touch-pad:not([hidden])) #stage {inset:0 0 auto; aspect-ratio:16/9}
  #touch-pad {position:relative; flex:none; height:246px; background:#18201b}
  .touch-cross {--key:42px; bottom:98px}
  .touch-cross.dpad {left:var(--edge)}
  .touch-stick-group {bottom:9px; flex-direction:row}
  .touch-stick-group.right {right:var(--edge); flex-direction:row-reverse}
}
.better-room-video { display: block; width: 100%; height: 100%; object-fit: contain; background: black; touch-action: none }

#touch-options:not([hidden]) {display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px}
#touch-pad {opacity:var(--touch-opacity, .7)}
#touch-pad[data-layout="floating"] {--thumb:clamp(34px,5cqw,52px)}
#touch-pad[data-layout="floating"] .touch-stick-group {
  bottom:max(var(--edge),env(safe-area-inset-bottom)); width:25%; height:38%; display:block
}
#touch-pad[data-layout="floating"] .touch-stick-group.right {right:max(var(--edge),env(safe-area-inset-right))}
#touch-pad[data-layout="floating"] [data-stick] {
  position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; border:0;
  background:transparent; box-shadow:none; border-radius:12px;
}
#touch-pad[data-layout="floating"] [data-stick]::before,
#touch-pad[data-layout="floating"] [data-stick] i {
  position:absolute; top:var(--origin-y,50%); left:var(--origin-x,50%); translate:-50% -50%; pointer-events:none
}
#touch-pad[data-layout="floating"] [data-stick]::before {
  content:""; width:calc(var(--thumb) * 2.3); aspect-ratio:1; border-radius:50%;
  border:1px solid #fff9; background:#0b141858; box-shadow:0 1px 5px #0006
}
#touch-pad[data-layout="floating"] [data-stick] i {width:var(--thumb)}
#touch-pad[data-layout="floating"] .touch-stick-group button {position:absolute; bottom:100%; border-radius:50%}
#touch-pad[data-layout="floating"] .touch-stick-group.right button {right:0}
#touch-pad[data-layout="floating"] .touch-cross.dpad {left:28%}
#touch-pad[data-layout="floating"] .touch-cross.face {right:28%}
@media (orientation:portrait) and (max-width:900px) {
  #touch-pad {opacity:1}
  #touch-pad > div {opacity:var(--touch-opacity,.7)}
  #touch-pad[data-layout="floating"] {height:268px}
  #touch-pad[data-layout="floating"] .touch-stick-group {width:46%; height:34%}
  #touch-pad[data-layout="floating"] .touch-cross {bottom:105px}
  #touch-pad[data-layout="floating"] .touch-cross.dpad {left:var(--edge)}
  #touch-pad[data-layout="floating"] .touch-cross.face {right:var(--edge)}
  #touch-pad[data-layout="floating"] .touch-stick-group.left button {right:0}
  #touch-pad[data-layout="floating"] .touch-stick-group.right button {left:0; right:auto}
}
#touch-options, #touch-options .pad-mode {max-width:100%; min-width:0}
#touch-options select {min-width:0; flex:0 1 auto}
