* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  user-select: none;
}

:root {
  --green: #a4dc34;
  --green-bright: #b5ef3f;
  --black: #111111;
  --panel: rgba(18, 18, 18, .87);
  --muted: #a7a7a7;
  color: #fff;
  background: #171717;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  overflow: hidden;
}

body {
  position: relative;
  color: #fff;
  background: #1c1c1c url('../assets/imagens/background.png') center / cover no-repeat;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  content: '';
  background: inherit;
  filter: grayscale(1) contrast(.9) brightness(.72);
  transform: scale(1.01);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

button:focus,
button:focus-visible {
  outline: none;
  box-shadow: none;
}

main {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: visible;
}

.background-shade {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 50%, rgba(0, 0, 0, .22)), linear-gradient(0deg, rgba(0, 0, 0, .63), transparent 48%);
}

.topbar {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 34px;
}

.brand,
.top-actions,
.server-panel-line,
.navbar,
.nav-links,
.nav-button,
.section-heading {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.brand img,
.nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand b {
  color: var(--green);
}

.top-actions {
  gap: 20px;
}

.platform-label,
.eyebrow,
.card-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.platform-label {
  color: #bcbcbc;
}

.platform-label strong {
  color: #fff;
}

.icon-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #d2d2d2;
  background: rgba(0, 0, 0, .48);
  font-size: 20px;
  line-height: 20px;
}

.icon-button:hover {
  color: var(--green);
}

.page {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: 120px 7vw 130px;
}

.active-page {
  display: block;
  animation: page-in .3s ease;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#page-home {
  position: relative;
  align-items: center;
  justify-content: center;
}

.page#page-home.active-page {
  display: flex;
}

.brand-center {
  position: absolute;
  top: 42%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  transform: translate(-50%, -50%);
}

.brand-center span {
  position: relative;
  z-index: 1;
  font-size: clamp(11px, 1.4vw, 20px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .14em;
}

.brand-center img {
  width: clamp(165px, 150vw, 295px);
  height: clamp(120px, 150vw, 220px);
  object-fit: contain;
  filter: saturate(1.5) brightness(1.25);
}

.announcement-panel {
  position: absolute;
  top: 7vh;
  right: 7vw;
  width: min(330px, 29vw);
  min-height: 225px;
  padding: 24px 26px;
  overflow: hidden;
  border: 3px solid var(--green);
  border-radius: 38px;
  background: rgba(20, 20, 20, .9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.announcement-live {
  color: #b7b7b7;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.announcement-gallery {
  display: block;
  height: 140px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 14px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.announcement-image {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #272727;
  opacity: 1;
  cursor: grab;
}

.announcement-gallery:active,
.announcement-image:active {
  cursor: grabbing;
}

.announcement-image.active {
  display: block;
}

.announcement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.78);
}

.announcement-image:nth-child(1) img { object-position: 20% center; }
.announcement-image:nth-child(2) img { object-position: 50% center; }
.announcement-image:nth-child(3) img { object-position: 80% center; }

.announcement-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.announcement-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #696969;
}

.announcement-dots span.active {
  width: 18px;
  border-radius: 6px;
  background: var(--green);
}

.hero-copy {
  position: absolute;
  right: auto;
  top: 7vh;
  left: 7vw;
  max-width: 340px;
}

.hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.05em;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-text {
  max-width: 320px;
  color: #d0d0d0;
  font-size: 13px;
  line-height: 1.5;
}

.server-status {
  gap: 8px;
  margin-top: 18px;
  color: #d0d0d0;
  font-size: 11px;
}

.server-status b {
  margin-left: 6px;
  color: #fff;
}

.server-panel {
  position: absolute;
  top: 38px;
  right: 7vw;
  width: min(330px, 29vw);
  min-height: 225px;
  padding: 28px;
  border: 3px solid var(--green);
  border-radius: 38px;
  background: rgba(20, 20, 20, .88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.server-panel h2 {
  margin: 12px 0 18px;
  font-size: 25px;
}

.server-panel-line {
  gap: 9px;
  color: var(--green);
  font-size: 12px;
}

.server-panel > p:last-child {
  margin-top: 18px;
  color: #9e9e9e;
  font-size: 12px;
  line-height: 1.4;
}

.play-card {
  position: absolute;
  right: 7vw;
  bottom: 145px;
  width: min(300px, 28vw);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 17px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px);
}

.play-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.status-badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
}

.status-badge.pending {
  color: #f0cb78;
  background: rgba(117, 86, 25, .5);
}

.status-badge.ready {
  color: var(--green);
  background: rgba(91, 137, 22, .4);
}

.play-card h2,
.section-heading h2 {
  margin-bottom: 18px;
  font-size: 22px;
  letter-spacing: -.04em;
}

.play-card label,
.settings-panel label {
  display: block;
  margin-bottom: 7px;
  color: #d0d0d0;
  font-size: 11px;
  font-weight: 800;
}

.play-card input,
.settings-panel input {
  width: 100%;
  border: 1px solid #515151;
  border-radius: 8px;
  outline: none;
  padding: 10px 12px;
  color: #fff;
  background: rgba(0, 0, 0, .28);
}

.play-card input:focus,
.settings-panel input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(164, 220, 52, .14);
}

