#practiceProblemsView {
  min-height: 0;
  overflow: hidden;
}

#practiceProblemsView.view-active {
  display: block;
}

body[data-active-view="practiceProblems"] main {
  padding: 0;
}

.practice-problems-app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #102a24;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  background: transparent;
}

.practice-problems-app button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.practice-select-screen,
.practice-game-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px;
}

.practice-select-screen {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.practice-selection-scroll-area {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.practice-selection-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 14px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.practice-selection-scroll::-webkit-scrollbar {
  display: none;
}

.practice-selection-scrollbar {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 2px;
  bottom: 2px;
  width: 6px;
  border-radius: 999px;
  background: rgba(22, 143, 87, .16);
  box-shadow: inset 0 0 0 1px rgba(13, 104, 62, .08);
  opacity: 1;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.practice-selection-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24%;
  min-height: 36px;
  border-radius: inherit;
  background: linear-gradient(180deg, #249b65, #075f40);
  box-shadow: 0 1px 3px rgba(7, 79, 51, .24);
}

.practice-topbar {
  display: block;
  flex: 0 0 auto;
  margin-top: 14px;
}

.practice-back-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(16,76,57,.2);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  color: #174a3d;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(9,52,39,.09);
}

.practice-topbar-copy {
  min-width: 0;
  text-align: center;
}

.practice-topbar-copy small {
  display: block;
  margin-bottom: 2px;
  color: #b08428;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.practice-topbar-copy h1 {
  margin: 0;
  color: #147b55;
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 1000;
  line-height: 1.08;
  -webkit-text-stroke: 1px #10231d;
  paint-order: stroke fill;
}

.practice-select-screen .practice-topbar-copy h1 {
  color: #0b6845;
  background: linear-gradient(180deg, #249b65 0%, #075f40 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  paint-order: normal;
  font-weight: 950;
  letter-spacing: .025em;
  text-shadow: 2px 3px 5px rgba(7, 79, 51, .2);
}

.practice-intro {
  flex: 0 0 auto;
  margin: 10px 0;
  padding: 10px 14px;
  border: 2px solid rgba(19,118,82,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  color: #435c54;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
}

.practice-intro span {
  display: block;
}

.practice-intro span + span {
  margin-top: 2px;
}

.practice-difficulty-list {
  display: grid;
  gap: 22px;
}

.practice-difficulty-section {
  display: grid;
  gap: 9px;
}

.practice-difficulty-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 8px 4px;
  border-bottom: 2px solid rgba(11, 104, 69, .72);
}

.practice-difficulty-heading h2 {
  margin: 0;
  flex: 0 0 auto;
  color: #126d4c;
  font-size: clamp(25px, 7vw, 32px);
  font-weight: 1000;
  line-height: 1.35;
  white-space: nowrap;
  word-break: keep-all;
}

.practice-difficulty-heading p {
  min-width: 0;
  margin: 0;
  color: #52665e;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 850;
  line-height: 1.35;
}

.practice-theme-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 92px;
  align-content: start;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 0;
}

.practice-theme-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, .72fr) minmax(0, 1.28fr);
  grid-template-rows: minmax(0, 1fr);
  align-content: center;
  column-gap: 14px;
  row-gap: 3px;
  min-width: 0;
  min-height: 0;
  padding: 9px 38px 9px 15px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(21,112,190,.96), rgba(18,64,151,.98));
  color: #fff;
  text-align: left;
  box-shadow: 0 9px 17px rgba(12,45,72,.2), inset 0 1px 0 rgba(255,255,255,.35);
}

.practice-theme-card::after {
  content: "›";
  position: absolute;
  right: 12px;
  bottom: 50%;
  transform: translateY(50%);
  color: rgba(255,255,255,.55);
  font-size: 28px;
  font-weight: 900;
}

.practice-theme-card strong {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: clamp(18px, 5.2vw, 25px);
  font-weight: 1000;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0,0,0,.28);
}

