/* Dino Isle Online — styles */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 100%; height: 100%; overflow: hidden; background: #0b1520; } body { font-family: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif; color: #e8f0e0; user-select: none; } #game { position: fixed; inset: 0; display: block; cursor: crosshair; } .hidden { display: none !important; } /* ---------- overlays ---------- */ .overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 30%, rgba(20,60,50,.55), rgba(4,10,14,.92)); backdrop-filter: blur(3px); } .menu-box { max-width: 680px; width: min(94vw, 680px); max-height: 94vh; overflow-y: auto; background: linear-gradient(160deg, rgba(16,38,32,.96), rgba(10,22,26,.96)); border: 1px solid #2f5c46; border-radius: 18px; padding: 28px 34px 24px; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06); } .title { font-size: 42px; letter-spacing: 2px; color: #b6f09c; text-shadow: 0 3px 0 #23421f, 0 8px 24px rgba(0,0,0,.5); } .title span { color: #7fd7c4; font-size: 20px; vertical-align: middle; letter-spacing: 6px; } .subtitle { color: #9dbfa8; margin: 6px 0 18px; font-style: italic; } #nameInput { width: 100%; padding: 11px 14px; border-radius: 10px; outline: none; border: 1px solid #35604a; background: rgba(6,16,14,.8); color: #dff5e1; font-size: 17px; text-align: center; margin-bottom: 14px; } #nameInput:focus { border-color: #6fc98d; box-shadow: 0 0 0 3px rgba(111,201,141,.15); } .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-bottom: 16px; } .card { background: rgba(10,25,20,.75); border: 1px solid #2b4a39; border-radius: 12px; padding: 12px 10px 10px; cursor: pointer; transition: all .13s ease; position: relative; } .card:hover { transform: translateY(-2px); border-color: #57a06f; } .card.sel { border-color: #86e29b; background: rgba(30,64,40,.85); box-shadow: 0 0 0 2px rgba(134,226,155,.25), 0 8px 20px rgba(0,0,0,.4); } .card canvas { width: 100%; height: 74px; display: block; } .card h4 { font-size: 14.5px; color: #cdeec9; margin: 6px 0 2px; } .card .diet { font-size: 11px; padding: 1px 8px; border-radius: 20px; display: inline-block; margin-bottom: 5px; } .diet.herb { background: #274a22; color: #a9e08a; } .diet.carn { background: #4a2222; color: #f0a0a0; } .diet.omni { background: #45401f; color: #ecd88a; } .card p { font-size: 11px; color: #93b39a; line-height: 1.35; min-height: 30px; } .statbars { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; } .sb { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: #7fa184; } .sb i { width: 34px; text-align: right; font-style: normal; letter-spacing: .5px; } .sbd { flex: 1; height: 5px; background: #14231b; border-radius: 4px; overflow: hidden; } .sbf { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#4d9e63,#8fdc7a); } .btn-play { width: 100%; padding: 14px; font-size: 20px; letter-spacing: 2px; font-weight: 700; background: linear-gradient(180deg, #58a05f, #33703f); color: #eaffea; border: none; border-radius: 12px; cursor: pointer; box-shadow: 0 6px 0 #1e4426, 0 12px 26px rgba(0,0,0,.45); transition: transform .1s ease, filter .1s ease; } .btn-play:hover { filter: brightness(1.12); } .btn-play:active { transform: translateY(3px); box-shadow: 0 3px 0 #1e4426; } .controls-help { margin-top: 14px; font-size: 12px; color: #8aa892; line-height: 1.7; } .controls-help b { color: #cfe8c9; background: rgba(255,255,255,.07); border: 1px solid #3a5a47; border-radius: 5px; padding: 1px 6px; } .menu-status { margin-top: 10px; font-size: 12.5px; color: #ff9d76; min-height: 16px; } /* ---------- HUD ---------- */ #hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; } #vitals { position: absolute; left: 16px; bottom: 16px; width: 240px; display: flex; flex-direction: column; gap: 5px; } .bar { position: relative; height: 19px; border-radius: 9px; overflow: hidden; background: rgba(8,14,12,.72); border: 1px solid rgba(120,180,140,.28); } .bar span { position: absolute; inset: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; color: #f2fbe9; text-shadow: 0 1px 2px rgba(0,0,0,.8); } .fill { height: 100%; width: 100%; transition: width .18s ease; border-radius: 8px; } .fill.hp { background: linear-gradient(90deg,#a32323,#e05252); } .fill.stam { background: linear-gradient(90deg,#b8912a,#eeda68); } .fill.food { background: linear-gradient(90deg,#b45f1e,#eda24b); } .fill.water { background: linear-gradient(90deg,#1e5fb0,#54a8ef); } .growth-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; } .growth-row > span { font-size: 11px; font-weight: 700; color: #b9e8a5; white-space: nowrap; text-shadow: 0 1px 2px #000; } .bar.growth { flex: 1; height: 11px; } .fill.growth { background: linear-gradient(90deg,#3f8f56,#9be36f); transition: width .3s ease; } #minimap { position: absolute; top: 14px; right: 14px; border-radius: 12px; border: 2px solid rgba(140,200,150,.35); box-shadow: 0 6px 18px rgba(0,0,0,.5); } #onlineTag { position: absolute; top: 186px; right: 16px; font-size: 12px; color: #cfe8cf; background: rgba(8,14,12,.6); padding: 3px 9px; border-radius: 12px; } #leaderboard { position: absolute; top: 14px; left: 14px; min-width: 190px; background: rgba(8,14,12,.62); border: 1px solid rgba(120,180,140,.22); border-radius: 12px; padding: 8px 12px 9px; } #leaderboard h3 { font-size: 12px; color: #ffd97a; letter-spacing: 1px; margin-bottom: 5px; } #lbList { list-style: none; font-size: 12px; } #lbList li { display: flex; gap: 6px; padding: 1.5px 0; color: #cfe3cd; } #lbList li .sc { margin-left: auto; color: #ffd97a; font-weight: 700; } #lbList li.me { color: #9be36f; font-weight: 700; } #lbList .stg { opacity: .75; font-size: 10px; } #killFeed { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 4px; align-items: center; } .kf { background: rgba(60,10,10,.78); border: 1px solid rgba(255,120,100,.35); color: #ffc9b8; font-size: 12.5px; padding: 4px 14px; border-radius: 16px; animation: kfin .25s ease, kfout .6s ease 4.4s forwards; } @keyframes kfin { from { opacity: 0; transform: translateY(-8px);} } @keyframes kfout { to { opacity: 0; } } #chatBox { position: absolute; left: 16px; bottom: 168px; width: 300px; pointer-events: auto; } #chatLog { display: flex; flex-direction: column; gap: 2px; max-height: 148px; overflow-y: auto; margin-bottom: 5px; scrollbar-width: thin; } .cl { font-size: 12px; background: rgba(8,14,12,.55); border-radius: 7px; padding: 3px 8px; width: fit-content; max-width: 100%; word-wrap: break-word; } .cl b { color: #9be36f; } .cl.sys { color: #ffd97a; background: rgba(50,40,8,.5); font-style: italic; } #chatInput { width: 100%; padding: 6px 10px; border-radius: 8px; outline: none; font-size: 12.5px; border: 1px solid rgba(120,180,140,.3); background: rgba(8,14,12,.72); color: #e8f5e0; } #chatInput:focus { border-color: #86e29b; } #hint { position: absolute; right: 16px; bottom: 16px; font-size: 11.5px; color: rgba(210,230,205,.55); text-shadow: 0 1px 2px #000; } #banner { position: absolute; top: 26%; left: 50%; transform: translateX(-50%); font-size: 30px; font-weight: 900; letter-spacing: 3px; color: #ffe9a0; white-space: nowrap; text-shadow: 0 0 24px rgba(255,200,60,.8), 0 3px 0 #5c3a00, 0 10px 30px rgba(0,0,0,.6); animation: bannerIn 3s ease forwards; text-align: center; } @keyframes bannerIn { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 12% { opacity: 1; transform: translateX(-50%) scale(1.12); } 22% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(1) translateY(-18px); } } #dmgVignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(180,20,20,.55) 100%); transition: opacity .35s ease; } #devBadge { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(90,20,90,.72); border: 1px solid #e05ce0; color: #ffd9ff; font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 4px 14px; border-radius: 16px; text-shadow: 0 1px 2px #000; } /* ---------- death screen ---------- */ .death-box { text-align: center; background: linear-gradient(160deg, rgba(40,10,10,.95), rgba(14,8,8,.96)); border: 1px solid #5c2626; border-radius: 18px; padding: 34px 48px; box-shadow: 0 24px 70px rgba(0,0,0,.7); } .death-box h1 { font-size: 34px; color: #ff7d6e; letter-spacing: 2px; text-shadow: 0 4px 20px rgba(255,60,40,.35); } #deathBy { color: #e8b0a5; margin: 10px 0 18px; font-size: 17px; } #deathStats { display: flex; gap: 26px; justify-content: center; margin-bottom: 24px; } #deathStats div { text-align: center; } #deathStats .v { font-size: 24px; font-weight: 800; color: #ffe9a0; } #deathStats .l { font-size: 11px; color: #b98f88; letter-spacing: 1px; text-transform: uppercase; } #deathScreen .btn-play { background: linear-gradient(180deg,#a05858,#703333); box-shadow: 0 6px 0 #471f1f, 0 12px 26px rgba(0,0,0,.45); }