.input-help {
  min-height: 15px;
  margin: 5px 0 13px;
  color: #929292;
  font-size: 10px;
}

.primary-button,
.secondary-button {
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 10px;
  font-weight: 900;
  transition: transform .2s, background .2s;
}

.primary-button {
  width: 100%;
  color: #101605;
  background: var(--green);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--green-bright);
}

.primary-button span {
  float: right;
  font-size: 17px;
  line-height: 9px;
}

.primary-button.small {
  width: auto;
  margin-top: 20px;
}

.text-button {
  display: block;
  width: 100%;
  margin-top: 11px;
  color: #c0d58f;
  background: transparent;
  font-size: 10px;
}

.text-button:hover {
  color: var(--green);
}

.action-status {
  min-height: 17px;
  margin-top: 10px;
  color: #a8a8a8;
  font-size: 10px;
  line-height: 1.35;
}

.success-text { color: var(--green) !important; }
.error-text { color: #ff9393 !important; }

.navbar {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  display: flex;
  width: min(890px, calc(100vw - 40px));
  height: 100px;
  padding: 0 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 42px;
  background: rgba(40, 40, 40, .65);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav-logo img {
  width: 42px;
  height: 42px;
}

.nav-links {
  gap: 16px;
  width: 100%;
  justify-content: space-around;
  margin-left: 0;
}

.nav-button {
  justify-content: center;
  gap: 8px;
  width: min(265px, 30%);
  height: 65px;
  border-radius: 25px;
  color: #d2d2d2;
  background: rgba(8, 8, 8, .68);
  font-size: 15px;
  font-weight: 800;
}

.nav-button span {
  display: grid;
  place-items: center;
  color: #979797;
  font-size: 20px;
}

.nav-button svg {
  display: block;
  width: 1em;
  height: 1em;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
  background: #090909;
}

.nav-button.active span {
  color: var(--green);
}

.floating-play {
  position: fixed;
  z-index: 6;
  right: max(18px, calc(50% - 445px - 150px - 85px));
  bottom: 35.5px;
  display: grid;
  place-items: center;
  width: 85px;
  height: 85px;
  border: 3px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  color: #111;
  background: var(--green);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .35);
  transition: transform .2s, background .2s;
}

.floating-play svg {
  display: block;
  width: 1em;
  height: 1em;
  pointer-events: none;
}

.floating-play:hover {
  transform: scale(1.06);
  background: var(--green-bright);
}

.social-links {
  position: fixed;
  z-index: 6;
  bottom: 57px;
  left: max(18px, calc(50% - 445px - 100px - 92px));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.social-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: #fff;
  background: rgba(40, 40, 40, .65);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 7px 20px rgba(0, 0, 0, .25);
  backdrop-filter: blur(14px);
  font-size: 15px;
  font-weight: 900;
  transition: color .2s, border-color .2s, transform .2s, background .2s;
}

.social-button svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.social-button:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(164, 220, 52, .18);
  transform: translateY(-2px);
}

.image-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(0, 0, 0, .84);
  backdrop-filter: blur(8px);
}

.image-modal.hidden {
  display: none;
}

.image-modal-content,
#image-modal-content {
  display: block;
  width: min(1100px, 92vw);
  height: min(760px, 86vh);
  border: 2px solid var(--green);
  border-radius: 18px;
  object-fit: contain;
  background: #111;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .55);
}

.image-modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #fff;
  background: rgba(30, 30, 30, .8);
  font-size: 25px;
}

.image-modal-close:hover {
  color: var(--green);
  border-color: var(--green);
}

.content-page {
  position: fixed;
  z-index: 1;
  inset: 0;
  height: 100dvh;
  padding-top: 150px;
  padding-bottom: 170px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.content-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 35px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: 35px;
}

.section-heading > p {
  color: #b0b0b0;
  font-size: 12px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 18px;
}

