.game-shell-stage {
  padding: 0;
  background: #191e2b;
}
.game-shell-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.perceptle {
  --accent: #c4ec85;
  --soft: #adb8cb;
  color: #f4f5f9;
  background:
    radial-gradient(ellipse at 80% 15%, #30324d80, transparent 55%), #191e2b;
  height: 780px;
  padding: 22px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  isolation: isolate;
}
.perceptle button,
.perceptle select,
.perceptle input,
.perceptle textarea {
  font: inherit;
}
.perceptle h2,
.perceptle h3 {
  font-family: "Inter Tight", Inter, sans-serif;
  color: #f4f5f9;
}
.play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mode-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #292f40;
  border-radius: 12px;
}
.mode-tabs button {
  border: 0;
  border-radius: 9px;
  background: none;
  color: #b7bfd0;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}
.mode-tabs button[aria-pressed="true"] {
  background: #f5f6fa;
  color: #202638;
}
.play-tools {
  display: flex;
  gap: 7px;
}
.play-tools button {
  display: grid;
  place-items: center;
  border: 1px solid #41495f;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  background: none;
  color: #d7deeb;
}
.perceptle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.session-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--soft);
  margin: 18px 0 12px;
}
.progress {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  gap: 8px;
}
.progress li {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: #353d50;
}
.progress li.active {
  background: var(--accent);
}
.progress li.done {
  background: #8ebfc0;
}
.lobby {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 20px;
}
.eye-art {
  width: 132px;
  margin-bottom: 18px;
}
.eye-art svg {
  display: block;
  width: 100%;
  height: auto;
}
.perceptle .eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 600;
}
.lobby h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 14px 0;
}
.lobby > p:not(.eyebrow) {
  color: #b9c3d5;
  line-height: 1.7;
}
.lobby .p-button {
  margin-top: 25px;
}
.lobby .lobby-note {
  font-size: 11px;
  margin-top: 14px;
}
.p-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  min-height: 44px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}
.p-button.primary {
  color: #1b2730;
  background: var(--accent);
}
.p-button.primary:hover {
  filter: brightness(1.08);
}
.p-button.secondary {
  color: #e7edf6;
  border-color: #46516b;
  background: #292f40;
}
.p-button svg {
  width: 17px;
  height: 17px;
}
.skill-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #bdc7d9;
  margin-top: 18px;
}
.skill-picker select {
  background: #292f40;
  color: white;
  border: 1px solid #535d74;
  border-radius: 9px;
  padding: 10px 12px;
  max-width: 100%;
}
.challenge-note {
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid #58527d;
  border-radius: 10px;
  margin-top: 15px;
}
#round {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.round-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.round-heading h2 {
  font-size: 29px;
  margin-top: 6px;
}
.target-label {
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
.instruction {
  color: #bac5d8;
  min-height: 43px;
  margin-top: 12px;
  font-size: 14px;
}
.canvas-wrap {
  position: relative;
  margin-top: 9px;
  flex-shrink: 0;
  background: #222a3b;
  border: 1px solid #354059;
  border-radius: 15px;
  overflow: hidden;
}
#board {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  touch-action: none;
  cursor: crosshair;
}
#board-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: 24px;
  color: #d1dcee;
}
#board-message:empty {
  display: none;
}
.answer-controls {
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.answer-controls label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: #c1cbe0;
}
.answer-controls input[type="number"] {
  width: 130px;
  padding: 9px 12px;
  background: #293247;
  color: #fff;
  border: 1px solid #626d85;
  border-radius: 9px;
  font-size: 23px;
}
.answer-controls input[type="range"] {
  width: min(340px, 45vw);
  accent-color: var(--accent);
}
.answer-controls .color-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.answer-controls .color-controls label {
  justify-content: space-between;
}
.tap-button {
  min-width: 190px;
  user-select: none;
  touch-action: none;
}
.tap-button.is-held {
  background: #ffa8ce !important;
  transform: scale(0.98);
}
.round-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.feedback {
  text-align: center;
  color: #c3ccdc;
  margin-top: 10px;
  font-size: 13px;
}
.feedback strong {
  font-size: 24px;
  color: var(--accent);
  margin-right: 10px;
}
.play-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  color: #96a4bc;
  border-top: 1px solid #333d53;
  padding-top: 13px;
  margin-top: auto;
  flex-shrink: 0;
}
.play-footer #countdown {
  color: #c4d0e7;
  font-variant-numeric: tabular-nums;
}
.results {
  flex: 1;
  text-align: center;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.results h2 {
  font-size: 30px;
  max-width: 100%;
  margin-top: 7px;
}
.score-total {
  display: flex;
  align-items: baseline;
  gap: 9px;
  justify-content: center;
  margin: 9px 0;
}
.score-total strong {
  font-family: "Inter Tight", sans-serif;
  color: var(--accent);
  font-size: 66px;
  line-height: 1.1;
  letter-spacing: -2px;
}
.score-total span {
  color: #9facc4;
  font-size: 19px;
}
#result-line {
  font-size: 13px;
  color: #bec8db;
}
.result-rows {
  width: 100%;
  max-width: 590px;
  margin: 17px auto 12px;
}
.result-row {
  display: grid;
  grid-template-columns: 110px 1fr 38px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  margin: 9px 0;
  text-align: left;
}
.result-row .bar {
  background: #333c52;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
}
.result-row .bar i {
  height: 100%;
  display: block;
  background: var(--row-color);
  border-radius: 4px;
}
.result-row strong {
  text-align: right;
  font-size: 14px;
}
.result-row.duel {
  grid-template-columns: 100px 1fr 75px;
}
.result-row small {
  font-size: 11px;
  color: #b8c5d9;
}
.duel-summary {
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 10px;
}
.result-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.result-buttons .p-button {
  font-size: 12px;
  padding: 10px 13px;
  min-height: 40px;
}
#share-status {
  font-size: 11px;
  color: #bdc8da;
  min-height: 19px;
  margin-top: 8px;
}
.result-note {
  font-size: 10px;
  color: #8f9eb6;
  margin-top: 4px;
}
.results:has(#share-fallback:not([hidden])) .result-rows {
  display: none;
}
#share-fallback {
  width: 100%;
  max-width: 500px;
}
#share-fallback label {
  display: block;
  font-size: 11px;
  color: #bdc8da;
  margin: 6px;
}
#share-text {
  width: 100%;
  background: #252e42;
  color: #f5f5fa;
  border: 1px solid #52607c;
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  resize: none;
}
#game-dialog {
  background: #242d40;
  color: #e8edf8;
  border: 1px solid #52617d;
  border-radius: 18px;
  width: min(500px, calc(100% - 28px));
  max-height: 85dvh;
  padding: 28px;
}
#game-dialog::backdrop {
  background: #070c18bc;
}
#game-dialog h2 {
  font-size: 28px;
  margin: 8px 0 16px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: none;
  color: #e4eaf4;
  font-size: 28px;
}
#dialog-body {
  font-size: 14px;
  line-height: 1.8;
  color: #c3cde0;
  margin-bottom: 22px;
}
#dialog-body p + p {
  margin-top: 12px;
}
#dialog-body ul {
  padding-left: 20px;
}
.stats-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #46516b;
  padding: 9px 0;
}
.perceptle button:focus-visible,
.perceptle input:focus-visible,
.perceptle select:focus-visible {
  outline: 3px solid #ffc4dd;
  outline-offset: 3px;
}
.game-page-heading {
  max-width: none;
}
.game-page-heading h1,
.article-section h2,
.article-section h3 {
  color: #141815;
}
.breadcrumbs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.article-section {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 30px;
}
.article-section p {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 15px;
}
.article-section a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.skill-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.skill-list p {
  font-size: 14px;
  margin-top: 7px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
}
.site-footer {
  margin-top: 40px;
  padding-block: 28px;
  display: flex;
  gap: 25px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
@media (max-width: 760px) {
  .perceptle {
    height: 780px;
    padding: 16px 14px;
  }
  .mode-tabs button {
    padding: 8px 14px;
  }
  .play-tools {
    gap: 5px;
  }
  .play-tools button {
    width: 32px;
    height: 32px;
  }
  .session-line {
    font-size: 10px;
  }
  .progress {
    margin-bottom: 16px;
    gap: 5px;
  }
  .round-heading h2 {
    font-size: 25px;
  }
  .target-label {
    font-size: 19px;
  }
  .instruction {
    font-size: 13px;
    min-height: 62px;
  }
  #board {
    height: 230px;
  }
  .answer-controls {
    min-height: 108px;
  }
  .answer-controls input[type="range"] {
    width: min(230px, 52vw);
  }
  .results h2 {
    font-size: 26px;
  }
  .score-total strong {
    font-size: 58px;
  }
  .result-row {
    grid-template-columns: 90px 1fr 30px;
    gap: 9px;
  }
  .result-row.duel {
    grid-template-columns: 85px 1fr 70px;
  }
  .result-buttons {
    gap: 7px;
  }
  .result-buttons .p-button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .result-note {
    font-size: 9px;
  }
  .play-footer {
    font-size: 9px;
    gap: 8px;
  }
  .skill-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .eye-art {
    width: 108px;
  }
  .lobby .eyebrow {
    font-size: 9px;
  }
  .lobby > p:not(.eyebrow) {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .tap-button.is-held {
    transform: none;
  }
}

/* Visible skill selection and clearer round states. */
.progress {
  gap: 12px;
  margin-bottom: 18px;
}
.progress li {
  height: auto;
  background: none !important;
  min-width: 0;
  position: relative;
  padding-top: 11px;
  color: #7e8ca7;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}
.progress li:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: #394258;
}
.progress li.active {
  color: var(--accent);
}
.progress li.active:before {
  background: var(--accent);
}
.progress li.done {
  color: #bed3d4;
}
.progress li.done:before {
  background: #8ebfc0;
}
.is-unlimited .lobby .eye-art {
  width: 100px;
  margin-bottom: 10px;
}
.is-unlimited .lobby h2 {
  font-size: 30px;
  margin: 9px 0;
}
.is-unlimited .lobby-copy {
  font-size: 13px;
}
.is-unlimited .skill-picker {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
  padding: 0;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  max-width: 670px;
  margin: 20px auto 0;
}
.skill-grid button {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 69px;
  border: 1px solid #424d66;
  border-radius: 12px;
  background: #242d40;
  color: #b9c6db;
  padding: 9px 5px;
  line-height: 1.3;
  font-size: 11px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.skill-grid button:hover {
  background: #303b53;
  transform: translateY(-2px);
}
.skill-grid button[aria-pressed="true"] {
  background: #c4ec8517;
  border-color: #c4ec85;
  color: #d9f0ba;
}
.skill-grid button svg {
  width: 22px;
  height: 22px;
}
.phase-badge {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 1;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #adbcd4;
  pointer-events: none;
}
.watch-meter {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  pointer-events: none;
}
.watch-meter.is-running {
  animation: watch-progress var(--watch-duration) linear forwards;
}
@keyframes watch-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
#board-message {
  font-weight: 600;
  background: #222a3b99;
  font-size: 28px;
}
.canvas-wrap:has(#board-message:not(:empty)) #board {
  opacity: 0.35;
}
.answer-controls label {
  font-size: 12px;
}
.answer-controls input[type="range"] {
  height: 26px;
  cursor: ew-resize;
}
.answer-controls input[type="range"]::-webkit-slider-thumb {
  cursor: grab;
}
.answer-controls input[type="number"] {
  font-variant-numeric: tabular-nums;
}
.is-revealing .feedback {
  animation: reveal-feedback 0.25s ease-out;
}
.feedback strong {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 8px;
  background: #c4ec8512;
}
.replay-flight {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 14px;
}
@keyframes reveal-feedback {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .progress {
    gap: 6px;
    margin-bottom: 13px;
  }
  .progress li {
    font-size: 8px;
    min-height: 34px;
    padding-top: 9px;
  }
  .skill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 16px;
    max-width: 400px;
  }
  .skill-grid button {
    min-height: 56px;
    padding: 6px 3px;
    font-size: 10px;
    gap: 4px;
  }
  .skill-grid button svg {
    width: 18px;
    height: 18px;
  }
  .is-unlimited .lobby .eye-art {
    display: none;
  }
  .is-unlimited .lobby h2 {
    font-size: 26px;
  }
  .is-unlimited .lobby .p-button {
    margin-top: 17px;
  }
  .is-unlimited .lobby-note {
    margin-top: 10px !important;
  }
  .is-unlimited .lobby-copy {
    display: none;
  }
  .phase-badge {
    font-size: 8px;
    top: 10px;
    left: 12px;
  }
  .round-heading h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skill-grid button {
    transition: none;
  }
  .skill-grid button:hover {
    transform: none;
  }
  .is-revealing .feedback {
    animation: none;
  }
}

