:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .12);
  --text: #fff;
  --muted: #a6a6ae;
  --red: #ff193d;
  --pink: #ff4d8d;
  --purple: #8b5cf6;
}

@font-face {
  font-family: "Carter-One";
  src: url("./assets/fonts/CarterOne-Regular.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: linear-gradient(90deg, #131313 0%, #161616 50%, #090909 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 100px;
  height: 100px;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 60;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px clamp(16px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(35, 35, 35, 0.9) 0%, rgba(15, 15, 15, .55) 40%, rgba(15, 15, 15, 0) 100%);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 48px);
}

.nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cfcfd5;
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 600;
  white-space: nowrap;
  transition: .2s ease;
}

.nav a ion-icon {
  font-size: clamp(20px, 2vw, 27px);
  color: #be9062;
  transition: .2s ease;
}

.nav a:hover ion-icon {
  color: #ffb56c;
}

.nav a:hover {
  color: #fff;
}

.hero {
  min-height: 70vh;
  padding: 120px 20px 70px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  width: 720px;
  height: 500px;
  top: 170px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(81, 81, 81, 0.332), rgba(116, 35, 255, .08) 40%, transparent 72%);
  filter: blur(20px);
  z-index: -1;
}

.hero-top-image {
  width: 240px;
  height: 240px;
}

.hero-top-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 12px;
  color: #96969e;
  font-size: 21px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(35px, 10vw, 75px);
  font-family: "Carter-One", sans-serif;
  background: linear-gradient(180deg, #fff1dd 10%, #ff8c1a 55%, #ff0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px transparent;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero h1 span {
  display: inline-block;
}

.party-chaos {
  font-size: clamp(38px, 3vw, 60px);
  font-family: "Carter-One", sans-serif;
  background: linear-gradient(0deg, #2b2b2b, #696969, #e0e0e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  Font-weight: 500;
  margin: 18px 0 35px;
}

.carousel {
  width: min(980px, 100%);
  height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.carousel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-caption {
  position: relative;
  width: min(560px, 100%);
  min-height: 54px;
  margin-bottom: 17px;
  text-align: center;
}

.caption-text {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}

.playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  transition: .2s ease;
}

.playstore-btn:hover {
  border-color: #ff8c1a;
  background: rgba(255, 140, 26, .1);
  transform: translateY(-2px);
}

.playstore-btn ion-icon {
  font-size: 30px;
  color: #ff8c1a;
}

.playstore-btn span {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}

.playstore-btn small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
}

.caption-text.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide {
  position: absolute;
  width: min(265px, 45vw);
  border-radius: 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #101010;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .55);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s ease, filter .7s ease;
  opacity: .32;
  filter: blur(1px) brightness(.65);
  transform: translateX(0) scale(.76);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
  filter: none;
  transform: translateX(0) scale(1);
  z-index: 3;
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 35px 90px rgba(255, 25, 61, .13), 0 25px 70px rgba(0, 0, 0, .65);
}

.slide.left {
  transform: translateX(-250px) scale(.78);
  z-index: 2;
}

.slide.right {
  transform: translateX(250px) scale(.78);
  z-index: 2;
}

.carousel-arrow {
  position: absolute;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .7);
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: .2s ease;
}

.carousel-arrow:hover {
  transform: scale(1.08);
  border-color: rgba(255, 25, 61, .7);
}

.dice-slide {
  position: absolute;
  width: min(280px, 48vw);
  height: 440px;
  border-radius: 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 50% 0%, rgba(41, 17, 0, 0.547), transparent 55%),
    #101010;
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s ease, filter .7s ease;
  opacity: .32;
  filter: blur(1px) brightness(.65);
  transform: translateX(0) scale(.76);
}

.dice-slide.active {
  opacity: 1;
  filter: none;
  transform: translateX(0) scale(1);
  z-index: 3;
  border-color: rgba(255, 140, 26, .35);
  box-shadow: 0 35px 90px rgba(255, 25, 61, .13), 0 25px 70px rgba(0, 0, 0, .65);
}

