:root {
  --primary: #20202D;
  --primary-lighter: #2A2A3B;
  --secondary: #4A4B70;
  --light: #EEE9DD;
  --dark: #0D0D13;

  --accent1: #999AD0;
  --accent1-bright: #B7B8E6;
  --accent1-deep: #68689A;

  --accent2: #F0A52F;
  --accent2-bright: #FFC45C;
  --accent2-very-bright: #FFE3A3;
  --accent2-deep: #A9651F;

  --accent3: #79B9C4;
  --accent3-bright: #A5D9E0;
  --accent3-very-bright:#E8F7F9;
  --accent3-deep: #3A6D7A;
}

* {
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--primary);
  color: var(--light);
  font-family: "Sora", sans-serif;
  background: var(--dark);
}
main {
  background: var(--primary);
  padding: 20px;
  width: 370px;
}
h1 {
  font-size: 20px;
  text-align: center;
  color: var(--accent3);
}
h2 {
  font-size: 16px;
  text-align: center;
  color: var(--accent3);
}
h2.text-left, h3.text-left {
  text-align: left;
}
a.light {
  color: var(--accent3-very-bright);
}
a.light:hover {
  color: var(--accent3-bright);
}
.bg-dark {
  background-color: var(--primary-lighter);
  border-radius: 8px;
}
.site-name {
  font-size: 14px;
  letter-spacing: 0.05em;
  padding-bottom: 40px;
}
.site-name a {
  text-decoration: none;
}
.site-name .one {
  color: var(--accent1-bright);
}
.site-name .two {
  color: var(--accent3-bright);
}
.site-name .three {
  color: var(--light);
}

.communicate {
  font-size: 14px;
  letter-spacing: 0.05em;
  padding-bottom: 40px;
  text-align: center;
}

.onward {
  width: 330px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 60px;
}
.main-panel {
  width: 330px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 60px;
}
.tile {
  width: 330px;
  height: 86px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 72px 18px 36px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  overflow: hidden;
}
.tile span {
  position: relative;
  z-index: 2;
}
.tile::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 32px solid;
}
a:hover .tile {
  filter: brightness(1.1);
}
a.tile-link {
  color: inherit;
  text-decoration: none;
}
.tile1 {
  background: var(--secondary);
}
.tile1::after {
  border-left-color: var(--accent1);
}
.tile2 {
  background: var(--accent1-deep);
}
.tile2::after {
  border-left-color: var(--light);
}
.tile3 {
  background: var(--light);
  color: var(--primary);
}
.tile3::after {
  border-left-color: var(--accent3);
}
.tile4 {
  background: var(--accent3);
  color: var(--primary);
}
.tile4::after {
  border-left-color: var(--accent2-very-bright);
}
.tile5 {
  background: var(--accent3-bright);
  color: var(--primary);
}
.tile5::after {
  border-left-color: var(--accent1-deep);
}