/* Every round opens with an untimed, focused rule screen. */
#round.is-brief {
  justify-content: center;
  align-items: center;
  padding-bottom: 25px;
}
#round.is-brief > :not(.round-brief) {
  display: none !important;
}
.round-brief {
  width: 100%;
  max-width: 580px;
  text-align: center;
  padding: 28px 8px;
}
.brief-round {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #92a3bd;
  margin-bottom: 28px;
}
.brief-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.brief-title-row h2 {
  font-size: 42px;
  line-height: 1.2;
}
#brief-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  width: 48px;
  height: 48px;
}
#brief-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.7;
}
.brief-copy {
  font-size: 21px;
  line-height: 1.65;
  color: #e1e7f2;
  margin: 28px auto 32px;
  max-width: 550px;
}
.round-brief .p-button {
  min-width: 160px;
  min-height: 52px;
  font-size: 17px;
}
@media (max-width: 760px) {
  .round-brief {
    padding: 20px 3px;
  }
  .brief-round {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 24px;
  }
  .brief-title-row {
    gap: 12px;
  }
  .brief-title-row h2 {
    font-size: 32px;
  }
  .brief-copy {
    font-size: 18px;
    line-height: 1.65;
    margin: 24px auto 30px;
  }
  #brief-icon {
    width: 38px;
    height: 38px;
  }
  #brief-icon svg {
    width: 34px;
    height: 34px;
  }
}

