/* Homepage (index2.php): two groups of picture tiles. Each tile shows the activity. */

.hp {
  max-width: 1260px;
  margin: 0 auto;
  color: #212529;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  --face-h: 100px;
}

.hp *,
.hp *::before,
.hp *::after {
  box-sizing: border-box;
}

/* ---------- Top ---------- */

.hp-hero {
  padding: 26px 0 0;
}

.hp .hp-hero h1 {
  max-width: none;
  margin: 0;
  padding: 0;
  color: #212529;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  text-align: left;
}

/* ---------- Groups ---------- */

.hp-group {
  margin: 30px 0 0;
}

.hp-hero + .hp-group {
  margin-top: 20px;
}

.hp h2 {
  display: inline-block;
  margin: 0 10px 12px 0;
  padding: 0;
  border: 0;
  color: #212529;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
}

.hp h2::after {
  display: none;
}

.mainCenter .hp p.hp-group-intro {
  display: inline-block;
  max-width: none;
  margin: 0 0 12px;
  color: #6c757d;
  font-size: 15px;
}

.hp-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.hp .hp-tile {
  position: relative;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hp .hp-tile:hover,
.hp .hp-tile:focus-within {
  border-color: #c7d7ea;
  box-shadow: 0 8px 20px rgba(33, 37, 41, 0.12);
  transform: translateY(-2px);
}

.hp a.hp-tile-main {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 10px;
  color: #212529;
  text-decoration: none;
}

.hp a.hp-tile-main::after {
  /* The whole tile is the main link */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

.hp a.hp-tile-main:focus {
  outline: none;
}

.hp a.hp-tile-main:focus-visible::after {
  outline: 2px solid #1875d0;
  outline-offset: 2px;
}

.hp-tile-title {
  padding: 0 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

/* Small second link under the name: instructions and ideas */
.hp a.hp-second {
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
  margin: -6px 0 0;
  padding: 0 10px 10px;
  color: #6c757d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.hp a.hp-second:hover,
.hp a.hp-second:focus {
  color: #1875d0;
  text-decoration: underline;
}

/* ---------- Faces: a tiny picture of each activity ---------- */

.hp-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--face-h);
  margin: 0 0 9px;
  padding: 8px 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #26436e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.hp-face span {
  display: block;
}

/* Question card (Card Sets, Random Questions) */
.f-q {
  background: #26436e;
}

/* Scrambled Sentences */
.f-words {
  flex-wrap: wrap;
  align-content: center;
  gap: 4px;
  background: #e9e3d8;
}

.f-words span {
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff;
  color: #2b2a28;
  font-size: 13px;
  box-shadow: 0 2px 0 #d6cebf;
}

/* Reveal the Picture */
.f-reveal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 5px;
  background: linear-gradient(135deg, #f6c453, #e4572e 55%, #8e44ad);
}

.f-reveal span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #26436e;
  font-size: 11px;
}

.f-reveal span.is-open {
  visibility: hidden;
}

/* Board Games */
.f-track {
  background: #2e9e5b;
}

.f-track .g {
  display: grid;
  grid-template-columns: repeat(5, 26px);
  grid-auto-rows: 26px;
  gap: 4px;
}

.f-track .g span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #fff;
  color: #2b2a28;
  font-size: 11px;
}

.f-track .g .go {
  background: #f6c453;
  font-size: 9px;
}

.f-track .g .p1,
.f-track .g .p2 {
  position: relative;
  color: transparent;
}

.f-track .g .p1::after,
.f-track .g .p2::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e4572e;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.f-track .g .p2::after {
  background: #1875d0;
}

/* Card Sets: a stack of prompt cards */
.f-cards {
  background: #e9e3d8;
}

.f-cards .c {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  height: 64px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #26436e;
  font-size: 13px;
  box-shadow: 5px 5px 0 #8fa3c2, 10px 10px 0 #c3cede;
  transform: translate(-5px, -5px);
}

/* Sentence Matching */
.f-match {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  background: #dcebfa;
}

