@import url('assets/fonts/home-serif.css');
:root{--ink:#142e3d;--muted:#687982;--coral:#ea8b77;--cream:#f8f5ed;--line:#dce3dc;--sea:#235966}
*{box-sizing:border-box}body{margin:0;font-family:Arial,'Microsoft YaHei',sans-serif;color:var(--ink);background:var(--cream)}a{color:inherit;text-decoration:none}button{font:600 14px/1.4 Arial,'Microsoft YaHei',sans-serif;cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #eaa348;outline-offset:4px}[hidden]{display:none!important}button{border:1px solid var(--line);background:#fff;padding:10px 17px;border-radius:6px}button:hover:enabled{background:#e7efe8}h1,h2,h3,p{margin-top:0}.arcade-header{max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:25px 32px;border-bottom:1px solid var(--line);gap:20px;font-size:14px}.arcade-header>a:nth-child(2){font-family:'Noto Serif SC',serif;font-weight:700;letter-spacing:2px}.arcade-header>a:last-child{font-size:12px;color:var(--sea)}.arcade-footer{display:flex;justify-content:space-between;gap:20px;padding:26px 0;color:var(--muted);font-size:12px;line-height:1.8;border-top:1px solid var(--line)}.arcade-footer a{text-decoration:underline;text-underline-offset:4px}
.lounge-main{max-width:1180px;margin:auto;padding:44px 28px}.lounge-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:32px}.lounge-intro h1{font-family:'Noto Serif SC',serif;font-size:40px;letter-spacing:3px;margin-bottom:16px}.lounge-intro p{line-height:1.9;color:var(--muted);margin:0}.blossom{width:94px;height:94px;position:relative;flex-shrink:0;transform:rotate(-15deg)}.blossom i{position:absolute;background:#df9d91;width:42px;height:55px;border-radius:55% 55% 45% 45%;left:26px;top:0;transform-origin:21px 47px}.blossom i:nth-child(2){transform:rotate(72deg)}.blossom i:nth-child(3){transform:rotate(144deg)}.blossom i:nth-child(4){transform:rotate(216deg)}.blossom i:nth-child(5){transform:rotate(288deg)}.blossom:after{content:'';position:absolute;width:18px;height:18px;border-radius:50%;background:#f4d49a;left:38px;top:38px}
.featured-game{display:grid;grid-template-columns:1.38fr 1fr;background:var(--ink);color:#fff;overflow:hidden;border-radius:12px;margin-bottom:45px}.featured-scene{position:relative;min-height:350px;overflow:hidden;background:#94c9df}.featured-scene>img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated;display:block}.featured-scene:after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 0 10px #ffffff0a;pointer-events:none}.featured-copy{padding:38px 34px;display:flex;flex-direction:column;justify-content:center}.featured-copy h2{font-family:'Noto Serif SC',serif;font-size:29px;line-height:1.5;margin-bottom:16px}.featured-copy p{color:#c4d5d7;font-size:14px;line-height:1.9}.featured-meta{display:flex;gap:18px;margin:0 0 24px;font:12px monospace;color:#d1e5d9}.coral-button,.game-link{display:inline-block;background:var(--coral);color:var(--ink);border:0;border-radius:5px;padding:13px 25px;font-size:14px;font-weight:bold;text-align:center}.coral-button:hover:enabled,.game-link:hover{background:#f7ab96}.featured-copy .game-link{align-self:flex-start}.section-title{display:flex;justify-content:space-between;gap:20px;align-items:baseline;margin-bottom:22px}.section-title h2{font-family:'Noto Serif SC',serif;font-size:23px;margin:0}.section-title span{font-size:13px;color:var(--muted)}.lounge-games{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:40px}.lounge-game{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;transition:transform .2s}.lounge-game:hover{transform:translateY(-4px)}.lounge-game .game-art{height:124px;display:flex;align-items:center;justify-content:center;background:#e2ece7;overflow:hidden;position:relative}.game-art span{font:50px monospace}.game-art.terminal{background:#152d29;color:#9ceab2}.game-art.food{background:#f0e2c9;color:#936a43}.game-art.lab{background:#dbe5eb;color:#35596b}.game-art.cats{background:#e8e2d9}.game-art.cats img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.game-art.calm{background:#dbe5e0;color:#5a7f75}.game-art.books{background:#dce2dc;color:#658078}.lounge-game>div:last-child{padding:22px}.lounge-game h3{font-size:17px;margin-bottom:10px}.lounge-game p{font-size:13px;line-height:1.8;color:var(--muted);min-height:45px}.lounge-game small{font-size:12px;color:var(--sea)}.lounge-note{display:flex;gap:30px;border-top:1px solid var(--line);padding:26px 0}.lounge-note h2{font:700 17px/1.8 'Noto Serif SC',serif;white-space:nowrap}.lounge-note p{font-size:13px;line-height:1.9;color:var(--muted);margin:0}
.island-main{max-width:1220px;padding:30px;margin:auto}.game-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.game-heading h1{font:700 28px/1.5 'Noto Serif SC',serif;margin:0 0 6px}.game-heading p{font-size:13px;color:var(--muted);margin:0}.game-shell{background:#102b36;border:7px solid #234550;border-radius:10px;overflow:hidden;box-shadow:0 14px 36px #19374118;color:#edf2e6}.game-hud{display:flex;align-items:center;gap:18px;padding:12px 18px;font:13px monospace;flex-wrap:wrap}.game-hud strong{margin-right:auto;font-size:14px}.game-hud #health{color:#ffb09a}.game-hud button{background:transparent;border-color:#59727a;padding:5px 9px;font:12px Arial;color:#e4efea}.game-hud button:hover{color:var(--ink)}.game-viewport{position:relative;aspect-ratio:16/9;background:#a9def0;max-height:calc(100vh - 210px);margin:auto}#islandCanvas{width:100%;height:100%;object-fit:contain;display:block;image-rendering:pixelated;outline-offset:-4px}.game-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#0a253b55;padding:14px;overflow:auto}.overlay-card{background:#142e3df5;color:#eff1e8;border:2px solid #adc8ba66;box-shadow:6px 6px 0 #12263566;max-width:435px;text-align:center;padding:24px 32px}.overlay-card h2{font:700 24px/1.5 'Noto Serif SC',serif;margin:10px 0}.overlay-card p{font-size:13px;line-height:1.9;color:#c2d9d7;margin-bottom:20px}.overlay-card button{display:block;margin:10px auto 0;min-width:190px}.overlay-card button:not(.coral-button){background:transparent;border:0;color:#c2d9d7;font-size:12px}.pirate-portrait{width:80px;height:80px;object-fit:cover;object-position:50% 40%;border-radius:50%;image-rendering:pixelated;background:#0d1d2b}.touch-controls{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;gap:12px}.touch-controls>div{display:flex;gap:10px}.touch-controls button{touch-action:none;user-select:none;-webkit-user-select:none;border-color:#607f85;color:#e6f0df;background:#254f5a;min-width:57px;min-height:44px}.touch-controls button:active{background:#4b7a80}.touch-controls span{font-size:11px;color:#a1bdbb}.save-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-top:1px solid #45646a;font-size:12px;color:#b9d9cd}.save-strip button{border:0;background:transparent;color:#f1c5a3;padding:3px 0;font-size:11px}.game-below{display:grid;grid-template-columns:1fr 1.25fr;gap:50px;padding:30px 4px}.game-below h2{font:700 18px 'Noto Serif SC',serif;margin-bottom:10px}.game-below p{font-size:13px;line-height:1.9;color:var(--muted);margin:0}.boss-bar{position:absolute;top:16px;left:50%;transform:translateX(-50%);width:38%;background:#102d3de6;padding:10px 15px;border:1px solid #a8c8d6;pointer-events:none}.boss-bar span{font-size:12px;display:block;text-align:center;margin-bottom:5px}.boss-bar progress{display:block;width:100%;height:8px;accent-color:#87ddf4}.game-toast{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);max-width:90%;white-space:nowrap;background:#142e3de8;color:#ffdf9a;font-size:13px;line-height:1.5;text-align:center;pointer-events:none}.game-toast:not(:empty){padding:10px 20px}.map-dialog{color:var(--ink);background:var(--cream);max-width:850px;width:95%;max-height:90dvh;border:0;border-radius:10px;padding:28px}.map-dialog::backdrop{background:#09212bcc}.map-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.map-heading h2{font:700 25px 'Noto Serif SC',serif;margin-bottom:12px}.map-dialog p{color:var(--muted);font-size:12px;line-height:1.8}.world-row{display:grid;grid-template-columns:115px 1fr;gap:12px;border-top:1px solid var(--line);padding:17px 0;align-items:center}.world-row h3{font-size:14px;margin:0}.world-row>div{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.world-row button{font-size:12px;text-align:left;padding:10px}.world-row button.cleared{background:#d6e5d8;color:#295748}.game-shell:fullscreen{width:100vw;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column;justify-content:center}.game-shell:fullscreen .game-viewport{width:min(100%,calc((100dvh - 155px)*16/9));max-height:calc(100dvh - 155px);margin:0 auto}.credits{max-width:800px;margin:45px auto;padding:0 25px;line-height:1.9}.credits h1{font-size:30px}.credits a{text-decoration:underline}.credits p{color:var(--muted)}
@media(min-width:1500px){.game-viewport{max-height:none}}@media(max-width:760px){.arcade-header{padding:18px;gap:12px;font-size:12px}.arcade-header>a:nth-child(2){letter-spacing:0;font-size:12px}.lounge-main{padding:30px 18px}.lounge-intro h1{font-size:31px}.lounge-intro p{font-size:13px}.blossom{transform:scale(.75) rotate(-15deg);margin-right:-10px}.featured-game{grid-template-columns:1fr}.featured-scene{min-height:0;height:225px}.featured-copy{padding:26px}.featured-copy h2{font-size:26px}.lounge-games{grid-template-columns:repeat(2,1fr);gap:12px}.lounge-game>div:last-child{padding:16px}.lounge-game h3{font-size:15px}.section-title{display:block}.section-title span{display:block;margin-top:10px}.lounge-note{display:block}.arcade-footer{flex-direction:column;gap:7px}.island-main{padding:18px 10px}.game-heading h1{font-size:21px}.game-heading{align-items:flex-start;gap:10px}.game-heading>button{font-size:12px;padding:9px;white-space:nowrap}.game-heading p{font-size:11px;max-width:220px}.game-shell{border-width:3px}.game-hud{gap:9px;padding:9px 10px;font-size:11px}.game-hud strong{font-size:12px;flex-basis:100%}.game-hud button{font-size:11px;padding:4px 7px}.game-hud #coins{margin-right:auto}.game-viewport{max-height:none}.overlay-card{padding:12px 18px;max-width:88%}.pirate-portrait{display:none}.overlay-card h2{font-size:18px;margin:0 0 7px}.overlay-card p{font-size:11px;line-height:1.7;margin-bottom:9px}.overlay-card button{padding:8px;min-width:150px;font-size:12px;margin-top:6px}.touch-controls{padding:10px 8px;gap:8px}.touch-controls span{display:none}.touch-controls button{min-width:49px;padding:9px 11px;font-size:12px}.save-strip{padding:8px 10px;font-size:10px}.game-below{grid-template-columns:1fr;gap:22px;padding:24px 10px}.boss-bar{top:8px;width:55%;padding:6px}.boss-bar span{font-size:10px}.game-toast{font-size:10px;white-space:normal;width:max-content}.map-dialog{padding:18px}.map-heading h2{font-size:21px}.world-row{grid-template-columns:1fr;gap:9px}.world-row>div{gap:7px}.world-row button{padding:9px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Match the campus shell while keeping game controls scoped. */
.island-page .site-footer,.site-page .site-footer{margin-top:32px}.game-hud{gap:12px}.game-hud #chartCount{color:#a8e0ff}.island-main{max-width:1280px}.credits-link{font-size:12px;text-decoration:underline;color:#315f68}.game-art span{white-space:nowrap}.site-masthead button,.site-menu button{font:inherit}
@media(max-width:760px){.game-hud{gap:7px}.game-hud #coins{margin-right:0}.game-hud #chartCount{margin-right:auto}.lounge-main{padding-top:30px}.game-heading h1{font-size:20px}.overlay-card p{max-height:68px;overflow:auto}.game-hud #stageName{flex-basis:100%}.island-main{padding:18px 8px}}

.shop-dialog{max-width:850px}.shop-items{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.shop-items article{background:#fff;border:1px solid #d7e2db;padding:24px 20px;border-radius:8px;display:flex;flex-direction:column}.shop-item-icon{font:34px/1.2 serif;color:#c28263;margin-bottom:17px}.shop-items h3{font:700 18px/1.5 'Noto Serif SC',serif;margin-bottom:10px}.shop-items p{flex:1;min-height:65px}.shop-items button{background:#eaa08c;border:0}.shop-dialog #shopMessage{background:#e4eee7;padding:12px 16px;color:#234f46;border-radius:5px;min-height:42px}.shop-small{font-size:11px!important}.shop-dialog #shopStats{color:#275b65}.game-hud #coins{color:#ffe0a1}.game-hud #shopButton{color:#ffd1bd}.game-hud #shopButton:disabled{opacity:.5}.game-hud{gap:10px}
@media(max-width:760px){.shop-items{grid-template-columns:1fr;gap:10px}.shop-items article{padding:16px;display:grid;grid-template-columns:35px 1fr;column-gap:12px}.shop-item-icon{grid-row:1/3;font-size:27px}.shop-items h3{font-size:17px;margin-bottom:5px}.shop-items p{min-height:0;grid-column:2;margin-bottom:10px}.shop-items button{grid-column:2;justify-self:start}.game-hud{gap:6px}.game-hud button{font-size:10px;padding:4px 6px}.game-hud #chartCount{margin-right:0}.game-hud #shopButton{margin-left:auto}.shop-dialog{max-height:88dvh}.overlay-card p{max-height:62px}}
/* Pirate island performance and touch update, scoped to this game. */
.island-page .island-main{width:100%}
.island-page .game-shell{border:3px solid #395f62;border-radius:12px;background:#122f3b;color:#edf4e9;box-shadow:0 18px 50px #102b3620}
.island-page .game-hud{gap:10px 18px;padding:12px 16px;border-bottom:1px solid #56716d;font-family:Arial,'Microsoft YaHei',sans-serif}
.island-page .game-hud strong{flex:1 1 240px;font:700 14px/1.5 Arial,'Microsoft YaHei',sans-serif;letter-spacing:.4px;color:#ffdf99}
.hud-survival,.hud-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hud-survival{font-variant-numeric:tabular-nums}
.island-page .game-hud .hud-tools button,.game-settings summary{min-height:44px;padding:9px 10px;border:1px solid #547775;border-radius:4px;background:#1b414b;color:#e8f2df;font-size:12px;line-height:1.4}
.game-settings{position:relative}.game-settings summary{cursor:pointer;list-style:none}.game-settings>div{position:absolute;right:0;top:49px;width:148px;z-index:15;background:#173843;border:1px solid #63817b;padding:8px;display:grid;gap:7px;box-shadow:0 10px 25px #10283280}
.island-page .game-viewport{width:100%;max-height:none;aspect-ratio:16/9}
.island-page .game-shell,.island-page #islandCanvas,.island-page .touch-controls,.island-page .game-shell button{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.island-page #islandCanvas,.island-page .touch-controls{touch-action:none}
.ability-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 16px;background:#173b45;border-top:1px solid #52706b;font-size:12px;color:#c3daca;font-variant-numeric:tabular-nums}.ability-bar>div{display:flex;gap:8px}
.ability-bar button{background:#284e53;color:#e4eedb;border:1px solid #607f73;border-radius:4px;min-height:44px;padding:8px 12px;font-size:12px}
.island-page .touch-controls{padding:10px 16px 12px;gap:12px}.island-page .touch-controls button{border-radius:5px;min-width:52px;min-height:52px;font-size:14px;transition:background .1s,transform .1s}
.island-page .touch-controls button.is-held{background:#b8c58b;color:#112e39;transform:translateY(2px)}
.island-page .touch-controls [data-hold="jump"]{background:#d4bc7c;color:#15343c;border-color:#f1d59a}
.island-page .touch-controls [data-hold="attack"]{background:#a26c5a;border-color:#c98a72}
.island-page .game-toast{bottom:14px;white-space:normal;width:max-content;max-width:85%;border:1px solid #b6a875;border-radius:4px;font-size:13px}
.island-page .overlay-card{background:#133440f2;border:1px solid #c7b47d;border-radius:5px;padding:24px 28px;box-shadow:5px 5px 0 #15313a80}
.island-page .overlay-card h2{font-family:Arial,'Microsoft YaHei',sans-serif}.island-page .overlay-card p{color:#c7dfd6}.island-page .overlay-card .coral-button{background:#e6c07b;border:1px solid #f6da9c}
.island-page .shop-dialog{background:#14343f;color:#eff2de;border:2px solid #b59a66;border-radius:8px;max-width:920px}.island-page .shop-dialog p{color:#bdd4ce}.island-page .shop-dialog .map-heading h2{color:#ffe0a0}.island-page .shop-dialog .map-heading>button{background:#294c53;color:#eff3dc;border-color:#6b8580;min-width:44px;min-height:44px}
.island-page .shop-items{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.island-page .shop-items article{padding:18px 14px;background:#20454d;border:1px solid #5b7771;border-radius:5px}.island-page .shop-item-icon{color:#f0d392;margin-bottom:10px}.island-page .shop-items h3{font-family:Arial,'Microsoft YaHei',sans-serif;font-size:16px;color:#f4edd4}.island-page .shop-items p{font-size:12px;line-height:1.8;min-height:82px}.island-page .shop-items button{background:#dec18a;color:#173742;min-height:44px;padding:9px 7px;font-size:12px;border-radius:4px}.island-page .shop-dialog #shopStats{color:#b9e7da}.island-page .shop-dialog #shopMessage{background:#264d53;color:#ffdfa4;border:1px solid #618077}
.island-page button:focus-visible,.game-settings summary:focus-visible{outline:3px solid #ffd689;outline-offset:2px}
.island-page .game-shell:fullscreen{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.island-page .game-shell:fullscreen .game-viewport{width:min(100%,calc((100dvh - 228px)*16/9));max-height:calc(100dvh - 228px);margin:0 auto}
@media(max-width:760px){
.island-page .game-hud{gap:7px;padding:9px 10px}.island-page .game-hud strong{flex-basis:100%;font-size:13px}.hud-survival{width:100%;justify-content:space-between;font-size:12px}.hud-tools{width:100%;gap:6px;justify-content:space-between}.island-page .game-hud .hud-tools button,.game-settings summary{font-size:12px;padding:8px;min-height:44px}
.ability-bar{padding:7px 8px;font-size:10px;flex-wrap:wrap}.ability-bar>div{gap:6px}.ability-bar button{font-size:10px;min-height:34px;padding:6px 8px}
.island-page .touch-controls{padding:10px 6px;gap:6px}.island-page .touch-controls>div{gap:5px}.island-page .touch-controls button{min-width:42px;min-height:48px;padding:8px 6px;font-size:12px}.island-page .touch-controls span{display:none}
.island-page .game-toast{font-size:11px;bottom:8px}.island-page .overlay-card{padding:12px 16px}.island-page .overlay-card p{max-height:70px;overflow:auto}.island-page .overlay-card button{min-height:40px}.island-page .shop-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.island-page .shop-items article{display:flex;padding:14px 11px}.island-page .shop-items h3{font-size:15px}.island-page .shop-items p{min-height:84px}.island-page .shop-items button{align-self:stretch}.island-page .shop-item-icon{font-size:26px}.island-page .shop-dialog{padding:18px 14px;width:96%;max-height:92dvh}
}
@media(max-height:540px) and (orientation:landscape){.island-page .game-shell:fullscreen .game-hud{padding:3px 10px;flex-wrap:nowrap}.island-page .game-shell:fullscreen .hud-survival{width:auto;flex-wrap:nowrap}.island-page .game-shell:fullscreen .game-hud strong{flex:1;white-space:nowrap}.island-page .game-shell:fullscreen .hud-tools{width:auto;flex-wrap:nowrap}.island-page .game-shell:fullscreen .game-viewport{width:calc((100dvh - 190px)*16/9);max-height:calc(100dvh - 190px)}.island-page .game-shell:fullscreen .ability-bar{padding:3px 10px}.island-page .game-shell:fullscreen .save-strip{display:none}.island-page .game-shell:fullscreen .touch-controls{padding:4px 10px}}
/* Keep the full play surface and its controls within a laptop viewport. */
@media(min-width:761px) and (pointer:fine){.island-page .game-viewport{width:min(100%,calc((100dvh - 420px)*16/9));min-width:540px}.island-page .touch-controls{display:none}.island-page .game-shell:fullscreen .game-viewport{width:min(100%,calc((100dvh - 185px)*16/9));max-height:calc(100dvh - 185px);min-width:0}}
@media(max-width:359px){.island-page .touch-controls button{min-width:40px;padding:8px 4px}.island-page .touch-controls>div{gap:4px}}
/* Arcade lounge v3 — featured adventure and an open, text-led game shelf. */
.lounge-page{background:#fff;color:#132f49}.lounge-page .lounge-main{max-width:1240px;padding:44px 36px 34px}.lounge-page .lounge-intro{align-items:center;margin-bottom:30px;padding-bottom:26px;border-bottom:1px solid #dbe3e8}.lounge-page .lounge-intro h1{font-size:42px;line-height:1.35;letter-spacing:2px;margin-bottom:12px}.lounge-page .lounge-intro p{font-size:16px;line-height:1.8;color:#71818e}.lounge-page .blossom{transform:scale(.62) rotate(-12deg);transform-origin:right center}
.lounge-page .featured-game{grid-template-columns:1.45fr 1fr;background:#112d49;border-radius:4px;margin:0 0 46px;box-shadow:none}.lounge-page .featured-scene{display:block;min-height:370px;aspect-ratio:auto;background:#a9d9d8}.lounge-page .featured-scene>img{image-rendering:auto;object-fit:cover;object-position:50% 50%}.lounge-page .featured-scene:after{display:none}.lounge-page .featured-copy{padding:32px;color:#fff}.lounge-page .featured-copy h2{font-size:29px;line-height:1.5;margin-bottom:18px;letter-spacing:0}.lounge-page .featured-copy p{font-size:14px;line-height:1.95;color:#d9e6ec;margin-bottom:19px}.lounge-page .featured-meta{font:12px/1.6 Arial,'Microsoft YaHei',sans-serif;gap:15px;margin-bottom:23px;color:#b9cdd8}.lounge-page .featured-copy .game-link{display:inline-flex;align-items:center;gap:16px;justify-content:center;min-height:46px;padding:12px 22px;background:#eb917c;color:#132d40;font-size:14px;border-radius:4px}.lounge-page .featured-copy .game-link:hover{background:#f5a891}.lounge-page .featured-copy .game-link svg{flex:none}
.lounge-page .section-title{margin-bottom:8px;align-items:baseline}.lounge-page .section-title h2{font-size:25px;line-height:1.5}.lounge-page .section-title span{font-size:13px;color:#71818e}.lounge-page .lounge-games{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:52px;row-gap:0;margin-bottom:35px}.lounge-page .lounge-game{display:block;padding:25px 0 26px;border:0;border-bottom:1px solid #dbe3e8;border-radius:0;background:transparent;box-shadow:none;transition:none}.lounge-page .lounge-game:hover{transform:none;background:transparent}.lounge-page .lounge-game>div:last-child{padding:0}.lounge-page .lounge-game h3{font:700 20px/1.5 'Noto Serif SC','Songti SC',serif;margin-bottom:10px;color:#15334d}.lounge-page .lounge-game p{font-size:14px;line-height:1.85;min-height:0;max-width:500px;margin-bottom:15px;color:#6a7c89}.lounge-page .lounge-game small{display:inline-flex;gap:11px;align-items:center;font-size:13px;color:#245365}.lounge-page .lounge-game:hover h3,.lounge-page .lounge-game:hover small{color:#a25a44}.lounge-page .lounge-game:focus-visible{outline-offset:5px}.lounge-page .lounge-note{border-top:0;padding:0 0 12px;gap:30px;align-items:baseline}.lounge-page .lounge-note h2{font-size:17px}.lounge-page .lounge-note p{font-size:12px;line-height:1.9;color:#7a8b96}.lounge-page .site-footer{margin-top:18px}
.island-page .pirate-portrait{display:block;width:92px;height:92px;margin:0 auto 12px;object-fit:cover;object-position:50% 50%;background:#172b30;border:2px solid #536f65}.island-page .overlay-card{max-width:460px}.island-page .overlay-card h2{margin-top:5px}
@media(max-width:980px){.lounge-page .featured-copy{padding:27px}.lounge-page .featured-copy h2{font-size:24px}.lounge-page .featured-meta{gap:10px}.lounge-page .featured-scene{min-height:390px}.lounge-page .lounge-games{column-gap:34px}.lounge-page .section-title{align-items:flex-start;gap:10px}.lounge-page .section-title span{max-width:240px;line-height:1.8}}
@media(max-width:760px){.lounge-page .lounge-main{padding:28px 20px 24px}.lounge-page .lounge-intro{padding-bottom:20px;margin-bottom:24px}.lounge-page .lounge-intro h1{font-size:32px;margin-bottom:10px}.lounge-page .lounge-intro p{font-size:14px}.lounge-page .blossom{width:70px;transform:scale(.5) rotate(-12deg)}.lounge-page .featured-game{grid-template-columns:1fr;margin-bottom:32px}.lounge-page .featured-scene{min-height:0;aspect-ratio:16/9}.lounge-page .featured-copy{padding:26px 24px 28px}.lounge-page .featured-copy h2{font-size:26px;margin-bottom:14px}.lounge-page .featured-copy p{font-size:14px;line-height:1.9}.lounge-page .featured-copy .game-link{width:100%;min-height:48px}.lounge-page .section-title{display:block;margin-bottom:8px}.lounge-page .section-title h2{font-size:23px;margin-bottom:8px}.lounge-page .section-title span{display:block;max-width:none;font-size:12px}.lounge-page .lounge-games{grid-template-columns:1fr;margin-bottom:28px}.lounge-page .lounge-game{padding:22px 0}.lounge-page .lounge-game h3{font-size:20px}.lounge-page .lounge-game p{font-size:14px;min-height:0;margin-bottom:12px}.lounge-page .lounge-note{display:block;padding-bottom:0}.lounge-page .lounge-note h2{margin-bottom:10px}.lounge-page .lounge-note p{font-size:12px}.island-page .pirate-portrait{display:block;width:40px;height:40px;margin:0 auto 5px}.island-page .overlay-card{padding:9px 14px;max-width:92%}.island-page .overlay-card h2{font-size:17px;line-height:1.4;margin:3px 0 5px}.island-page .overlay-card p{font-size:11px;line-height:1.6;max-height:35px;margin-bottom:6px}.island-page .overlay-card button{min-height:32px;padding:6px 12px;margin-top:5px}.island-page .overlay-card button:not(.coral-button){min-height:25px;padding:3px 8px;margin-top:3px}.island-page .game-overlay{place-items:start center}.island-page .overlay-card{margin:auto}}
/* Canvas-labelled touch keys prevent browser text/image long-press tools. */
.island-page .touch-controls,.island-page .touch-key,.island-page .touch-key-label{touch-action:none;-ms-touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}
.island-page .touch-key{display:grid;place-items:center;min-width:52px;min-height:52px;border:1px solid #607f85;border-radius:5px;background:#254f5a;cursor:pointer;outline-offset:3px;overscroll-behavior:contain}.island-page .touch-key-label{display:block;pointer-events:none;width:40px;height:28px}.island-page .touch-key[data-hold="jump"]{background:#d4bc7c;border-color:#f1d59a}.island-page .touch-key[data-hold="attack"]{background:#a26c5a;border-color:#c98a72}.island-page .touch-key.is-held{background:#b8c58b;border-color:#d6dfb1;transform:translateY(2px)}.island-page .touch-key:focus-visible{outline:3px solid #ffd689}
@media(max-width:760px){.island-page .touch-key{min-width:42px;min-height:48px}.island-page .touch-key-label{width:34px;height:26px}}
@media(max-width:359px){
  .island-page .touch-controls{flex-wrap:wrap;gap:2px;padding-inline:2px}
  .island-page .touch-controls>div{gap:2px}
  .island-page .touch-key{min-width:40px;min-height:48px}
  .island-page .touch-key-label{width:32px}
}
.lounge-page .featured-game{min-width:0;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}.lounge-page .featured-scene,.lounge-page .featured-copy{min-width:0;max-width:100%}.lounge-page .featured-scene{width:100%}.lounge-page .featured-scene>img{max-width:100%}
@media(max-width:760px){.lounge-page .featured-game{grid-template-columns:minmax(0,1fr)}}
.lounge-page .featured-scene>img{position:absolute;inset:0;width:100%;height:100%}
@media(max-width:760px){.lounge-page .blossom{transform-origin:left center}.lounge-page .featured-scene{height:auto;min-height:0;aspect-ratio:16/9}}

/* The title menu shares the game's scenery, character art and sea-and-gold palette. */
.island-page .is-title .game-heading,.island-page .is-title .game-below{display:none}
.island-page .game-shell[data-screen="title"]>.game-hud,
.island-page .game-shell[data-screen="title"]>.ability-bar,
.island-page .game-shell[data-screen="title"]>.touch-controls,
.island-page .game-shell[data-screen="title"]>.save-strip{display:none}
.island-page .game-shell[data-screen="title"]{border:4px solid #846647;border-radius:4px;box-shadow:0 0 0 2px #253f43,0 18px 45px #19374130}
.island-page .game-shell[data-screen="title"] .game-viewport{width:100%;min-width:0;min-height:590px;aspect-ratio:16/9;max-height:none}
.island-page .game-shell[data-screen="title"] #islandCanvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.island-title-screen{position:absolute;inset:0;display:flex;align-items:center;padding:36px 7% 66px;background:linear-gradient(90deg,#092c3deb 0%,#0c3548bd 36%,#133e4b20 66%,#102f3410 100%);isolation:isolate;overflow:auto}
.island-title-screen::before{content:"";position:absolute;inset:12px;border:1px solid #f4d49166;pointer-events:none;z-index:-1}
.title-content{width:min(440px,49%);max-width:100%;color:#fff2cb}
.title-kicker{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 17px;color:#e0c68e;font-size:12px;letter-spacing:3px}
.title-kicker span{color:#e9b96c;font-size:14px}
.island-page #gameTitle{font-family:'Noto Serif SC','Microsoft YaHei',serif;font-weight:900;line-height:1.3;text-align:center;margin:0;filter:drop-shadow(0 4px 0 #17333b)}
#gameTitle span{display:block;font-size:clamp(32px,3.8vw,52px);letter-spacing:7px;color:#fff0b6}
#gameTitle strong{display:block;font-size:clamp(34px,4.2vw,58px);font-weight:900;letter-spacing:2px;color:#ffc667;text-shadow:2px 2px 0 #76503b,-1px -1px 0 #fff4c1}
.title-tagline{text-align:center;color:#d5e6d3;font-size:13px;letter-spacing:2px;margin:14px 0 26px}
.title-actions{display:grid;gap:12px;margin:0 18px}
.island-page .title-actions button{display:flex;align-items:center;gap:15px;width:100%;min-height:66px;padding:11px 18px;color:#f3e9ca;background:#173f4df0;border:2px solid #bd9963;border-radius:2px;box-shadow:3px 4px 0 #0a293a, inset 0 0 0 2px #ffffff08;text-align:left;transition:background .12s,transform .12s}
.title-actions button>span:nth-child(2){flex:1;min-width:0}
.title-actions strong{display:block;font:700 18px/1.35 'Noto Serif SC','Microsoft YaHei',serif;letter-spacing:3px}
.title-actions small{display:block;font:11px/1.5 Arial,'Microsoft YaHei',sans-serif;letter-spacing:.3px;margin-top:4px;opacity:.78;overflow-wrap:anywhere}
.title-actions .menu-mark{font:13px/1 monospace;color:#d1b47a;border-right:1px solid #b995604d;padding-right:12px}
.title-actions .menu-arrow{font:30px/1 Georgia,serif;color:#e8c383}
.island-page .title-actions .menu-primary{color:#273b3d;background:#eac17c;border-color:#ffe0a3;box-shadow:3px 4px 0 #614c35,inset 0 0 0 2px #b17f4940}
.title-actions .menu-primary .menu-mark,.title-actions .menu-primary .menu-arrow{color:#665334}
.island-page .title-actions button:hover:not(:disabled){background:#285767;transform:translateX(3px);color:#fff2cb}
.island-page .title-actions .menu-primary:hover:not(:disabled){background:#ffda94;color:#273b3d}
.island-page .title-actions button:focus-visible{outline:3px solid #fff7d7;outline-offset:5px;transform:translateX(3px)}
.island-page .title-actions button:disabled{opacity:.5;cursor:default}
.title-status{text-align:center;font-size:11px;line-height:1.8;color:#c4d6cd;margin:20px 12px 0}
.title-save-strip{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;gap:14px;padding:13px 24px;background:#0d303ee8;border-top:1px solid #b7956070;color:#ddcca6;font-size:11px;letter-spacing:1px}
.island-page #mapDialog[data-mode="load"]{background:#173c49;color:#f9e8bf;border:3px solid #b48f59;border-radius:3px;box-shadow:6px 6px 0 #082735}
#mapDialog[data-mode="load"] .map-heading h2{color:#f6cf88}
#mapDialog[data-mode="load"] #closeMap{min-width:44px;min-height:44px;background:#214958;color:#f6cf88;border:1px solid #b48f59;border-radius:2px}
#mapDialog[data-mode="load"] p{color:#c5d7ce}
#mapDialog[data-mode="load"] .world-row{border-color:#61776b80}
#mapDialog[data-mode="load"] .world-row button{background:#214958;color:#e9e8d3;border:1px solid #778f84;min-height:46px}
#mapDialog[data-mode="load"] .world-row button.cleared{background:#435e4e;color:#fff0be;border-color:#bba36d}
#mapDialog[data-mode="load"] button:disabled{opacity:.45}
.journey-save{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#0b2e3c;border:1px solid #ae8f5f;padding:20px;margin:20px 0}
.journey-save small{color:#d9b574;font-size:11px;letter-spacing:2px}
.journey-save h3{font-size:18px;margin:9px 0}
.journey-save p{margin:6px 0 0;font-size:11px}
.island-page #loadRecentJourney{min-height:48px;flex:none;background:#e7bd79;color:#223b3c;border:1px solid #ffe1a6;border-radius:2px}
.island-page .game-shell[data-screen="title"]:fullscreen{display:block;overflow-y:auto;border:0;border-radius:0}
.island-page .game-shell[data-screen="title"]:fullscreen .game-viewport{height:max(100dvh,600px);width:100%;max-height:none;min-height:600px}
@media(max-width:760px){
  .island-page .game-shell[data-screen="title"] .game-viewport{min-height:600px;aspect-ratio:auto}
  .island-page .game-shell[data-screen="title"] #islandCanvas{object-position:85% center}
  .island-title-screen{padding:32px 24px 65px;justify-content:center;background:linear-gradient(180deg,#0b3443bf,#102f3ae8 68%,#0a2939e8)}
  .title-content{width:100%;max-width:380px}
  .title-kicker{font-size:11px;letter-spacing:2px;margin-bottom:20px}
  #gameTitle span{font-size:39px;letter-spacing:6px}
  #gameTitle strong{font-size:40px;letter-spacing:1px}
  .title-tagline{font-size:12px;letter-spacing:1px;margin:16px 0 27px}
  .title-actions{margin:0;gap:13px}
  .island-page .title-actions button{min-height:68px;padding:11px 16px}
  .title-actions strong{font-size:18px}
  .title-save-strip{padding:13px 17px;font-size:10px;letter-spacing:0}
  .title-status{margin:22px 0 0;font-size:10px}
  .journey-save{display:block;padding:16px}
  .island-page #loadRecentJourney{width:100%;margin-top:15px}
}
@media(max-width:359px){
  .island-title-screen{padding-right:21px;padding-left:21px}
  #gameTitle strong{font-size:34px}
  #gameTitle span{font-size:36px}
  .title-tagline{font-size:11px;letter-spacing:0}
}
.island-page .save-dialog,.island-page .confirm-dialog{background:#173c49;color:#f8e9c6;border:3px solid #b48f59;border-radius:3px;box-shadow:6px 6px 0 #082735}
.island-page .save-dialog{max-width:1040px}
.save-dialog .map-heading h2,.confirm-dialog h2{color:#f5cd88}
.save-dialog p,.confirm-dialog p{color:#cbdacf;line-height:1.9}
.save-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 18px}
.save-slot{display:flex;flex-direction:column;min-width:0;padding:20px;background:#0b2e3c;border:1px solid #a78b5d;box-shadow:3px 3px 0 #092634}
.save-slot h3{font-size:16px;letter-spacing:2px;color:#f0c982;margin:0 0 18px}
.save-slot label{font-size:11px;color:#bcd1c4;margin-bottom:7px}
.save-slot input{width:100%;min-height:44px;background:#214957;color:#fff0cc;border:1px solid #7b9587;border-radius:2px;padding:10px 12px;font:600 14px/1.5 Arial,'Microsoft YaHei',sans-serif}
.save-slot input:focus-visible{outline:2px solid #ffe2a0;outline-offset:3px}
.save-slot input:read-only{background:transparent;border-color:#627c7290}
.save-slot .slot-summary{white-space:pre-line;font-size:12px;line-height:2;min-height:100px;margin:17px 0;flex:1}
.slot-actions{display:grid;gap:9px}
.island-page .slot-actions button,.island-page #openAutoSaves,.island-page #closeSaves,.island-page .confirm-actions button{min-height:46px;background:#214958;color:#f7e6bd;border:1px solid #b48f59;border-radius:2px}
.island-page .slot-actions [data-save-slot],.island-page #confirmAction{background:#e8bf7a;color:#263e3d;border-color:#ffe2a8}
.slot-actions button:disabled{opacity:.4}
.island-page #closeSaves{min-width:44px;padding:8px}
.save-dialog #slotsStatus{min-height:24px;font-size:12px;margin:15px 0}
.island-page .confirm-dialog{max-width:500px;padding:28px}
.confirm-dialog h2{font:700 24px/1.5 'Noto Serif SC','Microsoft YaHei',serif;margin:0 0 16px}
.confirm-dialog p{font-size:13px}
.confirm-dialog ul{padding:15px 16px 15px 32px;background:#0b2e3c;border:1px solid #7b7855;font-size:12px;line-height:2.2}
.confirm-dialog ul:empty{display:none}
.confirm-dialog #confirmStatus{color:#ffd29d;min-height:24px}
.confirm-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}
.confirm-actions button{flex:1}
@media(max-width:760px){
  .save-slots{grid-template-columns:1fr;gap:15px;margin-top:20px}
  .save-slot{padding:17px}
  .save-slot .slot-summary{min-height:0;margin:14px 0}
  .slot-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .save-dialog[data-mode="load"] .slot-actions{grid-template-columns:1fr}
  .island-page .confirm-dialog{padding:22px}
  .confirm-dialog h2{font-size:21px}
  .confirm-actions{flex-direction:column-reverse}
}
