html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0b0f14; overscroll-behavior: none; }
body { position: fixed; inset: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* The game fills the whole browser window. */
#unity-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; background: #0b0f14; outline: none; cursor: default; }
#unity-loading-bar { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; text-align: center; color: #cfd8dc; font-family: sans-serif; }
#unity-logo { width: 154px; height: 130px; margin: 0 auto; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin: 10px auto 0; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-loading-text { margin-top: 12px; font-size: 14px; opacity: .8 }
#unity-fullscreen-button { position: fixed; right: 10px; bottom: 10px; width: 38px; height: 38px; cursor: pointer; border-radius: 8px; background: rgba(0, 0, 0, .35) url('fullscreen-button.png') no-repeat center; opacity: .55; transition: opacity .2s; z-index: 5 }
#unity-fullscreen-button:hover { opacity: 1 }
#unity-warning { position: fixed; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none; z-index: 6 }
#elia-bye { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: #0b0f14; z-index: 30; padding: 24px; box-sizing: border-box }
#elia-bye .card { max-width: 420px; text-align: center; color: #eef3f7; font-family: sans-serif; background: #17202a; border: 1px solid #2a3a4a; border-radius: 16px; padding: 28px 24px }
#elia-bye .title { font-size: 24px; font-weight: 700; margin-bottom: 14px }
#elia-bye p { margin: 0 0 16px; line-height: 1.55; font-size: 16px; word-break: keep-all }
#elia-bye button { font-size: 16px; padding: 10px 22px; border: 0; border-radius: 10px; background: #8fc79a; color: #10261a; cursor: pointer }
#elia-mobile { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: #0b0f14; z-index: 20; padding: 24px; box-sizing: border-box }
#elia-mobile .card { max-width: 420px; text-align: center; color: #eef3f7; font-family: sans-serif; background: #17202a; border: 1px solid #2a3a4a; border-radius: 16px; padding: 28px 24px }
#elia-mobile .title { font-size: 24px; font-weight: 700; margin-bottom: 14px }
#elia-mobile p { margin: 0 0 12px; line-height: 1.55; font-size: 16px; word-break: keep-all }
#elia-mobile p.small { font-size: 14px; opacity: .8 }
#elia-mobile .address { margin: 4px 0 14px; padding: 10px 12px; background: #0b0f14; border-radius: 10px; font-size: 14px; word-break: break-all; user-select: all; -webkit-user-select: all }
#elia-mobile button { font-size: 16px; padding: 10px 22px; border: 0; border-radius: 10px; background: #8fc79a; color: #10261a; cursor: pointer }
#elia-hint { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(0, 0, 0, .72); color: #fff; font: 14px/1.4 sans-serif; padding: 9px 14px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .4s; z-index: 7; max-width: 90vw; text-align: center }
#elia-hint.show { opacity: 1 }

/* ---- Loading screen: a pumpkin hops to the right as the game downloads, then spins, slams into the ground and the screen opens ---- */
#unity-loading-bar { display: none !important; }
#elia-loading { position: fixed; inset: 0; display: none; z-index: 10; background: #2b1d5c url('loading/back.jpg') center / cover no-repeat; overflow: hidden; }
#elia-loading .stage { position: absolute; inset: 0; }
#elia-loading .text { position: absolute; left: 0; right: 0; bottom: 5vh; text-align: center; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size: clamp(15px, 2vw, 22px); letter-spacing: .08em; color: #c9d4e6; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); transition: opacity .3s; }
#el-clip { position: absolute; left: 0; right: 0; top: 0; overflow: hidden; }
#el-pumpkin { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: 50% 100%; pointer-events: none; user-drag: none; -webkit-user-drag: none; }
.el-puff, .el-crumb { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform, opacity; }
.el-puff { background: #d6ccb6; }
.el-crumb { background: #6b4a34; border-radius: 30%; }
/* The ground is drawn here (not in the picture) so its edge stays sharp at any window size. */
#el-shadow { position: absolute; left: 0; top: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); will-change: transform, opacity; pointer-events: none; }
.el-firefly { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle, #fff6c4 0%, rgba(255, 230, 140, .7) 40%, rgba(255, 220, 120, 0) 72%); opacity: 0; pointer-events: none; animation: el-float 7s ease-in-out infinite; }
@keyframes el-float { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 25% { opacity: .95; } 60% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--dx, 30px), var(--dy, -60px)) scale(1.1); } }
/* Ground: dark moonlit grass over soil, with two rows of grass blades along its edge (drawn here so they stay sharp at any size). */
#el-ground { position: absolute; left: 0; right: 0; bottom: 0; background:
  radial-gradient(ellipse 70% 38% at 62% 0%, rgba(150, 175, 200, .16), rgba(0, 0, 0, 0)),
  radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .035) 0 1.5px, rgba(0, 0, 0, 0) 2px) 0 0 / 23px 19px,
  radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .18) 0 1.5px, rgba(0, 0, 0, 0) 2px) 0 0 / 17px 21px,
  linear-gradient(to bottom, #26372f 0%, #1b2a24 28%, #121c18 68%, #0b100e 100%); }
#el-ground::before, #el-ground::after { content: ""; position: absolute; left: 0; right: 0; background-repeat: repeat-x; }
#el-ground::before { top: -17px; height: 20px; background-size: 150px 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='20' viewBox='0 0 150 20'%3E%3Cpath d='M0 20 L0 12 L7 2 L12 13 L20 5 L26 14 L35 1 L41 13 L50 6 L57 15 L66 3 L72 13 L82 7 L89 15 L98 2 L104 14 L113 5 L120 14 L130 1 L137 13 L144 6 L150 12 L150 20 Z' fill='%23182620'/%3E%3C/svg%3E"); }
#el-ground::after { top: -9px; height: 26px; background-size: 96px 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='26' viewBox='0 0 96 26'%3E%3Cpath d='M0 26 L0 18 L5 4 L9 17 L14 8 L18 18 L24 2 L29 17 L35 9 L40 19 L46 5 L51 17 L57 7 L62 18 L69 1 L74 17 L80 9 L85 18 L91 6 L96 17 L96 26 Z' fill='%2326372f'/%3E%3C/svg%3E"); }

/* A tip above the loading text (changes slowly; the longer the loading takes, the slower). */
#elia-loading .tip { position: absolute; left: 6vw; right: 6vw; bottom: calc(5vh + 46px); text-align: center; font-family: "Jua", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size: clamp(15px, 1.9vw, 24px); line-height: 1.45; color: #efe6c8; text-shadow: 0 1px 10px rgba(0, 0, 0, .85); transition: opacity .45s; }
#elia-loading .tip b { color: #f7c46a; font-weight: normal; margin-right: .5em; }

/* The meadow starts grey and turns green behind the pumpkin as it runs (the green ground is uncovered up to the pumpkin). */
#el-ground-grey { position: absolute; left: 0; right: 0; bottom: 0; background:
  radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .03) 0 1.5px, rgba(0, 0, 0, 0) 2px) 0 0 / 23px 19px,
  radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .18) 0 1.5px, rgba(0, 0, 0, 0) 2px) 0 0 / 17px 21px,
  linear-gradient(to bottom, #4a4e57 0%, #3a3e46 28%, #2a2d33 68%, #1b1d22 100%); }
#el-ground-grey::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 20px; background-repeat: repeat-x; background-size: 150px 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='20' viewBox='0 0 150 20'%3E%3Cpath d='M0 20 L0 12 L7 2 L12 13 L20 5 L26 14 L35 1 L41 13 L50 6 L57 15 L66 3 L72 13 L82 7 L89 15 L98 2 L104 14 L113 5 L120 14 L130 1 L137 13 L144 6 L150 12 L150 20 Z' fill='%23262a30'/%3E%3C/svg%3E"); }