/* Focused rounds give the interactive field the space, rather than the chrome. */
.focus-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 10px;
  flex-shrink: 0;
  color: #9eaec7;
  font-size: 12px;
}
.focus-bar strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
.focus-bar button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: #b1bfd5;
  padding: 7px;
  font-size: 11px;
}
.focus-bar button svg {
  width: 17px;
  height: 17px;
}
.perceptle.is-focused {
  padding: 16px 22px;
}
.is-focused > .play-header,
.is-focused > .session-line,
.is-focused > .progress,
.is-focused > .play-footer {
  display: none;
}
.is-focused #round {
  min-height: 0;
  flex: 1;
}
.is-focused #round > .round-heading,
.is-focused #round > .instruction {
  display: none;
}
.is-focused .canvas-wrap {
  flex: 1;
  min-height: 240px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: #191e2b;
}
.is-focused #board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.is-focused .answer-controls {
  min-height: 0;
  flex-shrink: 0;
  padding: 12px 0;
  gap: 12px;
}
.is-focused .answer-controls:empty {
  display: none;
}
.is-focused .round-actions {
  flex-shrink: 0;
  gap: 8px;
  padding: 0;
}
.is-focused .round-actions:not(:has(button:not([hidden]))) {
  display: none;
}
.is-focused .feedback {
  flex-shrink: 0;
  font-size: 12px;
  margin: 10px 0 0;
  min-height: 33px;
}
.is-focused .feedback strong {
  font-size: 20px;
}
.is-focused .phase-badge {
  left: 15px;
  top: 13px;
  color: #7e90ac;
  font-size: 9px;
}
.is-focused #board-message {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 80px;
  line-height: 1;
  background: transparent;
  color: var(--accent);
}
.is-countdown #board {
  opacity: 0 !important;
}
.is-countdown .phase-badge {
  display: none;
}
.is-focused #round.is-brief {
  padding-bottom: 36px;
}
.is-focused .round-brief {
  max-width: 600px;
}
@media (max-width: 760px) {
  .perceptle.is-focused {
    padding: 12px 10px;
  }
  .focus-bar {
    margin-bottom: 7px;
    font-size: 10px;
    gap: 6px;
  }
  .focus-bar strong {
    font-size: 16px;
  }
  .focus-bar button {
    padding: 6px;
    font-size: 10px;
  }
  .is-focused .answer-controls {
    padding: 10px 0;
    gap: 8px;
  }
  .is-focused .answer-controls input[type="range"] {
    width: min(220px, 53vw);
  }
  .is-focused .feedback {
    font-size: 10px;
    line-height: 1.6;
    min-height: 34px;
  }
  .is-focused .feedback strong {
    font-size: 18px;
  }
  .is-focused .canvas-wrap {
    min-height: 260px;
  }
  .is-focused .phase-badge {
    font-size: 8px;
  }
}
/* A stable answer dock keeps the observed geometry still when controls appear. */
.is-focused .answer-controls {
  min-height: 84px;
}
.is-focused .answer-controls:empty {
  display: flex;
}
.is-focused .round-actions {
  min-height: 44px;
}
.is-focused .round-actions:not(:has(button:not([hidden]))) {
  display: flex;
}
.is-focused .feedback {
  min-height: 40px;
  margin-top: 8px;
}
.is-focused .feedback[hidden] {
  display: block !important;
  visibility: hidden;
}