.dice-slide.left {
  transform: translateX(-250px) scale(.78);
  z-index: 2;
}

.dice-slide.right {
  transform: translateX(250px) scale(.78);
  z-index: 2;
}

.slide-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.dice-card {
  position: relative;
  overflow: hidden;
}

.dice-card .card-number,
.dice-card p {
  position: relative;
  z-index: 1;
}

.dice-silhouette {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 130px;
  color: rgba(255, 255, 255, .06);
  pointer-events: none;
  z-index: 0;
}

.dice-card .dice-silhouette {
  font-size: 130px;
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}

.indicators {
  display: flex;
  margin-top: 8px;
  gap: 3px;
}

.indicator {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s ease;
}

.indicator ion-icon {
  font-size: 25px;
  color: #444;
  transition: .3s ease;
}

.indicator.active ion-icon {
  font-size: 29px;
  color: #ff8c1a;
  filter: drop-shadow(0 0 6px rgba(255, 25, 61, .5));
}

.indicator:hover ion-icon {
  color: #888;
}

.section {
  scroll-margin-top: var(--header-h, 90px);
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.rules-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 760px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section h2,
.contact h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  letter-spacing: -.045em;
  font-family: "Carter-One", sans-serif;
}

.section h2 span,
.contact h2 span {
  background: linear-gradient(180deg, #ffbb77, #ff8c1a, #ff193d);
  -webkit-background-clip: text;
  font-family: "Carter-One", sans-serif;
  background-clip: text;
  color: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.glass-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 106, 32, 0.147), transparent 55%),
    var(--panel);
  padding: 20px;
  backdrop-filter: blur(16px);
}

.card-number {
  font-size: 12px;
  font-weight: 900;
  color: #ff8c1a;
  margin-bottom: 10px;
}

.glass-card h3 {
  font-size: 21px;
  margin: 0 0 7px;
}

.glass-card p,
.legal-card p,
.contact p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.legal {
  position: relative;
}

.legal-card {
  max-width: 900px;
  margin: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 121, 31, 0.07), transparent 48%),
    radial-gradient(circle at 80% 100%, rgba(139, 92, 246, .1), transparent 42%),
    rgba(255, 255, 255, .045);
}

.legal-card h2 {
  margin-bottom: 20px;
}

.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, .045);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  outline: none;
  border-radius: 13px;
  padding: 14px;
  background: #0d0d0f;
  color: white;
  font: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #ff8c1a;
}

