@font-face {
  font-family: Montserrat;
  src: url(Montserrat-VariableFont_wght.ttf);
  font-weight: 100 900;
}

:root {
  --blue: #155999;
  --blue-dark: #0e4f8d;
  --yellow: #ffca0a;
  --white: #fff;
  --muted: rgba(255, 255, 255, .52);
  --shadow: rgba(0, 38, 83, .35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--blue);
  color: var(--white);
  font-family: Montserrat;
  letter-spacing: 0;
}

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

.site-header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1120px) / 2));
  background: var(--blue);
  box-shadow: 0 10px 14px var(--shadow);
}

.brand img { width: 200px; }

.btn {
  display: inline-flex;
  min-width: 132px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--yellow);
  color: var(--blue);
  font: 900 16px/1 Montserrat;
  cursor: pointer;
  box-shadow: none;
}

.btn-small { width: 340px; padding: 16px; font-size: 21px; }
.btn-large { width: 340px; height: 42px; margin: 62px auto 0; font-size: 20px; display: flex; }

h1, h2 {
  margin: 0;
  color: var(--yellow);
  font-weight: 700;
  line-height: 1.14;
}

h1 { font-size: clamp(33px, 5vw, 36px); }
h2 { font-size: clamp(30px, 3.6vw, 33px); }
p { 
  margin-top: 21px; 
  font-size: 18px; 
  line-height: 1.35; 
  font-weight: 300; }

.rules-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 96px;
}

.section-grid {
  display: grid; 
  grid-template-columns: 0.5fr 2fr 0.5fr; 
  grid-template-rows: 1fr; 
  gap: 0px 8px; 
  grid-template-areas: ". . .";
  margin-bottom: 60px;
}

.left img, .right img  { max-height: 200px;}
.text  {}

.steps ol { margin: 28px 0 0; padding: 0; list-style: none; }
.steps li { margin: 0 0 26px; font-size: 20px; font-weight: 650; }
.steps li::first-letter { color: var(--yellow); font-size: 21px; font-weight: 700; }

.prizes p { font-size: 28px; }
.prizes strong { color: var(--yellow); font-size: 44px; font-weight: 900; }
.prizes em { display: block; margin-top: 28px; font-size: 16px; max-width: 520px; }
.bottom-game-link { display: flex; margin: 84px auto 0; }

.mascot, .coin, .spark, .coin-stack {
  display: block;
  position: relative;
  margin-bottom: 50px;
}