.is-focused .feedback.is-error {
  color: #ffb6c4;
  font-size: 12px;
}
.is-focused:has(#round.is-brief) #focus-round {
  visibility: hidden;
}

/* A real measurement on each of six fixed axes. */
.result-radar {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  line-height: 0;
}
.result-radar svg {
  display: block;
  width: 100%;
  height: auto;
  stroke: none;
  fill: none;
}
.results h2 {
  font-size: 28px;
}
.results .score-total {
  margin: 6px 0;
}
.results .score-total strong {
  font-size: 54px;
}
.result-breakdown {
  width: 100%;
  max-width: 590px;
  margin: 4px 0 10px;
}
.result-breakdown summary {
  display: inline-block;
  font-size: 11px;
  color: #afbdd5;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.result-breakdown .result-rows {
  margin: 12px auto 0;
}
.results:has(.result-breakdown[open]) .result-radar,
.results:has(.result-breakdown[open]) .radar-legend {
  display: none;
}
.radar-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  color: #afbdd5;
  font-size: 10px;
  margin: 0 0 4px;
}
.radar-legend span:before {
  content: "";
  display: inline-block;
  width: 14px;
  border-top: 2px solid #c4ec85;
  margin-right: 6px;
  vertical-align: middle;
}
.radar-legend span + span:before {
  border-top: 2px dashed #ffb6cd;
}
@media (max-width: 760px) {
  .result-radar {
    width: calc(100% + 20px);
    max-width: none;
    margin-inline: -10px;
  }
  .result-radar svg {
    height: 255px;
  }
  .results h2 {
    font-size: 24px;
  }
  .results .score-total strong {
    font-size: 50px;
  }
}