.practice-theme-card[data-theme="line-cut"] strong {
  white-space: nowrap;
}

.practice-theme-card[data-theme="hyper-parity"] strong,
.practice-theme-card[data-theme="endgame-reading"] strong {
  white-space: nowrap;
  font-size: clamp(16px, 4.5vw, 22px);
  line-height: 1.05;
}

html[data-language="en"] .practice-theme-card[data-theme="endgame-reading"] {
  grid-template-columns: minmax(148px, .82fr) minmax(0, 1.18fr);
  column-gap: 10px;
}

html[data-language="en"] .practice-theme-card[data-theme="endgame-reading"] strong {
  font-size: clamp(14px, 3.9vw, 17px);
  line-height: 1.05;
  white-space: normal;
}

html[data-language="en"] .practice-theme-card[data-theme="endgame-reading"] span {
  max-width: none;
  font-size: 10px;
  line-height: 1.35;
}

.practice-theme-card span {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  max-width: calc(100% - 18px);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.practice-theme-card[data-theme="opening-basics"] strong {
  font-size: clamp(18px, 5vw, 22px);
  letter-spacing: .01em;
  white-space: nowrap;
}

#practiceProblemsApp .practice-home-btn {
  flex: 0 0 auto;
  width: 100%;
  min-height: 56px;
  margin: 10px 0 0;
  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: clamp(17px, 4.8vw, 21px) !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  box-shadow: 0 5px 12px rgba(9,52,39,.09);
}

html.ui-confirmation-app #practiceProblemsApp [data-action="opening-result-home"] {
  width: 100%;
  min-height: 56px;
  margin: 10px 0 0;
  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: clamp(17px, 4.8vw, 21px);
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 5px 12px rgba(9,52,39,.09);
}

.practice-generator {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.76);
}

.practice-generator-card {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  padding: 30px 22px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 54px rgba(0,0,0,.35);
}

.practice-spinner {
  width: 46px;
  height: 46px;
  border: 6px solid #d9eee7;
  border-top-color: #14986c;
  border-radius: 50%;
  animation: practice-spin .72s linear infinite;
  will-change: transform;
}

@keyframes practice-spin { to { transform: rotate(360deg); } }

.practice-generator-card h2 {
  margin: 15px 0 6px;
  font-size: 20px;
}

.practice-generator-card p {
  margin: 0;
  color: #64746f;
  font-size: 12px;
  line-height: 1.6;
}

.practice-generation-cancel-btn {
  width: min(100%, 220px);
  min-height: 48px;
  margin-top: 18px;
  border: 2px solid #cbd8d2;
  border-radius: 13px;
  background: #f2f5f2;
  color: #18352b;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.practice-generation-cancel-btn:disabled {
  opacity: .55;
}

.practice-battle-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 14px;
}

.practice-opponent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
  width: min(100%, 410px);
  margin: 0 auto;
}