.mascot-jar { padding-right: 16px;  }
.mascot-pig { --c: #f188cf; --s: 116px; --r: 45% 55% 48% 52%; }
.mascot-calc { --c: #9ba5ad; --s: 120px; --r: 12px; }
.mascot-paper { --c: #dedede; --s: 122px; --r: 18px; }
.mascot-wallet { --c: #6689aa; --s: 132px; --r: 18px; }
.mascot-pie { --s: 156px; background: conic-gradient(#ff3138 0 39%, #3d9ee7 0 53%, #42bd4f 0 66%, #ffca0a 0); border-radius: 50%; }
.mascot-pie::before { background: transparent; }

.spark::before {
  content: "✦";
  color: var(--yellow);
  -webkit-text-stroke: 2px #1f2630;
  font-size: 48px;
  margin-top: 20px;
}

.coin::before, .coin-stack::before {
  content: "";
  display: block;
  width: 58px;
  height: 28px;
  border: 4px solid #1f2630;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, #ffda24 0 5px, #d79b00 5px 8px);
  transform: rotate(28deg);
}

.coin-stack::before {
  width: 70px;
  height: 92px;
  border-radius: 10px 10px 18px 18px;
  background: repeating-linear-gradient(0deg, #ffca0a 0 10px, #cb8d00 10px 14px);
}

.game-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.game-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 56px;
  align-items: center;
  margin-bottom: 86px;
}

.game-hero p { max-width: 640px; margin-top: 14px; font-size: 28px; }

.investment-tool {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  grid-template-areas: "sliders chart" "remaining chart";
  gap: 28px 86px;
  align-items: center;
}

.sliders { grid-area: sliders; }
.chart-area { grid-area: chart; text-align: center; }
.remaining-label { grid-area: remaining; margin-top: 8px; font-size: 20px; font-weight: 700; }
.remaining-label strong, .total-label strong { font-size: 42px; color: var(--white); margin-left: 8px; font-weight: 700;}
.total-label { margin-top: 30px; font-size: 20px; font-weight: 600; }
.total-label strong { color: var(--yellow); }

.allocation-table {
  width: min(560px, 100%);
  margin: 32px auto 0;
}

.allocation-table-empty {
  min-height: 210px;
  border: 4px dashed rgba(120, 190, 235, .72);
}

.allocation-table-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid #fff;
}

.allocation-item {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, .58);
  text-align: left;
}

.allocation-item span {
  color: #fff;
  font-size: 18px;
  line-height: 1.08;
}

.allocation-item strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
}

.fund { margin: 0 0 15px; }
.fund h3 { margin: 0; font-size: 19px; line-height: 1; font-weight: 600; }
.fund p {  margin-top: 8px !important;font-size: 14px; line-height: 1.05; font-weight: 400; }

input[type="range"] {
  width: 100%;
  height: 8px;
  display: block;
  appearance: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--fund-color) var(--fill), #fff var(--fill));
  outline: 0;
}

input { 
  margin-top: 16px;
  margin-bottom: 16px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #2c2c2c;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #2c2c2c;
  cursor: pointer;
}

.pie-chart {
  width: min(560px, 100%);
  aspect-ratio: 1;
  overflow: visible;
}

.pie-chart path { stroke: #fff; stroke-width: 2.5; }
.pie-chart .outer-ring { fill: none; stroke: #fff; stroke-width: 5; }
.pie-chart .empty-ring {
  fill: none;
  stroke: rgba(120, 190, 235, .72);
  stroke-width: 4;
  stroke-dasharray: 8 10;
}
.pie-chart .empty-ring-text {
  fill: rgba(120, 190, 235, .72);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.site-footer {
  min-height: 300px;
  padding: 86px 24px 70px;
  text-align: center;
  background: var(--blue);
  box-shadow: inset 0 12px 14px var(--shadow);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 92px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.socials {
  margin-top: 76px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 52px;
}
.socials svg {
  display: block;
  width: 48px;
  fill: #fff;
}
.socials svg:hover {
  fill: #3d9ee7;
}

@media (max-width: 720px) {
  .site-header {
    height: 80px;
    justify-content: center;
    padding: 0 22px;
  }

  .site-header .btn-small { display: none; }
  .brand img { width: 160px;}

  .rules-page, .game-page { width: min(100% - 32px, 390px); padding: 34px 0 62px; }

  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  p { font-size: 16px; line-height: 1.32; }

  .section-grid {
    display: block;
    margin-bottom: 42px;
  }


  .spark { display: none; }

  .intro {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    gap: 8px;
   grid-template-areas: 
    ". . ";
  }
  .vtoro {
    display: grid;
    grid-template-columns: 0.7fr 0.3fr;
    gap: 8px;
   grid-template-areas: ". . ";
   padding-top: 22px;
  }

  .left, .right {
    /* text-align: center; */
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;

  }
  .hide {display: none;}

  .left img,
  .right img {
    max-width: 100px;
    padding-bottom: 22px;
  }
  .left img.mobile-size { 
    padding-bottom: 0;
  }

  .intro .mascot { margin: 0; --s: 76px; }
  .intro .spark { display: none; }
  .steps li { font-size: 14px; margin-bottom: 18px; }
  .prizes p { font-size: 17px; white-space: nowrap; }
  .prizes strong { font-size: 24px; }
  .bottom-game-link { margin-top: 44px; height: 42px; }

  .game-hero {
    display: block;
    margin-bottom: 26px;
  }

  .game-hero .mascot-pie {
    float: right;
    width: 92px;
    margin: 128px 10px 0 18px;
    --s: 92px;
  }

  .game-hero p { font-size: 17px; max-width: 310px; }

  .investment-tool {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .chart-area { order: 1; text-align: left; }
  .sliders { 
    order: 2;
    margin-top: 24px;
 }
  .remaining-label { order: 3; text-align: center; margin: 4px 0 0; }
  .pie-chart { width: 280px; display: block; margin: 18px 0 0; }
  .total-label { margin: 14px 0 16px; font-size: 13px; }
  .total-label strong, .remaining-label strong { font-size: 27px; }
  .allocation-table { width: 100%; margin-top: 18px; }
  .allocation-table-empty { min-height: 128px; border-width: 3px; }
  .allocation-table-active { grid-template-columns: 1fr; }
  .allocation-item {
    min-height: 0px;
    padding: 15px 12px;
    gap: 12px;
  }
  .allocation-item span { font-size: 15px; }
  .allocation-item strong { font-size: 26px; }

  .fund { margin-bottom: 7px; }
  .fund h3 { font-size: 18px; }
  .fund p { font-size: 14px; }
  input[type="range"] { height: 5px; }
  input[type="range"]::-webkit-slider-thumb { width: 19px; height: 19px; }
  input[type="range"]::-moz-range-thumb { width: 19px; height: 19px; }

  .btn-large { width: 100%; height: 42px; margin-top: 34px; font-size: 22px; }

  .site-footer { min-height: 342px; padding-top: 42px; }
  .site-footer nav { display: grid; gap: 22px; font-size: 14px; }
  .socials { margin-top: 48px; gap: 34px; font-size: 52px; }
}
