:root {
  --ink:#173c40;
  --muted:#647d7b;
  --teal:#126b72;
  --teal-dark:#0a5158;
  --paper:#f7f7ed;
  --line:#dce4d8;
  --gold:#e5af42;
  --white:#fffef8;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:radial-gradient(ellipse at 90% 15%,#e3ecdd 0,transparent 45%),var(--paper);
  min-height:100vh;
}
button,a {
  -webkit-tap-highlight-color:transparent;
}
button {
  font:inherit;
  cursor:pointer;
}
button:disabled {
  cursor:default;
  opacity:.55;
}
a {
  color:inherit;
  text-decoration:none;
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #d38a1e;
  outline-offset:5px;
}
[hidden] {
  display:none!important;
}
.app {
  max-width:1000px;
  margin:auto;
  padding:0 40px;
}
.header {
  height:102px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.brand {
  font-size:25px;
  font-weight:800;
  letter-spacing:-1.1px;
  display:flex;
  align-items:center;
}
.brand-dot,.accent {
  color:var(--teal);
}
.brand-mark {
  display:inline-flex;
  background:var(--teal);
  color:white;
  border-radius:13px;
  width:35px;
  height:39px;
  align-items:center;
  justify-content:center;
  margin-right:10px;
  font-family:Georgia,serif;
  font-size:35px;
  position:relative;
}
.brand-mark span {
  position:absolute;
  color:var(--gold);
  font-size:25px;
  right:2px;
  top:-9px;
}
.header-tools {
  display:flex;
  align-items:center;
  gap:12px;
}
.wallet {
  border:1px solid #e7dbb6;
  background:#fbf3dc;
  border-radius:30px;
  padding:9px 17px;
  min-width:76px;
  text-align:center;
}
.wallet>span {
  color:#ad7610;
  margin-right:6px;
}
.icon-button {
  background:none;
  border:1px solid var(--line);
  color:var(--teal);
  width:42px;
  height:42px;
  border-radius:50%;
  font-size:23px;
  display:inline-grid;
  place-items:center;
}
.screen {
  max-width:660px;
  margin:auto;
  padding:45px 0 25px;
}
.home {
  text-align:center;
  padding-top:55px;
}
.eyebrow {
  font-size:10px;
  letter-spacing:2.1px;
  font-weight:800;
  color:var(--teal);
}
h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(36px,5vw,58px);
  line-height:1.1;
  font-weight:400;
  letter-spacing:-1.9px;
  margin:22px 0;
}
h1 em {
  color:var(--teal);
  font-weight:400;
}
.intro {
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
  margin:14px 0;
}
.hero-letters {
  display:flex;
  gap:9px;
  justify-content:center;
  margin:34px 0 39px;
}
.hero-letters span {
  background:var(--white);
  box-shadow:0 4px 0 #d8e1d4;
  border:1px solid #dce3d7;
  border-radius:11px;
  width:49px;
  height:55px;
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:24px;
  transform:rotate(-8deg);
}
.hero-letters span:nth-child(2n) {
  transform:rotate(7deg);
  background:var(--teal);
  color:white;
  box-shadow:0 4px 0 #0a5158;
}
.hero-letters span:nth-child(3n) {
  transform:translateY(-9px) rotate(-3deg);
}
.home-actions {
  max-width:310px;
  margin:auto;
  display:grid;
  gap:12px;
}
.primary,.secondary {
  border-radius:12px;
  padding:15px 21px;
  font-weight:700;
  font-size:14px;
  min-height:49px;
  border:1px solid var(--teal);
}
.primary {
  background:var(--teal);
  color:white;
  box-shadow:0 3px 0 var(--teal-dark);
}
.primary:hover {
  background:var(--teal-dark);
}
.primary span {
  float:right;
}
.secondary {
  background:transparent;
  color:var(--teal);
  border-color:var(--line);
}
.secondary:hover,.tool:hover {
  background:#e9efdf;
}
.home-stats {
  display:flex;
  justify-content:center;
  gap:35px;
  margin:35px 0 24px;
}
.home-stats>div {
  display:grid;
  gap:6px;
}
.home-stats b {
  font-size:19px;
}
.home-stats span {
  font-size:11px;
  color:var(--muted);
}
.text-button {
  background:none;
  border:0;
  color:var(--teal);
  font-size:12px;
  font-weight:650;
  padding:10px 0;
}
.save-note {
  font-size:11px;
  color:var(--muted);
  line-height:1.6;
}
.section-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}
.level-grid {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin-top:30px;
}
.level-card {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:15px;
  min-height:92px;
  color:var(--ink);
  display:grid;
  place-content:center;
  gap:8px;
}
.level-card b {
  font-size:24px;
  font-family:Georgia,serif;
  font-weight:400;
}
.level-card span {
  color:#b57c16;
  letter-spacing:2px;
  font-size:12px;
}
.level-card.finished {
  background:#e7efdf;
  border-color:#b5cbb4;
}
.level-card:hover {
  border-color:var(--teal);
  transform:translateY(-2px);
}
.game {
  max-width:530px;
  padding-top:20px;
}
.level-label {
  font-size:12px;
  letter-spacing:2px;
  font-weight:700;
}
.level-label span {
  color:#8c9e94;
  font-size:10px;
}
.game-heading {
  text-align:center;
  margin:15px 0 23px;
}
.game-heading h1 {
  font-size:33px;
  letter-spacing:-1px;
  margin:10px 0;
}
.game-heading p {
  font-size:12px;
  color:var(--muted);
  margin:8px 0;
}
.words {
  display:grid;
  justify-content:center;
  gap:9px;
  min-height:52px;
}
.word {
  display:flex;
  justify-content:center;
  gap:7px;
}
.cell {
  height:38px;
  width:37px;
  background:#e8ede1;
  border-bottom:2px solid #c6d4c0;
  border-radius:7px;
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:700;
  color:var(--teal);
}
.word.found .cell {
  background:#dcebd9;
  border-color:#abc6a3;
}
.feedback {
  min-height:47px;
  display:grid;
  place-items:center;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  padding:10px 0;
}
.feedback.success {
  color:var(--teal);
  font-weight:700;
}
.feedback.error {
  color:#a34538;
}
.board {
  width:280px;
  height:280px;
  max-width:100%;
  margin:0 auto;
  position:relative;
  touch-action:none;
  user-select:none;
  border-radius:50%;
  background:radial-gradient(circle,#e6edde 0,#e6edde 66%,transparent 67%);
}
#letters {
  position:absolute;
  inset:0;
}
.letter {
  position:absolute;
  transform:translate(-50%,-50%);
  width:62px;
  height:62px;
  border-radius:19px;
  border:1px solid #ccd9c5;
  background:var(--white);
  color:var(--teal);
  box-shadow:0 4px 0 #c7d4c0;
  font-weight:750;
  font-size:28px;
  padding:0;
  touch-action:none;
}
.letter.selected {
  background:var(--teal);
  color:white;
  border-color:var(--teal);
  box-shadow:0 4px 0 var(--teal-dark);
}
.board-center {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  color:#b6c6ae;
  font-size:23px;
  pointer-events:none;
}
#connections {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
}
#trail {
  fill:none;
  stroke:#83b3a2;
  stroke-width:8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.selection-bar {
  display:flex;
  gap:13px;
  justify-content:center;
  align-items:center;
  margin:10px auto 20px;
}
.selection-bar output {
  min-width:160px;
  text-align:center;
  letter-spacing:5px;
  font-weight:750;
  font-size:20px;
  min-height:28px;
}
.submit {
  background:var(--teal);
  color:white;
  border-color:var(--teal);
}
.game-actions {
  display:flex;
  justify-content:center;
  gap:12px;
}
.tool {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--ink);
  padding:12px 15px;
  min-height:50px;
  font-size:12px;
  font-weight:650;
}
.tool>span {
  color:var(--teal);
  font-size:20px;
  margin-right:5px;
}
.tool small {
  font-size:10px;
  color:#946813;
  margin-left:7px;
}
.extras {
  margin:22px auto 0;
  max-width:360px;
  border-top:1px solid var(--line);
  padding-top:13px;
  font-size:12px;
  color:var(--muted);
}
.extras summary {
  cursor:pointer;
}
.extras summary span {
  float:right;
  color:var(--teal);
  font-weight:700;
}
.extras p {
  line-height:1.7;
}
.ad-area {
  max-width:660px;
  margin:28px auto 0;
  border-top:1px solid var(--line);
  padding-top:18px;
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.ad-area:before {
  content:'PUBLICIDADE';
  font-size:9px;
  letter-spacing:2px;
  color:#829286;
  display:block;
  text-align:center;
  margin-bottom:10px;
}
.ad-area .adtap-v2__card {
  margin:0 auto;
  box-shadow:none;
  max-width:100%;
}
.ad-area .adtap-v2__image {
  max-height:140px;
  object-fit:contain;
}
.ad-area .adtap-v2__title {
  font-size:15px;
}
.ad-area .adtap-v2__description {
  font-size:12px;
}
.ad-area .adtap-v2__embed-frame {
  max-height:260px;
}
footer {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:25px 0;
  font-size:10px;
  color:var(--muted);
}
footer span {
  font-size:9px;
}
dialog {
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--white);
  color:var(--ink);
  padding:35px;
  width:calc(100% - 32px);
  max-width:430px;
  box-shadow:0 24px 100px #163c4030;
}
dialog::backdrop {
  background:#13383e85;
  backdrop-filter:blur(5px);
}
dialog h2 {
  font-family:Georgia,serif;
  font-size:33px;
  font-weight:400;
  line-height:1.15;
  margin:18px 0;
}
dialog p,dialog li {
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
}
dialog ol {
  padding-left:18px;
}
dialog li {
  margin:11px 0;
}
dialog .primary,dialog .secondary {
  width:100%;
  margin-top:12px;
}
.dialog-close.icon-button {
  position:absolute;
  top:13px;
  right:13px;
  width:30px;
  height:30px;
}
.celebration {
  font-size:65px;
  color:var(--gold);
  margin:13px 0 0;
}
#complete-dialog {
  text-align:center;
}
.earned-stars {
  color:#b47b14;
  font-size:35px;
  letter-spacing:9px;
  margin:18px 0;
}
.earned-stars .empty {
  color:#d8dfd1;
}
@media(max-width:600px) {
  .app {
    padding:0 20px;
  }
  .header {
    height:78px;
  }
  .brand {
    font-size:22px;
  }
  .screen {
    padding-top:30px;
  }
  .home {
    padding-top:36px;
  }
  .hero-letters {
    gap:6px;
  }
  .hero-letters span {
    width:36px;
    height:45px;
    font-size:21px;
    border-radius:9px;
  }
  .home-stats {
    gap:26px;
  }
  .level-grid {
    gap:8px;
  }
  .level-card {
    min-height:75px;
    border-radius:11px;
  }
  .game {
    padding-top:10px;
  }
  .game-heading {
    margin:10px 0 17px;
  }
  .game-heading h1 {
    font-size:28px;
  }
  .game-actions {
    gap:8px;
  }
  .tool {
    padding:10px;
    font-size:11px;
  }
  .tool small {
    margin-left:3px;
  }
  .game .section-top {
    gap:8px;
  }
  .cell {
    width:34px;
    height:36px;
  }
  footer {
    font-size:9px;
  }
  footer span {
    font-size:8px;
  }
  dialog {
    padding:28px;
  }
  .board {
    width:260px;
    height:260px;
  }
  .letter {
    width:58px;
    height:58px;
    font-size:26px;
  }
  .wallet {
    padding:8px 12px;
  }
  .header-tools {
    gap:8px;
  }
}
@media(prefers-reduced-motion:no-preference) {
  .screen {
    animation:appear .3s ease-out;
  }
  .letter,.level-card {
    transition:background .15s,box-shadow .15s;
  }
  .celebration {
    animation:appear .5s ease-out;
  }
  @keyframes appear {
    from {
      opacity:0;
      translate:0 8px;
    }
    to {
      opacity:1;
      translate:0 0;
    }
  }
}