.f-match span {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 13px;
}

.f-match .m1 {
  align-self: flex-start;
  background: #fff;
  color: #26436e;
}

.f-match .m2 {
  align-self: flex-end;
  background: #1875d0;
}

/* Gap Fill, Sentence Transformation blanks */
.hp-face .blank {
  display: inline-block;
  width: 40px;
  height: 18px;
  margin: 0 2px;
  border: 2px dashed #1875d0;
  border-radius: 4px;
  background: #fff;
  vertical-align: middle;
}

.f-gap {
  background: #f4f1ea;
  color: #2b2a28;
  font-size: 15px;
  white-space: nowrap;
}

/* Multiple Choice */
.f-multi {
  flex-direction: column;
  gap: 5px;
  background: #1f8a8a;
}

.f-multi .opt {
  width: 126px;
  padding: 2px 9px;
  border-radius: 5px;
  background: #fff;
  color: #2b2a28;
  font-size: 12px;
  text-align: left;
}

.f-multi .ok {
  background: #c9f2d8;
}

.f-multi .ok::after {
  content: "\2713";
  float: right;
  color: #1f7a45;
}

/* Tic Tac Toe */
.f-ttt {
  background: #f6c453;
}

.f-ttt .g {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  grid-auto-rows: 24px;
  gap: 3px;
}

.f-ttt .g span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #fff;
  font-size: 15px;
}

.f-ttt .x {
  color: #26436e;
}

.f-ttt .o {
  color: #e4572e;
}

/* Hangman */
.f-hang {
  gap: 6px;
  background: #1f2933;
  font-size: 17px;
}

.f-hang span {
  width: 16px;
  height: 25px;
  border-bottom: 2px solid #fff;
}

/* Cloze Text */
.f-cloze {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 10px 16px;
  background: #f4f1ea;
}

.f-cloze .row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.f-cloze .bar {
  height: 7px;
  border-radius: 4px;
  background: #c9c2b4;
}

.f-cloze .gap {
  flex: 0 0 32px;
  height: 15px;
  border: 2px solid #1875d0;
  border-radius: 3px;
  background: #fff;
}

/* Flashcards */
.f-flash {
  background: #5b4a9e;
}

.f-flash .c1,
.f-flash .c2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 60px;
  border-radius: 6px;
}

.f-flash .c1 {
  background: #cfc6f0;
  transform: translate(-60%, -52%) rotate(-8deg);
}

.f-flash .c2 {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #2b2a28;
  font-size: 16px;
  transform: translate(-42%, -46%) rotate(4deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Crossword */
.f-cross {
  background: #26436e;
}

.f-cross .g {
  display: grid;
  grid-template-columns: repeat(5, 19px);
  grid-auto-rows: 19px;
  gap: 2px;
}

.f-cross .g span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: #fff;
  color: #2b2a28;
  font-size: 12px;
}

.f-cross .g .e {
  visibility: hidden;
}

/* Scatter Sheets */
.f-scatter {
  background: #e4572e;
}

.f-scatter span {
  position: absolute;
  font-size: 13px;
}

.f-scatter .s1 { top: 12%; left: 10%; transform: rotate(-12deg); }
.f-scatter .s2 { top: 16%; right: 10%; transform: rotate(9deg); }
.f-scatter .s3 { top: 42%; left: 40%; transform: rotate(-4deg); font-size: 16px; }
.f-scatter .s4 { bottom: 12%; left: 14%; transform: rotate(8deg); }
.f-scatter .s5 { bottom: 10%; right: 12%; transform: rotate(-10deg); }

/* Picture Quiz */
.f-picq {
  gap: 9px;
  background: #dcebfa;
}

.f-picq .pic {
  position: relative;
  flex: 0 0 54px;
  height: 54px;
  border-radius: 6px;
  background: #5db4f0;
}

.f-picq .pic::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #ffd84d;
  box-shadow: 0 0 0 4px rgba(255, 216, 77, 0.35);
}

