run-reachy-run / static /style.css
munish0838's picture
center the quick tour caption card
787ff35 verified
Raw
History Blame Contribute Delete
31.7 kB
/* Last Nerve Runner — retro overlay styling. World is drawn on <canvas>;
everything here is the DOM chrome (HUD + screens) kept pixel-crisp. */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
width: 100%; height: 100%;
background: #0b0d14;
overflow: hidden;
font-family: "Courier New", ui-monospace, monospace;
color: #fff;
-webkit-user-select: none; user-select: none;
-webkit-tap-highlight-color: transparent;
}
#stage {
position: relative;
width: 100vw; height: 100vh;
display: flex; align-items: center; justify-content: center;
background: #0b0d14;
}
canvas#game {
image-rendering: pixelated;
image-rendering: crisp-edges;
background: #1a2030;
display: block;
}
/* ---------- HUD ---------- */
#hud {
position: absolute; inset: 0;
pointer-events: none;
padding: clamp(10px, 2.5vh, 26px);
}
.hud-top-left { position: absolute; top: 4%; left: 4%; display: flex; gap: 4px; align-items: flex-start; }
.hud-top-right { position: absolute; top: 4%; right: 4%; text-align: right; }
.hud-btn {
pointer-events: auto; cursor: pointer;
background: none; border: none; padding: 0; line-height: 0;
filter: drop-shadow(0 2px 2px rgba(0,0,0,.55));
transition: transform .08s;
}
.hud-btn:active { transform: scale(.88); }
.hud-btn:hover { filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)) brightness(1.08); }
.hud-ico { width: clamp(26px, 5.2vh, 40px); height: auto; display: block; }
.hud-btn.snd { font-size: clamp(16px, 3.4vh, 26px); line-height: 1.2; }
#hudScore { font-size: clamp(22px, 5vh, 44px); font-weight: bold; letter-spacing: 2px;
text-shadow: 0 3px 0 #000, 0 0 12px rgba(120,180,255,.5); }
#hudCoins { font-size: clamp(16px, 3.4vh, 30px); text-shadow: 0 2px 0 #000; }
.hud-sub { font-size: clamp(10px, 1.8vh, 15px); opacity: .65; letter-spacing: 1px; }
#powerBanner {
position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
background: rgba(0,0,0,.55); border: 2px solid #ffd23f;
color: #ffd23f; padding: 6px 16px; border-radius: 4px;
font-size: clamp(12px, 2.4vh, 20px); letter-spacing: 2px;
text-shadow: 0 0 8px rgba(255,210,63,.6);
}
#powerTimer { position: absolute; top: 3%; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; }
#powerName {
font-family: ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif; /* crisp, non-pixel */
font-size: clamp(11px, 2.3vh, 18px); font-weight: 700; color: #ffd23f;
letter-spacing: .5px; text-shadow: 0 2px 4px rgba(0,0,0,.7);
}
.ptrack { width: clamp(96px, 22vw, 160px); height: 5px; margin: 4px auto 0;
background: rgba(0,0,0,.4); border-radius: 4px; overflow: hidden; }
#powerFill { height: 100%; background: #ffd23f; border-radius: 4px; }
/* ---------- Screens ---------- */
.screen {
position: absolute; inset: 0;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
text-align: center; gap: 18px;
background: radial-gradient(ellipse at center, rgba(11,13,20,.55) 0%, rgba(11,13,20,.92) 100%);
padding: 24px;
}
h1 { font-size: clamp(30px, 8vh, 72px); line-height: .95; letter-spacing: 4px;
text-shadow: 0 5px 0 #000, 0 0 24px rgba(120,180,255,.45); }
h1 span { color: #ffd23f; text-shadow: 0 5px 0 #000, 0 0 24px rgba(255,210,63,.5); }
h2 { font-size: clamp(20px, 4.5vh, 40px); letter-spacing: 2px; text-shadow: 0 4px 0 #000; }
.tag { opacity: .8; max-width: 460px; font-size: clamp(13px, 2.3vh, 18px); }
.hint { opacity: .5; font-size: clamp(10px, 1.8vh, 14px); letter-spacing: 1px; }
#promptInput {
width: min(440px, 86vw); padding: 14px 16px;
background: #12161f; border: 2px solid #3a4a66;
color: #fff; font-family: inherit; font-size: clamp(14px, 2.4vh, 18px);
border-radius: 6px; outline: none; text-align: center;
}
#promptInput:focus { border-color: #ffd23f; box-shadow: 0 0 16px rgba(255,210,63,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 480px; }
.chip {
pointer-events: auto; cursor: pointer;
background: #1a2233; border: 1px solid #34405c; color: #b9c6e0;
padding: 6px 11px; border-radius: 14px; font-size: clamp(10px, 1.8vh, 13px);
transition: all .12s;
}
.chip:hover { background: #243150; border-color: #ffd23f; color: #fff; }
.btn {
pointer-events: auto; cursor: pointer;
background: #ffd23f; color: #1a1205; border: none;
padding: 14px 34px; font-family: inherit; font-weight: bold;
font-size: clamp(16px, 3vh, 24px); letter-spacing: 2px;
border-radius: 8px; box-shadow: 0 5px 0 #b88a00;
transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b88a00; }
.btn.ghost { background: transparent; color: #b9c6e0; border: 2px solid #34405c;
box-shadow: none; font-size: clamp(12px, 2.2vh, 16px); padding: 10px 22px; }
.btn.ghost:active { transform: translateY(2px); }
#deathStats { font-size: clamp(14px, 2.6vh, 20px); line-height: 1.8; opacity: .9; }
#deathStats b { color: #ffd23f; }
/* ---------- Spinner ---------- */
.spinner {
width: 54px; height: 54px; border-radius: 50%;
border: 6px solid #2a344a; border-top-color: #ffd23f;
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tip { opacity: .65; font-size: clamp(12px, 2.2vh, 16px); max-width: 420px; min-height: 2.4em; }
/* ---------- Menu / panels / shop (Run Reachy Run) ---------- */
.menu-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.menu-btn {
pointer-events: auto; cursor: pointer;
background: #1a2233; border: 1px solid #34405c; color: #cdd8f0;
padding: 9px 14px; border-radius: 8px; font-family: inherit;
font-size: clamp(11px, 2vh, 15px); transition: all .12s;
}
.menu-btn:hover { background: #243150; border-color: #ffd23f; color: #fff; }
.home-foot {
position: absolute; bottom: 4%; left: 0; right: 0;
display: flex; justify-content: center; gap: 22px;
font-size: clamp(11px, 2vh, 14px); opacity: .85;
}
.home-foot b { color: #ffd23f; }
/* Panels can be tall (legend + controls + buttons). Stay vertically centered when
they fit, but become scrollable when they don't — so the buttons (RESUME / QUIT /
BACK) are ALWAYS reachable instead of being clipped below the fold. */
.panel { gap: 12px; justify-content: flex-start; overflow-y: auto; }
.panel > :first-child { margin-top: auto; }
.panel > :last-child { margin-bottom: auto; }
.panel-body { max-width: 540px; text-align: left; line-height: 1.6; font-size: clamp(12px, 2.1vh, 16px); }
.panel-body ul { margin: 10px 0; padding-left: 18px; }
.panel-body li { margin: 5px 0; }
.panel-body b { color: #ffd23f; }
.muted { opacity: .55; font-size: clamp(11px, 1.9vh, 14px); }
.contact { margin-top: 6px; }
.contact a { color: #7fd8ff; text-decoration: none; }
.credit-list { display: grid; gap: 8px; margin: 12px 0; }
.credit-list div { background: #141a28; border: 1px solid #28324a; border-radius: 8px; padding: 10px 12px; font-size: clamp(11px, 1.9vh, 14px); }
.credit-list b { color: #ffd23f; }
.back-btn { margin-top: 6px; }
/* ---------- missions + revive ---------- */
.msn-track { height: 6px; background: rgba(0,0,0,.4); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.msn-fill { height: 100%; background: #ffd23f; }
.msn-rw { color: #ffd23f; font-weight: bold; white-space: nowrap; margin-left: 10px; }
#deathMissions { display: grid; gap: 4px; font-size: clamp(10px, 1.8vh, 13px); opacity: .85; }
#deathMissions .done { color: #7fe3a0; }
.db-more { cursor: pointer; opacity: .55; text-align: right; letter-spacing: 1px; }
.db-more:hover { opacity: 1; color: #ffd23f; }
.db-list { display: grid; gap: 3px; font-size: clamp(10px, 1.8vh, 13px); }
.db-list .db-title { color: #ffd23f; font-weight: bold; letter-spacing: 1px; margin-bottom: 2px; }
.db-list .db-row b { color: #ffd23f; }
.db-list .db-pic { height: 22px; width: auto; image-rendering: pixelated; vertical-align: middle; margin: 0 4px; }
.db-hf { color: #7fd8ff; text-decoration: none; pointer-events: auto; }
.db-hf:hover { text-decoration: underline; }
#boardList {
gap: 10px; font-size: clamp(13px, 2.5vh, 18px); max-width: 660px; width: 100%; text-align: left;
max-height: 52vh; overflow-y: auto; padding-right: 6px; scrollbar-width: thin;
}
#boardMe { max-width: 660px; width: 100%; margin-top: 8px; }
.lb-head {
display: flex; gap: 12px; padding: 0 14px; font-size: .72em; letter-spacing: 2px;
color: #b9c6e0; opacity: .65; font-weight: bold;
}
.lb-head .lh-r { width: 38px; text-align: center; }
.lb-head .lh-h { width: 56px; }
.lb-head .lh-n { flex: 1; }
.lb-head .lh-s { text-align: right; }
.lb-me { border-color: #7fd8ff !important; box-shadow: 4px 4px 0 rgba(0,0,0,.45), 0 0 16px rgba(127,216,255,.3); }
.lb-you {
font-size: .6em; background: #7fd8ff; color: #0b0e16; border-radius: 3px;
padding: 1px 6px; vertical-align: middle; letter-spacing: 1px;
}
/* tall panels read top-down, not floating mid-screen */
#board > :first-child, #profile > :first-child { margin-top: 16px; }
/* ---------- profile stats ---------- */
.stat-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
max-width: 700px; width: 100%; max-height: 58vh; overflow-y: auto;
padding-right: 6px; scrollbar-width: thin;
}
.stat-card {
background: #141a28; border: 2px solid #28324a; border-radius: 8px;
padding: 10px 8px; text-align: center; box-shadow: 3px 3px 0 rgba(0,0,0,.4);
}
.stat-v { color: #ffd23f; font-weight: bold; font-size: clamp(15px, 2.8vh, 22px); white-space: nowrap; }
.stat-l { font-size: clamp(9px, 1.6vh, 11px); opacity: .6; letter-spacing: 1px; margin-top: 3px; }
.lb-card {
display: flex; align-items: center; gap: 12px;
background: #141a28; border: 2px solid #28324a; border-radius: 8px;
padding: 10px 14px; box-shadow: 4px 4px 0 rgba(0,0,0,.45);
}
.lb-1 { border-color: #ffd23f; box-shadow: 4px 4px 0 rgba(0,0,0,.45), 0 0 18px rgba(255,210,63,.25); }
.lb-2 { border-color: #c4cdd9; }
.lb-3 { border-color: #c8843a; }
.lb-rank { font-size: clamp(18px, 3.4vh, 28px); width: 38px; text-align: center; flex: 0 0 auto; }
.lb-n { font-size: .7em; color: #b9c6e0; font-weight: bold; }
.lb-pic {
flex: 0 0 auto; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
background: #0b0e16; border: 2px solid #28324a; border-radius: 6px; overflow: hidden;
}
.lb-pic img { max-height: 50px; max-width: 50px; image-rendering: pixelated; }
.lb-nopic { font-size: 24px; opacity: .5; }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-weight: bold; font-size: clamp(15px, 2.8vh, 21px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-char { font-size: clamp(11px, 2vh, 15px); opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-score { flex: 0 0 auto; text-align: right; line-height: 1.15; }
.lb-score b { color: #ffd23f; font-size: clamp(17px, 3.2vh, 25px); display: block; }
.lb-score span { font-size: clamp(11px, 2vh, 14px); opacity: .6; }
.btn.revive { background: #e85d75; box-shadow: 0 5px 0 #8e2940; color: #fff; }
.btn.revive:active { box-shadow: 0 1px 0 #8e2940; }
.name-entry { display: flex; gap: 10px; align-items: stretch; }
.name-entry input {
width: min(300px, 60vw); padding: 12px 14px; text-align: center;
background: #12161f; border: 2px solid #3a4a66; border-radius: 6px;
color: #fff; font-family: inherit; font-size: clamp(13px, 2.3vh, 17px); outline: none;
}
.name-entry input:focus { border-color: #ffd23f; box-shadow: 0 0 14px rgba(255,210,63,.25); }
.name-entry .btn { padding: 10px 20px; font-size: clamp(13px, 2.4vh, 18px); }
.btn.post { animation: postPulse 1.1s ease-in-out infinite; }
@keyframes postPulse {
0%, 100% { transform: scale(1); box-shadow: 0 5px 0 #b88a00; }
50% { transform: scale(1.06); box-shadow: 0 5px 0 #b88a00, 0 0 22px rgba(255,210,63,.75); }
}
.wallet { font-size: .62em; color: #ffd23f; margin-left: 8px; vertical-align: middle; }
/* one coin look, used in the HUD, the shop, and matching the in-game gold coin */
.coin {
display: inline-block; width: 0.85em; height: 0.85em; border-radius: 50%;
background: radial-gradient(circle at 34% 30%, var(--coinShine,#fff3b0) 0%, var(--coinBody,#ffd23f) 55%, var(--coinRim,#d99a1f) 100%);
box-shadow: inset 0 -1px 1px rgba(80,50,0,.35), 0 1px 1px rgba(0,0,0,.3);
vertical-align: -0.06em;
}
.prestige-row {
display: flex; align-items: center; justify-content: space-between; gap: 12px;
width: min(440px, 88vw); margin-bottom: 6px;
background: linear-gradient(180deg, #2a2238, #181222);
border: 2px solid #a06ad6; border-radius: 6px; padding: 12px 14px;
box-shadow: 4px 4px 0 rgba(0,0,0,.4);
}
.prestige-row .upg-name { color: #d6a6ff; }
.shop-grid { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; max-width: 620px; }
.theme-card {
width: 168px; background: #141a28; border: 2px solid #28324a;
border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.theme-card.active { border-color: #ffd23f; box-shadow: 0 0 18px rgba(255,210,63,.25); }
.tc-swatch { height: 54px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); }
.tc-name { font-weight: bold; letter-spacing: 1px; font-size: clamp(12px, 2.1vh, 15px); }
.tc-desc { font-size: clamp(10px, 1.7vh, 12px); opacity: .7; line-height: 1.4; min-height: 3.4em; }
.buy-btn {
pointer-events: auto; cursor: pointer; margin-top: auto;
background: #ffd23f; color: #1a1205; border: none; font-family: inherit; font-weight: bold;
padding: 9px; border-radius: 7px; font-size: clamp(11px, 1.9vh, 14px);
}
.buy-btn.active { background: #2a3550; color: #ffd23f; cursor: default; }
.upg-list { display: flex; flex-direction: column; gap: 10px; width: min(440px, 88vw); }
.upg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
background: #141a28; border: 1px solid #28324a; border-radius: 10px; padding: 11px 14px; }
.upg-info { text-align: left; }
.upg-name { font-weight: bold; font-size: clamp(12px, 2.1vh, 15px); }
.upg-eff { font-size: clamp(10px, 1.7vh, 13px); opacity: .7; margin-top: 3px; }
.upg-row .buy-btn { min-width: 74px; margin: 0; }
/* home/pause buttons now use .hud-btn (top-left) */
#quip {
position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
pointer-events: none; text-align: center; max-width: 92%;
font-weight: bold; letter-spacing: 1px; color: #fff;
font-size: clamp(16px, 4vh, 34px);
text-shadow: 0 3px 0 #000, 0 0 14px rgba(255,210,63,.6);
opacity: 0; transition: opacity .15s;
}
#quip.show { opacity: 1; animation: quipPop .25s ease-out; }
@keyframes quipPop { from { transform: translateX(-50%) scale(.6); } to { transform: translateX(-50%) scale(1); } }
.death-quip { color: #ffd23f; font-style: italic; font-size: clamp(13px, 2.6vh, 20px); max-width: 460px; min-height: 1.4em; }
/* ===== themed retro polish (realm-tinted menus, CRT scanlines, chunky frames) ===== */
.screen {
background:
repeating-linear-gradient(0deg, rgba(0,0,0,.13) 0 1px, transparent 1px 3px),
radial-gradient(ellipse at center, var(--scrA, rgba(26,34,52,.82)) 0%, var(--scrB, rgba(8,11,18,.96)) 100%);
}
h1, h2 { text-transform: uppercase; }
.panel h2 { border-bottom: 3px solid #ffd23f; padding-bottom: 8px; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.btn { border-radius: 4px; text-transform: uppercase; letter-spacing: 2px; }
.menu-btn { border: 2px solid #3a4a66; border-radius: 4px; box-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.menu-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0,0,0,.45); }
#promptInput { border-radius: 4px; }
.chip { border-radius: 4px; box-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.theme-card { border-radius: 5px; border-width: 2px; box-shadow: 5px 5px 0 rgba(0,0,0,.45); }
.upg-row { border-radius: 5px; border-width: 2px; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }
.credit-list div { border-radius: 5px; box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.buy-btn { border-radius: 4px; }
/* ===== home: realm split + icon menu + control badges ===== */
.home { justify-content: flex-start !important; padding: 0 !important; gap: 0 !important; }
.home-bar {
width: 100%; display: flex; align-items: center; justify-content: space-between;
flex-wrap: wrap; gap: 8px 16px; /* crowded? wrap rows instead of crushing buttons */
padding: 10px 20px; box-sizing: border-box;
}
.home-bar h1 { font-size: clamp(18px, 4.2vh, 34px); line-height: 1; white-space: nowrap; text-shadow: 0 4px 0 #000, 0 0 18px rgba(120,180,255,.4); }
.home-bar h1 span { color: #ffd23f; }
.home-icons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.realm-strip.scroll { overflow-x: auto; scrollbar-width: thin; }
.realm-strip.scroll .realm-sec { flex: 0 0 24.4%; }
.strip-arrow {
position: absolute; top: 52%; transform: translateY(-50%); z-index: 6;
pointer-events: auto; cursor: pointer; width: 38px; height: 64px;
font-size: 30px; line-height: 1; color: #ffd23f; font-family: inherit;
background: rgba(10,12,20,.78); border: 2px solid #34405c; border-radius: 6px;
box-shadow: 3px 3px 0 rgba(0,0,0,.45);
}
.strip-arrow:hover { border-color: #ffd23f; }
#stripPrev { left: 8px; }
#stripNext { right: 8px; }
.rs-del {
position: absolute; top: 10px; right: 10px; z-index: 4;
pointer-events: auto; cursor: pointer; width: 38px; height: 38px;
background: rgba(10,12,20,.88); color: #ff8a8a; border: 2px solid #4a5878; border-radius: 6px;
font-family: inherit; font-size: 18px; font-weight: bold; line-height: 1;
box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.rs-del:hover { border-color: #e85d75; color: #fff; background: #5a2230; }
.rs-del.armed { width: auto; padding: 0 12px; background: #c0392b; border-color: #ff8a8a;
color: #fff; font-size: 13px; letter-spacing: 1px; animation: postPulse 0.6s ease-in-out infinite; }
/* inline username entry for first-time world sharing (replaces window.prompt) */
.share-name {
position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); z-index: 6;
display: grid; gap: 10px; justify-items: center;
background: rgba(11,13,20,.94); border: 2px solid #34405c; border-radius: 12px;
padding: 14px 18px; box-shadow: 0 8px 28px rgba(0,0,0,.6);
}
.share-name .name-entry .btn.ghost { padding: 10px 14px; }
/* first-visit onboarding veil — blocks the home screen until a name is claimed */
.welcome-veil {
position: absolute; inset: 0; z-index: 9;
display: flex; align-items: center; justify-content: center;
background: transparent; pointer-events: none; /* pop-up, not a wall: the game stays clickable */
}
.welcome-card {
position: relative; pointer-events: auto;
display: grid; gap: 14px; justify-items: center; text-align: center;
animation: wcIn .25s ease-out;
background: #12161f; border: 2px solid #34405c; border-radius: 14px;
padding: 24px 28px; max-width: min(500px, 92vw);
box-shadow: 0 10px 36px rgba(0,0,0,.65), 0 0 24px rgba(255,210,63,.08);
}
.welcome-card h2 { font-size: clamp(18px, 3.6vh, 30px); }
.welcome-card .muted { line-height: 1.5; }
.welcome-card #welcomeSkip {
position: absolute; top: 8px; right: 10px; cursor: pointer;
background: none; border: none; color: #6b7894; font-family: inherit;
font-size: 17px; font-weight: bold; line-height: 1;
}
.welcome-card #welcomeSkip:hover { color: #fff; }
@keyframes wcIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
/* home quick tour — dim the screen, spotlight one element, caption card at the bottom */
.tour-offer {
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 8;
animation: postPulse 1.1s ease-in-out infinite;
font-size: clamp(14px, 2.6vh, 20px); padding: 14px 28px;
box-shadow: 0 5px 0 #b88a00, 0 0 28px rgba(255,210,63,.45);
}
#tour {
position: absolute; inset: 0; z-index: 10;
display: flex; align-items: center; justify-content: center;
background: rgba(5,7,12,.55); pointer-events: auto;
}
.tour-card { max-width: min(560px, 92vw); }
.tour-card p { font-size: clamp(13px, 2.3vh, 17px); line-height: 1.5; }
.tour-hi {
outline: 3px solid #ffd23f; outline-offset: 2px; border-radius: 6px;
box-shadow: 0 0 26px rgba(255,210,63,.65);
position: relative; z-index: 11;
}
/* tutorial coach banner — persistent, cyan to read as "guide" not "power-up" */
#coach {
position: absolute; top: 24%; left: 50%; transform: translateX(-50%);
max-width: 86%; text-align: center; pointer-events: none;
background: rgba(13,17,25,.92); border: 2px solid #7fd8ff; border-radius: 8px;
color: #e8f4ff; padding: 10px 18px;
font-size: clamp(13px, 2.4vh, 19px); font-weight: bold; letter-spacing: 1px;
box-shadow: 0 5px 0 rgba(0,0,0,.45), 0 0 18px rgba(127,216,255,.25);
z-index: 5;
}
.rs-share {
position: absolute; top: 10px; left: 10px; z-index: 4;
pointer-events: auto; cursor: pointer; width: 38px; height: 38px;
background: rgba(10,12,20,.88); color: #7fd8ff; border: 2px solid #4a5878; border-radius: 6px;
font-family: inherit; font-size: 17px; line-height: 1;
box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.rs-share:hover { border-color: #7fd8ff; background: #16364a; }
/* ---------- split tile: community (top) + create (bottom) in one slot ---------- */
.realm-sec.split { display: flex; flex-direction: column; padding: 0; gap: 0; justify-content: stretch; }
.rs-half {
flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 7px; cursor: pointer; pointer-events: auto; padding: 12px; text-align: center;
position: relative; z-index: 2;
}
.rs-comm { background: linear-gradient(180deg, #0f2536, #17374b); }
.rs-make { border-top: 3px dashed #4a5878; background: repeating-linear-gradient(45deg, #1a1530, #1a1530 11px, #231c3c 11px, #231c3c 22px); }
.rs-half:hover { filter: brightness(1.18); }
.rsh-ico { font-size: clamp(26px, 6vh, 46px); text-shadow: 0 3px 0 #000; }
/* ---------- themed tooltips (data-tip) ----------
NOTE: hosts must already be positioned (rs-del/rs-share are absolute) — do NOT
set position here: it would override their absolute and dump them into flow. */
.tip-btn::after {
content: attr(data-tip);
position: absolute; top: calc(100% + 8px); left: -2px;
background: #0d1119; color: #e8edf6; border: 2px solid #ffd23f; border-radius: 6px;
padding: 6px 10px; font-size: 11px; font-family: inherit; line-height: 1.35;
white-space: nowrap; z-index: 30; pointer-events: none;
opacity: 0; transform: translateY(-4px);
transition: opacity .12s ease .12s, transform .12s ease .12s;
box-shadow: 3px 3px 0 rgba(0,0,0,.5);
}
.tip-btn:hover::after { opacity: 1; transform: translateY(0); }
.rs-del.tip-btn::after { left: auto; right: -2px; } /* right-edge button anchors right, stays on-tile */
/* ---------- community explorer ---------- */
#communityP > :first-child { margin-top: 14px; }
.community-rail { width: 100%; max-width: 1020px; }
.cw-by { color: #7fd8ff; }
.cw-bar { display: flex; gap: 8px; align-items: center; width: 100%; max-width: 1020px; }
.cw-bar input {
flex: 1; padding: 9px 12px; background: #12161f; border: 2px solid #3a4a66; border-radius: 4px;
color: #fff; font-family: inherit; font-size: clamp(11px, 2vh, 14px); outline: none;
}
.cw-bar input:focus { border-color: #ffd23f; }
.cw-f { padding: 8px 14px !important; font-size: clamp(10px, 1.9vh, 13px) !important; }
.cw-f.active { border-color: #ffd23f !important; color: #ffd23f !important; }
.cw-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px;
max-height: 54vh; overflow-y: auto; padding-right: 6px; scrollbar-width: thin;
}
.cw-card {
background: #141a28; border: 2px solid #28324a; border-radius: 8px; overflow: hidden;
text-align: left; cursor: pointer; pointer-events: auto; box-shadow: 4px 4px 0 rgba(0,0,0,.45);
}
.cw-card:hover { border-color: #5a6c92; }
.cw-card.sel { border-color: #ffd23f; box-shadow: 4px 4px 0 rgba(0,0,0,.45), 0 0 16px rgba(255,210,63,.3); }
.cw-art { position: relative; height: 150px; background: #0b0e16; overflow: hidden; }
.cw-art img { image-rendering: pixelated; }
.cwa-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.cwa-he { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); max-height: 92px; max-width: 74%; width: auto; height: auto; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.5)); }
.cwa-fl { position: absolute; top: 8px; right: 10px; max-height: 40px; max-width: 34%; width: auto; height: auto; }
.cwa-gr { position: absolute; bottom: 6px; left: 10px; max-height: 40px; max-width: 34%; width: auto; height: auto; }
.cwa-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; opacity: .5; }
.cw-play {
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
pointer-events: auto; cursor: pointer; padding: 8px 18px; font-family: inherit; font-weight: bold;
font-size: 13px; letter-spacing: 1px; color: #1a1205; background: #ffd23f; border: none;
border-radius: 4px; box-shadow: 0 4px 0 #b88a00, 0 0 18px rgba(0,0,0,.55);
}
.cw-name { font-size: clamp(14px, 2.6vh, 18px); font-weight: bold; padding: 9px 12px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-hero-n { opacity: .65; font-weight: normal; font-size: .85em; }
.cw-desc { font-size: clamp(11px, 2vh, 14px); opacity: .6; padding: 3px 12px; height: 2.6em; overflow: hidden; }
.cw-meta { display: flex; justify-content: space-between; align-items: center; padding: 5px 12px 11px; font-size: clamp(11px, 2vh, 14px); opacity: .9; }
.cw-like {
pointer-events: auto; cursor: pointer; background: rgba(0,0,0,.3); color: #b9c6e0;
border: 2px solid #34405c; border-radius: 4px; padding: 3px 9px; font-family: inherit; font-size: inherit;
}
.cw-like:hover { border-color: #e85d75; }
.cw-like.on { color: #ff8a9a; border-color: #e85d75; }
/* ---------- photo upload (bring-your-own) ---------- */
.photo-row { display: flex; align-items: center; gap: 12px; }
.photo-thumb { position: relative; display: inline-flex; }
.photo-thumb img {
height: 52px; width: 52px; object-fit: cover; border-radius: 6px;
border: 2px solid #34405c; box-shadow: 3px 3px 0 rgba(0,0,0,.4);
}
.photo-thumb button {
position: absolute; top: -8px; right: -8px; width: 20px; height: 20px;
pointer-events: auto; cursor: pointer; font-size: 11px; line-height: 1;
background: #5a2230; color: #fff; border: 2px solid #e85d75; border-radius: 50%;
}
.home-stats { display: flex; gap: 8px; align-items: center; }
.home-best {
font-size: clamp(11px, 2.2vh, 17px); letter-spacing: 1px; color: #b9c6e0;
background: rgba(0,0,0,.28); border: 2px solid #34405c; border-radius: 4px;
padding: 6px 11px; box-shadow: 3px 3px 0 rgba(0,0,0,.4); white-space: nowrap;
}
.home-best b { color: #ffd23f; }
.home-best span { opacity: .6; font-size: .82em; margin-left: 6px; }
.icon-btn {
pointer-events: auto; cursor: pointer;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
flex: 0 0 auto; /* never squash into neighbours */
min-width: clamp(44px, 7vh, 58px); height: clamp(40px, 7vh, 52px); padding: 4px 7px;
background: #1a2233; border: 2px solid #3a4a66; border-radius: 8px; color: #fff;
font-family: inherit; box-shadow: 2px 2px 0 rgba(0,0,0,.45);
}
.icon-btn .ib-ico { font-size: clamp(14px, 2.8vh, 19px); line-height: 1; }
.icon-btn .ib-lbl { font-size: clamp(7px, 1.3vh, 9px); letter-spacing: 1px; opacity: .7; line-height: 1; font-weight: bold; }
.icon-btn:hover { border-color: #ffd23f; color: #ffd23f; }
.icon-btn:hover .ib-lbl { opacity: 1; }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 rgba(0,0,0,.45); }
.realm-strip { flex: 1; width: 100%; display: flex; min-height: 0; }
.realm-sec {
flex: 1; position: relative; cursor: pointer; overflow: hidden;
display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
padding: 16px 10px 24px; gap: 5px; text-align: center;
border-right: 3px solid #0b0e16; transition: flex .18s ease;
}
.realm-sec:last-child { border-right: none; }
.realm-sec:hover { flex: 1.35; }
.realm-sec::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.62) 86%); pointer-events: none; }
.realm-sec.active::before { content: "✓ ACTIVE"; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 10px; font-weight: bold; color: #ffd23f; text-shadow: 0 1px 2px #000; }
.rs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; z-index: 0; }
.rs-info { position: relative; z-index: 2; margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rs-name { font-weight: bold; letter-spacing: 1px; font-size: clamp(12px, 2.7vh, 21px); text-shadow: 0 2px 3px #000; }
.rs-desc { font-size: clamp(9px, 1.7vh, 13px); opacity: .9; max-width: 92%; text-shadow: 0 1px 2px #000; min-height: 2.8em; line-height: 1.3; }
.rs-btn {
pointer-events: auto; cursor: pointer; margin-top: 4px;
background: #ffd23f; color: #1a1205; border: none; font-family: inherit; font-weight: bold;
padding: 8px 16px; border-radius: 6px; font-size: clamp(11px, 2vh, 15px); box-shadow: 0 3px 0 #b88a00;
}
.rs-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #b88a00; }
.rs-btn.locked { background: #2a3550; color: #ffd23f; }
.realm-sec.byo { background: repeating-linear-gradient(45deg, #1a1530, #1a1530 11px, #231c3c 11px, #231c3c 22px); }
.byo-q { position: relative; z-index: 2; font-size: clamp(40px, 13vh, 96px); font-weight: bold; color: #d6a6ff; text-shadow: 0 4px 0 #000, 0 0 22px rgba(170,106,230,.7); margin: auto 0; animation: byoFloat 2.6s ease-in-out infinite; }
@keyframes byoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.home-msg { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); color: #ff7a6c; font-weight: bold; font-size: clamp(12px, 2.2vh, 16px); min-height: 1.2em; text-shadow: 0 2px 3px #000; pointer-events: none; }
.home-foot { position: static; padding: 10px 0 14px; }
.howto-grid { display: flex; flex-direction: column; gap: 11px; max-width: 470px; text-align: left; }
.howto-item { font-size: clamp(12px, 2.1vh, 15px); line-height: 1.4; }
.howto-item b { color: #ffd23f; }
.kbd { display: inline-block; min-width: 1em; text-align: center; background: #0e131d; border: 1px solid #3a4a66; border-bottom-width: 3px; border-radius: 4px; padding: 1px 7px; margin-right: 4px; font-size: .85em; font-weight: bold; }
.ico { display: inline-block; width: 1.4em; text-align: center; color: #ffd23f; margin-right: 4px; }
.pwr-legend { display: flex; flex-direction: column; gap: 5px; max-width: 470px; text-align: left; margin: 2px 0; width: 100%; }
.pwr-title { font-weight: bold; color: #ffd23f; letter-spacing: 1px; font-size: clamp(12px, 2.1vh, 15px); margin-bottom: 2px; }
.pwr-row { font-size: clamp(11px, 1.9vh, 14px); line-height: 1.35; }
.pwr-row b { color: #ffd23f; }
.pwr-ico { display: inline-block; width: 1.5em; text-align: center; }
#ultraHud { position: absolute; top: 8.5%; left: 50%; transform: translateX(-50%); color: #ffd23f; font-weight: bold; letter-spacing: 1px; font-size: clamp(12px, 2.3vh, 17px); text-shadow: 0 2px 3px rgba(0,0,0,.7); }
.pwr-tag { font-size: .62em; opacity: .82; color: #fff; font-weight: normal; letter-spacing: .5px; }
.hidden { display: none !important; }