@font-face {
  font-family: "Noto Sans Telugu";
  src: url(/assets/noto-sans-telugu.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/assets/barlow-regular.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/assets/barlow-semibold.ttf) format("truetype");
  font-weight: 500 800;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg:#f8f9f7;
  --surface:#fff;
  --text:#222b25;
  --muted:#626e65;
  --line:#dce2db;
  --accent:#30624a;
  --accent-soft:#e6eee8;
  --button-text:#fff;
  --focus:#306b4f;
  --bulma-family-primary:Barlow,sans-serif;
  --bulma-primary-h:149deg;
  --bulma-primary-s:34%;
  --bulma-primary-l:29%;
  --bulma-primary-invert-l:100%;
  font-family: Barlow, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
@media (prefers-color-scheme:dark) {
  :root {
    --bg:#171a18;
    --surface:#202521;
    --text:#e5ebe6;
    --muted:#a7b3aa;
    --line:#39433b;
    --accent:#a8d3b9;
    --accent-soft:#2b3c31;
    --button-text:#172a20;
    --focus:#b3d7bd;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
input {
  caret-color: var(--accent);
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--text);
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -.025em;
}
button {
  color: var(--text);
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--surface);
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 38px;
  max-width: 1184px;
  padding: 26px 32px;
  margin: auto;
}
.brand {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.brand > span {
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 26px;
}
.site-nav > a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
}
.site-nav > a[aria-current=page] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}
.button {
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  min-height: 44px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}
.button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.button.is-primary {
  background: var(--accent);
  color: var(--button-text);
  border-color: transparent;
}
.button.is-primary:hover {
  filter: brightness(1.07);
}
.button.is-text {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  text-decoration: none;
}
.button.is-text:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.player-button {
  margin-left: auto;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  font-size: 13px;
  min-height: 38px;
}
.input,
.select select {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
  border-radius: 8px;
  min-height: 46px;
  font-size: 15px;
}
.input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: none;
}
.select:not(.is-multiple):not(.is-loading)::after {
  border-color: var(--muted);
}
main {
  max-width: 1184px;
  margin: 0 auto;
  padding: 55px 32px 48px;
  min-height: calc(100dvh - 185px);
}
.browse-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}
.browse-heading h1 {
  font-size: 38px;
  line-height: 1.15;
}
.browse-heading p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 16px;
}
.search-field {
  max-width: 300px;
  width: 100%;
}
.search-field input {
  padding-inline: 16px;
}
.catalogue-tools {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.category-list {
  display: flex;
  gap: 6px;
  overflow: auto;
  scrollbar-width: none;
  padding: 3px 0;
}
.category-button {
  font-size: 14px;
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  min-height: 42px;
}
.category-button[aria-pressed=true] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.category-button:hover {
  color: var(--text);
}
.sort-field select {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 4px;
  min-height: 44px;
  max-width: 130px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
.game-card {
  position: relative;
  min-width: 0;
}
.game-preview {
  aspect-ratio: 1.5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: var(--preview-bg,#dde8e4);
  isolation: isolate;
  transition: filter .18s;
}
.game-preview:hover {
  filter: brightness(.96);
}
.game-preview img {
  max-width: 70%;
  max-height: 78%;
  object-fit: contain;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.game-preview:hover img {
  transform: translateY(-4px);
}
.game-preview.racer {
  background: #d2e3df;
}
.game-preview.racer img {
  width: 78%;
  max-width: 85%;
  max-height: 90%;
  filter: drop-shadow(0 14px 11px #15342c20);
}
.game-preview.orbital {
  background: #222e48;
}
.game-preview.orbital img {
  width: 32%;
  transform: rotate(-12deg);
  filter: drop-shadow(0 12px 16px #080f22a0);
}
.game-preview.orbital:hover img {
  transform: rotate(-12deg) translateY(-4px);
}
.game-preview.mosslight {
  background: #d4e9bf;
}
.game-preview.mosslight img {
  width: 34%;
  position: relative;
  z-index: 2;
  align-self: center;
}
.preview-land {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: #abc98a;
}
.game-preview.mosslight .preview-tile {
  position: absolute;
  width: 64%;
  max-width: 64%;
  height: 64px;
  max-height: 64px;
  object-fit: fill;
  bottom: 13%;
  left: 18%;
  z-index: 1;
}
.game-preview.prism {
  background: #e7def2;
}
.brick-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  width: 70%;
  transform: rotate(-8deg);
}
.brick-preview > span {
  height: 22px;
  background: #a99bcd;
  border-radius: 5px;
}
.brick-preview > span:nth-child(n+5) {
  background: #d09db7;
}
.brick-preview > span:nth-child(n+9) {
  background: #e0ba85;
}
.brick-preview > span:nth-child(4) {
  opacity: 0;
}
.brick-preview > span:nth-child(8) {
  opacity: .6;
}
.preview-paddle {
  position: absolute;
  width: 27%;
  height: 10px;
  bottom: 17%;
  background: #7c64a3;
  border-radius: 6px;
}
.preview-ball {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  right: 24%;
  bottom: 28%;
}
.game-preview.merge {
  background: #eee7d9;
}
.tile-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  transform: rotate(-7deg);
  width: 55%;
}
.tile-preview > span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #dbcaab;
  color: #685b42;
  border-radius: 7px;
  font-size: clamp(20px, 2.5vw, 31px);
  font-weight: 600;
}
.tile-preview > span:nth-child(2) {
  background: #c2a56b;
  color: #fff;
}
.tile-preview > span:nth-child(5) {
  background: #e2d6bf;
}
.tile-preview > span:nth-child(6) {
  background: #aa7f4d;
  color: #fff;
}
.game-card-content {
  padding: 17px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.game-card-content h2 {
  font-size: 19px;
  line-height: 1.3;
}
.game-card-content p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.game-card-content > div {
  flex: 1;
}
.save-game {
  border: 0;
  padding: 6px 0 6px 10px;
  min-height: 38px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
}
.save-game[aria-pressed=true] {
  color: var(--accent);
  font-weight: 600;
}
.save-game:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.browse-bottom {
  margin-top: 43px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.browse-bottom .button {
  margin-left: auto;
}
.site-footer {
  max-width: 1184px;
  margin: 0 auto;
  padding: 22px 32px 30px;
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer > span {
  margin-right: auto;
}
.empty-state,
.loading-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty-state h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.empty-state p {
  margin-bottom: 20px;
}
.empty-state .button {
  margin-top: 14px;
}
.error-message {
  padding: 25px;
  background: var(--surface);
  border-radius: 12px;
  color: var(--text);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity .15s, transform .15s;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 14px;
  max-width: calc(100vw - 32px);
  text-align: center;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 400px;
}
dialog::backdrop {
  background: #101a1659;
}
dialog h2 {
  font-size: 23px;
  margin-bottom: 24px;
}
dialog label {
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.score-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 26px 0;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.score-table th {
  color: var(--muted);
  font-weight: 400;
  text-align: left;
}
.score-table th,
.score-table td {
  padding: 17px 10px;
  border-bottom: 1px solid var(--line);
}
.score-table td:last-child,
.score-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.score-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 20px;
}
.about-copy {
  max-width: 640px;
}
.about-copy h1 {
  font-size: 34px;
  margin-bottom: 25px;
}
.about-copy p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}
.about-copy .button {
  margin-top: 20px;
}
.about-copy h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 12px;
}
.page-guide {
  max-width: 1184px;
  margin: 0 auto;
  padding: 12px 32px 48px;
}
.page-guide[hidden] {
  display: none;
}
.guide-copy {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  line-height: 1.75;
}
.guide-copy > p {
  max-width: 72ch;
  color: var(--muted);
  margin: 0 0 16px;
}
.guide-copy h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -.02em;
}
.guide-copy h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 22px 0;
  font-size: 14px;
  color: var(--accent);
}
.genre-links a,
.breadcrumbs a,
.seo-game-list a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.seo-game-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 40px;
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.seo-game-list > li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.seo-game-list a {
  font-size: 17px;
  font-weight: 600;
}
.seo-game-list p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 65ch;
}
.seo-initial h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 15px;
}
.seo-initial > p {
  max-width: 72ch;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 20px;
}
.seo-unavailable {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
@media (max-width:600px) {
  .page-guide {
    padding: 12px 20px 32px;
  }
  .seo-game-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .guide-copy h2 {
    font-size: 22px;
  }
  .seo-initial h1 {
    font-size: 30px;
  }
  .genre-links {
    gap: 12px 20px;
  }
}
body[data-playing=true] .site-header,
body[data-playing=true] .site-footer {
  display: none;
}
body[data-playing=true] main {
  padding: 20px 28px;
  max-width: 1260px;
  min-height: 100dvh;
}
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.player-header h1 {
  font-size: 22px;
}
.player-header > a {
  font-size: 14px;
  color: var(--muted);
  min-width: 80px;
}
.player-scores {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  min-width: 150px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.player-scores b {
  display: block;
  font-size: 20px;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stage {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: #142330;
  isolation: isolate;
  max-height: calc(100dvh - 170px);
  width: 100%;
  touch-action: none;
}
.canvas-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.canvas-mount canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
  touch-action: none;
}
.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 26px;
  background: #14222bbd;
  color: #fff;
  text-align: center;
}
.game-overlay[hidden] {
  display: none;
}
.overlay-content {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.overlay-content h2 {
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.overlay-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #e6eef1;
  margin-bottom: 22px;
  max-width: 360px;
}
.overlay-content .button.is-primary {
  background: #e8f0e7;
  color: #263f2c;
  min-width: 150px;
}
.overlay-content .button {
  background: transparent;
  color: #fff;
  border-color: #ffffff80;
}
.overlay-content small {
  margin-top: 14px;
  font-size: 13px;
  color: #d5e4dd;
}
.end-score {
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  margin: 3px 0 24px;
  font-variant-numeric: tabular-nums;
}
.end-actions {
  display: flex;
  gap: 10px;
}
.score-submit {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.score-submit .input {
  max-width: 170px;
  color: #fff;
  border-color: #ffffff70;
  background: #10251f90;
}
.score-submit .button {
  min-width: 0;
}
.player-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
}
.player-controls .button {
  font-size: 13px;
  min-height: 40px;
}
.control-help {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  max-width: 620px;
}
.touch-controls {
  position: absolute;
  inset: auto 18px 18px;
  display: none;
  z-index: 3;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.touch-group {
  display: flex;
  gap: 10px;
}
.touch-controls button {
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  min-width: 58px;
  height: 56px;
  background: #f9fcf0cf;
  color: #1b3028;
  border: 1px solid #ffffff60;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}
.touch-controls button:active {
  background: #fff;
}
.touch-controls button[data-key=action] {
  padding-inline: 16px;
  font-size: 13px;
}
.stage:fullscreen {
  width: 100vw;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}
.game-loading {
  color: #e6eef1;
  font-size: 14px;
  margin-top: 16px;
}
.player-error {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
}
.player-error p {
  margin: 18px 0;
  color: var(--muted);
}
@media (pointer:coarse) {
  .touch-controls {
    display: flex;
  }
  .keyboard-hint {
    display: none;
  }
}
@media (min-width:1500px) {
  body[data-playing=true] main {
    max-width: 1380px;
  }
  .stage {
    max-height: calc(100dvh - 165px);
  }
}
@media (max-width:900px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .browse-heading h1 {
    font-size: 34px;
  }
  .site-header {
    gap: 28px;
  }
  .search-field {
    max-width: 250px;
  }
  .control-help {
    max-width: 440px;
  }
  .brick-preview > span {
    height: 25px;
  }
  .tile-preview > span {
    font-size: 30px;
  }
}
@media (max-width:600px) {
  .site-header {
    padding: 20px;
    gap: 18px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 25px;
  }
  .player-button {
    font-size: 12px;
    max-width: 120px;
    order: 1;
  }
  .site-nav {
    order: 2;
    width: 100%;
    gap: 24px;
    padding-top: 5px;
  }
  .site-nav > a {
    font-size: 15px;
  }
  .site-header > .brand {
    order: 0;
  }
  main {
    padding: 30px 20px 32px;
    min-height: calc(100dvh - 210px);
  }
  .browse-heading {
    display: block;
    margin-bottom: 20px;
  }
  .browse-heading h1 {
    font-size: 32px;
  }
  .browse-heading p {
    font-size: 15px;
    margin-top: 9px;
  }
  .search-field {
    max-width: none;
    margin-top: 25px;
  }
  .catalogue-tools {
    margin-bottom: 20px;
    gap: 0;
  }
  .category-list {
    margin-right: -20px;
    padding-right: 20px;
    max-width: calc(100% + 20px);
  }
  .category-button {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 44px;
  }
  .sort-field {
    display: none;
  }
  .game-grid {
    gap: 27px 15px;
  }
  .game-preview {
    aspect-ratio: 1.12;
    border-radius: 12px;
  }
  .game-card-content {
    padding-top: 13px;
    display: block;
  }
  .game-card-content h2 {
    font-size: 17px;
  }
  .game-card-content p {
    font-size: 13px;
    line-height: 1.5;
    min-height: 39px;
    margin-top: 5px;
  }
  .save-game {
    padding: 5px 0;
    font-size: 12px;
    min-height: 32px;
  }
  .game-preview.racer img {
    max-width: 100%;
    width: 100%;
  }
  .game-preview.orbital img {
    width: 47%;
  }
  .game-preview.mosslight img {
    width: 48%;
  }
  .game-preview.mosslight .preview-tile {
    height: 47px;
    bottom: 13%;
  }
  .brick-preview {
    gap: 4px;
    width: 76%;
  }
  .brick-preview > span {
    height: 15px;
    border-radius: 3px;
  }
  .preview-paddle {
    height: 8px;
    bottom: 15%;
  }
  .preview-ball {
    width: 10px;
    height: 10px;
  }
  .tile-preview {
    width: 72%;
    gap: 5px;
  }
  .tile-preview > span {
    font-size: 24px;
    border-radius: 5px;
  }
  .browse-bottom {
    margin-top: 25px;
    gap: 15px;
    font-size: 13px;
  }
  .browse-bottom > .button {
    font-size: 13px;
    padding-inline: 12px;
  }
  .site-footer {
    padding: 20px;
    gap: 20px;
    font-size: 12px;
  }
  .score-tabs {
    gap: 3px;
  }
  .score-tabs button {
    font-size: 12px;
    padding: 9px;
  }
  .score-table {
    font-size: 14px;
  }
  .score-table td,
  .score-table th {
    padding: 15px 6px;
  }
  body[data-playing=true] main {
    padding: 15px 12px;
  }
  .player-header {
    gap: 10px;
    margin-bottom: 14px;
  }
  .player-header h1 {
    font-size: 18px;
    text-align: center;
  }
  .player-header > a {
    min-width: 62px;
    font-size: 13px;
  }
  .player-scores {
    min-width: 100px;
    gap: 13px;
    font-size: 11px;
  }
  .player-scores b {
    font-size: 17px;
  }
  .stage {
    aspect-ratio: 3/4;
    max-height: none;
    border-radius: 10px;
  }
  .player-controls {
    gap: 7px;
    flex-wrap: wrap;
    padding-top: 10px;
  }
  .player-controls .button {
    font-size: 12px;
    min-height: 42px;
    padding-inline: 11px;
  }
  .control-help {
    order: 5;
    flex-basis: 100%;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 7px;
    max-width: none;
  }
  .overlay-content h2 {
    font-size: 30px;
  }
  .overlay-content p {
    font-size: 14px;
    max-width: 290px;
  }
  .overlay-content small {
    font-size: 12px;
  }
  .end-score {
    font-size: 42px;
  }
  .game-overlay {
    padding: 20px;
  }
  .about-copy h1 {
    font-size: 30px;
  }
  .about-copy p {
    font-size: 16px;
  }
  .touch-controls {
    inset: auto 13px 15px;
  }
  .touch-controls button {
    min-width: 53px;
    height: 53px;
  }
}
@media (max-height:600px) and (orientation:landscape) {
  body[data-playing=true] main {
    padding: 8px 16px;
  }
  .player-header {
    margin-bottom: 7px;
  }
  .player-header h1 {
    font-size: 18px;
  }
  .player-scores b {
    font-size: 16px;
  }
  .stage {
    aspect-ratio: auto;
    height: calc(100dvh - 112px);
    max-height: none;
  }
  .control-help {
    display: none;
  }
  .player-controls {
    padding-top: 6px;
  }
  .player-controls .button {
    min-height: 34px;
  }
  .touch-controls {
    inset: auto 16px 14px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.race-hud {
  position: absolute;
  inset: 18px 20px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 2;
  color: #fff;
  font-size: 14px;
  pointer-events: none;
  text-shadow: 0 2px 5px #0008;
}
.race-hud > span:first-child {
  display: flex;
  gap: 5px;
  align-items: baseline;
}
.race-hud b {
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.race-hud small {
  font-size: 12px;
}
.nitro-gauge {
  width: 110px;
}
.nitro-gauge label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.nitro-gauge progress {
  appearance: none;
  display: block;
  border: 0;
  border-radius: 4px;
  height: 5px;
  width: 100%;
  background: #ffffff50;
}
.nitro-gauge progress::-webkit-progress-bar {
  background: #ffffff50;
  border-radius: 4px;
}
.nitro-gauge progress::-webkit-progress-value {
  background: #c3f5ef;
  border-radius: 4px;
}
.nitro-gauge progress::-moz-progress-bar {
  background: #c3f5ef;
  border-radius: 4px;
}
.touch-controls[hidden] {
  display: none;
}
.advanced-hud {
  position: absolute;
  inset: 16px 18px auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
  pointer-events: none;
  color: #fff;
}
.advanced-hud > span {
  background: #142b36bf;
  border-radius: 9px;
  padding: 8px 12px;
  min-width: 85px;
}
.advanced-hud small {
  display: block;
  color: #dce8e6;
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 3px;
}
.advanced-hud b {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.game-notice {
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 5px #000b;
  text-align: center;
  pointer-events: none;
  z-index: 2;
  width: 80%;
}
.touch-stick {
  width: 94px;
  height: 94px;
  position: relative;
  border-radius: 50%;
  background: #192f3f57;
  border: 1px solid #ffffffa0;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.touch-stick > i {
  position: absolute;
  left: 29px;
  top: 29px;
  width: 34px;
  height: 34px;
  background: #f4f9e9de;
  border-radius: 50%;
  transform: translate(var(--x,0px), var(--y,0px));
  pointer-events: none;
}
.touch-stick > span {
  position: absolute;
  bottom: -19px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 11px;
  text-shadow: 0 1px 3px #000b;
}
.touch-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: auto;
}
.touch-buttons:has(+ .touch-stick) {
  margin-left: 0;
}
.touch-buttons > button {
  height: 43px;
  min-width: 62px;
  font-size: 12px;
}
.game-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  z-index: 2;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #23384480;
  pointer-events: none;
}
.game-crosshair::before,
.game-crosshair::after {
  content: "";
  position: absolute;
  background: #fff9;
}
.game-crosshair::before {
  width: 1px;
  height: 15px;
  top: -6px;
  left: 1px;
}
.game-crosshair::after {
  height: 1px;
  width: 15px;
  left: -6px;
  top: 1px;
}
.game-hurt {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 85px #bd554a;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.community-stage iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--surface);
}
.community-credits {
  font-size: 12px !important;
  text-align: right;
}
.community-loading {
  color: var(--muted);
  padding: 40px;
  text-align: center;
}
.community-stage {
  background: var(--surface);
}
.game-preview.apex {
  background: #d5e0dd;
}
.game-preview.apex img {
  width: 85%;
  max-width: 85%;
  max-height: 90%;
  image-rendering: auto;
}
.game-preview.flight {
  background: #d0dce1;
}
.game-preview.flight img {
  width: 80%;
  max-width: 90%;
  max-height: 90%;
}
.game-preview.breach {
  background: #d8d5c5;
}
.game-preview.breach img,
.game-preview.parkour img {
  height: 80%;
  max-height: 85%;
  width: auto;
  max-width: 80%;
}
.game-preview.parkour {
  background: #d9e8cd;
}
.game-preview.marble {
  background: #d9e4e2;
}
.marble-preview {
  width: 66%;
  aspect-ratio: 1;
  border: 9px solid #9b9279;
  border-radius: 11px;
  position: relative;
  transform: rotate(-12deg);
  background: #ece9d8;
}
.marble-preview > i {
  position: absolute;
  background: #b1b8a4;
  height: 8px;
  border-radius: 3px;
  width: 60%;
  top: 25%;
  left: 15%;
}
.marble-preview > i:nth-child(2) {
  top: 53%;
  left: 35%;
  width: 8px;
  height: 38%;
}
.marble-preview > i:nth-child(3) {
  top: 68%;
  left: 4%;
  width: 28%;
}
.marble-preview > b {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #629baf;
  border-radius: 50%;
  left: 14%;
  bottom: 15%;
  box-shadow: 1px 5px 8px #607a6450;
}
.game-preview.q1k3 {
  background: #322d42;
  color: #e0cfbc;
}
.game-preview.underrun {
  background: #192937;
  color: #e9b274;
}
.game-preview.darkroom {
  background: #e8e3d9;
  color: #49453c;
}
.game-preview.city,
.game-preview.hextris {
  background: #d4e4dc;
}
.game-wordmark {
  font-size: 50px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.underrun-wordmark {
  font-size: 32px;
  letter-spacing: .03em;
}
.darkroom-wordmark {
  font-size: 39px;
  line-height: .95;
  font-weight: 400;
}
.game-preview img.full-preview {
  max-width: 100%;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}
@media (max-width:600px) {
  .advanced-hud {
    inset: 12px 12px auto;
    gap: 7px;
  }
  .advanced-hud > span {
    padding: 7px 8px;
    min-width: 0;
    flex: 1;
  }
  .advanced-hud small {
    font-size: 10px;
  }
  .advanced-hud b {
    font-size: 15px;
  }
  .game-notice {
    font-size: 20px;
  }
  .touch-stick {
    width: 85px;
    height: 85px;
    margin-bottom: 13px;
  }
  .touch-stick > i {
    left: 25px;
    top: 25px;
  }
  .touch-controls:has(.touch-stick) {
    inset: auto 12px 20px;
    align-items: flex-end;
  }
  .touch-buttons {
    margin-bottom: 13px;
  }
  .touch-buttons > button {
    min-width: 58px;
    height: 42px;
    font-size: 11px;
  }
  .game-wordmark {
    font-size: 36px;
  }
  .underrun-wordmark {
    font-size: 21px;
  }
  .darkroom-wordmark {
    font-size: 31px;
  }
  .marble-preview {
    width: 75%;
    border-width: 6px;
  }
  .marble-preview > b {
    width: 17px;
    height: 17px;
  }
  .community-credits {
    font-size: 11px !important;
    max-width: 90px;
  }
  .community-stage {
    min-height: 500px;
  }
  .community-stage:fullscreen {
    min-height: 0;
  }
}
.site-nav > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.player-button,
.save-game {
  min-height: 44px;
}
.touch-buttons > button {
  min-height: 44px;
}
.advanced-hud small {
  font-size: 11px;
}
.tfi-collection {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 0 0 36px;
}
.tfi-ticket {
  display: grid;
  place-items: center;
  width: 96px;
  height: 70px;
  flex-shrink: 0;
  border: 1px solid currentColor;
  border-radius: 10px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--accent);
}
.tfi-collection-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}
.tfi-collection-copy strong {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.tfi-collection-copy > span {
  color: var(--muted);
  font-size: 15px;
}
.tfi-collection-action {
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.tfi-page {
  font-family:
    Barlow,
    "Noto Sans Telugu",
    sans-serif;
}
.tfi-page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.tfi-back {
  width: 100%;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 14px;
}
.tfi-page-heading h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.1;
}
.tfi-page-heading p {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.8;
}
.tfi-heading-name {
  margin-left: auto;
  color: var(--muted);
}
.tfi-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.tfi-tabs a {
  padding: 12px 2px;
  min-height: 48px;
}
.tfi-tabs a[aria-current] {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.tfi-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 54px;
}
.tfi-game-art {
  position: relative;
  display: block;
  min-height: 350px;
  overflow: hidden;
  border-radius: 16px;
  background: #17243b;
  color: #fff;
}
.tfi-game-art:hover {
  color: #fff;
}
.tfi-art-score {
  position: absolute;
  top: 24px;
  left: 45%;
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
}
.tfi-art-token {
  position: absolute;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  left: 24%;
  top: 43%;
  background: #f5c86a;
  color: #392515;
  font-size: 24px;
  font-weight: 600;
  transform: rotate(-12deg);
}
.tfi-art-bottle {
  position: absolute;
  right: 20%;
  width: 48px;
  height: 150px;
  background: #b96b25;
  border-radius: 9px;
}
.tfi-art-bottle::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 15px;
  width: 18px;
  height: 28px;
  background: #c88b3e;
  border-radius: 3px 3px 0 0;
}
.tfi-art-bottle::after {
  content: "TFI";
  position: absolute;
  background: #253a59;
  color: #f5d48b;
  inset: 45px 4px 30px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 14px;
}
.tfi-art-bottle-top {
  top: -20px;
  transform: rotate(180deg);
}
.tfi-art-bottle-bottom {
  bottom: -20px;
}
.tfi-art-play {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: #fff;
  color: #24344f;
  border-radius: 7px;
  padding: 12px 18px;
  font-weight: 600;
}
.tfi-feature-copy h2,
.tfi-meme-link h2 {
  font-size: 32px;
  line-height: 1.15;
}
.tfi-feature-copy p {
  max-width: 35ch;
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0;
  font-size: 18px;
}
.tfi-telugu {
  font-family: "Noto Sans Telugu", sans-serif;
}
.tfi-feature-copy .tfi-telugu {
  color: var(--accent);
  font-size: 20px;
}
.tfi-feature-copy small {
  display: block;
  color: var(--muted);
  max-width: 36ch;
  margin-top: 14px;
  line-height: 1.6;
}
.tfi-meme-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tfi-meme-link p {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}
.tfi-meme-link > span {
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.tfi-media {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.tfi-media summary {
  cursor: pointer;
  min-height: 44px;
  font-size: 19px;
  font-weight: 600;
}
.tfi-media > p {
  color: var(--muted);
  margin: 12px 0 24px;
  line-height: 1.6;
}
.tfi-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 26px;
}
.tfi-file {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
.tfi-file > span,
.tfi-file small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.tfi-file input {
  max-width: 100%;
  font-size: 12px;
  color: var(--muted);
}
.tfi-file input::file-selector-button {
  font: inherit;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  margin-right: 8px;
  min-height: 44px;
}
.tfi-file input:focus-visible {
  outline: 3px solid var(--focus);
}
.tfi-file .button {
  padding: 6px 0;
  font-size: 13px;
}
.tfi-playing {
  max-width: 1000px;
  margin: auto;
}
.tfi-playing .tfi-page-heading {
  margin-bottom: 20px;
}
.tfi-playing .tfi-page-heading h1 {
  font-size: 30px;
}
.tfi-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.tfi-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 480/680;
  background: #17243b;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
}
#tfi-canvas {
  position: absolute;
  inset: 0;
}
#tfi-canvas canvas {
  display: block;
  max-width: 100%;
  touch-action: none;
}
.tfi-game-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #0c1428d9;
}
.tfi-game-overlay[hidden] {
  display: none;
}
.tfi-game-overlay > div {
  width: 100%;
  max-width: 380px;
  background: #17243b;
  border: 1px solid #3d4d66;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  color: #fff;
}
.tfi-game-overlay h2 {
  color: #ffd58a;
  font-size: 32px;
  line-height: 1.15;
}
.tfi-game-overlay p {
  color: #d9e0ef;
  line-height: 1.6;
  margin: 12px 0 20px;
}
.tfi-game-overlay .tfi-telugu {
  font-size: 16px;
}
.tfi-game-overlay .button {
  display: flex;
  width: 100%;
  background: #f5c86a;
  color: #392515;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  min-height: 52px;
}
.tfi-game-overlay .tfi-text-link {
  color: #e1e8f4;
  margin-top: 18px;
  font-size: 14px;
}
.tfi-preview-note {
  display: block;
  color: #c4ccdc;
  margin: 0 0 20px;
  font-size: 12px;
}
.tfi-reaction {
  width: 100%;
  height: 170px;
  object-fit: contain;
  border-radius: 10px;
  background: #101b30;
  margin-bottom: 16px;
}
.tfi-reaction-type {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #d5ddeb;
  padding: 24px 12px;
  margin-bottom: 16px;
  background: #23344e;
  border-radius: 10px;
}
.tfi-reaction-type b {
  font-size: 38px;
  font-weight: 600;
}
.tfi-result {
  display: flex;
  justify-content: center;
  gap: 60px;
  background: #23344e;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.tfi-result span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #c4ccdc;
  font-size: 13px;
}
.tfi-result b {
  font-size: 30px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tfi-game-info {
  padding-top: 20px;
}
.tfi-best span {
  color: var(--muted);
  font-size: 14px;
}
.tfi-best b {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 54px;
  line-height: 1.2;
  font-weight: 600;
  margin: 8px 0 30px;
}
.tfi-game-info > p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 35ch;
}
.tfi-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}
.tfi-game-info .tfi-asset-note {
  font-size: 13px;
}
.tfi-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.tfi-meme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.tfi-meme-preview {
  border-radius: 14px;
  overflow: hidden;
  background: #24344f;
}
.tfi-meme-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}
.tfi-meme-controls h2 {
  font-size: 30px;
}
.tfi-meme-controls p {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 20px;
}
.tfi-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.tfi-presets .button {
  font-size: 13px;
}
.tfi-presets [aria-pressed=true] {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.tfi-meme-controls label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.tfi-meme-controls textarea {
  font-family:
    "Noto Sans Telugu",
    Barlow,
    sans-serif;
  padding: 14px;
  resize: vertical;
  line-height: 1.8;
  min-height: 110px;
}
.tfi-meme-controls .tfi-asset-note {
  font-size: 13px;
}
@media (max-width:700px) {
  .tfi-collection {
    gap: 16px;
    padding: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .tfi-ticket {
    width: 68px;
    height: 62px;
    font-size: 28px;
  }
  .tfi-collection-copy {
    min-width: 160px;
  }
  .tfi-collection-copy strong {
    font-size: 19px;
  }
  .tfi-collection-action {
    margin-left: 84px;
  }
  .tfi-heading-name {
    width: 100%;
    margin: 0;
    font-size: 14px;
  }
  .tfi-page-heading {
    gap: 12px;
  }
  .tfi-page-heading p {
    font-size: 14px;
  }
  .tfi-feature-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  .tfi-game-art {
    min-height: 300px;
  }
  .tfi-meme-link {
    align-items: flex-start;
    flex-direction: column;
  }
  .tfi-media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }
  .tfi-game-layout {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
    gap: 20px;
  }
  .tfi-game-info {
    padding: 0;
  }
  .tfi-best {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .tfi-best b {
    font-size: 32px;
    margin: 0;
  }
  .tfi-game-info > p {
    max-width: none;
    margin-top: 14px;
  }
  .tfi-game-actions {
    margin: 18px 0;
  }
  .tfi-meme-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tfi-game-overlay {
    padding: 14px;
  }
  .tfi-game-overlay > div {
    padding: 20px 16px;
  }
  .tfi-game-overlay h2 {
    font-size: 26px;
  }
  .tfi-reaction {
    height: 135px;
  }
  .tfi-reaction-type {
    padding: 18px 10px;
  }
  .tfi-reaction-type b {
    font-size: 30px;
  }
}
@media (max-width:390px) {
  .tfi-media-grid {
    grid-template-columns: 1fr;
  }
  .tfi-game-overlay > div {
    padding: 16px 12px;
  }
  .tfi-game-overlay h2 {
    font-size: 23px;
  }
  .tfi-result {
    padding: 12px;
    margin-bottom: 14px;
  }
  .tfi-reaction {
    height: 100px;
  }
  .tfi-reaction-type {
    padding: 12px;
  }
  .tfi-game-overlay .tfi-telugu {
    margin: 10px 0;
    font-size: 13px;
  }
}
.tfi-editions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 25px;
  margin-bottom: 48px;
}
.tfi-edition {
  min-width: 0;
}
.tfi-edition-art {
  display: block;
  position: relative;
  aspect-ratio: 1.18;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
}
.tfi-edition-world {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.tfi-edition-art:hover .tfi-edition-world {
  transform: scale(1.035);
}
.tfi-edition-hero {
  position: absolute;
  left: 6%;
  bottom: 5%;
  width: 61%;
  height: 81%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(1px 5px 5px #0004);
}
.tfi-edition-obstacle {
  position: absolute;
  right: 10%;
  top: -15%;
  width: 16%;
  height: 65%;
  object-fit: fill;
  transform: rotate(180deg);
}
.tfi-edition-art > span {
  position: absolute;
  right: 15px;
  bottom: 15px;
  padding: 9px 20px;
  min-height: 44px;
  border-radius: 7px;
  background: var(--edition-accent);
  color: #20251f;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
}
.tfi-edition-copy {
  margin-top: 16px;
}
.tfi-edition-copy h2 {
  font-size: 23px;
  line-height: 1.2;
}
.tfi-edition-copy p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 8px;
}
.tfi-edition-copy .tfi-edition-movie {
  color: var(--text);
  font-size: 13px;
  margin-top: 7px;
}
.tfi-game-info > h2 {
  font-size: 24px;
  line-height: 1.2;
}
.tfi-game-info > .tfi-telugu {
  color: var(--accent);
  font-size: 18px;
  margin: 20px 0;
}
.tfi-ready-hero {
  display: block;
  width: 130px;
  height: 138px;
  object-fit: contain;
  margin: 0 auto 20px;
}
.tfi-game-overlay h2 {
  color: var(--tfi-accent,#ffd58a);
}
.tfi-game-overlay .button {
  background: var(--tfi-accent,#f5c86a);
  color: #20251f;
}
.tfi-reaction-cutout {
  background: #23344e;
  object-fit: contain;
  padding: 4px;
}
video.tfi-reaction {
  object-fit: contain;
  background: #101b30;
}
.tfi-version-links {
  display: flex;
  gap: 5px 14px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}
.tfi-version-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.tfi-version-links [aria-current] {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 2px;
}
.tfi-game-info .tfi-audio-status {
  font-size: 13px;
  margin-top: 12px;
}
.tfi-game-info .tfi-audio-status:empty {
  display: none;
}
.tfi-stage:fullscreen {
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
  aspect-ratio: auto;
}
.tfi-game-overlay > div {
  max-height: 100%;
  overflow: auto;
  scrollbar-width: thin;
}
.tfi-meme-controls select {
  height: 48px;
  padding: 8px 12px;
}
.tfi-meme-upload {
  font-size: 14px;
}
.tfi-meme-upload input {
  font-size: 13px;
  max-width: 100%;
}
.tfi-meme-upload input::file-selector-button {
  font: inherit;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-right: 10px;
  cursor: pointer;
}
.tfi-meme-upload span {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.tfi-home-faces {
  display: flex;
  width: 126px;
  min-width: 126px;
  align-self: stretch;
  align-items: flex-end;
  overflow: hidden;
}
.tfi-home-faces img {
  width: 58px;
  height: 78px;
  object-fit: contain;
  object-position: bottom;
  margin-left: -17px;
}
.tfi-home-faces img:first-child {
  margin-left: 0;
}
@media (max-width:900px) {
  .tfi-editions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:700px) {
  .tfi-editions {
    gap: 28px 18px;
  }
  .tfi-edition-copy h2 {
    font-size: 21px;
  }
  .tfi-home-faces {
    display: none;
  }
  .tfi-game-info > .tfi-telugu {
    margin: 15px 0;
  }
  .tfi-ready-hero {
    width: 95px;
    height: 105px;
    margin-bottom: 14px;
  }
}
@media (max-width:480px) {
  .tfi-editions {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .tfi-edition-art {
    aspect-ratio: 1.36;
  }
  .tfi-edition-hero {
    width: 55%;
    height: 86%;
    left: 8%;
  }
  .tfi-edition-copy h2 {
    font-size: 24px;
  }
  .tfi-edition-copy p {
    max-width: 38ch;
  }
}
@media (prefers-reduced-motion:reduce) {
  .tfi-edition-world {
    transition: none;
  }
  .tfi-edition-art:hover .tfi-edition-world {
    transform: none;
  }
}
.game-overlay {
  overflow-y: auto;
}
.overlay-content {
  width: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 3px;
}
.player-header {
  min-width: 0;
  flex-wrap: wrap;
}
.player-header h1 {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.community-stage {
  aspect-ratio: auto;
  height: min(72dvh, 760px);
  max-height: none;
  min-height: 420px;
}
@media (pointer:coarse) {
  .input,
  select,
  textarea {
    font-size: 16px;
  }
}
@media (max-height:600px) and (orientation:landscape) {
  .community-stage {
    height: calc(100dvh - 125px);
    min-height: 220px;
  }
}
.is-unavailable .game-preview,
.is-unavailable .tfi-edition-art {
  filter: grayscale(1);
  opacity: .55;
}
.availability-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.game-preview {
  position: relative;
}
[aria-disabled=true] {
  cursor: not-allowed;
}
.contact-copy label {
  display: block;
  font-size: 15px;
  margin: 20px 0 8px;
}
.contact-copy textarea {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
  min-height: 180px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.contact-copy input {
  font-size: 16px;
}
.contact-copy #contact-status {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 18px;
}
.contact-copy .contact-note {
  font-size: 14px;
  margin-top: 30px;
  max-width: 62ch;
}
.contact-copy .contact-note a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tfi-notice {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  overflow: auto;
  box-shadow: 0 16px 48px rgb(0 0 0 / .14);
}
.tfi-notice::backdrop {
  background: rgb(0 0 0 / .46);
}
.tfi-notice h2 {
  font-family: Barlow, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 18px;
}
.tfi-notice p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 18px;
}
.tfi-notice [lang=te] {
  font-family: "Noto Sans Telugu", sans-serif;
  line-height: 1.9;
}
.tfi-notice .button {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  gap: 7px;
}
.tfi-notice .button span {
  font-size: 14px;
}
.tfi-notice > a {
  display: block;
  text-align: center;
  margin-top: 17px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width:480px) {
  .tfi-notice {
    padding: 24px;
  }
  .tfi-notice p {
    font-size: 14px;
  }
  .tfi-notice .button {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
}
.tfi-banner-card {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  aspect-ratio: 3 / 1;
  background: #102019;
  isolation: isolate;
}
.tfi-discovery-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 1;
}
.tfi-banner-copy {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 30%;
  padding: 22px 0 22px 28px;
  gap: 12px;
  color: #fff;
}
.tfi-banner-copy strong {
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.12;
  letter-spacing: -.025em;
  max-width: 9ch;
  font-weight: 600;
  text-wrap: balance;
}
.tfi-banner-copy > span {
  font-size: 14px;
  line-height: 1.5;
  max-width: 22ch;
}
.tfi-banner-action {
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 600;
}
.tfi-banner-card:hover .tfi-banner-action {
  text-decoration-thickness: 2px;
}
.contact-sent-dialog {
  width: min(410px, calc(100vw - 36px));
  border-radius: 14px;
  padding: 30px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.contact-sent-dialog::backdrop {
  background: rgb(0 0 0 / .4);
}
.contact-sent-dialog h2 {
  font-size: 27px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -.025em;
}
.contact-sent-dialog p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 23px;
}
.contact-sent-dialog .button {
  width: 100%;
}
@media (max-width:700px) {
  .tfi-banner-card {
    aspect-ratio: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .tfi-discovery-banner {
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
  }
  .tfi-banner-copy {
    position: static;
    width: 100%;
    padding: 18px 20px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 18px;
    background: #102019;
  }
  .tfi-banner-copy strong {
    font-size: 22px;
    line-height: 1.15;
    max-width: none;
    grid-column: 1 / -1;
  }
  .tfi-banner-copy > span {
    font-size: 13px;
    max-width: none;
  }
  .tfi-banner-copy .tfi-banner-action {
    margin: 0;
    white-space: nowrap;
  }
}