.f-picq .inp {
  min-width: 62px;
  padding: 4px 9px;
  border: 2px solid #1875d0;
  border-radius: 5px;
  background: #fff;
  color: #2b2a28;
  text-align: left;
}

/* Categorise */
.f-cat {
  gap: 10px;
  background: #f4f1ea;
}

.f-cat .col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.f-cat .hd,
.f-cat .w {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.f-cat .hd1 {
  background: #e4572e;
}

.f-cat .hd2 {
  background: #2e9e5b;
}

.f-cat .w {
  background: #fff;
  color: #2b2a28;
  box-shadow: 0 1px 0 #d6cebf;
}

/* Ranking */
.f-rank {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding-left: 26px;
  background: #26436e;
}

.f-rank .r {
  display: flex;
  align-items: center;
  gap: 7px;
}

.f-rank .n {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #f6c453;
  color: #2b2a28;
  font-size: 11px;
  line-height: 19px;
}

.f-rank .b {
  height: 9px;
  border-radius: 5px;
  background: #fff;
}

/* Secret Role Plays */
.f-role {
  gap: 9px;
  background: #1f2933;
}

.f-role .card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 60px;
  height: 72px;
  padding: 7px;
  border-radius: 5px;
  background: #fff;
  text-align: left;
}

.f-role .lab {
  color: #1875d0;
  font-size: 11px;
  line-height: 1;
}

.f-role .bar {
  height: 5px;
  border-radius: 3px;
  background: #c9ced4;
}

.f-role .short {
  width: 60%;
}

.f-role .hid {
  background: #3a4654;
}

.f-role .hid .lab {
  color: #9fb3c8;
}

.f-role .qm {
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}

/* Sentence Transformation */
.f-trans {
  flex-direction: column;
  gap: 1px;
  background: #e9e3d8;
  color: #2b2a28;
  font-size: 13px;
}

.f-trans .arr {
  color: #1875d0;
  line-height: 1.1;
}

.f-trans .blank {
  width: 30px;
  height: 15px;
}

/* Conversation Cards */
.f-conv {
  flex-direction: column;
  gap: 5px;
  background: #1f8a8a;
}

.f-conv .tag {
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 9px;
  letter-spacing: 0.8px;
}

/* Random Topics */
.f-topic {
  background: #f6c453;
  color: #2b2a28;
  font-size: 24px;
}

/* Story Cards: four little pictures in order */
.f-story {
  gap: 6px;
  background: #f4f1ea;
}

.f-story .s {
  position: relative;
  width: 32px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.14);
}

.f-story .s span {
  position: absolute;
}