.submit-button {
  margin-top: 5px;
  border: 0;
  border-radius: 13px;
  padding: 15px;
  color: white;
  text-shadow: #050505 0px 0px 2px;
  background: linear-gradient(180deg, #ffbf7e, #ff8c1a, #d91c29);
  cursor: pointer;
  font-Weight: 700;
  font-size: 17px;
  transition: .2s ease;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 35px max(20px, calc((100% - 1100px) / 2));
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand img {
  width: 103px;
  height: 103px;
}

.footer-title {
  display: block;
  font-size: 21px;
  font-family: "Carter-One", sans-serif;
  letter-spacing: .05em;
  background: linear-gradient(180deg, #ffbb77, #ff8c1a, #ff193d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand span {
  display: block;
  font-size: 21px;
  font-family: "Carter-One", sans-serif;
  color: #ff8c1a;
}

.footer-brand span {
  display: block;
  font-size: 18px;
  margin-top: 3px;
  font-family: "Carter-One", sans-serif;
  background: linear-gradient(180deg, #e0e0e0, #696969, #2b2b2b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px transparent;
  transform: translateZ(0);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a,
.copyright {
  color: #777780;
  font-size: 14px;
}

.made-by {
  color: #777780;
  font-size: 14px;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

.brand-name {
  color: #fff;
  font-weight: 700;
}

.brand-name .highlight {
  color: var(--red);
}

.footer-links a:hover {
  color: #fff;
}

@media (min-width: 761px) and (max-width: 1024px) {

  .copyright,
  .made-by {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .nav {
    gap: 22px;
  }

  .nav a span,
  .nav a {
    font-size: 0;
    gap: 0;
  }

  .nav a ion-icon {
    font-size: 24px;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 11px;
    gap: 4px;
  }

  .nav a ion-icon {
    font-size: 18px;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .dice-slide {
    height: 380px;
    width: min(230px, 62vw);
    padding: 24px;
  }

  .slide-caption {
    font-size: 15px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(280px, 75vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px 32px;
    background: rgba(10, 10, 10, .97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .3s ease;
  }

  .nav-toggle {
    font-size: 32px;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a,
  .nav a span {
    font-size: 17px;
    gap: 10px;
  }

  .nav a ion-icon {
    font-size: 22px;
  }

  .hero {
    min-height: auto;
    padding: 110px 16px 60px;
  }

  .hero-top-image {
    width: 170px;
    height: 170px;
  }

  .hero h1 {
    font-size: clamp(36px, 13vw, 60px);
  }

  .party-chaos {
    font-size: clamp(26px, 7vw, 40px);
  }

  .hero-copy {
    font-size: 16px;
    padding: 0 8px;
  }

  .carousel {
    height: 320px;
  }

  .carousel-caption {
    width: 100%;
    padding: 0 12px;
    font-size: 15px;
  }

  .slide {
    height: 280px;
    width: min(200px, 60vw);
  }

  .slide.left {
    transform: translateX(-115px) scale(.74);
  }

  .slide.right {
    transform: translateX(115px) scale(.74);
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .prev {
    left: 0;
  }

  .next {
    right: 0;
  }

  .about-grid,
  .rules-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section h2,
  .contact h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .card-number {
    margin-bottom: 30px;
  }

  .legal-card,
  .glass-card {
    padding: 22px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Small phones (400px and below) ===== */
@media (max-width: 400px) {
  .site-header {
    padding: 8px 12px;
  }

  .dice-slide {
    height: 320px;
    width: 70vw;
    padding: 18px;
  }

  .slide-caption {
    font-size: 13px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .nav-toggle {
    font-size: 30px;
  }

  .hero-glow {
    width: 90vw;
    height: 320px;
  }

  .hero-top-image {
    width: 130px;
    height: 130px;
  }

  .hero h1 {
    font-size: clamp(30px, 12vw, 42px);
  }

  .party-chaos {
    font-size: clamp(20px, 6vw, 28px);
  }

  .hero-copy {
    font-size: 14px;
    padding: 0 4px;
  }

  .carousel {
    height: 260px;
  }

  .indicators {
    gap: 0;
    max-width: 220px;
  }

  .indicator {
    width: 28px;
    height: 28px;
  }

  .slide {
    height: 230px;
    width: 66vw;
  }

  .slide.left {
    transform: translateX(-80px) scale(.7);
  }

  .slide.right {
    transform: translateX(80px) scale(.7);
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .carousel-caption {
    font-size: 13px;
    min-height: 44px;
  }

  /* the actual overflow culprit: 7 indicators at full size don't fit */
  .indicators {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 260px;
    margin: 8px auto 0;
    gap: 4px;
  }

  .indicator {
    width: 30px;
    height: 30px;
  }

  .indicator ion-icon {
    font-size: 16px;
  }

  .indicator.active ion-icon {
    font-size: 19px;
  }

  .about-grid,
  .rules-grid {
    gap: 12px;
  }

  .glass-card,
  .legal-card {
    padding: 18px;
    border-radius: 18px;
  }

  .glass-card p,
  .legal-card p {
    font-size: 13px;
  }

  .section h2,
  .contact h2 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .eyebrow {
    font-size: 15px;
  }

  .footer-brand img {
    width: 60px;
    height: 60px;
  }

  .footer-title,
  .footer-brand span {
    font-size: 16px;
  }

  .contact-form {
    padding: 16px;
  }

  input,
  textarea {
    padding: 11px;
    font-size: 14px;
  }
}