.perceptle.is-results > .session-line,
.perceptle.is-results > .progress,
.perceptle.is-results > .play-footer {
  display: none;
}
.is-results .results {
  padding-top: 12px;
}
.results:has(#share-fallback:not([hidden])) .result-radar,
.results:has(#share-fallback:not([hidden])) .radar-legend {
  display: none;
}

/* Recall answers belong in the empty play field, not against its bottom edge. */
.is-focused #round {
  position: relative;
}
.is-focused #round.is-count-answer .answer-controls {
  position: absolute;
  inset-inline: 0;
  top: calc(50% - 32px);
  transform: translateY(-50%);
  min-height: 0;
  padding: 0;
  z-index: 2;
}
.is-count-answer .answer-controls label {
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: #b9c5d9;
}
.is-count-answer .answer-controls input[type="number"] {
  width: 120px;
  padding: 4px 8px 10px;
  border: 0;
  border-bottom: 1px solid #75849d;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}
.is-count-answer .answer-controls input[type="number"]:focus-visible {
  outline: none;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 3px 0 -2px var(--accent);
}
.is-count-answer input::-webkit-inner-spin-button,
.is-count-answer input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.is-focused #round.is-count-answer .round-actions {
  position: absolute;
  inset-inline: 0;
  top: calc(50% + 40px);
  z-index: 2;
}
.is-focused #round.is-tempo-answer .answer-controls {
  position: absolute;
  inset-inline: 0;
  top: 62%;
  min-height: 0;
  padding: 0;
  z-index: 2;
}

