.shadow-page {
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.9) 0 5%, transparent 20%),
    radial-gradient(circle at 88% 16%, rgba(255,226,111,.45), transparent 23%),
    linear-gradient(180deg, #cfefff 0%, #edfaff 48%, #eff9df 100%);
}
.shadow-site-header { flex: 0 0 auto; }
.shadow-shell {
  flex: 1 1 auto;
  min-height: 0;
  width: min(1220px, calc(100% - 20px));
  margin: 0 auto;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.shadow-shell > .active-child-bar {
  flex: 0 0 auto;
  padding: 0 0 6px;
  background: transparent;
}
.shadow-shell > .active-child-bar .active-child-inner {
  min-height: 48px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.shadow-game-card {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(82,22,140,.1);
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 54px rgba(50,31,72,.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.shadow-game-topbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 12px;
}
.shadow-heading { min-width: 0; }
.shadow-heading h1 {
  margin: 3px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shadow-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b4200;
  font-weight: 1000;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.shadow-round-box {
  min-width: 92px;
  padding: 7px 12px;
  border-radius: 17px;
  text-align: center;
  background: #fff0b3;
  color: #664100;
  box-shadow: inset 0 0 0 2px rgba(255,181,0,.16);
}
.shadow-round-box span { display: block; font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.shadow-round-box strong { display: block; font-size: 1.16rem; line-height: 1.05; }
.shadow-quick-controls { display: flex; gap: 6px; }
.shadow-icon-btn {
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 14px;
  background: #f1e9f8;
  color: var(--purple-dark);
  font-size: 1.18rem;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(82,22,140,.08);
}
.shadow-icon-btn:focus-visible,
.shadow-choice:focus-visible { outline: 4px solid var(--yellow); outline-offset: 2px; }
.shadow-icon-btn:active { transform: scale(.96); }
.shadow-progress {
  flex: 0 0 auto;
  height: 10px;
  margin: 9px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe1f1;
}
.shadow-progress > div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4f9a, #ffd34e, #49b964);
  transition: width .35s ease;
}
.shadow-play-area {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 12px;
}
.shadow-target-panel,
.shadow-options-panel { min-width: 0; min-height: 0; }
.shadow-target-panel { display: flex; }
.shadow-target-zone {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 25px;
  border: 4px dashed rgba(114,39,184,.28);
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.96) 0 19%, transparent 54%),
    linear-gradient(180deg, #e5f7ff 0%, #f8fdff 62%, #dff1c7 62%, #c9e9a8 100%);
  display: grid;
  place-items: center;
  isolation: isolate;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.shadow-target-zone::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 15%;
  height: 12%;
  z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(74,139,62,.2) 0 2px, transparent 2px 8px);
  transform: rotate(-2deg);
}
.shadow-target-zone.drag-over {
  border-color: var(--pink);
  box-shadow: inset 0 0 0 6px rgba(255,79,154,.13), 0 0 0 4px rgba(255,255,255,.8);
  transform: scale(.992);
}
.shadow-target-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--purple-dark);
  font-size: .65rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.shadow-target-image,
.shadow-reveal-image {
  position: absolute;
  inset: 7% 7% 5%;
  width: 86%;
  height: 88%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}
.shadow-target-image {
  filter: brightness(0) saturate(100%) opacity(.78) drop-shadow(0 13px 7px rgba(37,22,48,.18));
  transform: scale(.92);
  transition: opacity .28s ease, transform .28s ease;
}
.shadow-reveal-image {
  z-index: 2;
  filter: drop-shadow(0 12px 7px rgba(37,22,48,.18));
  animation: shadowReveal .48s cubic-bezier(.2,.8,.2,1) both;
}
.shadow-answer-name {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  max-width: 86%;
  padding: 7px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #7227b8, #ff4f9a);
  box-shadow: 0 8px 18px rgba(67,26,93,.22);
  font-weight: 1000;
  font-size: clamp(.82rem, 2vw, 1.1rem);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shadow-sparkles { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.shadow-sparkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: var(--size);
  animation: shadowSparkle .72s ease-out forwards;
}
.shadow-options-panel {
  padding: 10px;
  border-radius: 25px;
  background: linear-gradient(160deg, #fff5c7 0%, #fffdf1 50%, #f4eaff 100%);
  display: flex;
  flex-direction: column;
}
.shadow-options-heading { flex: 0 0 auto; text-align: center; }
.shadow-options-heading h2 { margin: 0 0 2px; font-size: clamp(1rem, 2vw, 1.35rem); }
.shadow-options-heading p { margin: 0 0 7px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.shadow-options {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  align-items: stretch;
}
.shadow-choice {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 5px;
  border: 3px solid rgba(114,39,184,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 9px 20px rgba(70,33,89,.12);
  cursor: grab;
  overflow: hidden;
  touch-action: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.shadow-choice:hover { transform: translateY(-3px); border-color: rgba(114,39,184,.28); }
.shadow-choice:active { cursor: grabbing; transform: scale(.98); }
.shadow-choice[disabled] { cursor: default; }
.shadow-choice img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 5px rgba(48,21,65,.13));
}
.shadow-choice.is-wrong { animation: shadowShake .42s ease; border-color: #ff7d76; }
.shadow-choice.is-correct { border-color: #54c96c; box-shadow: 0 0 0 4px rgba(84,201,108,.18), 0 12px 25px rgba(45,126,64,.22); transform: scale(1.035); }
.shadow-choice.is-muted { opacity: .42; transform: scale(.95); }
.shadow-drag-ghost {
  position: fixed;
  z-index: 5000;
  width: min(150px, 25vw);
  height: min(190px, 30vh);
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(1.04);
  filter: drop-shadow(0 16px 15px rgba(36,15,49,.35));
  opacity: .94;
}
.shadow-feedback {
  flex: 0 0 auto;
  min-height: 39px;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--purple-dark);
  background: #f3eafb;
  text-align: center;
  font-size: .84rem;
}
.shadow-feedback[data-state="wrong"] { color: #8c2e29; background: #ffe7e4; }
.shadow-feedback[data-state="correct"] { color: #236d35; background: #e4f8e8; }
.shadow-win-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(39,17,53,.76);
  backdrop-filter: blur(12px);
}
.shadow-win-modal[hidden] { display: none; }
.shadow-win-card {
  width: min(520px,100%);
  padding: 28px;
  border-radius: 31px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.shadow-win-badge { font-size: 4.6rem; animation: shadowBounce .8s ease infinite alternate; }
.shadow-win-stars { margin: 2px 0 8px; color: #ffc62d; font-size: 2.35rem; letter-spacing: .16em; text-shadow: 0 3px 0 #d78d00; }
.shadow-win-card h2 { margin: 4px 0 8px; }
.shadow-win-card p { color: var(--muted); }
.shadow-win-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 17px 0; }
.shadow-win-stats div { padding: 14px; border-radius: 17px; background: #f6effb; }
.shadow-win-stats strong { display: block; color: var(--purple-dark); font-size: 1.4rem; }
.shadow-win-stats span { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.shadow-win-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shadow-win-actions > * { flex: 1; min-width: 170px; }
.shadow-confetti {
  position: fixed;
  z-index: 1700;
  top: -22px;
  width: 11px;
  height: 17px;
  border-radius: 3px;
  pointer-events: none;
  background: var(--color);
  animation: shadowFall var(--duration) linear forwards;
}
@keyframes shadowShake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
@keyframes shadowReveal { from { opacity: 0; transform: scale(.72) rotate(-5deg); } 70% { transform: scale(1.04) rotate(1deg); } to { opacity: 1; transform: scale(1); } }
@keyframes shadowSparkle { from { opacity: 0; transform: scale(.2) rotate(0); } 45% { opacity: 1; } to { opacity: 0; transform: scale(1.5) rotate(180deg) translateY(-18px); } }
@keyframes shadowBounce { to { transform: translateY(-10px) scale(1.05); } }
@keyframes shadowFall { to { transform: translate(var(--drift), 110vh) rotate(760deg); opacity: .9; } }

@media (orientation: portrait) {
  .shadow-play-area { grid-template-columns: 1fr; grid-template-rows: minmax(0,1.34fr) minmax(0,.86fr); }
  .shadow-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (orientation: landscape) and (max-height: 760px) {
  .shadow-game-card { padding: 8px; border-radius: 22px; }
  .shadow-game-topbar { gap: 8px; }
  .shadow-heading h1 { font-size: 1.15rem; }
  .shadow-eyebrow { display: none; }
  .shadow-round-box { min-width: 80px; padding: 5px 9px; }
  .shadow-icon-btn { width: 39px; height: 39px; }
  .shadow-progress { margin: 6px 0; height: 8px; }
  .shadow-feedback { min-height: 32px; margin-top: 6px; padding: 4px 9px; font-size: .74rem; }
  .shadow-options-panel { padding: 7px; }
  .shadow-options-heading p { display: none; }
  .shadow-options { gap: 6px; }
  .shadow-choice { border-radius: 15px; }
}
@media (max-width: 640px) {
  .shadow-shell { width: min(100% - 10px, 760px); padding-top: 5px; }
  .shadow-game-card { padding: 7px; border-radius: 22px; }
  .shadow-game-topbar { grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .shadow-heading h1 { font-size: 1rem; }
  .shadow-eyebrow { display: none; }
  .shadow-round-box { min-width: 72px; padding: 5px 8px; border-radius: 13px; }
  .shadow-round-box span { font-size: .55rem; }
  .shadow-round-box strong { font-size: .96rem; }
  .shadow-quick-controls {
    grid-column: 1 / -1;
    position: absolute;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 40;
    flex-direction: column;
  }
  .shadow-icon-btn { width: 39px; height: 39px; border-radius: 13px; box-shadow: 0 6px 16px rgba(56,25,77,.17); }
  .shadow-progress { margin: 5px 0; height: 7px; }
  .shadow-play-area { gap: 6px; }
  .shadow-target-zone { border-width: 3px; border-radius: 18px; }
  .shadow-target-hint { top: 5px; padding: 3px 8px; font-size: .54rem; }
  .shadow-answer-name { bottom: 5px; padding: 5px 12px; }
  .shadow-options-panel { padding: 6px; border-radius: 18px; }
  .shadow-options-heading h2 { font-size: .92rem; }
  .shadow-options-heading p { display: none; }
  .shadow-options { gap: 5px; }
  .shadow-choice { padding: 2px; border-width: 2px; border-radius: 13px; }
  .shadow-feedback { min-height: 31px; margin-top: 5px; padding: 4px 54px 4px 8px; font-size: .7rem; }
  .shadow-feedback span { display: none; }
  .shadow-win-card { padding: 24px 18px; }
}
@media (max-height: 570px) {
  .shadow-target-hint, .shadow-options-heading, .shadow-feedback { display: none; }
  .shadow-progress { margin: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shadow-choice, .shadow-target-zone, .shadow-target-image, .shadow-progress > div { transition: none; }
  .shadow-win-badge, .shadow-reveal-image, .shadow-confetti, .shadow-sparkle { animation: none; }
}

/* Android parity port: category menu, 2x2 game board and logical mobile stage. */
@font-face {
  font-family: "Shadow Lilita Local";
  src: url("/assets/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Shadow Baloo Local";
  src: url("/assets/fonts/Baloo2-Variable.ttf") format("truetype");
  font-display: swap;
}

.shadow-page [hidden] { display: none !important; }

body.shadow-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: var(--lila-app-height, 100dvh);
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: #4d285d;
  background: url("/jogos/sombras/assets/scene/shadow-farm-landscape.png") center / cover no-repeat;
  font-family: "Shadow Baloo Local", sans-serif;
}

.shadow-game-root {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  height: var(--lila-app-height, 100dvh);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: url("/jogos/sombras/assets/scene/shadow-farm-landscape.png") center / cover no-repeat;
}

.shadow-game-root .active-child-bar,
.shadow-game-root .progress-sync-badge { display: none !important; }

.shadow-site-header {
  position: relative;
  z-index: 90;
  flex: 0 0 68px;
  min-height: 68px;
  padding: max(7px, var(--lila-safe-top, 0px)) max(10px, var(--lila-safe-right, 0px)) 3px max(10px, var(--lila-safe-left, 0px));
  pointer-events: none;
}

.shadow-back-btn {
  box-sizing: border-box;
  min-width: 126px;
  min-height: 52px;
  padding: 3px 14px 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid #e1a63f;
  border-radius: 17px;
  background: linear-gradient(180deg, #fff9df, #f3dba5);
  color: #572080;
  font-family: "Shadow Baloo Local", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 0 #b96f28, 0 8px 16px rgba(76, 43, 19, .2), inset 0 1px 0 rgba(255, 255, 255, .92);
  pointer-events: auto;
  touch-action: manipulation;
}

.shadow-back-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.shadow-shell {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: min(1220px, calc(100% - 20px));
  min-height: 0;
  margin: 0 auto;
  padding: 6px 0 max(10px, var(--lila-safe-bottom, 0px), env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.shadow-category-menu {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  padding: clamp(8px, 2svh, 16px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(7px, 1.8svh, 15px);
  overflow: hidden;
  border: 3px solid rgba(218, 157, 50, .84);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 230, .9), rgba(250, 236, 194, .84));
  box-shadow: 0 15px 36px rgba(64, 43, 25, .22), inset 0 0 0 2px rgba(255, 255, 255, .72);
}

.shadow-category-menu h1 {
  margin: 0;
  color: #6926a2;
  font-family: "Shadow Lilita Local", "Shadow Baloo Local", sans-serif;
  font-size: clamp(2rem, 7svh, 3.2rem);
  font-weight: 400;
  line-height: .95;
  text-align: center;
  text-shadow: 0 3px 0 #fff7d0, 0 6px 12px rgba(90, 39, 135, .2);
}

.shadow-category-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 18px);
  align-items: stretch;
}

.shadow-category-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 7px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  overflow: hidden;
  border: 3px solid #dfa13a;
  border-radius: 23px;
  background: linear-gradient(145deg, #fffdf2 0%, #f8dfa5 100%);
  color: #572080;
  font-family: "Shadow Baloo Local", sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 0 #bd7429, 0 12px 22px rgba(73, 44, 25, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
  touch-action: manipulation;
}

.shadow-category-card.is-available:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #bd7429, 0 7px 14px rgba(73, 44, 25, .18);
}

.shadow-category-card.is-premium-locked .shadow-category-media { filter: saturate(.72) brightness(.93); }
.shadow-category-card.is-coming-soon { cursor: default; filter: saturate(.78); }
.shadow-category-card:focus-visible { outline: 4px solid #7d35bd; outline-offset: 3px; }

.shadow-category-media {
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid rgba(222, 172, 79, .62);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.shadow-category-media img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 5px;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.shadow-category-card strong {
  min-height: 37px;
  display: grid;
  place-items: center;
  font-size: clamp(.92rem, 2.2vw, 1.24rem);
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.shadow-category-status {
  position: absolute;
  top: 13px;
  right: 13px;
  min-height: 27px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 2px solid #d7a340;
  border-radius: 999px;
  background: rgba(255, 249, 221, .95);
  color: #6b3a00;
  font-size: clamp(.64rem, 1.5vw, .78rem);
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(74, 43, 18, .2);
}

.shadow-category-status img { width: 22px; height: 22px; object-fit: contain; }
.shadow-category-status.is-free { border-color: #55a750; background: rgba(235, 255, 218, .96); color: #285f25; }
.shadow-category-status.is-coming-soon { border-color: #7e3bb2; color: #60238b; }

.shadow-menu-notice {
  margin: 0 auto;
  padding: 6px 16px;
  border: 2px solid #d7a340;
  border-radius: 999px;
  background: rgba(255, 249, 221, .96);
  color: #65278f;
  font-weight: 850;
  text-align: center;
}

body.shadow-page.shadow-playing .shadow-site-header {
  position: absolute;
  z-index: 90;
  top: 8px;
  left: 10px;
  width: 60px;
  height: 60px;
  min-height: 0;
  padding: 0;
}

body.shadow-page.shadow-playing .shadow-back-btn {
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 2px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.shadow-page.shadow-playing .shadow-back-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.shadow-page.shadow-playing .shadow-back-icon { width: 54px; height: 54px; flex-basis: 54px; }

body.shadow-page.shadow-playing .shadow-shell {
  width: 100%;
  height: var(--lila-app-height, 100dvh);
  max-height: var(--lila-app-height, 100dvh);
  flex: 0 0 var(--lila-app-height, 100dvh);
  padding: max(7px, var(--lila-safe-top, 0px)) max(10px, var(--lila-safe-right, 0px)) max(8px, var(--lila-safe-bottom, 0px)) max(10px, var(--lila-safe-left, 0px));
}

body.shadow-page.shadow-playing .shadow-game-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(5px, 1.2svh, 9px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.shadow-page.shadow-playing .shadow-game-topbar {
  min-height: clamp(70px, 18svh, 84px);
  display: grid;
  grid-template-columns: minmax(124px, 14vw) minmax(0, 1fr) minmax(160px, 18vw);
  align-items: start;
  gap: clamp(6px, 1.2vw, 14px);
}

body.shadow-page.shadow-playing .shadow-heading {
  grid-column: 2;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  padding-top: clamp(4px, 1svh, 7px);
}

body.shadow-page.shadow-playing .shadow-heading h1 {
  width: 100%;
  margin: 0;
  color: #6d27a5;
  font-family: "Shadow Lilita Local", "Shadow Baloo Local", sans-serif;
  font-size: clamp(1.35rem, 3.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .95), 0 4px 8px rgba(86, 36, 126, .24);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

body.shadow-page.shadow-playing .shadow-round-box {
  min-width: 0;
  padding: 3px clamp(7px, 1vw, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(211, 153, 55, .82);
  border-radius: 999px;
  background: rgba(255, 246, 207, .92);
  box-shadow: 0 3px 0 rgba(174, 102, 35, .36), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.shadow-progress-dots {
  display: inline-grid;
  grid-template-columns: repeat(9, clamp(20px, 3svh, 26px));
  gap: clamp(4px, .6vw, 7px);
  align-items: center;
}

.shadow-progress-dot {
  position: relative;
  box-sizing: border-box;
  width: clamp(20px, 3svh, 26px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #d49b37;
  border-radius: 50%;
  background: #fff3c9;
  box-shadow: 0 2px 0 rgba(173, 105, 31, .38), inset 0 1px 0 rgba(255, 255, 255, .85);
}

.shadow-progress-dot.is-complete { border-color: #67239d; background: #7b31b7; }
.shadow-progress-dot.is-complete::after { content: "\2713"; color: #fff; font-size: clamp(.68rem, 1.8svh, .9rem); font-style: normal; font-weight: 1000; line-height: 1; }
.shadow-progress-dot.is-current { border-color: #fff; background: #ff73a7; box-shadow: 0 0 0 3px #8b3ac2, 0 3px 7px rgba(104, 36, 147, .28); }
.shadow-progress-dot.is-current::after { content: ""; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.shadow-progress-dot.is-locked::before { content: ""; position: absolute; top: 20%; left: 31%; width: 38%; height: 34%; border: 2px solid #8c6428; border-bottom: 0; border-radius: 999px 999px 0 0; }
.shadow-progress-dot.is-locked::after { content: ""; position: absolute; left: 27%; bottom: 19%; width: 46%; height: 37%; border-radius: 2px; background: #9b7133; }

body.shadow-page.shadow-playing .shadow-quick-controls {
  grid-column: 3;
  display: flex;
  gap: clamp(5px, .8vw, 10px);
  align-items: center;
  justify-content: flex-end;
}

body.shadow-page.shadow-playing .shadow-icon-btn {
  box-sizing: border-box;
  width: clamp(54px, 8svh, 60px);
  height: clamp(54px, 8svh, 60px);
  padding: 2px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  touch-action: manipulation;
}

body.shadow-page.shadow-playing .shadow-icon-btn img {
  width: clamp(46px, 7svh, 52px);
  height: clamp(46px, 7svh, 52px);
  display: block;
  object-fit: contain;
  pointer-events: none;
}

body.shadow-page.shadow-playing .shadow-play-area {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(9px, 1.3vw, 16px);
}

body.shadow-page.shadow-playing .shadow-target-panel,
body.shadow-page.shadow-playing .shadow-options-panel {
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: flex;
  overflow: hidden;
  border: 3px solid #dfa13a;
  border-radius: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(155deg, rgba(255, 253, 239, .97), rgba(250, 232, 186, .95));
  box-shadow: 0 6px 0 #b96f28, 0 11px 22px rgba(72, 44, 23, .22), inset 0 1px 0 rgba(255, 255, 255, .95);
}

body.shadow-page.shadow-playing .shadow-target-zone {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 47%, #fffef7 0 36%, #fff7d8 75%, #f7e0a5 100%);
}

body.shadow-page.shadow-playing .shadow-target-zone::before { display: none; }
body.shadow-page.shadow-playing .shadow-target-hint { top: 8px; padding: 4px 10px; border: 1px solid rgba(213, 159, 61, .42); background: rgba(255, 252, 231, .88); font-size: clamp(.58rem, 1.3vw, .72rem); }

body.shadow-page.shadow-playing .shadow-target-image,
body.shadow-page.shadow-playing .shadow-reveal-image { inset: 6%; width: 88%; height: 88%; object-fit: contain; object-position: center; }

body.shadow-page.shadow-playing .shadow-target-image { filter: brightness(0) saturate(100%) opacity(.82) drop-shadow(0 14px 8px rgba(55, 38, 30, .2)); transform: scale(.98); }
body.shadow-page.shadow-playing .shadow-options-heading { display: none; }

body.shadow-page.shadow-playing .shadow-options {
  flex: 1;
  min-height: 0;
  padding: clamp(6px, 1.2svh, 10px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 1.3svh, 10px);
}

body.shadow-page.shadow-playing .shadow-choice {
  min-width: 0;
  min-height: 0;
  padding: 3px 8px;
  border: 2px solid #dda23a;
  border-radius: clamp(14px, 2vw, 20px);
  background: rgba(255, 254, 244, .96);
  box-shadow: 0 4px 0 #c58231, 0 7px 14px rgba(76, 47, 22, .15);
}

body.shadow-page.shadow-playing .shadow-choice img { width: 100%; height: 100%; max-width: 90%; max-height: 90%; margin: auto; object-fit: contain; object-position: center; }
body.shadow-page.shadow-playing .shadow-choice.is-wrong { border-color: #ef724f; box-shadow: 0 0 0 4px rgba(239, 114, 79, .18), 0 5px 0 #bc5538; }
body.shadow-page.shadow-playing .shadow-choice.is-correct::after { content: "\2713"; position: absolute; top: 6px; right: 8px; width: clamp(24px, 4svh, 32px); aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #4fbd61; color: #fff; font-size: clamp(.9rem, 2.2vw, 1.2rem); font-weight: 1000; box-shadow: 0 3px 7px rgba(40, 105, 49, .25); }

body.shadow-page.shadow-playing .shadow-feedback {
  min-height: clamp(28px, 6svh, 38px);
  margin: 0 auto;
  padding: 3px 13px;
  border: 2px solid rgba(218, 158, 54, .5);
  border-radius: 999px;
  background: rgba(255, 251, 226, .94);
  font-size: clamp(.7rem, 1.5vw, .84rem);
  box-shadow: 0 3px 8px rgba(77, 45, 20, .13);
}

.shadow-overlay,
.shadow-win-modal {
  position: absolute;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
}

.shadow-overlay { background: rgba(55, 24, 72, .65); backdrop-filter: blur(5px); }
.shadow-overlay-card {
  box-sizing: border-box;
  width: min(520px, 92%);
  padding: 22px;
  border: 3px solid #d59a32;
  border-radius: 30px;
  background: linear-gradient(180deg, #fff9df, #f4dfaa);
  text-align: center;
  box-shadow: 0 24px 60px rgba(49, 26, 15, .34), inset 0 0 0 2px rgba(255,255,255,.7);
}

.shadow-pause-art { width: 94px; height: 94px; object-fit: contain; }
.shadow-overlay-card h2 { margin: 2px 0 4px; color: #6d249d; font-family: "Shadow Lilita Local", sans-serif; font-size: 2.2rem; font-weight: 400; }
.shadow-overlay-card p { margin: 0 0 17px; font-weight: 750; }
.shadow-overlay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shadow-overlay-action { min-height: 60px; padding: 5px 12px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 3px solid; border-radius: 17px; font: 900 1.05rem/1 "Shadow Baloo Local", sans-serif; touch-action: manipulation; }
.shadow-overlay-action img { width: 42px; height: 42px; object-fit: contain; }
.shadow-overlay-action.is-primary { border-color: #4d1479; color: #fff; background: linear-gradient(180deg,#9345cd,#68239d); box-shadow: 0 5px 0 #441269; }
.shadow-overlay-action.is-secondary { border-color: #d2962e; color: #672991; background: linear-gradient(180deg,#fff9d9,#f1d79b); box-shadow: 0 5px 0 #b56b28; }
.shadow-game-root.is-paused .shadow-game-card { pointer-events: none; }
.shadow-game-root.is-paused .shadow-reveal-image,
.shadow-game-root.is-paused .shadow-sparkle,
.shadow-game-root.is-paused .shadow-choice { animation-play-state: paused; }

.shadow-win-modal { background: url("/jogos/sombras/assets/victory/shadow-victory-bg.png") center / cover no-repeat; }
#shadow-win-modal .shadow-win-card { position: relative; box-sizing: border-box; width: min(620px, 82vw); height: min(355px, 91svh); max-width: 100%; max-height: 100%; padding: 16px 42px 20px; overflow: hidden; border: 3px solid #d59a32; border-radius: clamp(24px, 4vw, 42px); background: #fff5d7; text-align: center; box-shadow: 0 24px 60px rgba(49, 26, 15, .34), inset 0 0 0 2px rgba(255,255,255,.7); isolation: isolate; }
#shadow-win-modal .shadow-win-card > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: fill; }
#shadow-win-modal .shadow-victory-content { position: relative; z-index: 2; width: 100%; height: 100%; box-sizing: border-box; display: grid; grid-template-rows: 108px 72px 62px; gap: 12px; align-items: center; align-content: center; justify-items: stretch; transform: translateY(-20px); }
#shadow-win-modal .shadow-victory-trophy-row { width: 100%; height: 108px; display: grid; grid-template-rows: 84px 24px; align-items: center; justify-items: center; gap: 0; margin: 0; }
#shadow-win-modal .shadow-victory-trophy-row img { width: 158px; height: 104px; object-fit: contain; margin: 0; filter: drop-shadow(0 7px 7px rgba(84,48,13,.24)); }
#shadow-win-modal #shadow-win-stars { height: 24px; margin: 0; color: #ffc62d; font-size: 24px; line-height: 24px; letter-spacing: .13em; text-shadow: 0 2px 0 #d78d00; }
#shadow-win-modal .shadow-victory-message { width: 100%; height: 72px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin: 0; }
#shadow-win-modal #shadow-win-title { margin: 0; color: #6d249d; font-family: "Shadow Lilita Local", sans-serif; font-size: 29px; font-weight: 400; line-height: 31px; text-align: center; }
#shadow-win-modal .shadow-victory-message p { margin: 0; color: #6b4b75; font-size: 14px; font-weight: 800; line-height: 17px; text-align: center; }
#shadow-win-modal .shadow-win-stats { display: none; }
#shadow-win-modal .shadow-win-actions { width: min(520px, 100%); height: 62px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
#shadow-win-modal .shadow-win-actions > * { box-sizing: border-box; width: 100%; height: 62px; min-width: 0; min-height: 62px; margin: 0; padding: 7px 12px; display: flex; align-items: center; justify-content: center; border-radius: 16px; font: 900 18px/20px "Shadow Baloo Local", sans-serif; }
.shadow-win-actions #shadow-play-again-btn { border: 3px solid #4d1479; color: #fff; background: linear-gradient(180deg,#9345cd,#68239d); box-shadow: 0 5px 0 #441269; }
.shadow-win-actions .secondary-btn { border: 3px solid #d2962e; color: #672991; background: linear-gradient(180deg,#fff9d9,#f1d79b); box-shadow: 0 5px 0 #b56b28; }
.shadow-victory-flower { position: absolute; z-index: 1; width: clamp(72px, 14vw, 174px); aspect-ratio: 1; background: url("/jogos/sombras/assets/victory/shadow-victory-flowers.png") 0 0 / 200% 200% no-repeat; pointer-events: none; transform: scale(.82); }
.shadow-victory-flower-tl { top: -2%; left: -1%; background-position: 0 0; transform-origin: top left; }
.shadow-victory-flower-tr { top: -2%; right: -1%; background-position: 100% 0; transform-origin: top right; }
.shadow-victory-flower-bl { bottom: -2%; left: -1%; background-position: 0 100%; transform-origin: bottom left; }
.shadow-victory-flower-br { right: -1%; bottom: -2%; background-position: 100% 100%; transform-origin: bottom right; }

@media (orientation: landscape) and (max-height: 520px) {
  .shadow-site-header { flex-basis: 58px; min-height: 58px; padding-top: 3px; }
  .shadow-shell { padding-top: 2px; }
  .shadow-category-menu { padding: 6px; gap: 5px; border-radius: 18px; }
  .shadow-category-menu h1 { font-size: clamp(1.65rem, 7.4svh, 2rem); }
  .shadow-category-grid { gap: 7px; }
  .shadow-category-card { padding: 5px; gap: 3px; border-width: 2px; border-radius: 16px; box-shadow: 0 4px 0 #bd7429, 0 7px 14px rgba(73, 44, 25, .18); }
  .shadow-category-media { border-radius: 11px; }
  .shadow-category-card strong { min-height: 29px; font-size: clamp(.82rem, 3.2svh, 1rem); }
  .shadow-category-status { top: 8px; right: 8px; min-height: 22px; padding: 2px 6px; }
  .shadow-category-status img { width: 18px; height: 18px; }
  body.shadow-page.shadow-playing .shadow-game-topbar { min-height: 54px; }
  body.shadow-page.shadow-playing .shadow-heading { padding-top: 0; gap: 2px; }
  body.shadow-page.shadow-playing .shadow-heading h1 { font-size: clamp(1.18rem, 3.1vw, 1.75rem); }
  body.shadow-page.shadow-playing .shadow-round-box { padding-block: 2px; }
  .shadow-progress-dots { grid-template-columns: repeat(9, 20px); gap: 4px; }
  .shadow-progress-dot { width: 20px; }
  body.shadow-page.shadow-playing .shadow-icon-btn { width: 50px; height: 50px; }
  body.shadow-page.shadow-playing .shadow-icon-btn img { width: 44px; height: 44px; }
  body.shadow-page.shadow-playing .shadow-feedback { min-height: 28px; }
  .shadow-overlay-card { width: min(470px, 76%); padding: 10px 18px 14px; }
  .shadow-pause-art { width: 68px; height: 68px; }
  .shadow-overlay-card h2 { font-size: 1.7rem; }
  .shadow-overlay-card p { margin-bottom: 9px; }
  .shadow-overlay-action { min-height: 52px; }
}

@media (max-width: 680px) and (orientation: portrait) {
  .shadow-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shadow-game-root { overflow: auto; }
  body.shadow-page { overflow: auto; }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  html.lila-portable-touch-game:fullscreen body.shadow-page {
    background: #243818;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: -16px;
    background: linear-gradient(rgba(17, 21, 12, .18), rgba(17, 21, 12, .18)), url("/jogos/sombras/assets/scene/shadow-farm-landscape.png") center / cover no-repeat;
    filter: blur(5px) saturate(.9);
    transform: scale(1.035);
    pointer-events: none;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-game-root {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 1280px;
    height: 720px;
    min-width: 1280px;
    min-height: 720px;
    transform: translate(-50%, -50%) scale(var(--shadow-stage-scale, 1));
    transform-origin: center;
    --lila-app-height: 720px;
    --lila-safe-top: 0px;
    --lila-safe-right: 0px;
    --lila-safe-bottom: 0px;
    --lila-safe-left: 0px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-site-header {
    flex-basis: 68px;
    min-height: 68px;
    padding: 7px 10px 3px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-shell {
    width: 1220px;
    padding: 6px 0 10px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-category-menu {
    padding: 16px;
    gap: 15px;
    border-radius: 28px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-category-menu h1 { font-size: 50px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-category-grid { gap: 18px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-category-card { padding: 7px; gap: 6px; border-width: 3px; border-radius: 23px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-category-media { border-radius: 16px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-category-card strong { min-height: 37px; font-size: 20px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-category-status { top: 13px; right: 13px; min-height: 27px; padding: 4px 9px; font-size: 13px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-category-status img { width: 22px; height: 22px; }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-site-header {
    top: 8px;
    left: 10px;
    width: 60px;
    height: 60px;
    min-height: 0;
    padding: 0;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-shell {
    width: 1280px;
    height: 720px;
    max-height: 720px;
    flex-basis: 720px;
    padding: 7px 10px 8px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-game-card {
    grid-template-rows: 84px minmax(0, 1fr) 38px;
    gap: 9px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-game-topbar {
    min-height: 84px;
    grid-template-columns: 180px minmax(0, 1fr) 190px;
    gap: 14px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-heading {
    gap: 5px;
    padding-top: 7px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-heading h1 { font-size: 35px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-round-box { padding: 3px 10px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-progress-dots { grid-template-columns: repeat(9, 26px); gap: 7px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-progress-dot { width: 26px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-icon-btn { width: 60px; height: 60px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-icon-btn img { width: 52px; height: 52px; }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-play-area {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 16px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-target-panel,
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-options-panel {
    border-width: 3px;
    border-radius: 28px;
  }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-target-hint { top: 8px; padding: 4px 10px; display: inline-block; font-size: 12px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-target-image,
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-reveal-image { inset: 6%; width: 88%; height: 88%; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-options { padding: 10px; gap: 10px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-choice { padding: 3px 8px; border-width: 2px; border-radius: 20px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-choice.is-correct::after { width: 32px; font-size: 19px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active.shadow-playing .shadow-feedback { min-height: 38px; padding: 3px 13px; display: flex; font-size: 14px; }

  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-overlay-card { width: 520px; padding: 22px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-pause-art { width: 94px; height: 94px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-overlay-card h2 { font-size: 35px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-overlay-action { min-height: 60px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active #shadow-win-modal .shadow-win-card { width: 620px; height: 355px; }
  html.lila-portable-touch-game:fullscreen body.shadow-page.shadow-mobile-stage-active .shadow-victory-flower { width: 174px; }
}

@media (prefers-reduced-motion: reduce) {
  .shadow-category-card,
  .shadow-overlay-action { transition: none; }
  html.lila-portable-touch-game:fullscreen body.shadow-page::before { filter: brightness(.84); }
}
