98 lines
4.8 KiB
CSS
98 lines
4.8 KiB
CSS
|
|
/* ISLE SLINGERS — UI styles. Original design, no external assets. */
|
||
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||
|
|
html, body { height: 100%; overflow: hidden; background: #0c1a26; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
|
||
|
|
|
||
|
|
#stage { position: relative; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; }
|
||
|
|
#game { display: block; background: #7ec8f0; cursor: crosshair; touch-action: none; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
|
||
|
|
|
||
|
|
/* ------------------------------------------------------------- HUD */
|
||
|
|
#hud {
|
||
|
|
position: absolute; top: 0; left: 50%; transform: translateX(-50%);
|
||
|
|
width: 100%; max-width: calc(100vw);
|
||
|
|
display: none; justify-content: space-between; align-items: center;
|
||
|
|
padding: 10px 16px; pointer-events: none; z-index: 5;
|
||
|
|
}
|
||
|
|
#hud .hud-left, #hud .hud-right { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
|
||
|
|
#hud-level {
|
||
|
|
color: #fff; font-weight: 700; font-size: 18px; letter-spacing: 0.5px;
|
||
|
|
background: rgba(12, 26, 38, 0.55); padding: 8px 14px; border-radius: 999px;
|
||
|
|
backdrop-filter: blur(3px);
|
||
|
|
}
|
||
|
|
#hud-score {
|
||
|
|
color: #ffd23e; font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums;
|
||
|
|
text-shadow: 0 2px 6px rgba(0,0,0,0.5); min-width: 90px; text-align: right;
|
||
|
|
}
|
||
|
|
#hud-birds { display: inline-flex; gap: 6px; }
|
||
|
|
.hud-bird {
|
||
|
|
width: 22px; height: 22px; border-radius: 50%;
|
||
|
|
background: radial-gradient(circle at 35% 35%, #ff8a70, #e2452e 60%);
|
||
|
|
border: 2px solid rgba(255,255,255,0.7); box-shadow: 0 2px 5px rgba(0,0,0,0.4);
|
||
|
|
}
|
||
|
|
.hud-btn {
|
||
|
|
width: 42px; height: 42px; border-radius: 12px; border: none; cursor: pointer;
|
||
|
|
background: rgba(12, 26, 38, 0.55); color: #fff; font-size: 17px; font-weight: 700;
|
||
|
|
backdrop-filter: blur(3px); transition: background 0.15s;
|
||
|
|
}
|
||
|
|
.hud-btn:hover { background: rgba(12, 26, 38, 0.8); }
|
||
|
|
|
||
|
|
/* ----------------------------------------------------------- screens */
|
||
|
|
.screen {
|
||
|
|
position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
|
||
|
|
z-index: 10;
|
||
|
|
}
|
||
|
|
.screen.dim { background: rgba(6, 14, 22, 0.45); }
|
||
|
|
.panel {
|
||
|
|
background: linear-gradient(160deg, rgba(255,255,255,0.97), rgba(240,247,255,0.94));
|
||
|
|
border-radius: 22px; padding: 34px 42px; text-align: center;
|
||
|
|
box-shadow: 0 24px 70px rgba(0,0,0,0.45); max-width: min(92vw, 560px);
|
||
|
|
}
|
||
|
|
.panel.wide { max-width: min(92vw, 720px); }
|
||
|
|
.title {
|
||
|
|
font-size: clamp(44px, 9vw, 76px); line-height: 0.95; font-weight: 900;
|
||
|
|
color: #2b6cb8; letter-spacing: 2px;
|
||
|
|
text-shadow: 3px 3px 0 #ffd23e, 6px 6px 0 rgba(0,0,0,0.08);
|
||
|
|
margin-bottom: 14px;
|
||
|
|
}
|
||
|
|
h2 { font-size: 30px; color: #17324d; margin-bottom: 18px; }
|
||
|
|
.tagline { color: #4a6076; font-size: 15px; margin-bottom: 20px; }
|
||
|
|
.hint { color: #7b8b9c; font-size: 12.5px; margin-top: 18px; max-width: 380px; margin-left: auto; margin-right: auto; }
|
||
|
|
.credit { color: #9fb0c0; font-size: 11.5px; margin-top: 10px; }
|
||
|
|
.score-line { font-size: 26px; font-weight: 800; color: #17324d; margin: 8px 0 18px; font-variant-numeric: tabular-nums; }
|
||
|
|
|
||
|
|
.btn {
|
||
|
|
border: none; cursor: pointer; border-radius: 14px; padding: 13px 26px;
|
||
|
|
font-size: 16px; font-weight: 800; letter-spacing: 0.6px; color: #fff;
|
||
|
|
background: linear-gradient(180deg, #4f9be0, #2b6cb8);
|
||
|
|
box-shadow: 0 5px 0 #1d4f8a, 0 8px 18px rgba(0,0,0,0.18);
|
||
|
|
transition: transform 0.06s, box-shadow 0.06s;
|
||
|
|
}
|
||
|
|
.btn:hover { transform: translateY(-1px); }
|
||
|
|
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #1d4f8a; }
|
||
|
|
.btn.big { font-size: 20px; padding: 16px 44px; background: linear-gradient(180deg, #67c25b, #3d9b3a); box-shadow: 0 5px 0 #2c6e2a, 0 8px 18px rgba(0,0,0,0.18); }
|
||
|
|
.btn.big:active { box-shadow: 0 2px 0 #2c6e2a; }
|
||
|
|
.btnrow { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
|
||
|
|
|
||
|
|
/* -------------------------------------------------------- level grid */
|
||
|
|
#level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin: 10px 0 22px; }
|
||
|
|
.level-tile {
|
||
|
|
border: none; cursor: pointer; border-radius: 16px; padding: 16px 10px;
|
||
|
|
background: linear-gradient(160deg, #eaf4ff, #d5e8fb);
|
||
|
|
box-shadow: 0 4px 0 #b3cde6, 0 6px 14px rgba(0,0,0,0.1);
|
||
|
|
transition: transform 0.08s; font-family: inherit;
|
||
|
|
}
|
||
|
|
.level-tile:hover { transform: translateY(-2px); }
|
||
|
|
.level-tile.locked { background: #cfd8e0; box-shadow: 0 4px 0 #aeb9c4; cursor: not-allowed; opacity: 0.75; }
|
||
|
|
.lt-num { font-size: 30px; font-weight: 900; color: #2b6cb8; }
|
||
|
|
.level-tile.locked .lt-num { color: #8a97a5; }
|
||
|
|
.lt-name { font-size: 13px; font-weight: 700; color: #41586e; margin: 4px 0 8px; min-height: 32px; }
|
||
|
|
.lt-stars { font-size: 20px; letter-spacing: 2px; }
|
||
|
|
.star { color: #c8d2dc; }
|
||
|
|
.star.on { color: #ffb400; text-shadow: 0 1px 3px rgba(255,140,0,0.5); }
|
||
|
|
|
||
|
|
@media (max-width: 640px) {
|
||
|
|
.panel { padding: 24px 22px; }
|
||
|
|
#hud { padding: 8px 10px; }
|
||
|
|
#hud-level { font-size: 14px; padding: 6px 10px; }
|
||
|
|
#hud-score { font-size: 20px; }
|
||
|
|
}
|