.is-focused .feedback,
.is-focused .feedback[hidden] {
  min-height: 60px;
}
.is-focused .feedback strong {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 0;
  background: none;
  font-size: 40px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.feedback strong small {
  font-size: 14px;
  font-weight: 500;
  color: #aebbd0;
}
.silent-tap:active,
.silent-tap:focus-visible:active {
  transform: none;
  filter: none;
  box-shadow: none;
}
.is-focused .feedback,
.is-focused .feedback[hidden] {
  min-height: 80px;
  margin: 0 0 10px;
}
.is-focused .feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.is-focused .feedback strong {
  margin: 0;
  font-size: 44px;
  line-height: 1;
}
.tempo-pad {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: clamp(116px, 17vw, 174px);
  aspect-ratio: 1;
  padding: 0;
  border: 3px solid #9ca9bc;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tempo-pad:hover,
.tempo-pad:active,
.tempo-pad:focus-visible:active {
  transform: translate(-50%, -50%);
  background: transparent;
  box-shadow: none;
}
.tempo-pad:focus-visible {
  outline: 1px dashed #7a8ba8;
  outline-offset: 7px;
}
.tempo-pad.is-pulsing {
  animation: tempo-cue 220ms ease-out;
}
.tempo-pad.is-silent {
  border-color: #43516a;
  color: #c5d0e2;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
@keyframes tempo-cue {
  from {
    border-color: #ffc4dd;
    background: #ffc4dd22;
    box-shadow: 0 0 25px #ffc4dd22;
  }
  to {
    border-color: #9ca9bc;
    background: transparent;
    box-shadow: none;
  }
}
.tempo-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tempo-caption {
  position: absolute;
  inset-inline: 12px;
  bottom: 22px;
  text-align: center;
  pointer-events: none;
  color: #b9c5d9;
}
.tempo-caption p {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.3;
}
#tempo-remaining {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: #a6b4cb;
  font-variant-numeric: tabular-nums;
}
.practice-picker {
  width: 100%;
  max-width: 630px;
  margin: 10px auto 16px;
}
.practice-picker .skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
  gap: 6px;
}
.practice-picker .skill-grid button {
  min-height: 50px;
  padding: 6px;
  flex-direction: row;
}
.practice-picker .p-button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}
.practice-detail {
  margin: 12px 0;
  max-width: 470px;
  color: #d2dbea;
  font-size: 15px;
  line-height: 1.5;
}
.practice-best {
  padding: 12px 18px;
  border: 1px solid #c4ec8544;
  border-radius: 12px;
  color: #c4ec85;
  margin: 6px 0 24px;
  font-size: 14px;
}
.practice-weakest {
  min-height: 30px;
  padding: 5px 10px;
  margin: 0 0 12px;
  font-size: 11px;
}
.result-navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 14px 0 8px;
}
.result-navigation button {
  border: 0;
  background: transparent;
  padding: 8px;
  color: #c2cde0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.result-navigation button:hover {
  color: #c4ec85;
}
.result-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0 0;
  font-size: 12px;
  color: #afbdd5;
}
.result-reset strong {
  font-size: 16px;
  color: #c4ec85;
  font-variant-numeric: tabular-nums;
}
.result-reset .p-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
}
.results h2 {
  margin-bottom: 6px;
}
#result-line {
  margin: 4px 0 8px;
}
#share-status:empty {
  min-height: 0;
  margin: 0;
}
.share-preview {
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 1px solid #52617d;
  border-radius: 18px;
  background: #191e2b;
  color: #e8edf8;
}
.share-preview::backdrop {
  background: #070c18d9;
}
.share-preview h2 {
  margin: 0 36px 14px 0;
  font-size: 21px;
}
#score-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 185px);
  object-fit: contain;
  border-radius: 12px;
}
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.preview-actions .p-button {
  min-height: 40px;
  font-size: 13px;
  padding: 10px 14px;
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .tempo-pad.is-pulsing {
    animation: none;
    border-color: #ffc4dd;
  }
}
@media (max-width: 760px) {
  .is-focused .feedback strong {
    font-size: 34px;
  }
  .feedback strong small {
    font-size: 12px;
  }
}

