/* Interaction refinements: preserve the quiet paper and painted focal point. */
.home .menu-list .resume-game {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  text-align: left;
}
.home .resume-game > svg {
  grid-row: 1 / 3;
  align-self: center;
}
.home .menu-list .resume-game .hint-text {
  grid-column: 2;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}
.painted .btn {
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.12s,
    box-shadow 0.16s;
}
@media (hover: hover) {
  .painted .btn:hover {
    box-shadow: 0 2px 8px #294b4012;
  }
}
.painted .btn:active {
  transform: translateY(1px) scale(0.985);
  background: #e5ebdc;
}
.painted .btn.primary:active {
  background: #19372c;
}
.painted .btn:focus-visible {
  outline-width: 2px;
  outline-offset: 4px;
}
.painted-home .home {
  width: clamp(430px, 32vw, 550px);
  gap: 20px;
}
.painted-home h1 {
  max-width: 12ch;
  margin-inline: auto;
  font-size: clamp(36px, 3.1vw, 56px);
}
html[lang='en'] .painted-home h1 {
  max-width: 15ch;
}
.painted .painted-home .has-resume .menu-list > :last-child {
  grid-column: 1 / -1;
  justify-content: center;
}
.painted .painted-home .menu-list .resume-game {
  display: grid;
  grid-template-columns: 20px 1fr;
  text-align: left;
  column-gap: 12px;
  row-gap: 2px;
  padding: 12px 18px;
}
.painted-home .resume-game > svg {
  grid-row: 1 / 3;
  align-self: center;
}
.painted-home .menu-list .resume-game .hint-text {
  display: block;
  grid-column: 2;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: #e1e9dc;
  margin: 0;
}
.painted-home .lang-row {
  margin-top: 0;
}
.painted .hud-panel[data-status='capture'] {
  border-color: #99574a;
}
.painted .hud-panel[data-human-turn='true'] .status {
  color: #294b40;
  font-weight: 800;
}
.painted .hud-panel[data-status='thinking'] .status {
  color: #526359;
}
.painted .hud-top .player-side {
  color: #526359;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.painted .hud-side .player-side {
  font-size: 12px;
  margin-top: 6px;
}
.painted .count-row .king-ico {
  margin-left: 4px;
}
.painted .counts {
  gap: 3px;
}
.painted .timer {
  border-top: 1px solid #d7dbcc;
  padding-top: 3px;
  min-height: 15px;
}
.painted .banner .pill.warn::before {
  content: '!';
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 11px;
}
.accessible-board {
  position: absolute;
  z-index: 1;
  pointer-events: none !important;
}
.accessible-board button {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  pointer-events: none;
  outline: none;
}
.accessible-board button:focus-visible {
  outline: 3px solid #fff7df;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 6px #294b40;
}
.board-help {
  color: #526359;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}
.board-guide {
  position: absolute;
  pointer-events: none !important;
  color: #294b40;
  background: #faf7eff0;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  overflow: auto;
}
.board-guide[data-room='false'] {
  display: none;
}
.board-coordinates {
  display: block;
  font-variant-numeric: tabular-nums;
}
.tutorial-progress {
  font-size: 11px;
  font-weight: 800;
  color: #526359;
}
.tutorial-select {
  width: 100%;
  margin-top: 4px;
  border: 1px solid #c6cec0;
  border-radius: 8px;
  background: #faf7ef;
  color: #294b40;
  padding: 6px;
  font: 700 12px/1.3 var(--font-ui);
}
.tut-btns:has(.tutorial-prev) .btn {
  font-size: 12px;
  gap: 4px;
  padding-inline: 4px;
}
.tut-btns:has(.tutorial-prev) .btn svg {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.campaign-screen > .card {
  padding-top: 0;
}
.painted .campaign-screen {
  padding-top: 0;
}
.campaign-screen .campaign-summary {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #faf7ef;
  padding-top: 16px;
  border-bottom: 1px solid #d7dbcc;
  padding-bottom: 14px;
}
.campaign-screen .campaign-summary .card-head {
  position: static;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
}
.campaign-screen .campaign-summary p {
  font-size: 13px;
  margin: 0 0 8px;
}
.campaign-map {
  min-height: 1080px;
}
.campaign-screen .campaign-summary .seal-progress {
  gap: 4px;
}
.campaign-chapters {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.campaign-chapters button {
  flex: 1;
  background: #eef0e6;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 5px;
  color: #294b40;
  font: 800 11px/1.3 var(--font-ui);
  cursor: pointer;
}
.map-node .map-status {
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  border: 0;
  color: #526359;
  padding: 0;
}
.map-node.sealed .map-status {
  color: #294b40;
}
.map-node.locked {
  opacity: 0.78;
}
.reward-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #eef0e6;
  margin-top: 16px;
  text-align: left;
  font-size: 13px;
}
.reward-preview img {
  width: 36px;
  height: 42px;
  object-fit: contain;
  flex: none;
}
.reward-preview strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.painted .set[aria-pressed='true'] {
  background: #e6efdf;
  border-width: 2px;
}
.painted .set[aria-pressed='true'] .sub {
  font-weight: 800;
  color: #294b40;
}
.collection-preview .card-head h2 {
  font-size: 23px;
}
.large-pieces {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eddfc5 50%, #a88055 50%);
}
.large-pieces img {
  width: 23%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
}
.actual-pieces {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 18px;
}
.preview-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.preview-boards figure {
  margin: 0;
  text-align: center;
}
.preview-boards canvas {
  display: block;
  width: 100%;
  height: auto;
}
.preview-boards figcaption {
  margin-top: 6px;
  color: #526359;
  font-size: 11px;
  font-weight: 700;
}
.result-detail {
  color: #526359;
  font-size: 12px;
  margin-top: 6px;
}
.opponent-style {
  font-size: 13px;
  color: #526359;
  margin: 8px 0;
}
.painted .result .quote {
  font-size: 14px;
  margin-block: 10px;
}
.loss-help {
  font-size: 14px;
  line-height: 1.5;
  background: #eef0e6;
  border-radius: 10px;
  padding: 12px;
}
.stats-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.stats-filters select {
  flex: 1;
  min-width: 140px;
  padding: 9px 30px 9px 11px;
  border: 1px solid #c6cec0;
  border-radius: 9px;
  font: 700 13px var(--font-ui);
  background: #faf7ef;
  color: #294b40;
}
.recent-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.recent-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e3d7;
  font-size: 13px;
}
.recent-list small {
  display: block;
  color: #526359;
  font-size: 11px;
  margin-top: 3px;
}
.recent-list .outcome {
  align-self: center;
  font-weight: 800;
}
.audio-preview {
  margin-bottom: 14px;
}
.audio-preview .btn {
  margin-top: 8px;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.volume-value {
  font-size: 12px;
  color: #526359;
  width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.set-row .volume-control input[type='range'] {
  width: min(190px, 40vw);
}
.high-contrast.painted {
  --ink: #152c20;
  --ink-soft: #294b40;
  --line: #6a7867;
}
.high-contrast.painted .card,
.high-contrast.painted .hud-panel {
  background: #fffaf0;
  border-color: #526359;
}
.high-contrast.painted .btn:not(.primary):not(.coral) {
  border-color: #526359;
  color: #183d2c;
}
.high-contrast.painted .muted,
.high-contrast.painted .desc,
.high-contrast.painted .note,
.high-contrast.painted .player-side {
  color: #294b40;
}
.high-contrast.painted .btn[disabled] {
  border-style: dashed;
  color: #596653;
}
@media (max-width: 1100px) and (min-aspect-ratio: 5/4) {
  .painted .painted-home {
    background-size: auto 68%;
    background-position: 2% center;
  }
  .painted-home .home {
    width: 46%;
    margin-right: 4vw;
  }
}
@media (max-aspect-ratio: 5/4) {
  .painted-home .home {
    width: min(460px, 100%);
    gap: 12px;
  }
  .painted-home h1 {
    font-size: clamp(30px, 8vw, 42px);
  }
  .painted .painted-home:has(.has-resume) {
    background-size: auto 34dvh;
    background-position: center 21dvh;
  }
  .painted .hud-top .status {
    font-size: 12px;
  }
  .painted .hud-top .name {
    font-size: 16px;
  }
}
@media (max-height: 500px) and (min-aspect-ratio: 5/4) {
  .painted .painted-home {
    padding-block: 12px;
  }
  .painted-home .home {
    gap: 6px;
  }
  .painted-home h1 {
    font-size: 26px;
  }
  .painted .painted-home .menu-list .resume-game {
    padding-block: 7px;
  }
  .painted-home .lang-row {
    margin-top: 0;
  }
}
@media (max-height: 680px) and (max-aspect-ratio: 5/4) {
  .painted .painted-home {
    background-size: auto 25dvh;
    background-position: center 22dvh;
  }
  .painted .painted-home:has(.has-resume) {
    background-size: auto 14dvh;
    background-position: center 24dvh;
  }
  .painted-home h1 {
    font-size: 27px;
  }
  .painted-home .title-card .tagline {
    display: none;
  }
  .painted .painted-home .menu-list .btn {
    min-height: 40px;
    padding: 7px 9px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .painted .btn {
    transition: none;
  }
}
.reduced .btn {
  transition: none;
}
/* Keep the home navigation quiet, including when contrast mode is enabled. */
html.painted .screen.painted-home .title-card,
html.painted .screen.painted-home .home-menu {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.screen.painted-home h1 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.16;
}
.screen.painted-home .title-card .sub {
  display: none;
}
.screen.painted-home .title-card .tagline {
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
}
html.painted .screen.painted-home .menu-list {
  gap: 4px 18px;
}
html.painted .screen.painted-home .menu-list .btn {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
  color: #294b40;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}
html.painted .screen.painted-home .menu-list .btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
html.painted .screen.painted-home .menu-list .btn.primary {
  background: #294b40;
  color: #fffaf0;
  min-height: 56px;
  margin-bottom: 10px;
  padding: 12px 18px;
  border-radius: 12px;
}
html.painted .screen.painted-home .menu-list .btn.primary svg {
  opacity: 1;
}
html.painted .screen.painted-home .menu-list .btn:active {
  background: #e5ebdc;
}
html.painted .screen.painted-home .menu-list .btn.primary:active {
  background: #19372c;
}
html.painted .screen.painted-home .has-resume .menu-list > :last-child {
  margin-top: 8px;
  font-size: 12px;
  color: #526359;
}
@media (hover: hover) {
  html.painted .screen.painted-home .menu-list .btn:not(.primary):hover {
    background: #294b400a;
  }
}
@media (max-width: 420px), (max-height: 500px) {
  .screen.painted-home h1 {
    font-size: 28px;
  }
  html.painted .screen.painted-home .menu-list {
    column-gap: 6px;
  }
  html.painted .screen.painted-home .menu-list .btn {
    font-size: 12px;
    padding: 8px;
  }
  html.painted .screen.painted-home .menu-list .btn.primary {
    min-height: 48px;
    margin-bottom: 4px;
    padding: 8px 12px;
  }
}
@media (max-width: 359px) {
  .tut-btns:has(.tutorial-prev) {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tut-btns:has(.tutorial-prev) .btn {
    width: 100%;
    max-width: none;
  }
}
/* Início com número ímpar de itens: o último ocupa a linha inteira. */
html.painted .screen.painted-home .menu-list > :last-child:nth-child(even) {
  grid-column: 1 / -1;
}
/* Resultado em telas baixas (celular deitado, 320×568): o cartão cabe e os botões ficam sempre visíveis. */
@media (max-height: 600px) {
  .painted .modal-card.result {
    padding: 14px 18px;
  }
  .result-portrait {
    display: none !important;
  }
  .painted .result .big {
    font-size: 26px;
    margin: 2px 0 4px;
  }
  .painted .result .seal {
    margin-top: 8px;
  }
  .painted .result .seal img {
    width: 48px;
    height: 48px;
  }
  .painted .unlock-list {
    margin-top: 8px;
    padding-top: 6px;
  }
  .painted .result .actions {
    position: sticky;
    bottom: 0;
    background: var(--paper);
    padding-top: 8px;
    margin-top: 8px;
  }
}
/* 320 px: descrição do adversário abaixo do nome e segmentos sem quebra de linha. */
@media (max-width: 359px) {
  .painted .difficulty-choices .choice {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .painted .seg {
    display: flex;
  }
  .painted .seg button {
    flex: 1;
    padding-inline: 6px;
    font-size: 13px;
  }
}

/* End of src/experience.css */

/* End of assets/experience-OZcGBhDw.css */
