@font-face { font-family: Bangers; src: url('../assets/fonts/bangers.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Rank; src: url('../assets/ui/ranking.ttf') format('truetype'); font-display: swap; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #101215; }
body { display: flex; justify-content: center; font-family: Bangers, Impact, sans-serif; }
#stage { position: relative; width: min(100vw, 56.25vh); height: 100vh; overflow: hidden; isolation: isolate; background: #c6d7dc; }
@supports (height: 100dvh) { #stage { height: 100dvh; width: min(100vw, 56.25dvh); } }
#game { display: block; width: 100%; height: 100%; touch-action: none; }
#unity-ui { position: absolute; top: 0; left: 0; width: 1080px; transform-origin: top left; pointer-events: none; color: white; user-select: none; }
.screen, .overlay, #hud { position: absolute; inset: 0; }
button { font: inherit; color: inherit; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
button:active { filter: brightness(.85); }
button:focus-visible { outline: 8px solid #ffdc36; outline-offset: 5px; }
img { display: block; user-select: none; pointer-events: none; -webkit-user-drag: none; }
h1, h2, p, ol, ul { margin: 0; }
#menu > *, .title-ribbon > *, .sound-ribbon > *, .name-ribbon > *, #btn-ranking > *, .play-art > *, #btn-reward > * { position: absolute; }
#menu { pointer-events: auto; overflow: hidden; }
.title-ribbon { left: 0; top: 127px; width: 736px; height: 344px; background: url('../assets/ui/title-ribbon.webp') center / 100% 100%; }
.title-stripe { left: 1.5px; top: -11px; width: 611px; height: 138px; }
.logo { left: 24px; top: -49px; width: 840px; height: 345px; }
.sound-ribbon { right: -223px; top: 209px; width: 420px; height: 212px; background: url('../assets/ui/sound-ribbon.webp') center / 100% 100%; }
#btn-sound { width: 116px; height: 100px; left: 36px; top: 69px; display: grid; place-items: center; transform: rotate(-15deg); }
#btn-sound img { width: 106px; }
#team-show { inset: 31% 20% 41%; touch-action: pan-y; }
.pick { top: calc(50% - 226px); width: 113px; height: 136px; background-size: 100% 100%; }
#prev-team { left: 87.5px; background-image: url('../assets/ui/left.webp'); }
#next-team { right: 67.5px; background-image: url('../assets/ui/right.webp'); }
.pick::before, #btn-ranking::before { content: ''; position: absolute; inset: 0; background: inherit; }
#btn-ranking { bottom: max(1247.6px, calc(50% + 290px)); left: 0; width: 452px; height: 251.4px; background: url('../assets/ui/rank-ribbon.webp') center / 100% 100%; }
#btn-ranking img { width: 114px; height: 114px; top: 96px; left: 44px; }
#btn-ranking span { left: 132px; top: 59px; width: 295px; font-size: 91px; transform: rotate(-15deg); text-align: center; line-height: 113px; }
.name-ribbon { right: -80.5px; bottom: 596px; width: 617px; height: 260px; background: url('../assets/ui/name-ribbon.webp') center / 100% 100%; }
.name-ribbon img { left: 259.5px; width: 420px; height: 118px; top: -61px; }
.name-ribbon span { color: #0c0b0b; top: 25px; left: 7px; width: 273px; font-size: 60px; line-height: 100px; transform: rotate(-12deg); }
#team-name { top: 88px; left: 10.5px; width: 536px; line-height: 100px; font-weight: 400; font-size: 89px; white-space: nowrap; transform: rotate(-15deg); }
.lower-band, .lower-panel { background: url('../assets/ui/lower-panel.webp') center / 100% 100%; width: 1080px; }
.lower-band { height: 434px; left: -615px; bottom: 511px; transform: rotate(180deg); }
.lower-panel { height: 734px; left: 0; bottom: -138px; }
.play-art { width: 416px; height: 280px; background: url('../assets/ui/play.webp') center / 100% 100%; }
#btn-play { right: 53px; bottom: 207px; }
#btn-purchase { left: 40px; bottom: 650px; }
.price, .premium-count, .reward-count { white-space: nowrap; font-size: 45px; line-height: 1; transform: rotate(-14deg); }
.price, .premium-count { color: #0055ff; text-align: left; }
.price { left: 15px; top: 12px; }
.premium-count { left: 60px; bottom: 22px; }
#btn-reward { left: 64px; bottom: 140px; width: 416px; height: 305px; }
.ticket { left: 8px; top: -12px; width: 361px; height: 255px; background: white; border-radius: 28px; transform: rotate(-14deg); box-shadow: 0 57px 0 0 #0058ff; }
.ticket img { width: 88%; height: 88%; margin: 4% auto; }
.reward-count { width: 366px; bottom: 2px; left: 63px; text-align: left; color: white; }

.overlay { display: grid; place-items: center; pointer-events: auto; }
.rank-panel { position: absolute; width: 998px; height: min(1657px, 90%); top: calc(50% - 74px); transform: translateY(-50%); background: rgb(0 0 0 / .86); border-radius: 13px; display: flex; flex-direction: column; }
.rank-header { position: relative; flex: 0 0 187px; display: flex; align-items: center; justify-content: space-evenly; gap: 28px; padding: 0 22px; border-bottom: 14px solid #ffcf00; }
.rank-header img { width: 111px; }
.rank-header h1 { font: italic 56px Rank, Bangers, sans-serif; text-transform: uppercase; white-space: nowrap; }
.rank-scope { text-align: center; font: 34px Bangers, sans-serif; color: #ddd; padding: 14px; }
.close { position: absolute; right: -23px; top: -24px; width: 89px; height: 89px; }
.close img { width: 100%; height: 100%; }
#ranking-list { list-style: none; padding: 0 15px; overflow-y: auto; scrollbar-width: thin; touch-action: pan-y; }
#ranking-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; height: 205px; padding: 0 25px 0 0; background: #0008; border-bottom: 14px solid #ffcf00; font: 34px Rank, monospace; }
#ranking-list .pos { display: none; }
#ranking-list img { justify-self: center; width: 99px; height: 98px; }
#ranking-list .nome { font-weight: bold; text-shadow: -4px 4px #000; }
#ranking-list .pts { font-size: 38px; font-style: italic; }
#pause, #offer-message { background: #0006; }
.message-panel { width: 82%; border-radius: 16px; padding: 54px 35px; text-align: center; background: rgb(20 20 20 / .94); }
.message-panel h2 { font-size: 85px; font-weight: normal; }
.message-panel p { font-size: 50px; margin: 24px auto; }
.message-panel button { display: block; margin: 14px auto; padding: 20px 40px; font-size: 50px; }
.action { background: #58c437; border: 3px solid #267213; border-radius: 12px; }
#hud { pointer-events: none; }
.timer-ribbon, .kills-ribbon { position: absolute; background: url('../assets/ui/rank-ribbon.webp') center / 100% 100%; }
.timer-ribbon { left: -119px; top: 84px; width: 311px; height: 173px; transform: rotate(12deg); }
#hud-timer { position: absolute; top: 51px; left: 94px; width: 200px; line-height: 50px; text-align: center; font-size: 45px; transform: rotate(-12deg); }
.kills-ribbon { left: -7px; top: 220px; width: 212px; height: 99px; transform: rotate(10.5deg); }
.kills-ribbon span { position: absolute; top: 25px; left: 18px; font-size: 45px; transform: rotate(-12deg); }
#hud-kills { position: absolute; top: 7px; left: 150px; font-size: 42px; font-weight: normal; transform: rotate(-12deg); }
#btn-pause { position: absolute; top: 0; right: 0; width: 151px; height: 107px; background: #cd0000c9; border: 2px solid #812121; border-radius: 10px; display: grid; place-content: center; }
#btn-pause img { width: 71px; height: 71px; }
#hud-top3 { list-style: none; padding: 0; position: absolute; right: -12px; top: 122px; width: 347px; }
#hud-top3 li { display: flex; align-items: center; justify-content: center; gap: 12px; height: 55px; margin-bottom: 22px; font-size: 43px; background: rgb(249 249 249 / .78); color: black; border-radius: 10px; }
#hud-top3 span, #hud-top3 img { display: none; }
#hud-top3 em, #hud-top3 b { font-weight: normal; font-style: normal; }
#feed { position: absolute; left: 0; top: 44%; list-style: none; padding: 0; }
#feed li { display: none; }
#feed li:first-child { display: flex; align-items: center; gap: 8px; font-size: 40px; padding: 36px 22px; background: #171717c9; transform: skewY(-10deg); }
#feed img { width: 56px; height: 56px; }
#feed .fade { opacity: 0; transition: opacity .6s; }
#countdown { position: absolute; inset: 44% 0 auto; text-align: center; font-size: 195px; text-shadow: 4px 7px black; }

#result { background: url('../assets/ui/result.webp') center / 100% 100%; }
#res-title { position: absolute; top: 184px; left: 60px; font-size: 100px; transform: rotate(-8.5deg); font-weight: 400; }
#podium { display: block; position: absolute; top: 299px; left: 6px; width: 1073px; }
#res-table { display: block; }
#res-table tr { display: none; color: #3bf806; position: relative; height: 236px; margin-bottom: -74px; background: url('../assets/ui/name-ribbon.webp') center / 100% 100%; }
#res-table tr:nth-child(-n+3) { display: block; }
#res-table tr:nth-child(2) { color: #f87a06; }
#res-table tr:nth-child(3) { color: #f8d406; }
#res-table td { position: absolute; transform: rotate(-7deg); white-space: nowrap; }
#res-table td:first-child { left: 74px; top: 130px; font-size: 60px; }
#res-table td:nth-child(2) { left: 271px; top: 88px; font-size: 55px; }
#res-table td:nth-child(2) img { position: absolute; left: -66px; top: -4px; width: 80px; height: 80px; }
#res-table td:nth-child(3) { display: none; }
#res-table td:nth-child(4) { top: 56px; left: 780px; font-size: 61px; }
#res-table td:nth-child(4)::before { content: ''; display: inline-block; vertical-align: middle; margin-right: 18px; width: 80px; height: 72px; background: currentColor; mask: url('../assets/img/ui/caveira.png') center / contain no-repeat; }
#res-msg { position: absolute; top: calc(50% + 35px); left: 50%; transform: translate(-50%, -50%); padding: 25px 32px; width: 597px; text-align: center; font-size: 48px; color: black; background: #dfdc08; border-radius: 13px; }
#btn-menu { position: absolute; left: 50%; top: calc(50% + 352px); transform: translate(-50%, -50%); width: 518px; height: 166px; font-size: 72px; }
#res-killed > * { position: absolute; transform: rotate(-15deg); }
#res-killed .skull { width: 187px; left: 70px; top: calc(50% - 597px); }
#res-killed span { left: 205px; top: calc(50% - 300px); font-size: 50px; }
#res-killer-name { left: 195px; top: calc(50% - 215px); font-size: 83px; color: #ff1515; font-weight: normal; }
#result:has(#res-killed:not([hidden])) { background-image: none; }
#result:has(#res-killed:not([hidden]))::before { content:''; position:absolute; inset:0; background: url('../assets/ui/result.webp') center / 100% 100%; transform:scaleX(-1); }
#result:has(#res-killed:not([hidden])) #res-title { left: 116px; top: calc(50% - 483px); font-size: 150px; transform: rotate(-15deg); }
#result:has(#res-killed:not([hidden])) #podium, #result:has(#res-killed:not([hidden])) #res-msg { display: none; }
#result:has(#res-killed:not([hidden])) #btn-menu { top: calc(50% + 553px); }
#loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #171a1e; color: white; }
#loading img { width: 80%; }
#loading .bar { height: 6px; width: 50%; margin: 1.4em 0 .6em; background: #666; }
#loading-bar { height: 100%; width: 0; background: #32cf27; }
#loading p { font-size: 1.2rem; }