.practice-score {
  position: relative;
  grid-area: auto !important;
  display: block;
  width: min(100%, 410px);
  min-height: 78px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.practice-score .score-info {
  position: relative;
  align-content: center;
  height: 78px !important;
  min-height: 78px !important;
  padding: 10px 60px 10px 12px !important;
  border: 2px solid rgba(17,75,52,.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(236,242,238,.97));
  box-shadow: 0 10px 24px rgba(15,32,22,.16);
  transform: none !important;
}

.practice-score .score-main {
  display: block;
  min-width: 0;
}

.practice-score em {
  position: absolute;
  top: 50%;
  right: 60px;
  left: 12px;
  display: block;
  overflow: hidden;
  color: #355044;
  font-size: clamp(18px, 4.8vw, 24px);
  font-style: normal;
  font-weight: 1000;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
}

.practice-score.is-player em {
  right: 174px;
  text-align: left;
}

.practice-score.is-player .score-info {
  padding-right: 174px !important;
}

.practice-score.is-player.is-opening em {
  right: 204px;
}

.practice-score.is-player.is-opening .score-info {
  padding-right: 204px !important;
}

.practice-score strong {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  align-content: center;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  transform: translateY(-50%);
}

.practice-score.black strong {
  border: 2px solid #111;
  background: #111;
  color: #fff;
}

.practice-score.white strong {
  border: 2px solid #777;
  background: #fff;
  color: #111;
}

.practice-panel-home-btn {
  display: grid;
  place-items: center;
  width: 72px;
  min-width: 72px;
  height: 78px;
  padding: 0 5px;
  border: 2px solid rgba(17,75,52,.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(236,242,238,.98));
  color: #174a3d;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15,32,22,.16);
}

.practice-home-glyph {
  display: block;
  font-size: 34px;
  line-height: 1;
  transform: none;
}

.practice-inline-analyze-btn {
  position: absolute;
  top: 50%;
  right: 62px;
  left: auto;
  bottom: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  min-width: 60px;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(213,172,50,.92);
  border-radius: 12px;
  background: #102a20;
  color: #ffe16a;
  font-size: clamp(13px, 3.6vw, 17px);
  font-weight: 1000;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateY(-50%);
}

.practice-inline-analyze-btn:disabled {
  opacity: .62;
  filter: grayscale(.45) brightness(.58);
  pointer-events: none;
  touch-action: none;
}

.practice-inline-analyze-btn.is-active {
  border-color: #f0c64f;
  background: linear-gradient(145deg, #17634c, #0a3e30);
  box-shadow: 0 0 0 3px rgba(240, 198, 79, .2), 0 5px 10px rgba(4,31,24,.2);
}

.practice-inline-takeback-btn {
  position: absolute;
  top: 50%;
  right: 130px;
  z-index: 2;
  width: 60px;
  min-width: 60px;
  height: 44px;
  min-height: 44px;
  padding: 0 5px;
  border-radius: 12px;
  font-size: clamp(12px, 3.3vw, 15px);
  transform: translateY(-50%);
}

.practice-player-color-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 7px auto 0;
  padding: 6px 15px;
  border: 2px solid rgba(22, 117, 83, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #24483b;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 73, 53, .12);
}

.practice-player-color-note b {
  font: inherit;
}

.practice-player-color-disc {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.16), 0 1px 2px rgba(0,0,0,.15);
}

.practice-player-color-note.is-black .practice-player-color-disc {
  background: #111;
}

.practice-player-color-note.is-white .practice-player-color-disc {
  border: 1px solid #777;
  background: #fff;
}

.practice-generation-confirm,
.practice-analysis-confirm,
.practice-home-confirm {
  z-index: 430;
}

.practice-opening-complete {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 18;
  width: max-content;
  max-width: calc(100% - 42px);
  color: #fff7d0;
  font-size: clamp(19px, 5.5vw, 27px);
  font-weight: 1000;
  line-height: 1.3;
  text-align: center;
  text-shadow:
    0 2px 0 #173d30,
    1px 0 #173d30,
    -1px 0 #173d30,
    0 1px #173d30,
    0 -1px #173d30,
    0 5px 14px rgba(0,0,0,.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.practice-opponent-thinking {
  z-index: 60;
}

.practice-pass-notice {
  z-index: 420;
  pointer-events: none;
}

.practice-opening-result-overlay {
  z-index: 450;
}

.practice-opening-result-overlay .practice-opening-result-cutscene {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100dvh;
  padding: 20px;
  background: transparent;
}

.practice-opening-result-overlay .practice-opening-result-kicker {
  display: block;
  color: #f1f5ff;
  font-size: clamp(76px, 23vw, 126px);
  font-weight: 1000;
  line-height: 1;
  text-shadow:
    0 5px 0 rgba(11, 17, 31, .72),
    0 0 18px rgba(255,255,255,.28),
    0 20px 38px rgba(0,0,0,.56);
}

.practice-opening-result-overlay.is-win .practice-opening-result-kicker {
  color: #22d782;
  text-shadow:
    0 5px 0 rgba(2, 52, 33, .72),
    0 0 20px rgba(255,255,255,.42),
    0 20px 38px rgba(0,0,0,.56);
}

.practice-opening-result-overlay .practice-opening-result-panel {
  cursor: grab;
  touch-action: none;
}

.practice-opening-result-overlay .practice-opening-result-panel.is-dragging {
  cursor: grabbing;
}

.practice-opening-result-overlay .practice-opening-result-panel .button-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.practice-advanced-result-panel .practice-result-explanation-btn {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  border: 2px solid rgba(8, 96, 71, .28);
  border-radius: 12px;
  background: linear-gradient(145deg, #f7fbf8, #e2eee7);
  color: #0b6048;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(7, 70, 51, .18);
  touch-action: manipulation;
}

html[data-language="en"] .practice-advanced-result-panel .practice-result-explanation-btn {
  font-size: 12px;
}

.practice-explanation-backdrop {
  position: fixed;
  z-index: 480;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 17, 13, .78);
}

.practice-explanation-dialog {
  position: relative;
  width: min(100%, 390px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 22px 20px 18px;
  border: 2px solid rgba(18, 119, 80, .2);
  border-radius: 22px;
  background: #fbfaf5;
  color: #102a24;
  box-shadow: 0 24px 76px rgba(0, 0, 0, .46);
  overscroll-behavior: contain;
}

.practice-explanation-dialog h2 {
  margin: 0 44px 13px;
  color: #0b533f;
  font-size: clamp(20px, 5.8vw, 25px);
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.practice-explanation-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(16, 76, 57, .18);
  border-radius: 11px;
  background: #edf1ed;
  color: #294a40;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
}

.practice-explanation-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: min(64vw, 248px);
  aspect-ratio: 1;
  margin: 0 auto 13px;
  overflow: hidden;
  border: 5px solid #0a3f31;
  border-radius: 9px;
  background: #087a4f;
  box-shadow: 0 7px 17px rgba(3, 45, 32, .2);
}

.practice-explanation-board-coordinates {
  display: grid;
  grid-template-columns: 17px minmax(0, 248px);
  grid-template-rows: 17px auto;
  width: min(calc(64vw + 17px), 265px);
  margin: 0 auto 13px;
}

.practice-explanation-board-coordinates .practice-explanation-board {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  margin: 0;
}

.practice-explanation-column-labels {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  padding: 0 5px;
}

.practice-explanation-row-labels {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  padding: 5px 0;
}

.practice-explanation-column-labels span,
.practice-explanation-row-labels span {
  display: grid;
  place-items: center;
  color: #49655c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.practice-explanation-dialog.is-ui-confirmation-layout h2 {
  margin-bottom: 11px;
}

.practice-explanation-dialog.is-ui-confirmation-layout .practice-explanation-done {
  margin-top: 14px;
}

.practice-explanation-square {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(3, 57, 39, .72);
  background: #15945f;
}

.practice-explanation-square.is-theme {
  background: #2d9fa2;
}

.practice-explanation-square.is-corner {
  background: #d2a825;
}

.practice-explanation-square.is-correct::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 3px solid #ffe56a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(5, 63, 43, .5);
}

.practice-explanation-disc {
  position: relative;
  z-index: 1;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -2px -3px 5px rgba(0, 0, 0, .24), 0 2px 3px rgba(0, 0, 0, .25);
}

.practice-explanation-disc.is-black {
  background: radial-gradient(circle at 34% 28%, #525252, #111 60%, #000);
}

.practice-explanation-disc.is-white {
  border: 1px solid rgba(0, 0, 0, .1);
  background: radial-gradient(circle at 34% 28%, #fff, #ecece8 70%, #cbc9c2);
}

.practice-explanation-detail,
.practice-explanation-alternative {
  color: #384f47;
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: 750;
  line-height: 1.55;
  text-align: left;
}

.practice-explanation-detail {
  margin: 0 0 13px;
}

.practice-explanation-line {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 14px 15px;
  border-radius: 12px;
  background: #edf4ef;
  color: #254a3e;
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 800;
  line-height: 1.5;
}

.practice-explanation-line strong {
  color: #0b6b4e;
  font-size: clamp(16px, 4.4vw, 19px);
}

.practice-explanation-alternative {
  margin: 11px 0 0;
  color: #6a4d3e;
}

.practice-explanation-done {
  display: block;
  width: min(100%, 300px);
  min-height: 50px;
  margin: 16px auto 0;
  padding: 10px 20px;
  border: 1px solid #0b6a4d;
  border-radius: 13px;
  background: linear-gradient(145deg, #149366, #086047);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.practice-opening-result-overlay .practice-opening-result-summary {
  color: #3d4943;
  font-size: clamp(18px, 5.2vw, 24px);
  font-weight: 750;
  line-height: 1.35;
}

.practice-generation-confirm .resign-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  height: 56px;
  margin: 0;
  padding: 8px 12px;
  font-size: clamp(19px, 5vw, 22px);
  font-weight: 900;
}

.practice-generation-confirm .resign-dialog {
  width: min(88vw, 370px);
  padding: 24px 22px 20px;
}

.practice-generation-confirm .resign-dialog h2 {
  margin-bottom: 18px;
}

.practice-generation-limit-note {
  margin: -6px 0 14px;
  color: #52645d;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}

.practice-analysis-confirm .resign-dialog {
  width: min(100%, 370px);
}

.practice-analysis-confirm .resign-dialog h2 {
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-bottom: 16px;
  margin-left: auto;
  font-size: clamp(17px, 5.3vw, 23px);
  line-height: 1.4;
  text-align: center;
  white-space: pre-line;
}

.practice-analysis-confirm .resign-dialog h2.is-ad-supported {
  width: 100%;
  font-size: clamp(15px, 4.7vw, 23px);
  text-align: left;
}

.practice-analysis-subscriber-note {
  width: 100%;
  margin: -6px 0 16px;
  color: #52645d;
  font-size: clamp(11.5px, 3.5vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.practice-analysis-confirm .resign-actions > button {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 10px 12px;
}

.practice-analysis-ad {
  z-index: 440;
}

.practice-board {
  grid-area: auto !important;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  width: min(100%, 410px);
  margin: 0 auto;
}

.practice-square {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.practice-square.practice-evaluation-cell .replay-practice-evaluation-value {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: transparent;
  color: #fff4b8;
  font-size: clamp(13px, 4vw, 20px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 3px rgba(0,0,0,.8);
}

.practice-square.practice-evaluation-cell .replay-practice-evaluation-value.is-best {
  inset: 3%;
  width: 94%;
  height: 94%;
  color: #fff7cb;
  font-size: clamp(12px, 3.7vw, 19px);
  isolation: isolate;
}

.practice-square.practice-evaluation-cell .replay-practice-evaluation-value.is-best::before,
.practice-square.practice-evaluation-cell .replay-practice-evaluation-value.is-best::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 61.8% 35.1%, 98.6% 35.1%, 68.8% 56.7%, 80.2% 91.8%, 50% 70.1%, 19.8% 91.8%, 31.2% 56.7%, 1.4% 35.1%, 38.2% 35.1%);
}

.practice-square.practice-evaluation-cell .replay-practice-evaluation-value.is-best::before {
  z-index: -2;
  background: #ffe16a;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}

.practice-square.practice-evaluation-cell .replay-practice-evaluation-value.is-best::after {
  z-index: -1;
  inset: 7%;
  background: #123b2f;
}

.practice-dialog-backdrop {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2,17,13,.76);
}

.practice-dialog {
  width: min(100%, 380px);
  padding: 25px 20px 20px;
  border-radius: 22px;
  background: #fbfaf5;
  color: #102a24;
  text-align: center;
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
}

.practice-dialog h2 {
  margin: 0 0 9px;
  font-size: 20px;
}

.practice-dialog p {
  margin: 0;
  color: #63736d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.practice-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 19px;
}

.practice-dialog-actions button {
  min-height: 45px;
  border-radius: 12px;
  font-weight: 900;
}

.practice-dialog-actions .is-secondary {
  border: 1px solid rgba(16,76,57,.18);
  background: #edf0eb;
  color: #173d32;
}

.practice-dialog-actions .is-primary {
  border: 1px solid #0b6a4d;
  background: linear-gradient(145deg, #149366, #086047);
  color: #fff;
}

.practice-daily-limit-dialog > p {
  color: #52655f;
  font-size: clamp(15px, 4.2vw, 19px);
  font-weight: 900;
  line-height: 1.55;
  text-align: left;
}

.practice-daily-limit-dialog .practice-dialog-actions {
  display: flex;
  justify-content: center;
}

.practice-daily-limit-dialog [data-action="daily-limit-close"] {
  width: min(100%, 330px);
  min-height: 62px;
  padding: 12px 24px;
  font-size: clamp(17px, 4.8vw, 21px);
  text-align: center;
}

.replay-practice-daily-limit {
  position: fixed;
  z-index: 140;
}

.replay-practice-daily-limit[hidden] {
  display: none;
}

.practice-opening-takeback-confirm .resign-dialog h2 {
  display: grid;
  gap: 7px;
  text-align: center;
}

.practice-opening-takeback-confirm .resign-dialog h2 span,
.practice-opening-takeback-confirm .resign-dialog h2 small {
  display: block;
}

.practice-opening-takeback-confirm .resign-dialog h2 small {
  font-size: .72em;
  font-weight: 900;
}

.practice-opening-takeback-confirm .resign-actions > button {
  width: 100%;
  height: 56px;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 8px 12px;
  box-sizing: border-box;
}

.practice-result-label {
  margin-bottom: 5px;
  color: #0c754f;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .14em;
}

.practice-result-score {
  margin: 14px 0;
  padding: 9px;
  border-radius: 11px;
  background: #edf3ee;
  font-size: 13px;
  font-weight: 800;
}

.practice-result-score strong {
  margin-left: 5px;
  font-size: 20px;
}

.practice-result-facts {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  text-align: left;
}

.practice-result-facts div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 7px;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(16,76,57,.12);
}

.practice-result-facts dt { color: #73817c; font-size: 11px; }
.practice-result-facts dd { margin: 0; font-size: 13px; font-weight: 900; }

.practice-result-explanation {
  padding: 13px;
  border-radius: 13px;
  background: #fff6dc;
  color: #51441f !important;
  text-align: left;
}

@media (max-height: 700px) {
  .practice-select-screen { padding-block: 10px; }
  .practice-topbar { margin-top: 8px; }
  .practice-intro { margin-block: 7px; padding: 7px 11px; font-size: 13px; }
  .practice-theme-grid { gap: 6px; }
  .practice-theme-grid { grid-auto-rows: 72px; }
  .practice-theme-card { padding-block: 6px; }
  #practiceProblemsApp .practice-home-btn { min-height: 46px; margin: 7px 0 0; }
  .practice-battle-screen { gap: 7px; padding-block: 8px; }
  .practice-score { height: 64px; min-height: 64px; }
  .practice-score .score-info { height: 64px !important; min-height: 64px !important; }
  .practice-panel-home-btn { height: 64px; }
  .practice-inline-analyze-btn { min-height: 32px; padding-block: 3px; }
  .practice-board { width: min(100%, 330px); }
}

@media (prefers-reduced-motion: reduce) {
  .practice-spinner { animation-duration: .01ms; }
}
