@import url('/fonts.css');
:root{font-family:'Arial', 'Noto Sans JP',sans-serif;color:#f3f4f1;background:#131619;font-synthesis:none;--lime:#c5f36b;--muted:#8d9296;--line:#303438}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--lime);outline-offset:5px}header,main{max-width:1240px;margin:auto;padding:0 40px}header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;font-size:23px;font-weight:900;letter-spacing:-1px}.brand-light{font-weight:400}.logo{background:var(--lime);color:#171b20;border-radius:10px;font-size:27px;width:38px;height:38px;display:grid;place-items:center;margin-right:12px;transform:rotate(-5deg)}.beta{font-size:9px;font-weight:600;letter-spacing:1px;color:var(--muted);border:1px solid var(--line);padding:4px 6px;border-radius:4px;margin-left:10px}nav{display:flex;gap:30px;align-items:center;font-size:12px}nav>a{color:#b8babb}.nav-random{background:transparent;border:1px solid #464a4d;padding:11px 16px;border-radius:6px}.hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:50px;padding:65px 0 54px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime);margin-right:8px}.hero h1{font-size:clamp(38px,4.5vw,62px);line-height:1.38;letter-spacing:-2px;margin:22px 0}.lime{color:var(--lime)}.hero p{font-size:14px;line-height:1.9;color:#a6aaad}.hero-actions{display:flex;align-items:center;gap:18px;margin-top:28px}.primary{border:0;display:inline-flex;justify-content:center;align-items:center;gap:25px;background:var(--lime);color:#182017;font-size:13px;font-weight:700;border-radius:7px;padding:16px 21px;transition:background .15s,transform .15s}.primary:hover{background:#d8ffa0;transform:translateY(-2px)}.free-note{font-size:10px;color:var(--muted)}.hero-art{overflow:hidden;position:relative;border:1px solid #3c5441;border-radius:18px;aspect-ratio:1.36;background-color:#24352b;background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);background-size:30px 30px;transform:rotate(-2deg);box-shadow:10px 12px 0 #1a2020;transition:transform .2s}.hero-art:hover{transform:rotate(0)}.art-label{position:absolute;left:25px;top:24px;color:#a2bb94;letter-spacing:2px;font-size:9px}.art-bottom{position:absolute;left:26px;right:23px;bottom:20px;display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:2px;color:#c8d5bb}.round-arrow{border:1px solid #6a805d;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:22px}.pixel-snake{position:absolute;width:200px;height:140px;top:26%;left:19%;transform:rotate(-8deg)}.pixel-snake i{position:absolute;background:#c5f36b;border-radius:6px;width:47px;height:47px;box-shadow:inset 0 -6px #9bbc51,0 8px 15px #0002}.pixel-snake i:nth-child(1){left:0;top:94px}.pixel-snake i:nth-child(2){left:47px;top:94px}.pixel-snake i:nth-child(3){left:47px;top:47px}.pixel-snake i:nth-child(4){left:47px;top:0}.pixel-snake i:nth-child(5){left:94px;top:0}.pixel-snake i:nth-child(6){left:141px;top:0}.pixel-snake i:nth-child(7){left:188px;top:0}.pixel-snake i:last-child:after{content:'••';color:#263123;letter-spacing:6px;position:absolute;right:3px;top:2px;transform:rotate(90deg);font-size:23px}.pixel-food{position:absolute;right:12%;bottom:25%;color:#ff9471;font-size:50px;transform:rotate(10deg)}.perks{display:flex;gap:38px;padding:21px 0;border-block:1px solid var(--line);color:#a5a9ab;font-size:11px}.perks-right{margin-left:auto;color:#62696d}.library{padding:48px 0 45px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.muted{color:#777f83}h2{font-size:23px;letter-spacing:-.7px;margin:11px 0 0}h2>span{font-size:9px;letter-spacing:1px;border:1px solid var(--line);padding:5px 8px;border-radius:4px;color:#9ca2a4;margin-left:12px;vertical-align:middle}.search{background:#1c2024;border:1px solid var(--line);border-radius:7px;padding:10px 14px;display:flex;gap:10px;color:#8d9498}.search input{background:none;border:none;color:white;width:150px;font-size:12px;outline:none}.filters{display:flex;gap:9px;margin:26px 0}.filters button{border:1px solid var(--line);background:transparent;color:#969ca0;border-radius:30px;font-size:11px;padding:9px 16px}.filters button.active{background:#f0f1eb;color:#171b1e;border-color:#f0f1eb}.filters span{margin-left:9px;opacity:.6}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.game-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#1b1f22;text-align:left;padding:0;transition:transform .2s,border-color .2s}.game-card:hover{transform:translateY(-5px);border-color:#778b58}.thumb{height:180px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background-image:radial-gradient(#ffffff18 1px,transparent 1px);background-size:15px 15px}.thumb.snake{background-color:#28382c}.thumb.memory{background-color:#39304e}.thumb.reaction{background-color:#4b3527}.thumb.mole{background-color:#263c49}.thumb.numbers{background-color:#403339}.thumb-symbol{font-size:70px;filter:drop-shadow(0 10px 0 #0002);transform:rotate(-9deg)}.snake .thumb-symbol{font-size:56px;color:var(--lime);letter-spacing:-14px}.memory .thumb-symbol{font-size:65px;color:#c5b1f9;letter-spacing:9px}.reaction .thumb-symbol{color:#ffbc79;font-size:110px}.mole .thumb-symbol{font-size:77px}.numbers .thumb-symbol{font-weight:900;color:#ffb6bf;font-size:53px;letter-spacing:8px;border:3px solid #ffb6bf80;padding:2px 12px;border-radius:10px}.thumb-label{position:absolute;left:14px;top:13px;font-size:9px;letter-spacing:1px;color:#ffffff9c}.card-body{padding:19px}.card-heading{display:flex;justify-content:space-between;align-items:center}.card-heading h3{margin:0;font-size:16px}.card-heading>span{color:#959b9f;font-size:19px}.card-body p{font-size:11px;color:#92999d;margin:10px 0 20px}.card-meta{display:flex;justify-content:space-between;color:#8e969a;font-size:9px;gap:8px}.tag{background:#ffffff08;border-radius:4px;padding:4px 7px}.card-meta>span:last-child{padding-top:4px}.daily{background:#202625;border:1px solid #3a4436;border-radius:12px;padding:30px;display:flex;align-items:center;gap:25px;margin-bottom:45px}.daily-icon{font-size:58px;color:var(--lime)}.daily .eyebrow{color:#9cab8f;font-size:8px}.daily h2{font-size:21px}.daily p{color:#9da69b;font-size:12px;margin-bottom:0}.daily button{margin-left:auto;white-space:nowrap}footer{border-top:1px solid var(--line);padding:28px 0 35px;display:flex;align-items:center;gap:22px}footer .brand{font-size:18px}footer p,footer>span,footer button{font-size:9px;color:#858e92}footer>span{margin-left:auto}footer button{border:none;background:none;padding:6px}dialog{background:#1b2024;color:#f5f5ee;border:1px solid #454d50;border-radius:18px;padding:26px;width:min(580px,calc(100% - 24px));max-height:93dvh;overscroll-behavior:contain}dialog::backdrop{background:#050709cf;backdrop-filter:blur(8px)}body:has(dialog[open]){overflow:hidden}.dialog-top{display:flex;align-items:center;justify-content:space-between}.close{border:1px solid var(--line);background:#2e3539;border-radius:50%;width:34px;height:34px}dialog h2{font-size:28px}#game-instructions{font-size:12px;line-height:1.8;color:#b2b8bb}.scorebar{display:flex;justify-content:space-around;background:#121719;border-radius:8px;margin:17px 0;padding:14px;font-size:11px;color:#969fa4}.scorebar strong{display:block;text-align:center;margin-top:5px;font-size:22px;color:var(--lime);font-variant-numeric:tabular-nums}#arena{min-height:210px;display:grid;place-items:center}#game-status{text-align:center;min-height:24px;font-size:13px;color:#c6cfca}#restart{width:100%}.local-note{font-size:10px;text-align:center;color:#7c898e}.board{display:grid;width:min(100%,360px);gap:9px}.board.memory{grid-template-columns:repeat(4,1fr)}.tile{aspect-ratio:1;background:#333e48;border:1px solid #56616a;border-radius:9px;font-size:27px;display:grid;place-items:center}.tile.flipped,.tile.matched{background:#c5b1f9;color:#302843}.tile.matched{opacity:.5}.board.mole{grid-template-columns:repeat(3,1fr);max-width:310px}.hole{border:1px solid #48606a;background:#142731;aspect-ratio:1.3;border-radius:50%;font-size:35px}.hole.hit{background:#637950}.board.numbers{grid-template-columns:repeat(5,1fr)}.number{aspect-ratio:1;border:1px solid #77626e;background:#403339;border-radius:8px;font-weight:700;font-size:21px}.number.done{opacity:.15}.number.wrong{background:#a04343}.reaction-pad{width:100%;height:220px;border:1px solid #695039;background:#4b3527;border-radius:12px;color:#ffe0bb;font-size:22px;font-weight:bold}.reaction-pad.ready{background:#c5f36b;color:#253019}canvas{display:block;width:min(100%,320px);height:auto;background:#14231a;border-radius:8px;touch-action:none}.dpad{display:flex;justify-content:center;gap:10px;margin-top:12px}.dpad button{background:#344039;border:1px solid #536449;border-radius:8px;width:52px;height:44px;font-size:22px}.idle{color:#91a08e;font-size:15px;text-align:center}.skip{position:absolute;top:-60px;padding:10px;background:var(--lime);color:black;z-index:10}.skip:focus{top:0}#privacy-dialog p{line-height:1.9;font-size:14px;color:#b8c2c5}#empty{color:#b2b8bb;padding:30px 0}
@media(min-width:1050px){.game-grid{grid-template-columns:repeat(3,1fr)}.game-card:nth-child(4),.game-card:nth-child(5){max-width:100%}}@media(max-width:800px){header,main{padding-inline:24px}.hero{gap:25px;padding-block:40px}.hero h1{font-size:42px}.hero-art{aspect-ratio:1;}.pixel-snake{left:10%;transform:scale(.8) rotate(-8deg);transform-origin:left center}.free-note{display:none}.perks{gap:20px}.perks-right{display:none}.game-grid{grid-template-columns:repeat(2,1fr)}.daily{padding:23px;gap:15px}.daily-icon{display:none}.daily button{font-size:11px}footer{flex-wrap:wrap}footer>span{margin-left:0}}@media(max-width:540px){header,main{padding-inline:18px}header{height:76px}.brand{font-size:19px}.logo{width:31px;height:31px;font-size:22px}nav>a{display:none}.nav-random{font-size:10px;padding:9px}.beta{display:none}.hero{grid-template-columns:1fr;gap:28px;padding-top:35px}.hero h1{font-size:45px;margin-top:19px}.hero p{font-size:13px}.hero-art{aspect-ratio:1.75;width:100%;}.pixel-snake{top:14%;left:22%;transform:scale(.85) rotate(-8deg)}.art-label{font-size:8px;top:15px;left:16px}.art-bottom{bottom:13px;left:16px;font-size:8px}.perks{justify-content:space-between;gap:6px;font-size:9px}.section-top{align-items:flex-start;flex-direction:column;gap:19px}.section-top h2{font-size:21px}h2>span{font-size:8px;margin-left:4px}.search{width:100%}.search input{width:100%}.library{padding-top:33px}.filters{gap:5px;margin:20px 0}.filters button{padding:9px 12px;font-size:10px}.game-grid{gap:12px}.thumb{height:132px}.thumb-symbol{font-size:50px}.snake .thumb-symbol{font-size:42px}.memory .thumb-symbol{font-size:42px;letter-spacing:1px}.reaction .thumb-symbol{font-size:83px}.mole .thumb-symbol{font-size:55px}.numbers .thumb-symbol{font-size:30px;letter-spacing:3px}.card-body{padding:13px}.card-heading h3{font-size:13px}.card-body p{font-size:10px;line-height:1.6;margin:8px 0 12px}.card-meta{font-size:8px;flex-wrap:wrap}.daily{flex-direction:column;align-items:flex-start}.daily button{margin:5px 0 0;width:100%}footer{gap:10px 18px}footer p{margin:0}footer>span{width:100%}dialog{padding:19px}dialog h2{font-size:23px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
.thumb.tictactoe{background-color:#294445}.thumb.tictactoe .thumb-symbol{color:#8ce0d2}.thumb.mines{background-color:#43402b}.thumb.mines .thumb-symbol{color:#e4d887}.thumb.sliding{background-color:#34415b}.thumb.sliding .thumb-symbol{color:#aac6ff;font-weight:900}.thumb.math{background-color:#453151}.thumb.math .thumb-symbol{color:#e4aafa;font-size:58px}.thumb.colors{background-color:#493344}.thumb.colors .thumb-symbol{color:#ff99be;font-weight:900}.board.tictactoe{grid-template-columns:repeat(3,1fr);max-width:300px}.ttt-cell{aspect-ratio:1;background:#223d3c;border:1px solid #4b7570;border-radius:10px;font-size:48px}.ttt-cell.player{color:#bdf56f}.ttt-cell.cpu{color:#fca2b0}.board.mines{grid-template-columns:repeat(6,1fr);gap:5px;max-width:330px}.mine-cell{aspect-ratio:1;border:1px solid #777354;border-radius:5px;background:#4b4830;font-size:20px;font-weight:bold}.mine-cell.opened{background:#242920;color:#d1e9b4;border-color:#3a4633}.mine-cell.exploded{background:#a04343;color:#fff}.mine-tools{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;font-size:11px}.mine-tools button{background:#333f32;border:1px solid #72835c;padding:10px;border-radius:6px}.mine-tools button[aria-pressed=true]{background:#c5f36b;color:#172315}.board.sliding{grid-template-columns:repeat(4,1fr);max-width:330px;gap:7px}.slide-tile{aspect-ratio:1;border:1px solid #687c9f;border-radius:8px;background:#34415b;font-size:26px;font-weight:bold}.slide-tile[aria-disabled=false]{background:#4c628d}.slide-tile.blank{background:#121719;border-color:#262f38}.quiz{width:100%;max-width:380px}#quiz-prompt{font-size:44px;font-weight:bold;text-align:center;padding:25px 0 35px;font-variant-numeric:tabular-nums}.quiz-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quiz-answer{min-height:66px;border:1px solid #66636f;border-radius:9px;background:#393143;font-size:24px}.quiz-answer:disabled{opacity:.6}.ink-red{color:#ff7878}.ink-blue{color:#7dafff}.ink-yellow{color:#ffe17b}.ink-green{color:#8fe49e}@media(max-width:540px){.thumb.math .thumb-symbol{font-size:38px}#quiz-prompt{font-size:36px}.mine-cell{font-size:17px}.mine-tools{font-size:10px}}
[hidden]{display:none!important}.auth-trigger{display:flex;align-items:center;justify-content:center;gap:7px;background:#c5f36b;color:#182017;font-size:12px;border:0;border-radius:6px;padding:11px 14px;white-space:nowrap}.auth-user-icon{font-size:17px;line-height:1}.auth-trigger:disabled{opacity:.6;cursor:wait}.auth-description{font-size:13px;color:#b5c1ba;line-height:1.9;margin:20px 0}.google-signin{display:flex;gap:12px;align-items:center;justify-content:center;background:#fff;color:#242424;border:1px solid #747775;border-radius:6px;padding:14px 20px;width:100%;font-size:14px;font-weight:600}.google-signin:disabled,.signout:disabled{opacity:.5;cursor:wait}.google-signin:hover:not(:disabled){background:#eee}.auth-note{font-size:11px;color:#9ea8a2;line-height:1.8;margin:17px 0}.account-profile{display:flex;align-items:center;gap:16px;margin-top:26px;min-width:0}.account-profile>div{min-width:0;overflow-wrap:anywhere}#account-avatar{width:48px;height:48px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#c5f36b;color:#182017;font-weight:bold;font-size:23px}#account-name{font-size:17px}#account-email{color:#a6b1aa;font-size:12px;margin:7px 0}.signout{background:transparent;border:1px solid #6f7b75;padding:12px 20px;border-radius:6px;width:100%;font-size:13px}#auth-message{font-size:12px;line-height:1.8;color:#c5f36b;overflow-wrap:anywhere}#auth-message.auth-error{color:#ffb6a4}#auth-dialog{max-width:440px}#auth-dialog h2{font-size:24px}@media(max-width:700px){header nav{gap:10px}.auth-trigger{padding:10px;font-size:11px}.auth-user-icon{display:none}}@media(max-width:540px){header .nav-random{padding:9px 7px;font-size:9px}header nav{gap:7px}.auth-trigger{padding:9px;font-size:10px}}@media(max-width:370px){header .nav-random{display:none}}
/* Clear, high-contrast entry to the members arcade. */
header .auth-trigger{min-height:46px;padding:12px 20px;background:#c5f36b;color:#142009;border:1px solid #dcff9c;box-shadow:0 3px 0 #749c32;font-size:13px;font-weight:800;letter-spacing:.02em;border-radius:10px;opacity:1}header .auth-trigger:hover{background:#dbff9a;transform:translateY(-1px)}header .auth-trigger:active{transform:translateY(2px);box-shadow:0 1px 0 #749c32}header .auth-trigger:disabled{opacity:1;background:#c5f36b;color:#142009}header nav{gap:18px}header .nav-random{color:#dee5e0}#auth-dialog{padding:28px;max-width:450px;background:#1a211f;border:1px solid #667e4b;box-shadow:0 24px 100px #0008}#auth-dialog .eyebrow{color:#bdd59c;letter-spacing:1.4px}#auth-dialog h2{text-align:center;font-size:27px;margin-top:22px;letter-spacing:-.7px}.auth-art{display:flex;align-items:center;justify-content:center;gap:22px;margin:18px auto 0;height:82px}.auth-art span{color:#b8df7c;font-size:25px;transform:rotate(-12deg)}.auth-art span:nth-child(2){display:grid;place-items:center;width:74px;height:74px;background:#c5f36b;color:#213112;border-radius:23px;box-shadow:5px 5px 0 #3c5228;font-size:31px;transform:rotate(-6deg)}.auth-art span:last-child{font-size:18px;transform:rotate(12deg)}#auth-dialog .auth-description{text-align:center;color:#e0e8dc;font-size:14px;margin:14px 0 24px}#auth-dialog .google-signin{min-height:54px;color:#161b18;background:#fff;font-size:15px;font-weight:700;border:2px solid #fff;border-radius:11px;box-shadow:0 3px 0 #899383}#auth-dialog .google-signin:hover:not(:disabled){background:#f1ffe3;border-color:#c5f36b}#auth-dialog .google-signin:disabled{opacity:1;background:#e7ecdf;color:#46533d;box-shadow:none;cursor:wait}.auth-benefits{display:flex;justify-content:center;gap:20px;margin-top:23px;font-size:11px;color:#d5e7c1}.auth-benefits span:before{content:'✓';color:#c5f36b;margin-right:6px}#auth-dialog .auth-note{text-align:center;color:#b8c5b1;font-size:11px;margin:18px 0 4px}#auth-message{text-align:center;margin-top:18px}body.signed-in .auth-art{display:none}body.signed-in #auth-dialog h2{text-align:left}.signout{color:#f0f5ec}#restart:disabled{opacity:.8;cursor:wait}@media(max-width:800px){header nav>a{display:none}}@media(max-width:540px){header .nav-random{display:none}header .auth-trigger{min-height:43px;padding:10px 13px;font-size:12px}.auth-user-icon{display:none}#auth-dialog{padding:23px 20px}#auth-dialog h2{font-size:24px}.free-note{display:block;font-size:10px}.hero-actions{flex-wrap:wrap}}
/* Starfall Chronicles */
.thumb.starfall{background:radial-gradient(ellipse at 65% 20%,#577576 0,transparent 45%),linear-gradient(150deg,#243d4c,#253e37 65%,#8b9670);height:210px}.thumb.starfall:before{content:'';position:absolute;inset:48% -10% 0;background:#172f34;clip-path:polygon(0 60%,15% 28%,28% 57%,46% 0,67% 62%,78% 24%,100% 66%,100% 100%,0 100%)}.thumb.starfall:after{content:'第一章：失われた星';position:absolute;bottom:20px;left:20px;letter-spacing:3px;font-size:11px;color:#e5d9ac}.thumb.starfall .thumb-symbol{color:#ffe3a1;font-size:105px;text-shadow:0 0 35px #dcd99488;position:absolute;right:20%;top:4px}.game-card[data-game=starfall]{grid-column:span 2;border-color:#6d7955}.game-card[data-game=starfall] .card-heading h3{font-size:21px}.game-card[data-game=starfall] .thumb-label:before{content:'NEW RPG / ';color:#ffdda1}.filters{flex-wrap:wrap}
dialog.rpg-mode{width:min(1100px,calc(100% - 16px));padding:20px;max-height:96dvh}.rpg-mode #game-title{font-size:24px}.rpg-mode #game-instructions{margin:8px 0 12px}.rpg-mode:has(.rpg-shell) .scorebar,.rpg-mode:has(.rpg-shell) #restart,.rpg-mode:has(.rpg-shell) #game-status,.rpg-mode:has(.rpg-shell)>.local-note{display:none}.rpg-mode #arena{display:block}.rpg-shell{border:1px solid #56645b;border-radius:12px;overflow:hidden;background:#14232b;color:#f0eedf;font-family:Arial,'Noto Sans JP',sans-serif}.rpg-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:linear-gradient(110deg,#253945,#1d3235);border-bottom:1px solid #5f6d61}.rpg-kicker{font-size:9px;color:#d9c48d;letter-spacing:3px}.rpg-top h3{font-size:21px;font-weight:700;margin:5px 0 0;letter-spacing:1px}.rpg-top h3 span{font-size:10px;font-weight:400;color:#b0c3bb;margin-left:12px}.rpg-save{font-size:10px;color:#b8cda7;text-align:right;max-width:170px}.rpg-hud{display:flex;align-items:center;gap:20px;padding:13px 20px;background:#182c34;font-size:11px;flex-wrap:wrap}.rpg-level{font-weight:bold;color:#f1dba8;margin-right:auto}.rpg-hud label{display:flex;align-items:center;gap:7px;font-size:10px;color:#bacecc}.rpg-hud label span{font-variant-numeric:tabular-nums;min-width:45px}.rpg-hud progress{width:88px;height:7px;accent-color:#9bd296;border:0;border-radius:9px;overflow:hidden;background:#35464a}.rpg-hud #rpg-mp{accent-color:#88bfdd}.rpg-hud progress::-webkit-progress-bar{background:#35464a}.rpg-hud progress::-webkit-progress-value{background:#9bd296}.rpg-hud #rpg-mp::-webkit-progress-value{background:#88bfdd}#rpg-gold{color:#f2d992;font-weight:bold}.rpg-stage{position:relative;isolation:isolate;background:#203a41}.rpg-stage #rpg-canvas{width:100%;max-width:none;height:auto;border-radius:0;image-rendering:pixelated;display:block;touch-action:none}.rpg-location{position:absolute;top:12px;left:14px;display:flex;flex-direction:column;gap:4px;pointer-events:none;padding:9px 12px;border:1px solid #d8e1ba33;border-radius:6px;background:#152b31c9;box-shadow:0 2px 5px #0002;max-width:70%}#rpg-region{font-size:12px;color:#fff2ca;font-weight:700}#rpg-landmark{font-size:10px;color:#cbd8c7}#rpg-landmark:empty{display:none}#rpg-notice{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);width:max-content;max-width:90%;padding:10px 15px;background:#102127ee;border:1px solid #d8c29477;border-radius:7px;color:#f6e5b2;font-size:12px;pointer-events:none;text-align:center;line-height:1.7;z-index:3}#rpg-notice:empty{display:none}.rpg-quest{display:flex;align-items:center;gap:14px;padding:12px 18px;background:#243a3b;border-top:1px solid #73826c55}.rpg-quest>span:first-child{font-size:9px;letter-spacing:2px;color:#e4c991;white-space:nowrap}.rpg-quest p{margin:0;font-size:11px;color:#d8e1d4;line-height:1.7}.rpg-quest>span:last-child{margin-left:auto;white-space:nowrap;font-size:11px;color:#eed398}.rpg-toolbar{display:flex;gap:7px;padding:12px 15px;background:#182b32;flex-wrap:wrap}.rpg-toolbar button,.rpg-panel-actions button{background:#304850;border:1px solid #698079;color:#f4efd9;border-radius:6px;min-height:40px;padding:10px 15px;font-size:12px;font-weight:600;touch-action:manipulation}.rpg-toolbar button:hover,.rpg-panel-actions button:hover{background:#476256}.rpg-toolbar button:disabled,.rpg-panel-actions button:disabled{opacity:.4;cursor:not-allowed}.rpg-toolbar .rpg-interact{margin-left:auto;background:#e3d09a;color:#253932;border-color:#f6e0a4}.rpg-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 18px 15px;background:#182b32}.rpg-controls>span{font-size:10px;line-height:1.8;color:#9db9ba}.rpg-pad{display:grid;grid-template-columns:repeat(3,43px);grid-template-rows:repeat(2,39px);gap:4px;touch-action:none}.rpg-pad button{padding:0;background:#354f55;border:1px solid #69878a;border-radius:8px;font-size:20px;user-select:none;touch-action:none}.rpg-pad button:active{background:#91b7a3;color:#17322b}.rpg-pad [data-move=up]{grid-column:2}.rpg-pad [data-move=left]{grid-column:1;grid-row:2}.rpg-pad [data-move=down]{grid-column:2;grid-row:2}.rpg-pad [data-move=right]{grid-column:3;grid-row:2}.rpg-confirm{border-radius:50%;border:2px solid #f5dfa2;width:62px;height:62px;background:#d9c58b;color:#273931;font-size:13px;font-weight:bold;box-shadow:0 4px 0 #827454}.rpg-shell #rpg-panel{position:absolute;inset:14px 16px;padding:20px 24px;background:#12252bf5;border:1px solid #a4aa83;border-radius:9px;z-index:4;overflow-y:auto;box-shadow:0 6px 30px #07101877;overscroll-behavior:contain}.rpg-panel-heading h4{color:#f0d59b;font-size:20px;margin:0 0 16px;letter-spacing:1px}.rpg-panel-body{font-size:13px;line-height:1.95;color:#e0e6d8}.rpg-panel-body p{margin:10px 0}.rpg-panel-body .rpg-speaker{font-size:10px;color:#a6cfbc;letter-spacing:1px}.rpg-panel-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.rpg-panel-actions button:first-child{background:#d9c58b;color:#243b33;border-color:#f4dfa7}.rpg-town-note{padding:10px 12px;background:#ffffff09;border-left:2px solid #c3d09b;font-size:11px}.rpg-quest-list{padding-left:18px;font-size:12px;line-height:2.4}.rpg-shell #rpg-panel.battle-panel{position:relative;inset:auto;overflow:visible;border:0;border-top:1px solid #b2a780;border-radius:0;padding:16px 20px;background:#13272e;box-shadow:none}.rpg-shell:has(.battle-panel:not([hidden])) .rpg-location,.rpg-shell:has(.battle-panel:not([hidden])) .rpg-controls{display:none}.battle-panel .rpg-panel-heading h4{font-size:16px;margin-bottom:9px}.rpg-enemy-info{display:flex;align-items:center;gap:10px;font-size:10px}.rpg-enemy-info progress{flex:1;max-width:180px;height:7px;accent-color:#e49a81}.rpg-battle-log{min-height:63px;color:#f2e7c9;font-size:12px}.rpg-battle-log p{margin:1px 0;line-height:1.8}.battle-panel .rpg-panel-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.battle-panel .rpg-panel-actions button{font-size:11px;padding:10px 6px}.rpg-panel-body .rpg-result-star{font-size:37px;margin:0;color:#f4d17c}#rpg-world-map{width:100%;max-width:640px;height:auto;border:1px solid #647670;border-radius:5px;image-rendering:pixelated;margin:auto}.rpg-map-note{font-size:10px;color:#b3c7bb}.rpg-mode .dialog-top{margin-bottom:2px}.rpg-mode .close{background:#334646}
@media(min-width:800px){.rpg-controls{padding-top:0}.rpg-pad{grid-template-columns:repeat(3,35px);grid-template-rows:repeat(2,30px)}.rpg-confirm{width:50px;height:50px}.rpg-controls>span{margin-right:auto}.rpg-stage:has(#rpg-panel:not([hidden])){min-height:330px}.rpg-stage:has(.battle-panel:not([hidden])){min-height:0}}
@media(max-width:600px){dialog.rpg-mode{padding:10px;width:calc(100% - 8px);max-height:98dvh}.rpg-mode #game-title{font-size:19px}.rpg-mode #game-instructions{font-size:10px;margin:6px 0}.rpg-top{padding:12px;gap:6px}.rpg-top h3{font-size:17px}.rpg-top h3 span{display:none}.rpg-kicker{font-size:8px;letter-spacing:1.7px}.rpg-save{font-size:9px;max-width:115px}.rpg-hud{padding:10px;gap:9px;font-size:10px}.rpg-level{width:100%;margin:0}.rpg-hud label{gap:4px;font-size:9px}.rpg-hud progress{width:65px}.rpg-hud label span{min-width:35px}.rpg-quest{padding:10px;gap:7px;flex-wrap:wrap}.rpg-quest p{font-size:10px;order:3;width:100%}.rpg-quest>span:last-child{font-size:10px}.rpg-toolbar{padding:9px;gap:5px}.rpg-toolbar button{padding:9px 10px;font-size:10px;min-height:38px}.rpg-toolbar .rpg-interact{width:100%;margin:0}.rpg-controls{padding:6px 12px 13px;gap:8px}.rpg-controls>span{font-size:9px}.rpg-shell #rpg-panel{inset:6px;padding:15px}.rpg-panel-heading h4{font-size:17px;margin-bottom:10px}.rpg-panel-body{font-size:12px;line-height:1.8}.rpg-panel-actions{gap:7px;margin-top:12px}.rpg-panel-actions button{font-size:11px;padding:10px;min-height:42px}.battle-panel .rpg-panel-actions{grid-template-columns:repeat(3,1fr)}.rpg-shell #rpg-panel.battle-panel{padding:13px}.rpg-location{left:8px;top:8px;padding:6px 9px}#rpg-region{font-size:10px}#rpg-notice{font-size:10px}.rpg-pad{grid-template-columns:repeat(3,40px);grid-template-rows:repeat(2,39px)}.game-card[data-game=starfall] .thumb{height:185px}.game-card[data-game=starfall] .card-body p{font-size:11px}}

.rpg-mode:has(.rpg-shell) #game-title,.rpg-mode:has(.rpg-shell) #game-instructions{display:none}.rpg-mode:has(.rpg-shell) .dialog-top{margin-bottom:10px}.rpg-shell:has(.battle-panel:not([hidden])) .rpg-toolbar,.rpg-shell:has(.battle-panel:not([hidden])) .rpg-quest{display:none}
@media(min-width:800px) and (pointer:fine){.rpg-controls{display:none}}