.game-shell-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* The article reuses the game's SVG marks in a quieter reading layout. */
.skill-list {
  gap: 16px;
  margin-top: 28px;
}
.skill-guide {
  padding: 22px;
  border: 1px solid #e1e6dd;
  border-radius: 18px;
  background: #fff;
}
.skill-guide-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.skill-guide-heading h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}
.skill-guide-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: var(--skill-soft);
  color: var(--skill-ink);
}
.skill-guide-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skill-list .skill-guide p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.skill-list .skill-guide .skill-guide-hook {
  margin-bottom: 8px;
  color: #20251f;
  font-weight: 650;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .skill-guide {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .skill-list {
    grid-template-columns: 1fr;
  }
}

.practice-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 630px;
  margin: 22px auto 8px;
}
.practice-modes button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  text-align: left;
  border: 1px solid #52617c;
  border-radius: 14px;
  background: #252e42;
  color: #edf2fc;
  cursor: pointer;
}
.practice-modes button:hover {
  background: #303b53;
}
.practice-modes button[aria-pressed="true"] {
  border-color: #c4ec85;
  background: #c4ec8517;
}
.practice-modes svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: none;
  stroke: #c4ec85;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.practice-modes strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}
.practice-modes small {
  display: block;
  margin-top: 5px;
  color: #b5c1d6;
  font-size: 12px;
}
.practice-modes[hidden],
.practice-picker[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .practice-modes {
    gap: 8px;
    margin-top: 16px;
  }
  .practice-modes button {
    min-height: 94px;
    padding: 12px 8px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .practice-modes strong {
    font-size: 13px;
  }
  .practice-modes small {
    font-size: 10px;
  }
}

.lobby > .eyebrow {
  color: #b5c0d5;
  font-size: 10px;
  letter-spacing: 1.4px;
}
.is-unlimited .lobby .eye-art {
  width: 84px;
}