.panel1 {
  width: 330px;
  min-height: 88px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary);
  border-radius: 16px;
  margin-bottom: 60px;
}
.panel1-label {
  font-size: 13px;
  color: var(--light);
  opacity: 0.75;
}
.panel1-options {
  display: flex;
  gap: 8px;
}
.panel1-option {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}
.panel1-option a {
  text-decoration: none;
  color: inherit;
}
.panel1-option.option1 {
  background: var(--accent2-very-bright);
}
.panel1-option.option2 {
  background: var(--accent2-bright);
  width: 124px;
}
.panel1-option.option3 {
  background: var(--accent2);
}
.site-footer {
  width: 330px;
  text-align: center;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 11px;
}
.footer-links a {
  color: var(--light);
  text-decoration: none;
  opacity: 0.65;
}
.footer-links a:hover {
  opacity: 1;
}
.footer-links span {
  color: var(--light);
  opacity: 0.3;
}
.copyright {
  margin-top: 20px;
  font-size: 10px;
  color: var(--light);
  opacity: 0.3;
}
.layout-tool1 {
  width: 330px;
  margin: 0 auto;
  padding-bottom: 60px;
}
.layout-tool1 .panel {
  background: #fff;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
  background-color: var(--accent3-bright);
  color: var(--dark);
}
.layout-tool1 .instructions {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 12px;
  align-items: center;
}
.layout-tool1 .instructions p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}
.layout-tool1 .deal {
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  border: 1px solid var(--dark);
  background-color: var(--dark);
  color: var(--light);
  font-size: 11px;
  cursor: pointer;
}
.layout-tool1 .deal:hover {
  background-color: transparent;
  color: var(--dark);
}
.layout-tool1 .card-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.layout-tool1 .nav-card {
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background-color: var(--light);
  color: var(--dark);
  font-size: 10px;
  cursor: pointer;
}
.layout-tool1 .nav-card.active {
  background-color: var(--dark);
  color: var(--light);
}
.layout-tool1 .nav-card:disabled {
  opacity: 0.35;
  cursor: default;
}
.layout-tool1 .reveal-panel {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layout-tool1 .reveal-button {
  border: 1px solid var(--dark);
  background-color: var(--dark);
  color: var(--light);
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.layout-tool1 .reveal-button:hover {
  background-color: transparent;
  color: var(--dark);
}
.layout-tool1 .reading {
  display: none;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
}
.layout-tool1 .card-stack {
  position: relative;
  width: 110px;
  height: 170px;
}
.layout-tool1 .card {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 110px;
  height: 170px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
}
.layout-tool1 .card-copy {
  font-size: 11px;
  line-height: 1.5;
}
.layout-tool1 .card-copy p {
  margin: 0;
}
.layout-tool1 .reveal-button {
  opacity: 0;
}
.layout-tool1 .reveal-button.fade-in {
  animation: fadeIn 800ms ease forwards;
}
.layout-tool1 .card {
  transition: transform 180ms ease, opacity 180ms ease;
}
.layout-tool1 .card:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}
.layout-tool1 .card a {
  display: block;
  width: 100%;
  height: 100%;
}
.layout-tool1 .card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.layout-tool1 .card-details {
  grid-column: 1 / -1;
  background-color: var(--accent3);
  font-size: 11px;
  line-height: 1.45;
  grid-column: 1 / -1;
  margin: 12px -14px -14px;
  padding: 14px;
  border-radius: 0 0 6px 6px;
}
.layout-tool1 .keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  line-height: 1;
  height: 60px;
  font-size: 11px;
  text-align: center;
}
.layout-tool1 .keyword-list span {
  background-color: var(--accent3-bright);
  padding: 3px 6px;
  border-radius: 3px;
  height: fit-content;
}
.layout-tool1 .keyword-list span {
  white-space: nowrap;
}
.layout-tool1 .supplemental ul {
  list-style: none;
  text-align: center;
  line-height: 1;
  height: 60px;
  padding: 0;
}
.layout-tool1 .supplemental li {
  font-size: 11px;
  margin-bottom: 3px;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.slideshow {
  width: 330px;
  max-width: 100%;
  margin: 0 auto;
  background-color: var(--accent3-bright);
  color: var(--primary);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 60px;
}
.slides {
  position: relative;
  height: 550px;
}
.slide {
  display: none;
  padding: 28px;
  min-height: 420px;
}
.slide.active {
  display: block;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.slide-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent3-deep);
  margin-bottom: 12px;
}
.slideshow h2 {
  color: var(--primary);
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.15;
}
.slideshow h3 {
  font-size: 14px;
  line-height: 1.15;
}
.slideshow p, ol {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.slideshow ul {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
  padding-left: 10px;
}
.slideshow .navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--accent3);
}
.slideshow .nav-button {
  flex: 1;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background-color: var(--primary);
  color: var(--light);
  font-size: 12px;
  cursor: pointer;
  touch-action: manipulation;
}
.slideshow .nav-button:hover {
  filter: brightness(1.1);
}
.slideshow .nav-button:active {
  transform: scale(0.98);
}
.slideshow .nav-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.slideshow .counter {
  min-width: 54px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent3-deep);
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 58px);
  gap: 10px;
}
.game-grid .grid-item:hover {
  filter: brightness(1.1);
}
.tools-grid .grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 14px;
  padding-bottom: 60px;
}
.tools-grid a {
  color: var(--light);
  text-decoration: none;
}
.tools-grid a:hover {
  filter: brightness(1.1);
}
.pattern2 {
  background:
  linear-gradient(var(--accent1-deep) 1px,transparent 1px),linear-gradient(90deg,var(--accent1-deep) 1px,transparent 1px),var(--secondary);
  background-size: 18px 18px;
}
.pattern3 {
  background:
  linear-gradient(#4C8993 1px,transparent 1px),linear-gradient(90deg,#4C8993 1px,transparent 1px),var(--accent3-deep);
  background-size: 18px 18px;
}
.swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.pattern1 {
  background:
  radial-gradient(circle at 20% 25%, var(--accent3) 0 3px, transparent 4px),
  radial-gradient(circle at 65% 20%, var(--accent1) 0 5px, transparent 6px),
  radial-gradient(circle at 82% 65%, var(--accent3-deep) 0 4px, transparent 5px),
  radial-gradient(circle at 35% 78%, var(--accent2-bright) 0 3px, transparent 4px),
  radial-gradient(circle at 55% 48%, var(--accent3) 0 2px, transparent 3px),var(--secondary);
}
table.game-info {
  border: 1px solid var(--secondary);
  border-collapse: collapse;
}
.game-info td, .game-info th {
  border: 1px solid var(--secondary);
  padding: 5px 10px;
}
.extra-panel {
  display: none;
}
.extra-panel.show {
  display: block;
}
button {
  background-color: var(--accent1);
  padding: 10px;
  border-radius: 8px;
  border: none;
}
.game-panel {
  border: 1px solid var(--secondary);
  background-color: transparent;
  border-radius: 8px;
  pointer-events: none;
  text-align: center;
  height: 70px;
  color: var(--light);
  font-size: 12px;
  margin-top: 10px;
}
.game-panel.game-over {
  pointer-events: auto;
  cursor: pointer;
  background-color: var(--secondary);
}
.game-panel.game-over:hover {
  filter: brightness(1.1);
}
.game-panel button {
  background-color: transparent;
  color: var(--light);
  height: 20px;
  pointer-events: none;
}
.game-grid .revealed {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: var(--accent2);
}
.game-grid .grid-item {
  pointer-events: auto;
  cursor: pointer;
}
.game-grid .grid-item.attempt {
  font-size: 20px;
  background-color: var(--primary);
  color: var(--light);
}
.game-grid .grid-item.attempt {
  font-size: 20px;
  background-color: var(--primary);
  color: var(--light);
  pointer-events: none;
}
.game-info .row.success {
  color: var(--accent2);
}
.pick-card {
  background-color: var(--secondary);
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px 8px 0 0;
  margin-top: 5px;
}
.pick-card .card-container {
  position: relative;
  width: 180px;
  height: 270px;
  margin: 0 auto;
}
.pick-card .card {
  position: absolute;
  width: 180px;
  height: 270px;
  background: var(-accent1);
  border: 1px solid var(-accent1);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s;
  cursor: pointer;
}
.pick-card .card:hover {
  filter: brightness(1.1);
}
.pick-card .card:not(:first-child):hover {
  transform: translateY(-5px);
  transform: translateX(30px);
}
.pick-card .card-back {
  width: 180px;
  height: 270px;
  border-radius: 8px;
}
.pick-card .card-back.card-border {
  border: 1px solid var(--accent3)
}
.pick-card .card-front {
  width: 300px;
  height: auto;
  border-radius: 8px;
}
.pick-card .card-selected {
  margin: 0 auto;
  text-align: center;
}
.pick-card .card-selected.visible {
  opacity: 1;
}
.pick-card #reveal {
  display: none;
}
.card-button {
  background-color: var(--accent1-deep);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  pointer-events: all;
  cursor: pointer;
  height: 60px;
  font-size: 16px;
}
.card-button:hover {
  filter: brightness(1.1);
}
.card-footer {
  background-color: var(--accent3-deep);
  color: var(--light);
  padding: 30px 0;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-footer {
  background-color: var(--accent3-deep);
  color: var(--light);
  padding: 30px 0;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 330px;
}
.card-footer.img-footer {
  background-color: transparent;
  padding: 0;
}
.card-footer img {
  width: 330px;
  border-radius: 0 0 8px 8px;
}
.object-fit {
  width: 330px;
  border-radius: 8px;
}
.card-footer a {
  text-decoration: none;
  color: var(--light);
}
.card-footer a:hover {
  color: var(--accent3-bright);
}
