:root {
  color-scheme: dark;
  --page: #07101f;
  --panel: #10192b;
  --panel-2: #172235;
  --line: rgba(132, 170, 213, 0.22);
  --text: #f6f9ff;
  --muted: #9cacbf;
  --blue: #56b8f4;
  --blue-dark: #245d8d;
  --green: #6ee69f;
  --gold: #f4c95d;
  --coral: #ff7c65;
  --nav-height: 84px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(86, 184, 244, 0.18), transparent 30rem),
    linear-gradient(180deg, #11192a 0%, #07101f 34%, #091424 100%);
}

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

svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.app-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 16px calc(var(--nav-height) + 28px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  margin: 0 -16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(105, 154, 204, 0.28);
  background:
    linear-gradient(90deg, rgba(21, 13, 18, 0.95), rgba(42, 37, 31, 0.78)),
    image-set(url("assets/playzclaim.png") 1x);
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.brand,
.quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.icon-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(86, 184, 244, 0.6);
  border-radius: 18px;
  background: rgba(17, 30, 49, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.brand-mark span {
  width: 28px;
  height: 22px;
  background: linear-gradient(145deg, var(--blue), #8bdbff);
  clip-path: polygon(18% 0, 82% 0, 100% 34%, 50% 100%, 0 34%);
}

.brand strong {
  display: block;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.brand strong span {
  color: var(--blue);
}

.icon-button {
  width: 58px;
  height: 58px;
  border: 0;
  color: #b6d2e7;
  background: rgba(32, 33, 43, 0.72);
}

.icon-button:last-child {
  color: #6ec9ff;
}

.hero-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 22px;
  min-height: 280px;
  margin: 18px 0 26px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(107, 159, 212, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(10, 20, 36, 0.98) 0%, rgba(10, 20, 36, 0.84) 45%, rgba(10, 20, 36, 0.22) 100%),
    url("assets/playzclaim.png") center / cover;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.hero-panel::after {
  position: absolute;
  inset: auto -8% -28% 38%;
  z-index: -1;
  height: 170px;
  content: "";
  background: radial-gradient(ellipse, rgba(86, 184, 244, 0.24), transparent 68%);
}

.hero-copy {
  width: min(100%, 560px);
}

.eyebrow,
.section-head h2,
.sponsor-card p,
.bottom-nav a {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-title {
  max-width: 14ch;
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(2.25rem, 8vw, 4.8rem);
  font-weight: 950;
  line-height: 0.95;
}

.hero-copy p:not(.eyebrow):not(.hero-title) {
  max-width: 34rem;
  margin-bottom: 0;
  color: #d9e6f4;
  font-size: clamp(0.98rem, 2.5vw, 1.12rem);
  line-height: 1.55;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 6px;
}

.section-head h2 {
  margin: 0;
  color: #aeb9ca;
  font-size: clamp(0.9rem, 3.8vw, 1.08rem);
  font-weight: 900;
}

.section-head span {
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 1px solid rgba(86, 184, 244, 0.42);
  border-radius: 999px;
  color: #76cbff;
  background: rgba(43, 84, 122, 0.42);
  font-weight: 900;
}

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

.sponsor-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr 44px;
  align-items: start;
  min-width: 0;
  min-height: 336px;
  padding: 14px 12px 14px;
  border: 1px solid rgba(122, 151, 188, 0.22);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(32, 45, 68, 0.9), rgba(9, 18, 32, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(86, 184, 244, 0.16), transparent 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

.logo-tile {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, clamp(120px, 72%, 190px));
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  overflow: hidden;
  border: 3px solid #101a2e;
  border-radius: 8px;
  color: white;
  font-size: clamp(1.2rem, 4.6vw, 2rem);
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 0 22px rgba(160, 183, 211, 0.24);
}

.logo-image {
  padding: 0;
  background: #05070b;
}

.logo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grand {
  color: #f7df8c;
  background: radial-gradient(circle, #4d6025, #122011);
  font-family: Georgia, serif;
}

.sezar {
  background: linear-gradient(145deg, #d88734, #a45021);
}

.casibom {
  color: #ffc045;
  background: #111;
  font-style: italic;
}

.hit {
  color: #1d2840;
  background: white;
  font-style: italic;
}

.onwin {
  color: #f4edff;
  background: linear-gradient(145deg, #2a1748, #533b83);
}

.gamdom {
  color: #06231b;
  background: #6cf58b;
  font-size: clamp(2.4rem, 9vw, 4rem);
}

.betkom {
  color: #82e9ff;
  background: #050505;
  font-style: italic;
}

.banko {
  color: #f1f3ff;
  background: #191c2b;
}

.xbet {
  color: #f7fbff;
  background: linear-gradient(145deg, #2e63ce, #162438);
  font-style: italic;
}

.kral {
  color: #ffd96f;
  background: linear-gradient(145deg, #141414, #432d10);
}

.turbo {
  color: #061728;
  background: linear-gradient(145deg, #80f7ff, #ffda67);
}

.play {
  background: linear-gradient(145deg, #ff765f, #2b8ee8);
}

.sponsor-card h3 {
  align-self: start;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 3.9vw, 1.25rem);
  line-height: 1.05;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.sponsor-card p {
  align-self: start;
  margin: 8px 0 0;
  overflow: hidden;
  color: #7fb3d7;
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-card strong {
  align-self: start;
  margin-top: 16px;
  color: var(--green);
  font-size: clamp(1.24rem, 5vw, 1.62rem);
  line-height: 1.08;
}

.claim-button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(180deg, #6fc9fb, #45a8e8);
  box-shadow:
    inset 0 0 0 2px rgba(175, 230, 255, 0.28),
    0 0 0 4px rgba(53, 165, 226, 0.16),
    0 8px 16px rgba(0, 0, 0, 0.3);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.more-guide {
  margin: 28px 0 12px;
}

.more-guide > summary {
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  min-height: 48px;
  margin: 0 auto;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(86, 184, 244, 0.52);
  border-radius: 999px;
  color: white;
  background: linear-gradient(180deg, #6fc9fb, #328ed1);
  box-shadow:
    inset 0 0 0 2px rgba(175, 230, 255, 0.24),
    0 12px 26px rgba(0, 0, 0, 0.28);
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.more-guide > summary::-webkit-details-marker {
  display: none;
}

.more-guide[open] > summary {
  margin-bottom: 22px;
}

.more-guide > div {
  padding: 8px 2px 0;
}

.more-guide > div h2,
.more-guide > div h3,
.more-guide > div p,
.more-guide > div li,
.more-guide > div td,
.more-guide > div th {
  color: #d9e6f4;
  line-height: 1.65;
}

.more-guide > div h2 {
  margin: 24px 0 10px;
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  line-height: 1.2;
}

.more-guide > div h3 {
  margin: 18px 0 6px;
  color: #ffffff;
  font-size: 1.05rem;
}

.more-guide > div p {
  margin: 10px 0;
}

.more-guide > div ul {
  padding-left: 20px;
}

.more-guide > div table {
  display: block;
  width: 100%;
  margin: 16px 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.more-guide > div th,
.more-guide > div td {
  min-width: 160px;
  padding: 10px;
  border: 1px solid rgba(122, 151, 188, 0.24);
  text-align: left;
}

.more-guide > div details {
  margin: 12px 0;
}

.more-guide > div details summary {
  cursor: pointer;
  color: #ffffff;
  font-weight: 850;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: var(--nav-height);
  padding: 8px max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  border: 1px solid rgba(93, 142, 186, 0.34);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(31, 41, 61, 0.96);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-width: 0;
  color: #8c98aa;
  font-size: clamp(0.58rem, 2.6vw, 0.78rem);
  font-weight: 950;
  line-height: 1;
}

.bottom-nav a svg {
  width: 26px;
  height: 26px;
}

.bottom-nav a.active,
.bottom-nav a.wheel {
  color: var(--blue);
}

.bottom-nav .wheel span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -28px;
  border: 1px solid rgba(86, 184, 244, 0.38);
  border-radius: 50%;
  background: #21344a;
  box-shadow: 0 0 0 6px rgba(7, 16, 31, 0.72);
}

@media (min-width: 760px) {
  :root {
    --nav-height: 78px;
  }

  .app-shell {
    padding-inline: 28px;
  }

  .topbar {
    margin-inline: -28px;
    padding-inline: 28px;
  }

  .hero-panel {
    min-height: 360px;
    align-items: center;
    padding: 46px;
  }

  .sponsor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }

  .bottom-nav {
    right: 50%;
    left: 50%;
    width: min(100%, 760px);
    transform: translateX(-50%);
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-inline: 16px;
  }

  .topbar {
    min-height: 104px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    max-width: 148px;
    font-size: 1.5rem;
  }

  .icon-button {
    width: 56px;
    height: 66px;
  }

  .quick-actions {
    gap: 8px;
  }

  .hero-panel {
    display: none;
  }

  .section-head {
    margin-top: 34px;
  }

  .sponsor-grid {
    gap: 18px;
  }

  .sponsor-card {
    grid-template-rows: auto auto auto 1fr 42px;
    min-height: 286px;
    padding: 9px 8px 10px;
  }

  .logo-tile {
    width: min(100%, 96px);
    margin-bottom: 10px;
    border-width: 2px;
  }

  .sponsor-card h3 {
    font-size: 0.95rem;
  }

  .sponsor-card p {
    margin-top: 8px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .sponsor-card strong {
    margin-top: 14px;
    font-size: 1.22rem;
  }

  .claim-button {
    min-height: 42px;
    font-size: 0.78rem;
  }

  .more-guide {
    margin-top: 22px;
  }
}

@media (max-width: 374px) {
  .app-shell {
    padding-inline: 10px;
  }

  .topbar {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    font-size: 1.18rem;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .icon-button {
    width: 52px;
    height: 62px;
    border-radius: 16px;
  }

  .sponsor-grid {
    gap: 12px;
  }

  .sponsor-card {
    min-height: 272px;
    padding: 8px 7px 9px;
  }

  .logo-tile {
    width: min(100%, 88px);
  }

  .sponsor-card p {
    font-size: 0.6rem;
  }

  .sponsor-card strong {
    font-size: 1.08rem;
  }

  .claim-button {
    min-height: 40px;
    font-size: 0.76rem;
  }
}
