* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: #000;
  background:
    linear-gradient(rgba(185, 220, 248, 0.36), rgba(235, 248, 255, 0.62)),
    #b9ddf5 url("assets/sky-panel.png") center top / cover fixed no-repeat;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
}

button,
input {
  font: inherit;
}

a {
  color: #00e;
}

.page {
  position: relative;
  width: min(900px, calc(100vw - 24px));
  margin: 98px auto 18px;
}

.masthead {
  position: relative;
}

.feedback {
  color: #00e;
  font-size: 10px;
  text-decoration: none;
}

.feedback-top {
  position: absolute;
  top: -19px;
  right: 58px;
}

.header-art {
  position: relative;
  overflow: hidden;
  height: 72px;
  border: 1px solid #111;
  border-bottom: 0;
  background: url("assets/header-art.png") center / 100% 100% no-repeat;
}

.header-play-hit {
  position: absolute;
  top: 15px;
  right: 28px;
  width: 150px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.header-play-hit:hover,
.header-play-hit:focus-visible {
  outline: 2px solid #f7f7a4;
  outline-offset: 1px;
}

.classic-nav {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border: 1px solid #111;
  background: linear-gradient(#84afd7, #6f9fcb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.classic-nav a {
  padding: 1px 12px 2px;
  color: #fff;
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  border-right: 2px solid rgba(255, 255, 255, 0.9);
}

.classic-nav a:last-child {
  border-right: 0;
}

.classic-nav a:hover {
  text-decoration: underline;
}

.rss {
  display: inline-flex;
  width: 13px;
  height: 13px;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  color: #fff;
  background: #f47b20;
  border-radius: 2px;
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
  vertical-align: 1px;
  text-transform: uppercase;
}

.top-row {
  display: grid;
  grid-template-columns: 152px minmax(240px, 1fr) 302px;
  gap: 10px;
  margin-top: 15px;
}

.login-box,
.large-window,
.sky-ad,
.promo-strip,
.featured-game,
.wide-ad,
.facts-box,
.parents-box,
.news-box {
  border: 1px solid #111;
  background: #fff;
}

.login-box {
  min-height: 251px;
  background: #f0f0f0;
}

.box-title {
  padding: 5px 7px;
  border-bottom: 1px solid #111;
  background: #d5d5d5;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.login-box form {
  padding: 5px;
}

.login-box label {
  display: block;
  margin-top: 2px;
  font-weight: 700;
}

.login-box input {
  width: 100%;
  height: 19px;
  margin-bottom: 6px;
  border: 2px dashed #777;
  background: #fff;
}

.small-button {
  display: block;
  min-width: 54px;
  min-height: 21px;
  margin: 5px auto;
  padding: 2px 9px;
  color: #5c6875;
  border: 1px solid #999;
  background: linear-gradient(#fff, #ededed);
  cursor: pointer;
}

.parent-login {
  min-width: 82px;
}

.tiny-link {
  display: block;
  color: #777;
  font-size: 9px;
  text-align: center;
  text-decoration: none;
}

.tiny-link:hover {
  text-decoration: underline;
}

.form-status {
  min-height: 28px;
  margin: 6px 0 0;
  color: #555;
  line-height: 1.25;
  text-align: center;
}

.large-window {
  position: relative;
  min-height: 251px;
  background: #fff;
}

.notice-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(260px, calc(100% - 36px));
  transform: translate(-50%, -50%);
  padding: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.large-window:hover .notice-card,
.large-window:focus-within .notice-card {
  opacity: 1;
}

.notice-card p {
  margin: 0 0 9px;
  color: #3c3c3c;
}

.notice-card button {
  padding: 5px 12px;
  border: 1px solid #2376b8;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(#84d8ff, #0871d0);
  font-weight: 700;
  cursor: pointer;
}

.sky-ad {
  position: relative;
  min-height: 251px;
  background: url("assets/sky-panel.png") center / cover no-repeat;
}

.feedback-corner {
  position: absolute;
  left: 0;
  bottom: -10px;
}

.content-row {
  display: grid;
  grid-template-columns: minmax(0, 588px) 302px;
  gap: 10px;
  margin-top: 12px;
}

.left-column {
  min-width: 0;
}

.promo-strip {
  position: relative;
  height: 91px;
  overflow: hidden;
}

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

.promo-hit {
  position: absolute;
  right: 19px;
  top: 19px;
  width: 250px;
  height: 49px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.promo-hit:hover,
.promo-hit:focus-visible {
  outline: 2px solid #fff479;
  outline-offset: 1px;
}

.featured-game {
  margin-top: 10px;
  padding: 10px 6px 7px;
  min-height: 282px;
}

.featured-game h1 {
  margin: 0 0 9px;
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.1;
  text-align: center;
}

.game-content {
  display: grid;
  grid-template-columns: minmax(250px, 419px) minmax(105px, 1fr);
  gap: 16px;
  align-items: start;
}

.game-shot {
  width: 100%;
  aspect-ratio: 419 / 230;
  border: 0;
  object-fit: cover;
}

.game-details {
  min-width: 0;
  text-align: center;
}

.big-blue-button {
  width: min(140px, 100%);
  min-height: 48px;
  margin: 0 auto 5px;
  color: #001;
  border: 1px solid #1794d7;
  border-radius: 9px;
  background:
    radial-gradient(circle at 18px 16px, #d8ffff 0, #83efff 12px, transparent 13px),
    linear-gradient(#8ee6ff 0%, #47b6ff 46%, #006dd8 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.82), 0 1px 1px rgba(0, 0, 0, 0.35);
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.game-details p {
  margin: 2px 0;
  line-height: 1.2;
}

.builder-avatar {
  display: block;
  width: 69px;
  height: 86px;
  margin: 7px auto 2px;
  object-fit: cover;
}

.creator {
  font-size: 10px;
}

.wide-ad {
  position: relative;
  height: 91px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.feedback-bottom {
  position: relative;
  top: -5px;
}

.right-column {
  min-width: 0;
}

.facts-box,
.parents-box,
.news-box {
  padding: 10px;
}

.facts-box {
  min-height: 151px;
}

.facts-box h2,
.parents-box h2 {
  margin: 0 0 9px;
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.1;
  text-align: center;
}

.facts-box h2 {
  font-size: 19px;
}

.facts-box ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.facts-box li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  line-height: 1.25;
  text-align: center;
}

.fact-text {
  min-width: 0;
}

.fact-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 1px solid #238d24;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.bricks {
  background:
    linear-gradient(45deg, transparent 0 20%, #e79822 21% 33%, transparent 34%),
    repeating-linear-gradient(0deg, #56c556 0 5px, #2d9b2f 6px 10px);
  transform: rotate(-17deg);
}

.money {
  border-radius: 4px;
  background: linear-gradient(#c7ee43, #4fb328);
}

.tickets {
  background: repeating-linear-gradient(0deg, #a7e08f 0 4px, #42a64b 5px 9px);
}

.parents-box {
  min-height: 221px;
  margin-top: 10px;
}

.parents-box h2 {
  font-size: 28px;
  font-weight: 400;
}

.parents-box p {
  margin: 0 0 8px;
  line-height: 1.25;
}

.parent-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.parent-actions button {
  min-height: 20px;
  padding: 2px 8px;
  color: #6e6e6e;
  border: 1px solid #aaa;
  background: linear-gradient(#fff, #e8e8e8);
  cursor: pointer;
}

.privacy-link {
  display: inline-block;
  margin: 7px 12px 0 5px;
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif;
  font-size: 15px;
  text-decoration: none;
}

.truste {
  width: 146px;
  height: 45px;
  vertical-align: middle;
  object-fit: cover;
}

.news-box {
  min-height: 91px;
  margin-top: 10px;
  background: #f4f4f4;
}

.news-box h2 {
  margin: 0 0 3px;
  font-size: 11px;
  text-align: center;
}

.news-box ul {
  margin: 0;
  padding-left: 16px;
  line-height: 1.45;
}

.site-footer {
  margin-top: 8px;
  padding-top: 5px;
  border-top: 1px solid #888;
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.site-footer a {
  padding: 0 8px;
  border-right: 1px solid #777;
  text-decoration: none;
}

.site-footer a:last-child {
  border-right: 0;
}

.site-footer p {
  max-width: 720px;
  margin: 8px auto 0;
  font-size: 10px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .page {
    margin-top: 24px;
  }

  .top-row,
  .content-row {
    grid-template-columns: 1fr;
  }

  .login-box,
  .large-window,
  .sky-ad {
    min-height: 210px;
  }

  .game-content {
    grid-template-columns: 1fr;
  }

  .game-details {
    display: grid;
    grid-template-columns: 1fr 86px;
    gap: 4px 12px;
    align-items: center;
    text-align: left;
  }

  .big-blue-button {
    grid-column: 1 / -1;
  }

  .builder-avatar {
    grid-row: 2 / span 4;
    grid-column: 2;
  }

  .creator {
    grid-column: 1 / -1;
    text-align: center;
  }

  .promo-hit {
    right: 3%;
    width: 44%;
  }
}

@media (max-width: 520px) {
  .classic-nav a {
    padding: 2px 8px;
    font-size: 15px;
  }

  .header-art {
    height: 58px;
  }

  .promo-strip {
    height: 78px;
  }

  .parents-box h2 {
    font-size: 23px;
  }
}
