
/* Retro Arcade collection: responsive standalone canvas games */
.rt-page{--rt-accent:#49dfbd;--rt-warm:#ffce78;--rt-deep:#132f42;max-width:1220px;margin:0 auto;padding:clamp(12px,2.6vw,30px) clamp(9px,2.7vw,30px) 75px;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#254356}
.rt-page *{box-sizing:border-box}.rt-ocean{--rt-accent:#60d5ee;--rt-warm:#a6f5e9;--rt-deep:#122c53}
.rt-page .rt-crumb{font-size:12px;color:#637f8d}.rt-page .rt-crumb a{color:#277d91;text-decoration:underline}
.rt-page h1{font-size:clamp(31px,5vw,53px);letter-spacing:-.046em;line-height:1.08;color:#1c3c52;margin:11px 0 12px}
.rt-page .rt-lead{font-size:clamp(14px,1.8vw,17px);line-height:1.6;color:#61798a;max-width:900px;margin:0 0 19px}
.rt-game{background:linear-gradient(145deg,#132a41,#244155);color:#e9f8fc;border:2px solid #416b7d;border-radius:21px;padding:clamp(9px,2vw,19px);position:relative;box-shadow:0 17px 37px #0e253849}
.rt-ocean .rt-game{background:linear-gradient(145deg,#0c3450,#174764);border-color:#357c94}
.rt-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:13px}
.rt-brand{display:flex;align-items:center;gap:9px;color:#ffdfaa;font-size:clamp(18px,2.2vw,23px);font-weight:1000;letter-spacing:-.03em}
.rt-brand i{font-style:normal;width:46px;height:46px;border-radius:14px;background:linear-gradient(130deg,#176c7c,#33ad97);display:grid;place-items:center;font-size:26px;box-shadow:0 6px 15px #071e2a85}
.rt-ocean .rt-brand i{background:linear-gradient(130deg,#225c8b,#29b6cb)}
.rt-brand small{display:block;color:#a9d8de;font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.rt-stats{display:flex;flex-wrap:wrap;gap:5px}
.rt-stat{background:#102a3b;border:1px solid #456f7f;border-radius:9px;font-size:11px;padding:7px 9px;font-weight:900;color:#c4e1e3;white-space:nowrap}
.rt-stat b{color:#ffdf95;font-size:12px}
.rt-layout{display:grid;grid-template-columns:minmax(0,650px) minmax(240px,1fr);gap:18px;align-items:start}
.rt-main{min-width:0}.rt-screen{position:relative;max-width:650px;margin:auto;background:#0b1e33;border:3px solid #488797;border-radius:16px;overflow:hidden;box-shadow:0 10px 25px #020d1ac9;touch-action:none}
.rt-ocean .rt-screen{border-color:#55a8bd}
.rt-screen canvas{width:100%;display:block;aspect-ratio:3 / 4;user-select:none;touch-action:none}
.rt-ocean .rt-screen canvas{aspect-ratio:4 / 3}
.rt-notice{position:absolute;top:7px;left:5px;right:5px;font-size:12px;text-align:center;font-weight:950;pointer-events:none;min-height:17px;text-shadow:0 2px 4px #06111e;color:#fff1be;z-index:3}
.rt-screen .rt-track{position:absolute;z-index:2;left:7px;right:7px;bottom:8px;border-radius:9px;background:#09233ba6;height:12px;overflow:hidden;border:1px solid #d1f5f542}
.rt-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,#34c7bf,#ffdd81)}
.rt-subnote{color:#aed7d7;font-weight:850;font-size:12px;text-align:center;line-height:1.45;padding:9px 3px 2px;max-width:620px;margin:auto}
.rt-controls{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:9px;max-width:650px;margin:11px auto 0}
.rt-ocean .rt-controls{grid-template-columns:1fr 1fr 1fr 1fr 1.25fr}
.rt-control{min-height:66px;border:1px solid #6b95a4;background:linear-gradient(145deg,#345c72,#224459);border-radius:13px;color:#efffff;font-size:24px;font-weight:1000;font-family:inherit;box-shadow:0 4px 0 #082135;touch-action:none;user-select:none;cursor:pointer}
.rt-control small{display:block;font-size:11px;font-weight:900}
.rt-control.rt-boost{background:linear-gradient(155deg,#e6aa53,#b96743);border-color:#ffdb9b;color:#fff9e9}
.rt-control.rt-fire{background:linear-gradient(140deg,#38bad2,#137d9b);border-color:#8cebf6;font-size:22px}
.rt-control:active,.rt-control.rt-held{transform:translateY(2px);box-shadow:0 2px 0 #082135}
.rt-control:disabled{opacity:.4;cursor:not-allowed}
.rt-control:focus-visible,.rt-toolbar button:focus-visible,.rt-level:focus-visible,.rt-modal button:focus-visible{outline:3px solid #ffe19a;outline-offset:2px}
.rt-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px auto 0;max-width:650px}
.rt-toolbar button{border:1px solid #6497a5;border-radius:10px;background:#285068;color:#e6faf7;padding:10px 4px;min-height:42px;cursor:pointer;font-weight:900;font-family:inherit;font-size:12px}
.rt-toolbar button:hover{background:#366e7e}
.rt-sidebar{display:grid;gap:12px}.rt-panel{background:linear-gradient(155deg,#fafffb,#eaf6f5);border:1px solid #bdd7da;border-radius:16px;padding:16px;color:#285269}
.rt-panel h2{font-size:17px;line-height:1.25;margin:0 0 9px;color:#1c6c7f}.rt-panel p{font-size:13px;line-height:1.56;color:#607b88;margin:0 0 10px}
.rt-panel p:last-child{margin:0}.rt-panel .rt-highlight{border-radius:10px;background:#e0f2ec;padding:9px 10px;color:#276677;font-size:12px;font-weight:850;line-height:1.45}
.rt-levels{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;max-height:250px;overflow-y:auto}
.rt-level{min-height:38px;border:1px solid #b8d7d6;border-radius:9px;background:#eff8f5;color:#427280;font-weight:950;font-size:12px;cursor:pointer;padding:3px}
.rt-level:disabled{opacity:.42;cursor:not-allowed}.rt-level.rt-active{background:#1d8a91;color:white;border-color:#146f78}.rt-level.rt-done{background:#d8f3e3}
.rt-progress{height:9px;background:#d2e6e5;border-radius:100px;margin:10px 0 5px;overflow:hidden}
.rt-progress span{display:block;width:0;height:100%;background:linear-gradient(90deg,#2bbbb1,#e7c277);transition:width .2s}
.rt-small{color:#688997;font-size:11px;font-weight:800;line-height:1.5}
.rt-over{position:absolute;inset:0;z-index:20;background:#081b2cde;border-radius:19px;display:grid;place-items:center;padding:15px}
.rt-over[hidden]{display:none!important}
.rt-modal{background:linear-gradient(145deg,#fffef9,#e5f8f1);border:3px solid #a0dbd1;border-radius:22px;padding:clamp(17px,4vw,29px);width:min(100%,420px);text-align:center;box-shadow:0 23px 65px #030e20c9;color:#2e5266}
.rt-modal .rt-emoji{font-size:55px;display:block}.rt-modal h2{font-size:clamp(24px,4vw,30px);line-height:1.2;margin:8px 0;color:#17697b}.rt-modal p{font-size:14px;color:#577583;line-height:1.55}
.rt-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.rt-actions button{padding:11px 18px;min-height:44px;border:1px solid #5eadb0;border-radius:10px;background:#1a8e90;color:white;font-weight:950;font-size:13px;cursor:pointer;font-family:inherit}
.rt-actions button.rt-secondary{background:#ecf8f4;color:#2a7182}
.rt-more{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px;font-size:13px;font-weight:900}.rt-more a{color:#287b8d}
@media(max-width:900px){.rt-layout{grid-template-columns:1fr}.rt-main,.rt-sidebar{width:100%;max-width:630px;margin:auto}.rt-sidebar{grid-template-columns:1fr 1fr}.rt-panel:last-child{grid-column:1/-1}}
@media(max-width:570px){.rt-page{padding:10px 7px 50px}.rt-page h1{font-size:31px}.rt-page .rt-lead{font-size:14px}.rt-game{padding:7px;border-radius:14px}.rt-brand{font-size:17px}.rt-brand small{font-size:9px}.rt-brand i{width:35px;height:35px;font-size:20px}.rt-stat{padding:5px 6px;font-size:10px}.rt-stat b{font-size:11px}.rt-screen{border-width:2px;border-radius:10px}.rt-control{font-size:21px;min-height:53px;border-radius:10px}.rt-control small{font-size:9px}.rt-controls{gap:5px}.rt-ocean .rt-controls{gap:3px}.rt-ocean .rt-control{font-size:18px;min-height:53px}.rt-sidebar{grid-template-columns:1fr}.rt-panel{padding:13px}.rt-subnote{font-size:11px}.rt-notice{font-size:10px}.rt-toolbar button{font-size:11px}}
