@font-face{font-family:"Press Start 2P";src:url(/fame-boy-color/PressStart2P-Regular.ttf)format("truetype");font-display:swap}:root{--s:1;--color-text:#21262d;--color-heading:#2a2a2a;--color-muted:#6b7280;--color-subtle:#4b5563;--color-bg:#fff;--color-surface:#f3f4f6;--color-surface-hover:#e5e7eb;--color-surface-active:#d1d5db;--color-border:#d1d5db;--color-border-hover:#9ca3af;--color-focus:#0e8ff8;--color-screen-bg:#bada55;--color-screen-text:#0f380f;--color-shell:#c8c4bf;--color-bezel:#4e4a57;--color-d-pad:#2a2a2a;--color-a-b:#8b2252;--color-start-select:#555;--color-mute:#b0aca7;--color-button-label:#ffffff80}@media (prefers-color-scheme:dark){:root{--color-text:#e6edf3;--color-heading:#e6edf3;--color-muted:#9ca3af;--color-subtle:#d1d5db;--color-bg:#161b22;--color-surface:#2d333b;--color-surface-hover:#3d444d;--color-surface-active:#4a525c;--color-border:#3d444d;--color-border-hover:#565e68}}body{background:var(--color-bg);min-height:100vh;color:var(--color-text);margin:0;font-family:sans-serif}#root{grid-template-columns:1fr auto 1fr;align-items:center;width:100%;min-height:100vh;display:grid}.shell-group{grid-area:1/2;align-items:flex-start;gap:20px;margin:20px;display:flex}.shell{margin:20px}.sidebar{flex-direction:column;grid-area:1/3;justify-content:center;justify-self:start;align-items:center;gap:35px;padding:20px;display:flex}.game-shelf{flex-direction:column;grid-area:1/1;justify-self:end;gap:10px;width:250px;padding:20px;display:flex}.game-shelf .controls-heading{margin:0}.game-list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.game-item{position:relative}.game-card{width:100%;font:inherit;text-align:left;color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border);cursor:pointer;border-radius:8px;grid-template-columns:50px 1fr;align-items:center;column-gap:10px;padding:6px 44px 6px 6px;transition:background .15s,border-color .15s;display:grid}.game-card:hover{background:var(--color-surface-hover);border-color:var(--color-border-hover)}.game-card[aria-current=true]{border-color:var(--color-a-b);box-shadow:inset 3px 0 0 var(--color-a-b)}.game-card img{object-fit:cover;width:50px;height:45px;image-rendering:pixelated;background:var(--color-screen-bg);border-radius:3px;grid-row:1/span 2}.game-card-title{align-self:end;font-size:.85rem;font-weight:600}.game-card-genre{color:var(--color-muted);align-self:start;font-size:.75rem}.game-badge{color:#fff;background:var(--color-a-b);border-radius:4px;padding:3px 6px;font-size:.7rem;font-weight:700;text-decoration:none;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.more-games-list .game-badge{position:static;transform:none}a.game-badge:hover{filter:brightness(1.2)}.more-games-button{width:100%;height:100%;min-height:59px;font:inherit;color:var(--color-subtle);border:1px dashed var(--color-border-hover);cursor:pointer;background:0 0;border-radius:8px;padding:10px;font-size:.85rem;font-weight:600}.more-games-button:hover{background:var(--color-surface)}.game-shelf-note{color:var(--color-muted);text-align:center;margin:0;font-size:.75rem}.more-games{width:min(560px,100vw - 32px);max-height:min(80vh,720px);color:var(--color-text);background:var(--color-bg);border:1px solid var(--color-border);border-radius:12px;padding:0;box-shadow:0 10px 40px #0006}.more-games[open]{flex-direction:column;display:flex}.more-games::backdrop{background:#00000080}.more-games-header{justify-content:space-between;align-items:center;padding:14px 16px 8px;display:flex}.more-games-header h2{color:var(--color-heading);margin:0;font-size:1.1rem}.more-games-close{font:inherit;color:var(--color-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px 8px}.more-games-close:hover{background:var(--color-surface-hover)}#more-games-search{font:inherit;color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border);border-radius:8px;margin:0 16px;padding:10px 12px;font-size:.9rem}.more-games-filters{flex-wrap:wrap;align-items:center;gap:6px;margin:8px 16px 0;display:flex}.more-games-filters select{font:inherit;color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border);border-radius:6px;padding:6px 8px;font-size:.8rem}.more-games-check{color:var(--color-muted);cursor:pointer;align-items:center;gap:4px;font-size:.8rem;display:flex}.more-games-status{color:var(--color-muted);margin:8px 16px 4px;font-size:.75rem}.more-games-list{flex:1;min-height:0;margin:0;padding:0 8px;list-style:none;overflow-y:auto}.more-games-list li{align-items:center;gap:4px;display:flex}.more-games-item{min-width:0;font:inherit;text-align:left;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;flex-direction:column;flex:1;gap:2px;padding:8px;display:flex}.more-games-item:hover{background:var(--color-surface-hover)}.more-games-title{font-size:.9rem;font-weight:600}.more-games-details{color:var(--color-muted);white-space:nowrap;text-overflow:ellipsis;font-size:.75rem;overflow:hidden}.more-games-info{color:var(--color-subtle);padding:8px;font-size:.75rem}.more-games-note{color:var(--color-muted);border-top:1px solid var(--color-border);margin:0;padding:10px 16px 14px;font-size:.75rem}.more-games-note a{color:var(--color-subtle)}.rom-upload{color:var(--color-subtle);background:var(--color-surface);border:1px solid var(--color-border);cursor:pointer;border-radius:8px;padding:15px 25px;font-size:.85rem;font-weight:600;transition:background .15s,border-color .15s}.rom-upload:hover{background:var(--color-surface-hover);border-color:var(--color-border-hover)}.rom-upload:active{background:var(--color-surface-active)}#rom-file{clip:rect(0, 0, 0, 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.scale-selector{border:none;flex-wrap:wrap;width:250px;margin:0;padding:0;display:flex}.scale-selector legend{text-align:center;width:100%;color:var(--color-heading);padding-bottom:8px;font-size:1.1rem;font-weight:600}.scale-option{cursor:pointer;flex:1}.scale-option input{clip:rect(0, 0, 0, 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.scale-option span{color:var(--color-subtle);background:var(--color-surface);border:1px solid var(--color-border);text-align:center;border-right-width:0;padding:10px 16px;font-size:.85rem;font-weight:600;transition:background .15s,border-color .15s;display:block}.scale-option:first-of-type span{border-radius:8px 0 0 8px}.scale-option:last-of-type span{border-right-width:1px;border-radius:0 8px 8px 0}.scale-option:hover span{background:var(--color-surface-hover);border-color:var(--color-border-hover)}.scale-option:hover+.scale-option span{border-left-color:var(--color-border-hover)}.scale-option input:checked+span{background:var(--color-surface-active);color:var(--color-text);border-color:var(--color-border-hover)}.scale-option:has(input:checked)+.scale-option span{border-left-color:var(--color-border-hover)}.scale-option input:focus-visible+span{outline:3px solid var(--color-focus);z-index:2;position:relative}.controls{flex-direction:column;align-items:center;width:180px;display:flex}.controls table{border-collapse:collapse;width:120px}.controls-heading{text-align:center;color:var(--color-heading);padding-bottom:8px;font-size:1.1rem;font-weight:600}.controls th,.controls td{color:var(--color-muted);padding:4px 2px;font-size:.8rem}.controls thead th{border-top:none}.controls tbody th{text-align:center;font-weight:500}.controls td{text-align:center;font-weight:600}.github-link{color:var(--color-heading);width:35px;height:35px}.credit-text{color:var(--color-muted);text-align:center;margin-bottom:10px;font-size:.75rem}.credit-text a{color:var(--color-subtle);text-underline-offset:2px;text-decoration:underline}.credit-text a:hover{color:var(--color-text)}.fps-counter{color:#fff;background:#00000080;border-radius:2px;padding:1px 4px;font-family:monospace;font-size:15px;display:none;position:absolute;top:10px;left:10px}#root:has(#show-fps:checked) .fps-counter{display:block}.fps-toggle{color:var(--color-muted);cursor:pointer;align-items:center;gap:6px;font-size:.85rem;display:flex}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@layer base{.shell button{all:unset;cursor:pointer}}.shell{background:var(--color-shell);-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:var(--s);border-radius:15px 15px 60px;flex-direction:column;justify-content:space-between;align-items:center;width:360px;height:600px;display:flex;box-shadow:3px 6px 16px #00000080}.shell-link{display:none}.screen-border{background:var(--color-bezel);border-radius:15px 15px 60px;align-items:flex-start;gap:10px;margin-top:30px;padding:25px 55px;display:flex}#screen,#screen2,#screen2-wide{image-rendering:pixelated;aspect-ratio:10/9;border:5px solid var(--color-d-pad);background:var(--color-screen-bg);border-radius:5px;height:180px}.screen-wrapper{position:relative}.start-overlay{z-index:1;color:var(--color-screen-text);text-align:center;justify-content:center;align-items:center;padding:5px;font-family:"Press Start 2P",monospace;font-size:16px;line-height:2.2;display:flex;position:absolute;inset:0}.start-overlay.hidden{display:none}.buttons{perspective:150px;width:300px;height:220px;margin-bottom:30px;position:relative}.link-shell-badge{text-align:center;letter-spacing:.24em;width:100%;color:color-mix(in srgb, var(--color-d-pad) 65%, transparent);font-size:.75rem;position:absolute;bottom:18px}.buttons-link{margin-bottom:30px}.d-pad{--d-pad-button-size:35px;width:105px;height:105px;transform-style:preserve-3d;transition:transform .1s;position:relative}.d-pad>*{background:var(--color-d-pad);position:absolute}:is(.d-pad:has(#up-button:active),.d-pad:has(#p2-up-button:active)){transform:rotateX(2deg)}:is(.d-pad:has(#down-button:active),.d-pad:has(#p2-down-button:active)){transform:rotateX(-2deg)}:is(.d-pad:has(#left-button:active),.d-pad:has(#p2-left-button:active)){transform:rotateY(-2deg)}:is(.d-pad:has(#right-button:active),.d-pad:has(#p2-right-button:active)){transform:rotateY(2deg)}.d-pad .center{width:var(--d-pad-button-size);height:var(--d-pad-button-size);top:var(--d-pad-button-size);left:var(--d-pad-button-size)}#up-button,#p2-up-button{width:var(--d-pad-button-size);height:calc(var(--d-pad-button-size) + 2px);top:0;left:var(--d-pad-button-size);border-radius:5px 5px 0 0}#down-button,#p2-down-button{width:var(--d-pad-button-size);height:calc(var(--d-pad-button-size) + 2px);bottom:0;left:var(--d-pad-button-size);border-radius:0 0 5px 5px}#left-button,#p2-left-button{width:calc(var(--d-pad-button-size) + 2px);height:var(--d-pad-button-size);top:var(--d-pad-button-size);border-radius:5px 0 0 5px;left:0}#right-button,#p2-right-button{width:calc(var(--d-pad-button-size) + 2px);height:var(--d-pad-button-size);top:var(--d-pad-button-size);border-radius:0 5px 5px 0;right:0}.a-b-buttons{justify-content:space-between;width:110px;display:flex;position:absolute;top:25px;right:0;rotate:-25deg}.a-b-button{background:var(--color-a-b);color:#ffffff59;border-radius:50%;justify-content:center;align-items:center;width:50px;height:50px;font-size:16px;font-weight:700;display:flex}.a-b-button:active{transform:scale(.95)}.start-select-buttons{justify-content:center;gap:15px;width:100%;display:flex;position:absolute;bottom:70px}.start-select-button{background:var(--color-start-select);letter-spacing:.3px;color:#ffffff59;border-radius:10px;justify-content:center;align-items:center;width:45px;height:15px;font-size:8px;font-weight:600;display:flex;rotate:-25deg}.start-select-button:active{transform:scale(.95)}.mute-button{width:45px;height:45px;color:var(--color-d-pad);background:var(--color-mute);border-radius:50%;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;bottom:5px;right:5px}.mute-button:active{transform:scale(.95)}.hidden{display:none}button:focus-visible{outline:3px solid var(--color-focus);z-index:2}@media (width<=1150px){.game-shelf{box-sizing:border-box;grid-area:2/1/auto/-1;place-self:center;width:min(940px,100% - 32px);padding:0 0 20px}.game-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}@media (width>=1200px) and (width<=1550px){#root.link-mode .game-shelf{box-sizing:border-box;grid-area:2/1/auto/-1;justify-self:center;width:min(940px,100% - 32px);padding:0 0 20px}#root.link-mode .game-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}@media (width<=700px){.shell-group{order:0}.game-shelf{order:1;padding-top:10px}.sidebar{order:2}.shell{zoom:min(1, calc((100vw - 40px) / 360px))}#root{flex-direction:column;justify-content:center;justify-items:center;display:flex}.shell-group{margin:20px 20px 0}.sidebar{grid-template-columns:auto auto;justify-content:center;align-items:center;gap:15px;display:grid}.scale-selector,.controls{display:none}.rom-upload{order:1}.github-link{order:2}.fps-toggle{order:3;grid-column:1/span 2;justify-self:center}.credit-container{text-align:center;order:4;grid-column:1/span 2}}@media (width>=1200px){#root.link-mode #link-container{display:none}#root.link-mode .shell-link{display:flex}#root.link-mode .shell{margin:0}#root.link-mode #p2-controls{display:none}}#install{z-index:100;padding:.5em .75em;padding-top:calc(.5em + env(safe-area-inset-top));background:var(--color-bezel);color:#fff;justify-content:center;align-items:center;gap:.6em;font-family:Segoe UI,Arial,sans-serif;font-size:.95rem;line-height:1.3;display:flex;position:fixed;top:0;left:0;right:0;box-shadow:0 2px 8px #00000080}#install[hidden]{display:none}#install-text{flex:auto;min-width:0}#install button{font:inherit;cursor:pointer;border:0;border-radius:.4em;flex:none;margin:0;padding:.4em .9em}#install-btn{background:var(--color-screen-bg);color:var(--color-screen-text);font-weight:600}#install-close{color:inherit;background:0 0;padding:.4em .5em}#install .share-icon{vertical-align:-.2em;fill:currentColor;width:1.1em;height:1.1em}