/* 1: sunny morning */
.f-story .a { background: #7cc4f5; }
.f-story .a span { top: 7px; left: 7px; width: 14px; height: 14px; border-radius: 50%; background: #ffd84d; }
.f-story .a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 12px; background: #4fae62; }

/* 2: a house */
.f-story .b { background: #cfe9d4; }
.f-story .b span { bottom: 6px; left: 6px; width: 16px; height: 13px; background: #e4572e; }
.f-story .b::after { content: ""; position: absolute; bottom: 19px; left: 3px; border-style: solid; border-width: 0 11px 10px 11px; border-color: transparent transparent #26436e transparent; }

/* 3: rain */
.f-story .c { background: #9fb3c8; }
.f-story .c span { top: 8px; left: 4px; width: 20px; height: 10px; border-radius: 6px; background: #fff; }
.f-story .c::after { content: ""; position: absolute; top: 24px; left: 7px; width: 2px; height: 7px; border-radius: 1px; background: #1875d0; box-shadow: 6px 3px 0 #1875d0, 12px 0 0 #1875d0; }

/* 4: night */
.f-story .d { background: #26436e; }
.f-story .d span { top: 8px; left: 9px; width: 13px; height: 13px; border-radius: 50%; background: #ffe9a8; }
.f-story .d::after { content: ""; position: absolute; top: 28px; left: 6px; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 14px 4px 0 #fff, 6px 9px 0 #fff; }

/* Fortune Telling */
.f-fortune {
  gap: 7px;
  background: #33275f;
}

.f-fortune .s {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 50px;
  border: 1.5px solid #f6c453;
  border-radius: 4px;
  background: #4b3b8f;
  color: #f6c453;
  font-size: 15px;
}

.f-fortune .up {
  transform: translateY(-5px);
}

/* What Happens Next? */
.f-video {
  gap: 12px;
  background: #1f2933;
}

.f-video .play {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}

.f-video .play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -4px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #1f2933;
}

.f-video .qm {
  color: #f6c453;
  font-size: 32px;
  line-height: 1;
}

.f-video .prog {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e4572e 0 45%, #4b5563 45%);
}

/* Sound Quizzes */
.f-sound {
  gap: 5px;
  background: #e4572e;
}

.f-sound span {
  width: 7px;
  border-radius: 3px;
  background: #fff;
}

/* Minimal Pairs */
.f-pairs {
  gap: 7px;
  background: #dcebfa;
}

.f-pairs .chip {
  padding: 3px 9px;
  border-radius: 6px;
  background: #fff;
  color: #26436e;
  font-size: 15px;
}

.f-pairs .or {
  color: #5b6b7d;
  font-size: 11px;
  font-weight: 400;
}

/* Describe the Picture */
.f-scene {
  padding: 0;
  background: linear-gradient(180deg, #7cc4f5, #d5efff);
}

.f-scene .sun {
  position: absolute;
  top: 12px;
  right: 22%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffd84d;
}

.f-scene .h1,
.f-scene .h2 {
  position: absolute;
  border-radius: 50%;
}

.f-scene .h1 {
  top: 50px;
  left: -18%;
  width: 90%;
  height: 160px;
  background: #4fae62;
}

.f-scene .h2 {
  top: 60px;
  right: -22%;
  width: 80%;
  height: 160px;
  background: #2e9e5b;
}

/* Countdown Letters */
.f-count {
  gap: 2px;
  padding: 8px 4px;
  background: #1b4fa8;
}

.f-count span {
  flex: 0 1 17px;
  height: 25px;
  border: 1px solid #9cc0ff;
  border-radius: 2px;
  background: #2f6fd6;
  font-size: 12px;
  line-height: 23px;
}

/* Grammar Photosets */
.f-photo {
  padding: 0;
  background: linear-gradient(160deg, #ffb86b, #e4572e 60%, #8e44ad);
}

.f-photo .sun {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  background: #ffe9a8;
}

.f-photo .cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #2b2a28;
  font-size: 11px;
}

/* Word Ladders */
.f-ladder {
  flex-direction: column;
  background: #e9e3d8;
  color: #2b2a28;
  font-family: Consolas, Menlo, monospace;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 5px;
}

.f-ladder .hl {
  display: inline;
  color: #e4572e;
}

/* What Time Is It? */
.f-clock {
  background: #dcebfa;
}

.f-clock .c {
  position: relative;
  width: 70px;
  height: 70px;
  border: 3px solid #26436e;
  border-radius: 50%;
  background: #fff;
}

.f-clock .h,
.f-clock .m {
  position: absolute;
  bottom: 50%;
  left: 50%;
  border-radius: 2px;
  background: #26436e;
  transform-origin: bottom center;
}

.f-clock .h {
  width: 4px;
  height: 17px;
  margin-left: -2px;
  transform: rotate(-60deg);
}

.f-clock .m {
  width: 2px;
  height: 26px;
  margin-left: -1px;
  background: #e4572e;
  transform: rotate(60deg);
}

/* Map Quizzes: a globe with two countries picked out */
.f-map {
  background: #dcebfa;
}

.f-map .g {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  background: #5db4f0;
  box-shadow: inset -8px -6px 0 rgba(38, 67, 110, 0.18);
}

.f-map .g span {
  position: absolute;
  background: #6fbf73;
}

.f-map .b1 { top: 8px; left: 6px; width: 30px; height: 24px; border-radius: 60% 40% 55% 45%; }
.f-map .b2 { top: 14px; left: 40px; width: 20px; height: 22px; border-radius: 45% 55% 40% 60%; background: #e4572e !important; }
.f-map .b3 { top: 38px; left: 16px; width: 26px; height: 30px; border-radius: 50% 60% 45% 55%; }
.f-map .b4 { top: 42px; left: 48px; width: 18px; height: 16px; border-radius: 55% 45% 60% 40%; background: #e4572e !important; }

/* Giving Directions */
.f-road {
  padding: 0;
  background: #a9d39e;
}

.f-road .h,
.f-road .v {
  position: absolute;
  background: #f1f3f5;
}

.f-road .h {
  top: 50%;
  right: 0;
  left: 0;
  height: 14px;
  margin-top: -7px;
}

.f-road .v {
  top: 0;
  bottom: 0;
  left: 30%;
  width: 14px;
}

.f-road .v2 {
  left: 68%;
}

.f-road .car {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 14px;
  height: 8px;
  margin-top: -4px;
  border-radius: 3px;
  background: #e4572e;
}

.f-road .pin {
  position: absolute;
  top: 12%;
  left: 82%;
  width: 12px;
  height: 12px;
  border: 3px solid #26436e;
  border-radius: 50% 50% 50% 0;
  background: #fff;
  transform: rotate(-45deg);
}

/* Spin the Wheel */
.f-wheel {
  background: #e9e3d8;
}

.f-wheel .w {
  position: relative;
  width: 68px;
  height: 68px;
  margin-top: 8px;
  border-radius: 50%;
  background: conic-gradient(#e4572e 0 60deg, #f6c453 60deg 120deg, #2e9e5b 120deg 180deg, #1875d0 180deg 240deg, #8e44ad 240deg 300deg, #1f8a8a 300deg 360deg);
}

.f-wheel .w::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
}

.f-wheel .p {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 1;
  margin-left: -6px;
  border-style: solid;
  border-width: 10px 6px 0 6px;
  border-color: #26436e transparent transparent transparent;
}

/* Whiteboard */
.f-board {
  padding: 8px;
  background: #cfd4da;
}

.f-board .b {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 4px;
  background: #fff;
  color: #1875d0;
  font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", "Chalkboard SE", cursive, sans-serif;
  font-size: 21px;
}

.f-board .b span {
  border-bottom: 2px solid #e4572e;
  line-height: 1.1;
}

/* Timers */
.f-timer {
  background: #1f2933;
  color: #7cffb2;
  font-family: Consolas, Menlo, monospace;
  font-size: 32px;
  letter-spacing: 2px;
}

/* ---------- Bottom ---------- */

.mainCenter .hp p.hp-note {
  max-width: none;
  margin: 28px 0 0;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
}

.hp .hp-note a {
  color: #1875d0;
  font-weight: 600;
  text-decoration: none;
}

.hp .hp-note a:hover {
  text-decoration: underline;
}

.hp-ad {
  max-width: 100%;
  margin: 30px 0 0;
  overflow: hidden;
  text-align: center;
}

.hp .hp-ad-label {
  margin: 0 0 6px;
  color: #6c757d;
  font-size: 12px;
}

.hp-ad .adsbygoogle {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1000px) {
  .hp-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hp-hero {
    padding-top: 18px;
  }

  .hp .hp-hero h1 {
    font-size: 23px;
  }

  .hp h2 {
    display: block;
    margin: 0 0 2px;
  }

  .mainCenter .hp p.hp-group-intro {
    display: block;
  }

  .hp-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hp-tile-title {
    font-size: 14px;
  }

  .hp {
    --face-h: 96px;
  }

  .f-track .g {
    grid-template-columns: repeat(5, 23px);
    grid-auto-rows: 23px;
    gap: 3px;
  }

  .f-track .g .p1::after,
  .f-track .g .p2::after {
    top: 4px;
    left: 4px;
    width: 15px;
    height: 15px;
  }

  .f-gap {
    font-size: 12px;
  }

  .f-gap .blank {
    width: 30px;
  }
}
