/* PRIMAL RAMPAGE — stone-age jungle theme. Palette: packed dirt, bone parchment, ember fire, moss green, blood red. */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 100%; height: 100%; overflow: hidden; background: #191207; color: #f3e7cf; font-family: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif; touch-action: none; user-select: none; -webkit-user-select: none; } #game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; } #ui-root { position: fixed; inset: 0; pointer-events: none; } #ui-root section, .overlay, .icon-btn, #touch-ui, #toast { pointer-events: auto; } .hidden { display: none !important; } /* ---------------- screens ---------------- */ section.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(900px 480px at 50% -12%, rgba(255,138,61,0.06), transparent 62%), linear-gradient(rgba(20,13,7,0.44), rgba(10,6,3,0.52)); backdrop-filter: blur(1px); overflow-y: auto; padding: 32px 16px; } section.screen.narrow { justify-content: flex-start; padding-top: 8vh; } h2 { font-size: clamp(22px, 4vw, 32px); letter-spacing: 4px; text-transform: uppercase; color: #f3e7cf; text-shadow: 0 2px 0 #3a2a16, 0 4px 14px rgba(0,0,0,0.6); } .logo h1 { font-size: clamp(44px, 9vw, 88px); letter-spacing: 5px; color: #f3e7cf; text-shadow: 0 1px 0 #8a6234, 0 3px 0 #55381c, 0 6px 18px rgba(0,0,0,0.75); } .logo h1 span { color: #ff8a3d; text-shadow: 0 1px 0 #7e3d12, 0 3px 0 #55230c, 0 6px 20px rgba(224,75,58,0.45); margin-left: 14px; } .logo p { opacity: 0.78; margin-top: 8px; font-size: 14px; text-align: center; font-style: italic; } .menu-stats { display: flex; flex-direction: column; gap: 4px; align-items: center; opacity: 0.9; font-size: 14px; } .coins { color: #ffb938; font-weight: 700; font-size: 17px; } .menu-nav { display: flex; flex-direction: column; gap: 12px; width: min(340px, 86vw); } /* ---------------- buttons: carved wood & bone ---------------- */ .btn { pointer-events: auto; appearance: none; border: 1px solid #5c4423; border-bottom-width: 3px; background: linear-gradient(#33261502, rgba(51,38,21,0.01)), #2b1f11; background-color: #2b1f11; color: #f3e7cf; font: 700 14px/1 'Trebuchet MS', system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; padding: 12px 18px; border-radius: 9px; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, border-color .15s, background .15s; } .btn:hover:not(:disabled) { transform: translateY(-1px); border-color: #8a6234; background-color: #38290f; box-shadow: 0 4px 16px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,185,56,0.12); } .btn:active:not(:disabled) { transform: translateY(1px); border-bottom-width: 1px; } .btn:disabled { opacity: 0.45; cursor: default; } .btn.big { font-size: 17px; padding: 15px 22px; } .btn.primary { border-color: #93400f; color: #ffe9cf; background: linear-gradient(180deg, rgba(224,75,58,0.28), rgba(224,75,58,0.08)), #33180e; } .btn.primary:hover:not(:disabled) { border-color: #ff8a3d; box-shadow: 0 4px 18px rgba(224,75,58,0.35); } .btn.danger { border-color: #6e2a1c; color: #ffb9ab; } .btn.tab.active { border-color: #ffb938; color: #ffe9b8; background-color: #3a2a10; } .form-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } /* ---------------- forms ---------------- */ .form-row { width: min(420px, 88vw); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 4px; border-bottom: 1px solid rgba(232,220,196,0.09); font-size: 15px; } .form-row input[type="range"] { width: 180px; accent-color: #ff8a3d; } .form-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: #e04b3a; } .form-row input[type="text"], .form-row select { background: #241a0e; color: #f3e7cf; border: 1px solid #5c4423; border-radius: 8px; padding: 8px 10px; font-size: 14px; max-width: 200px; } /* ---------------- shop ---------------- */ .screen-topline { display: flex; gap: 14px; align-items: center; } .tabs { display: flex; gap: 8px; } .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; width: min(960px, 94vw); } .item { border: 1px solid rgba(140,105,60,0.4); background: linear-gradient(rgba(60,44,24,0.35), rgba(36,26,14,0.85)); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 1px 0 rgba(232,220,196,0.08); } .item.equipped { border-color: #ffb938; box-shadow: 0 0 16px rgba(255,185,56,0.15), inset 0 1px 0 rgba(232,220,196,0.08); } .item-name { font-weight: 800; letter-spacing: 1px; font-size: 16px; } .swatch { height: 44px; border-radius: 10px; opacity: 0.95; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35); } .item-desc { font-size: 12.5px; opacity: 0.75; min-height: 32px; } .bomb-row { display: flex; align-items: center; gap: 14px; } .bomb-label { font-weight: 700; color: #ff8a3d; } /* ---------------- leaderboard ---------------- */ .rank-row { width: min(520px, 90vw); display: grid; grid-template-columns: 46px 1fr 110px 70px; padding: 9px 12px; border-radius: 8px; font-size: 14px; } .rank-head { font-weight: 800; color: #ffb938; letter-spacing: 1px; } #rank-body { display: flex; flex-direction: column; gap: 4px; } #rank-body .rank-row { background: rgba(43,31,17,0.8); } #rank-body .gold { border: 1px solid rgba(255,185,56,0.5); } .empty { opacity: 0.55; padding: 18px; font-style: italic; } .how-list { list-style: none; display: flex; flex-direction: column; gap: 10px; width: min(560px, 90vw); font-size: 14.5px; line-height: 1.5; opacity: 0.92; } .how-list li::before { content: '🦴 '; filter: sepia(0.4); } /* ---------------- HUD ---------------- */ #hud-root.in-game { pointer-events: none; } .icon-btn { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; width: 42px; height: 42px; border-radius: 10px; background: rgba(43,31,17,0.82); color: #e8dcc4; border: 1px solid #5c4423; font-size: 18px; cursor: pointer; pointer-events: auto; } #hud-root:not(.in-game) .icon-btn { display: none; } /* ---------------- touch controls ---------------- */ #touch-ui { position: absolute; inset: 0; } .stick { position: absolute; bottom: 26px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(232,220,196,0.28); background: rgba(36,26,14,0.4); } #stick-move { left: 26px; } #stick-aim { right: 26px; } .stick-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(160,120,66,0.5); border: 2px solid rgba(232,220,196,0.55); } #touch-buttons { position: absolute; right: 170px; bottom: 40px; display: flex; gap: 12px; align-items: flex-end; } .tc-btn { width: 74px; height: 74px; border-radius: 50%; font-size: 26px; color: #fff; background: rgba(224,75,58,0.3); border: 2px solid rgba(224,75,58,0.65); } .tc-btn.small { width: 56px; height: 56px; font-size: 20px; background: rgba(36,26,14,0.65); border-color: rgba(140,105,60,0.5); } /* ---------------- overlays ---------------- */ .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: rgba(15,10,4,0.86); backdrop-filter: blur(3px); z-index: 10; padding: 24px; } .overlay h2 { text-shadow: 0 2px 0 #3a2a16, 0 6px 22px rgba(224,75,58,0.35); } .hint { opacity: 0.68; font-size: 13.5px; text-align: center; } .col { display: flex; flex-direction: column; gap: 12px; width: min(300px, 84vw); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; width: min(560px, 92vw); } .stats-grid > div { background: rgba(43,31,17,0.88); border: 1px solid rgba(140,105,60,0.35); border-radius: 12px; padding: 12px; text-align: center; } .stats-grid label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; } .stats-grid b { font-size: 19px; color: #ffb938; } .record { color: #ffb938; font-weight: 800; letter-spacing: 3px; animation: pulse 1s infinite alternate; } @keyframes pulse { from { text-shadow: 0 0 8px rgba(255,185,56,.4);} to { text-shadow: 0 0 26px rgba(255,138,61,.95);} } /* ---------------- cards: carved bone talismans ---------------- */ #card-row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; } .card { width: 190px; min-height: 240px; border-radius: 16px; background: radial-gradient(120px 70px at 50% 0%, rgba(255,220,170,0.10), transparent 70%), linear-gradient(180deg, #3a2b16, #221708); border: 2px solid var(--rc, #9c8a72); box-shadow: 0 6px 22px -6px rgba(0,0,0,0.8), inset 0 0 24px -8px var(--rc, transparent); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; } .card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 12px 26px -8px rgba(0,0,0,0.9), inset 0 0 30px -6px var(--rc); } .rarity-common { --rc: #9c8a72; } .rarity-rare { --rc: #58a55c; } .rarity-epic { --rc: #ff8a3d; } .card-rarity { font-size: 10px; letter-spacing: 2px; color: var(--rc); font-weight: 800; } .card-icon { font-size: 42px; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6)); } .card-title { font-weight: 800; font-size: 16px; text-align: center; color: #f3e7cf; } .card-desc { font-size: 13px; opacity: 0.78; text-align: center; } /* ---------------- toast ---------------- */ #toast { position: absolute; bottom: 9vh; left: 50%; transform: translateX(-50%); background: rgba(43,31,17,0.94); border: 1px solid rgba(255,185,56,0.45); color: #ffe9b8; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 20; } /* ---- commercialization UI bits ---- */ .badge-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff8a3d; box-shadow: 0 0 8px #ff8a3d; margin-left: 6px; vertical-align: middle; } .badge-dot.hidden { display: none; } .gems { color: #ffd24a; font-weight: bold; } .pips { display: flex; gap: 5px; margin: 8px 0; } .pip { width: 22px; height: 8px; border-radius: 4px; background: #2a1c10; border: 1px solid #4a3620; } .pip.on { background: linear-gradient(90deg, #e8a33d, #ffb938); box-shadow: 0 0 6px #ffb93866; } .item.premium .item-name { color: #ffd24a; } .item.premium { border-color: #ffb93888; } .item.locked .swatch { filter: grayscale(1) brightness(0.5); } .item.locked .item-name { color: rgba(232,220,196,0.45); } .col { display: flex; flex-direction: column; gap: 12px; } .quest-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; } .qbar { height: 10px; border-radius: 5px; background: #2a1c10; overflow: hidden; border: 1px solid #4a3620; } .qfill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #58a55c, #8ac74a); transition: width 0.3s ease; } .ach-row { padding: 9px 12px; border-radius: 9px; background: rgba(20,13,7,0.65); border: 1px solid #3a2a16; font-size: 13.5px; } .ach-row.done { border-color: #ffd24a66; color: #ffe4bd; } .btn.gem-btn { border-color: #ffb938; color: #ffd24a; margin-top: 8px; } /* ===================== PRO MAIN MENU ===================== */ #screen-menu { justify-content: stretch; align-items: stretch; padding: 0; } .menu-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 6vh 0 12vh 7vw; max-width: 460px; } #screen-menu .logo { text-align: left; margin-bottom: 4px; } #screen-menu .logo h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 0.95; letter-spacing: 3px; } .bestline { color: rgba(243,231,207,0.85); font-size: 13.5px; letter-spacing: 0.4px; margin: 10px 0 26px 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.7); } .menu-nav.pro { display: flex; flex-direction: column; gap: 7px; width: 100%; } .btn-menu { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 18px 13px 20px; font: 700 17px/1 system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: #f3e7cf; text-align: left; background: linear-gradient(90deg, rgba(16,10,5,0.62), rgba(16,10,5,0.18)); border: none; border-left: 3px solid rgba(255,170,90,0.35); cursor: pointer; transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease; overflow: hidden; } .btn-menu.sm { font-size: 13px; padding: 9px 16px 9px 20px; letter-spacing: 1px; opacity: 0.92; } .btn-menu .chev { margin-left: auto; opacity: 0; transform: translateX(-8px); transition: all 0.15s ease; color: #ffb938; font-size: 20px; } .btn-menu:hover, .btn-menu:focus-visible { transform: translateX(10px); border-left-color: #ffb938; background: linear-gradient(90deg, rgba(60,32,12,0.85), rgba(60,32,12,0.22)); outline: none; } .btn-menu:hover .chev, .btn-menu:focus-visible .chev { opacity: 1; transform: translateX(0); } .btn-menu.primary { font-size: 24px; padding: 19px 22px; color: #fff6e6; border-left-color: #ff8a3d; background: linear-gradient(90deg, rgba(196,74,20,0.92), rgba(120,45,12,0.55)); box-shadow: 0 6px 26px rgba(255,110,30,0.28); margin-bottom: 8px; } .btn-menu.primary:hover { transform: translateX(12px) scale(1.01); box-shadow: 0 8px 34px rgba(255,120,35,0.42); background: linear-gradient(90deg, rgba(224,90,25,0.95), rgba(140,52,14,0.6)); } .menu-sep { height: 1px; margin: 7px 4px; background: linear-gradient(90deg, rgba(255,170,90,0.4), transparent); } /* staggered entrance */ @keyframes menuIn { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } } .btn-menu { animation: menuIn 0.38s ease backwards; } .btn-menu:nth-child(1) { animation-delay: 0.03s; } .btn-menu:nth-child(2) { animation-delay: 0.08s; } .btn-menu:nth-child(3) { animation-delay: 0.13s; } .btn-menu:nth-child(4) { animation-delay: 0.17s; } .btn-menu:nth-child(5) { animation-delay: 0.21s; } .btn-menu:nth-child(6) { animation-delay: 0.25s; } .btn-menu:nth-child(7) { animation-delay: 0.29s; } .btn-menu:nth-child(8) { animation-delay: 0.33s; } .btn-menu:nth-child(9) { animation-delay: 0.37s; } .btn-menu:nth-child(10){ animation-delay: 0.41s; } .menu-wrap > * { animation: menuIn 0.45s ease backwards; } .menu-bottombar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 22px; background: linear-gradient(rgba(8,5,2,0.0), rgba(8,5,2,0.72)); font-size: 12px; color: rgba(232,220,196,0.75); letter-spacing: 0.6px; } .menu-bottombar .ver { text-transform: uppercase; } .menu-bottombar .wallet { display: flex; gap: 18px; font-weight: bold; } .menu-bottombar .coins { color: #ffb938; font-size: 14px; } .menu-bottombar .gems { color: #ffd24a; font-size: 14px; } @media (max-width: 720px) { .menu-wrap { padding: 4vh 0 10vh 5vw; max-width: 86vw; } .btn-menu { font-size: 15px; } .btn-menu.primary { font-size: 19px; } } /* ---------- daily hub ---------- */ #screen-daily .panel { width: min(560px, 92vw); background: rgba(14,9,4,0.72); border: 1px solid rgba(255,170,90,0.22); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; } #screen-daily h3 { margin: 0 0 10px; color: #ffb938; letter-spacing: 1px; } .cal-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .cal-day { flex: 1; min-width: 56px; text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,0.05); font-size: 11px; color: rgba(243,231,207,0.75); border: 1px solid transparent; } .cal-day.past { opacity: 0.45; } .cal-day.today { border-color: #ffb938; background: rgba(255,185,56,0.14); color: #ffe9c9; } .cal-day b { display: block; font-size: 13px; margin-top: 2px; } #wheel-cv { display: block; margin: 0 auto 10px; } .wheel-result, .chest-info { text-align: center; min-height: 22px; color: #ffe9c9; margin-bottom: 8px; } .chest-info { font-size: 14px; } .raid-bar { height: 14px; border-radius: 7px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 8px; } #raid-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ff6b35, #ffd24a); transition: width .5s ease; } #raid-tiers { display: flex; gap: 8px; margin-bottom: 10px; } .raid-tier { flex: 1; text-align: center; padding: 7px 4px; border-radius: 9px; background: rgba(255,255,255,0.05); font-size: 11px; color: rgba(243,231,207,0.8); border: 1px solid transparent; cursor: pointer; } .raid-tier.claimable { border-color: #ffb938; color: #ffe9c9; } .raid-tier.claimed { opacity: 0.45; text-decoration: line-through; } .pr-perk { display:flex; align-items:center; gap:10px; padding:7px 10px; margin-bottom:6px; border-radius:9px; background:rgba(255,255,255,0.05); font-size:13px; } .pr-perk b { color:#ffd24a; } .pr-perk button { margin-left:auto; } .rank-badge { color:#ffd24a; letter-spacing:0.5px; } #chest-art { text-align: center; font-size: 44px; margin-bottom: 8px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6)); } /* live-drawn thumbnails in shop & bestiary */ .item-prev { height: 62px; display: flex; align-items: center; justify-content: center; border-radius: 10px; margin-bottom: 9px; background: radial-gradient(circle at 50% 38%, rgba(255,190,120,0.16), transparent 68%), linear-gradient(rgba(10,7,4,0.55), rgba(10,7,4,0.3)); box-shadow: inset 0 0 0 1px rgba(255,196,130,0.18); overflow: hidden; } .item-prev canvas { display: block; } .item-prev.up-icon { font-size: 36px; }