/* Um percurso de Linux com objetivos selecionáveis e placas de conquista. */
.study-game { --study-gold: var(--gold, #d9b779); margin-block: 2rem; min-width: 0; color: var(--text); }
.study-game *, .study-game *::before, .study-game *::after { box-sizing: border-box; }
.study-game-heading { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin-bottom: 1.2rem; }
.study-game-heading h2 { margin: 0 0 .45rem; font-size: 1.45rem; }
.study-game-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.study-game-heading-actions { display: flex; flex-wrap: wrap; gap: 0 1.15rem; }
.study-game-view-all { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; flex: none; color: var(--good); font-size: .86rem; text-decoration: none; }
.study-game-view-all:hover { text-decoration: underline; }
.study-game-explorer { display: grid; grid-template-columns: 60px fit-content(260px) minmax(0, 420px); justify-content: start; align-items: center; gap: 1.05rem 1.5rem; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: var(--panel); }
.study-game-level-mark { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--good); border-radius: 12px; color: var(--good); background: var(--bg); }
.study-game-level-mark > svg { width: 29px; height: 29px; }
.study-game-level-mark > span { position: absolute; right: -6px; bottom: -5px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--panel); border-radius: 50%; background: var(--good); color: var(--ink); font-size: .75rem; font-weight: 700; }
.study-game-level-copy { min-width: 0; }
.study-game-level-copy > span { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .76rem; }
.study-game-level-copy h3 { margin: 0; font-size: 1.22rem; }
.study-game-coins { min-width: 0; }
.study-game-coins-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .85rem; margin-bottom: .65rem; }
.study-game-coins-heading strong { flex: none; color: var(--good); font-size: 1.05rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.study-game-coins-heading > span { color: var(--muted); font-size: .75rem; }
.study-game-coins progress { display: block; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 3px; background: var(--line); accent-color: var(--good); }
.study-game-coins progress::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
.study-game-coins progress::-webkit-progress-value { background: var(--good); border-radius: 3px; }
.study-game-coins progress::-moz-progress-bar { background: var(--good); border-radius: 3px; }
.study-game-wallet { margin: .55rem 0 0; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.study-game-route { padding: 1.2rem 1.8rem 1.65rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--panel); }
.study-game-route ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.study-game-route li { position: relative; min-width: 0; text-align: center; }
.study-game-route li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; left: calc(50% + 18px); right: calc(-50% + 18px); top: 17px; height: 2px; background: var(--line); }
.study-game-route li.is-passed::after { background: var(--good); }
.study-game-route li > span { position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin-inline: auto; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--panel); font-size: .85rem; font-weight: 650; }
.study-game-route li.is-passed > span { border-color: var(--good); color: var(--good); }
.study-game-route li.is-current > span { border-color: var(--good); color: var(--ink); background: var(--good); box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px var(--good); }
.study-game-route-label { position: absolute; top: calc(100% + .45rem); left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--muted); font-size: .66rem; font-weight: 450; }
.study-game-route li.is-current .study-game-route-label { color: var(--good); font-weight: 600; }
.study-game-board { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: 2rem; margin-top: 1.7rem; }
.study-game-subheading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem; margin-bottom: .75rem; }
.study-game-subheading h3 { margin: 0; font-size: 1rem; }
.study-game-subheading > span { font-size: .73rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.study-game-goal-list { display: grid; gap: .45rem; }
.study-game button.study-game-goal { display: grid; grid-template-columns: 25px minmax(0, 1fr) 18px; align-items: center; gap: .8rem; width: 100%; min-height: 70px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.study-game button.study-game-goal:hover { background: var(--panel); }
.study-game button.study-game-goal[aria-pressed="true"] { border-color: var(--good); background: var(--panel); box-shadow: inset 3px 0 0 var(--good); }
.study-game-goal > svg { width: 23px; height: 23px; color: var(--muted); }
.study-game-goal > span > strong { display: block; font-size: .87rem; font-weight: 600; }
.study-game-goal > span > span { display: block; margin-top: .22rem; color: var(--muted); font-size: .72rem; }
.study-game-goal.is-complete > svg, .study-game-goal.is-complete > span > span, .study-game-goal.is-complete > .study-game-goal-tick { color: var(--good); }
.study-game-goal-tick { justify-self: end; color: var(--muted); }
.study-game-goal-detail { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; margin-top: .8rem; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.study-game-detail-status { display: block; color: var(--muted); font-size: .7rem; margin-bottom: .3rem; }
.study-game-goal-detail h3, .study-game-badge-detail h3 { margin: 0 0 .4rem; font-size: .95rem; }
.study-game-goal-detail p, .study-game-badge-detail p { margin: 0 0 .45rem; color: var(--muted); font-size: .79rem; line-height: 1.55; }
.study-game-detail-count { color: var(--good); font-size: .74rem; font-variant-numeric: tabular-nums; }
.study-game-action { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; flex: none; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--good); border-radius: 7px; color: var(--good); font-size: .78rem; font-weight: 600; text-decoration: none; }
.study-game-action:hover { background: var(--panel2); }
.study-game-action > svg { width: 18px; height: 18px; }
.study-game-filters { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.study-game .study-game-filters button { min-height: 40px; padding: .45rem .7rem; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; font-size: .75rem; cursor: pointer; }
.study-game .study-game-filters button:hover { color: var(--text); background: var(--panel); }
.study-game .study-game-filters button[aria-pressed="true"] { color: var(--text); border-color: var(--line); background: var(--panel2); }
.study-game-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.study-game button.study-game-badge { display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 0; min-height: 132px; padding: .65rem .4rem .75rem; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.study-game button.study-game-badge:hover { background: var(--panel); border-color: var(--line); }
.study-game button.study-game-badge[aria-pressed="true"] { border-color: var(--line); background: var(--panel); }
.study-game button.study-game-badge > span:last-child { max-width: 15ch; font-size: .72rem; line-height: 1.35; text-align: center; }
.study-game-seal { position: relative; display: grid; place-items: center; flex: none; width: 64px; height: 68px; color: var(--muted); }
.study-game-seal > .study-game-seal-outline { position: absolute; inset: 0; width: 100%; height: 100%; }
.study-game-seal-outline path:first-child { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.study-game-seal-outline path:last-child { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.study-game-seal > svg:not(.study-game-seal-outline) { position: relative; width: 28px; height: 28px; }
.study-game-seal.is-earned { color: var(--study-gold); }
.study-game-seal.is-earned .study-game-seal-outline path:first-child { stroke: var(--study-gold); fill: var(--panel2); }
.study-game-seal.is-earned .study-game-seal-outline path:last-child { stroke: var(--study-gold); stroke-dasharray: none; opacity: .5; }
.study-game-seal-check { position: absolute; right: -1px; bottom: 0; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--bg); border-radius: 50%; color: var(--ink); background: var(--good); font-size: .65rem; font-weight: 700; }
.study-game-badge.is-earned > span:last-child { color: var(--text); }
.study-game-badge-detail { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: .65rem .8rem; min-height: 114px; margin-top: .9rem; padding: .9rem 0 0; border-top: 1px solid var(--line); }
.study-game-badge-detail > .study-game-action { grid-column: 2; justify-self: start; }
.study-game-badge-detail:empty { display: none; }
.study-game-badge-detail > .study-game-seal { width: 42px; height: 46px; }
.study-game-badge-detail > .study-game-seal > svg:not(.study-game-seal-outline) { width: 21px; height: 21px; }
.study-game-badge-detail .study-game-seal-check { width: 17px; height: 17px; font-size: .55rem; }
.study-game-collection-empty { grid-column: 1 / -1; align-self: center; margin: 0; padding: 1.3rem; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: .82rem; }
.study-game-compact .study-game-heading h2 { font-size: 1.35rem; }
.study-game-compact .study-game-explorer { grid-template-columns: 50px fit-content(240px) minmax(0, 420px); padding: 1rem 1.2rem; border-radius: 11px; }
.study-game-compact .study-game-level-mark { width: 44px; height: 44px; border-radius: 9px; }
.study-game-compact .study-game-level-mark > svg { width: 25px; height: 25px; }
.study-game-compact .study-game-level-copy h3 { font-size: 1.05rem; }
.study-game-compact .study-game-board { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.study-game-compact .study-game-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; }
.study-game-compact button.study-game-badge { min-height: 118px; padding-inline: .2rem; }
.study-game-compact button.study-game-badge > span:last-child { font-size: .67rem; }
.study-game-compact .study-game-seal { width: 54px; height: 58px; }
.study-game-compact .study-game-badge-detail { grid-template-columns: minmax(0, 1fr); }
.study-game-compact .study-game-badge-detail > .study-game-action { grid-column: 1; }
.study-game-compact .study-game-badge-detail > .study-game-seal { display: none; }
@media (min-width: 1150px) {
  .study-game-compact .study-game-goal-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .study-game-compact button.study-game-goal { grid-template-columns: 1fr 16px; align-items: start; gap: .55rem; padding: .85rem .7rem; }
  .study-game-compact .study-game-goal > svg { grid-column: 1 / -1; width: 22px; height: 22px; }
  .study-game-compact .study-game-goal > span > strong { font-size: .8rem; }
}
@media (max-width: 1050px) {
  .study-game-compact .study-game-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
  .study-game-compact .study-game-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-game-badge-detail { grid-template-columns: 40px minmax(0, 1fr); }
  .study-game-badge-detail > .study-game-action { grid-column: 2; justify-self: start; }
  .study-game-compact .study-game-badge-detail > .study-game-action { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .study-game-heading { align-items: start; gap: .7rem; }
  .study-game-heading h2, .study-game-compact .study-game-heading h2 { font-size: 1.2rem; }
  .study-game-heading p { font-size: .82rem; }
  .study-game-view-all { font-size: .75rem; min-width: 90px; }
  .study-game-explorer, .study-game-compact .study-game-explorer { grid-template-columns: 48px minmax(0, 1fr); gap: .9rem; padding: 1rem; }
  .study-game-level-mark { width: 44px; height: 44px; }
  .study-game-level-copy h3 { font-size: 1.1rem; }
  .study-game-coins { grid-column: 2; margin-top: .2rem; }
  .study-game-coins-heading > span { font-size: .7rem; }
  .study-game-board, .study-game-compact .study-game-board { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; margin-top: 1.25rem; }
  .study-game-compact .study-game-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .study-game-route { padding-inline: .4rem; }
  .study-game-route li > span { width: 29px; height: 29px; font-size: .75rem; }
  .study-game-route li:not(:last-child)::after { top: 14px; left: calc(50% + 15px); right: calc(-50% + 15px); }
  .study-game-route-label { font-size: .58rem; }
}
@media (max-width: 390px) {
  .study-game-heading { flex-direction: column; }
  .study-game-view-all { min-height: 40px; }
  .study-game-goal-detail { flex-direction: column; align-items: start; }
  .study-game-compact .study-game-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-game-compact .study-game-badge-detail { grid-template-columns: minmax(0, 1fr); }
  .study-game-badge-detail > .study-game-action { justify-self: start; }
  .study-game-coins-heading { align-items: start; gap: .7rem; }
  .study-game-coins-heading > span { max-width: 22ch; }
}
@media (prefers-reduced-motion: no-preference) {
  .study-game button.study-game-badge .study-game-seal { transition: transform .15s ease; }
  .study-game button.study-game-badge[aria-pressed="true"] .study-game-seal { transform: translateY(-3px); }
}