.store-item,
.settings-panel {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  padding: 24px;
  background: rgba(15, 15, 15, .76);
  backdrop-filter: blur(14px);
}

.store-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 17px;
  border-radius: 12px;
  color: var(--green);
  background: rgba(164, 220, 52, .18);
}

.store-item h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.store-item p {
  min-height: 44px;
  margin-bottom: 16px;
  color: #aaa;
  font-size: 12px;
  line-height: 1.5;
}

.secondary-button {
  color: #d0d0d0;
  border: 1px solid #555;
  background: rgba(255, 255, 255, .06);
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.settings-panel {
  width: 100%;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 490px));
  gap: 18px;
  max-width: 1020px;
}

.settings-panel[hidden] { display: none; }

.settings-panel h3 {
  margin: 9px 0 22px;
  font-size: 18px;
}

.settings-panel output {
  float: right;
  color: var(--green);
  font-weight: 900;
}

.settings-panel input[type="range"] {
  height: 5px;
  margin: 0 0 18px;
  padding: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.settings-note {
  margin-top: 16px;
  color: #929292;
  font-size: 10px;
  line-height: 1.45;
}

.settings-note code {
  color: #c9e990;
  font-family: monospace;
}

.switch {
  display: block !important;
  width: 36px;
  height: 20px;
  margin: 0 !important;
  cursor: pointer;
}

.switch input { display: none; }

.switch span {
  display: block;
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #424242;
  transition: background .2s;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  content: '';
  background: #aaa;
  transition: transform .2s, background .2s;
}

.switch input:checked + span { background: rgba(164, 220, 52, .45); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--green); }

.settings-panel input {
  margin-bottom: 22px;
}

.setting-line {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #aaa;
  font-size: 12px;
}

.setting-line b {
  color: #e4e4e4;
  font-size: 11px;
}

.modal {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(4, 4, 4, .7);
  backdrop-filter: blur(7px);
}

.modal.hidden { display: none; }

.modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 30px;
  border: 2px solid var(--green);
  border-radius: 24px;
  background: #171717;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .5);
}

.modal-card h2 {
  margin: 10px 0;
  font-size: 24px;
}

.modal-card > p:not(.eyebrow) {
  color: #aaa;
  font-size: 12px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 19px;
  color: #bbb;
  background: transparent;
  font-size: 22px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  margin: 25px 0 20px;
  border-radius: 99px;
  background: #383838;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .2s;
}

.modal-actions {
  display: flex;
  justify-content: end;
  gap: 9px;
}

.modal-actions .primary-button { width: auto; }

@media (max-width: 760px) {
  html, body { overflow: hidden; }
  main { height: 100dvh; min-height: 100dvh; overflow: visible; }
  .topbar { padding: 16px 18px; }
  .platform-label { display: none; }
  .page,
  .content-page { min-height: 100dvh; height: 100dvh; padding: 105px 20px 145px; overflow-y: auto; overscroll-behavior-y: contain; }
  .page#page-home.active-page { display: block; }
  .brand-center { top: 30%; }
  .brand-center img { width: 190px; height: 145px; }
  .announcement-panel { top: 72px; right: 20px; width: min(260px, calc(100% - 40px)); min-height: 0; padding: 16px; border-width: 2px; border-radius: 22px; }
  .announcement-gallery { height: 92px; margin-top: 9px; }
  .announcement-dots { margin-top: 8px; }
  .hero-copy { top: 39%; right: 20px; left: 20px; max-width: none; }
  .hero-copy h1 { font-size: 36px; }
  .hero-text { font-size: 12px; }
  .navbar { right: 12px; bottom: 12px; left: 12px; width: auto; height: 58px; padding: 0 6px; border-radius: 24px; transform: none; }
  .nav-logo { display: none; }
  .nav-links { gap: 5px; margin: 0; }
  .nav-button { width: auto; height: 38px; padding: 0 9px; font-size: 10px; }
  .nav-button span { display: none; }
  .floating-play { right: 18px; bottom: 84px; width: 52px; height: 52px; font-size: 20px; }
  .social-links { right: auto; bottom: 84px; left: 18px; }
  .social-button { width: 38px; height: 38px; font-size: 13px; }
  .store-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; }
}

@media (hover: none) and (pointer: coarse) {
  * { -webkit-tap-highlight-color: transparent; }
  .announcement-gallery { touch-action: pan-y; }
  .nav-button:active,
  .social-button:active,
  .floating-play:active,
  .primary-button:active,
  .secondary-button:active { transform: none; }
}

/* Scrollbar visual ocultada; a rolagem por toque e mouse permanece ativa. */
