/* Skákakademían v1.3 — professional rules-based board and opening academy */
.pro-page-heading { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pro-page-heading h1 { margin: 5px 0 5px; letter-spacing: -.045em; font-size: clamp(32px, 3.2vw, 48px); }
.pro-page-heading p { margin: 0; max-width: 720px; color: #9bb8d3; font-size: 13px; line-height: 1.55; }
.pro-live-badge, .pro-opening-stats { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(122, 169, 202, .2); border-radius: 12px; color: #b9cbe0; background: rgba(8, 23, 38, .78); font-size: 11px; font-weight: 850; box-shadow: inset 0 1px rgba(255,255,255,.03); }
.pro-live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(106,212,157,.75); }
.pro-opening-stats { gap: 18px; }.pro-opening-stats b { color: var(--cyan-2); }

.pro-analysis-layout { display: grid; grid-template-columns: minmax(500px, 1.35fr) minmax(320px, .65fr); align-items: start; gap: 18px; }
.pro-board-panel { padding: 14px; border-color: rgba(124, 170, 203, .2); background: linear-gradient(150deg, rgba(16,34,52,.94), rgba(7,19,32,.96)); box-shadow: 0 22px 65px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.03); }
.pro-toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.pro-toolbar button, .pro-import-card button, .pro-study-controls button, .pro-side-choice button { min-height: 35px; padding: 0 11px; border: 1px solid rgba(128,171,204,.22); border-radius: 8px; color: #abc0d5; background: linear-gradient(180deg,#14263c,#0c1c2e); font-size: 10px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.pro-toolbar button:hover, .pro-import-card button:hover, .pro-study-controls button:hover, .pro-side-choice button:hover { color: #fff; border-color: rgba(36,209,220,.6); transform: translateY(-1px); }
.pro-board-host, .pro-opening-board { width: min(100%, 61dvh, 670px); margin: 0 auto; }
.pro-board-frame { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: #d9e5e4; box-shadow: 0 26px 75px rgba(0,0,0,.36), 0 0 0 1px rgba(214,247,255,.18), 0 0 46px rgba(36,209,220,.065); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.pro-board-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8,1fr); }
.pro-square { position: relative; min-width: 0; min-height: 0; padding: 0; border: 0; display: grid; place-items: center; cursor: pointer; }
.pro-square.light { background: #e8d9c7; }.pro-square.dark { background: #a16155; }
:root[data-skin="midnight"] .pro-square.light { background: #dce8e7; }:root[data-skin="midnight"] .pro-square.dark { background: #4c7d87; }
:root[data-skin="aurora"] .pro-square.light { background: #dbe2eb; }:root[data-skin="aurora"] .pro-square.dark { background: #62709c; }
:root[data-skin="ocean"] .pro-square.light { background: #dbe8ef; }:root[data-skin="ocean"] .pro-square.dark { background: #4c7e9c; }
:root[data-skin="forest"] .pro-square.light { background: #dce6d7; }:root[data-skin="forest"] .pro-square.dark { background: #598069; }
:root[data-skin="royal"] .pro-square.light { background: #e0e2ef; }:root[data-skin="royal"] .pro-square.dark { background: #656ca5; }
:root[data-skin="ember"] .pro-square.light { background: #ead9ca; }:root[data-skin="ember"] .pro-square.dark { background: #9d6054; }
.pro-square.last::before { content: ""; position: absolute; inset: 0; background: rgba(246,184,79,.42); }
.pro-square.selected::before { content: ""; position: absolute; inset: 0; background: rgba(255,213,85,.58); box-shadow: inset 0 0 0 4px rgba(255,241,166,.38); }
.pro-square.marked::after { content: ""; position: absolute; inset: 8%; border-radius: 8%; background: rgba(255,203,67,.52); }
.pro-piece-wrap { position: relative; z-index: 3; width: 93%; height: 93%; display: grid; place-items: center; cursor: grab; filter: drop-shadow(0 4px 2px rgba(0,0,0,.25)); transition: transform .12s ease; }
.pro-piece-wrap:hover { transform: scale(1.045); }.pro-piece-wrap:active { cursor: grabbing; }
.pro-piece { width: 100%; height: 100%; pointer-events: none; }
.pro-move-dot { position: absolute; z-index: 5; width: 23%; height: 23%; border-radius: 50%; background: rgba(14,43,47,.42); pointer-events: none; }
.pro-move-dot.capture { width: 82%; height: 82%; background: transparent; border: clamp(4px,.65vw,8px) solid rgba(14,43,47,.43); }
.pro-rank,.pro-file { position: absolute; z-index: 7; color: rgba(16,45,48,.68); font-size: clamp(8px,.75vw,11px); font-weight: 950; pointer-events: none; }.pro-rank { top: 3px; left: 5px; }.pro-file { right: 5px; bottom: 3px; }
.pro-board-arrows { position: absolute; z-index: 8; inset: 0; width: 100%; height: 100%; pointer-events: none; }.pro-board-arrows line { stroke: rgba(255,167,44,.86); stroke-width: 17; stroke-linecap: round; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }.pro-board-arrows marker path { fill: rgba(255,167,44,.92); }
.pro-board-status { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 4px 1px; color: #8098b2; font-size: 10px; }.pro-board-status strong { color: #d9e9f7; font-size: 12px; }

.pro-analysis-side { display: grid; gap: 14px; }.pro-analysis-side > .panel { border-color: rgba(124,170,203,.19); background: linear-gradient(150deg,rgba(14,31,49,.94),rgba(7,20,33,.96)); box-shadow: 0 16px 50px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025); }
.pro-card-title { min-height: 50px; padding: 0 16px; border-bottom: 1px solid rgba(126,168,201,.15); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 850; }.pro-card-title em { color: var(--green); font-size: 9px; font-style: normal; letter-spacing: .09em; }.pro-card-title button { border: 0; color: var(--cyan); background: transparent; font-size: 9px; cursor: pointer; }
.pro-eval { padding: 18px 18px 10px; display: flex; align-items: baseline; gap: 12px; }.pro-eval strong { font-size: 38px; letter-spacing: -.04em; }.pro-eval span { color: #8ca3bb; font-size: 10px; }
.pro-best { margin: 0 16px 16px; padding: 15px; border: 1px solid rgba(126,168,201,.16); border-radius: 10px; background: rgba(4,16,28,.62); }.pro-best small { color: var(--cyan-2); letter-spacing: .13em; font-size: 9px; font-weight: 900; }.pro-best strong { display: block; margin: 7px 0; font-size: 25px; }.pro-best p { margin: 0; color: #9eb2c7; overflow-wrap: anywhere; font-family: monospace; font-size: 10px; line-height: 1.6; }
.pro-engine-card > .primary-button { width: calc(100% - 32px); margin: 0 16px 16px; }
.pro-move-list { max-height: 160px; padding: 12px 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; overflow: auto; }.pro-move-list span { color: #b6c6d6; font-size: 10px; }.pro-move-list b { color: #698199; margin-right: 5px; }.pro-move-list i { color: #e1edf8; font-style: normal; }.empty-moves { color: #70849a!important; }
.pro-import-card textarea { width: calc(100% - 32px); min-height: 78px; margin: 14px 16px 8px; padding: 10px; resize: vertical; border: 1px solid rgba(126,168,201,.18); border-radius: 8px; outline: 0; color: #dce9f5; background: #06111e; font-family: monospace; font-size: 10px; }.pro-import-card > div:not(.pro-card-title) { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }.pro-import-message { margin: 10px 16px 15px; color: #7890a8; font-size: 9px; }
.pro-promotion-picker { position: fixed; z-index: 150; inset: 0; display: none; place-items: center; gap: 8px; background: rgba(2,8,14,.76); backdrop-filter: blur(8px); }.pro-promotion-picker.open { display: flex; }.pro-promotion-picker button { width: 80px; height: 80px; padding: 5px; border: 1px solid rgba(36,209,220,.35); border-radius: 12px; background: #dce8e7; cursor: pointer; }.pro-promotion-picker svg { width: 100%; height: 100%; }

.pro-mode-tabs { display: flex; gap: 8px; margin-bottom: 14px; }.pro-mode-tabs button { min-height: 42px; padding: 0 16px; border: 1px solid rgba(126,168,201,.18); border-radius: 10px; color: #8ea5bc; background: rgba(10,25,41,.78); font-size: 11px; font-weight: 850; cursor: pointer; }.pro-mode-tabs button.active { color: #06131c; border-color: var(--cyan-2); background: linear-gradient(135deg,var(--cyan-2),var(--cyan)); box-shadow: 0 8px 24px rgba(36,209,220,.14); }
.pro-opening-layout { display: grid; grid-template-columns: minmax(210px,.48fr) minmax(500px,1.15fr) minmax(260px,.58fr); align-items: start; gap: 14px; }.pro-opening-layout > .panel { border-color: rgba(126,168,201,.18); background: linear-gradient(150deg,rgba(14,31,49,.94),rgba(7,19,32,.96)); box-shadow: 0 16px 50px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025); }
.pro-opening-library { overflow: hidden; }.pro-opening-library input { width: calc(100% - 24px); height: 38px; margin: 12px; padding: 0 11px; border: 1px solid rgba(126,168,201,.17); border-radius: 8px; outline: 0; color: #dceaf6; background: #06111e; font-size: 10px; }.pro-opening-list { max-height: min(68dvh,700px); padding: 0 8px 10px; overflow: auto; }.pro-opening-list button { width: 100%; padding: 11px; border: 1px solid transparent; border-radius: 9px; color: #9fb2c6; text-align: left; background: transparent; cursor: pointer; }.pro-opening-list button:hover { background: rgba(255,255,255,.035); }.pro-opening-list button.active { border-color: rgba(36,209,220,.25); background: linear-gradient(90deg,rgba(36,209,220,.13),rgba(36,209,220,.025)); }.pro-opening-list span,.pro-opening-list strong,.pro-opening-list small { display: block; }.pro-opening-list span { color: var(--cyan); letter-spacing: .08em; font-size: 8px; font-weight: 900; }.pro-opening-list strong { margin: 3px 0; color: #e5eff8; font-size: 11px; }.pro-opening-list small { color: #71879e; font-size: 8.5px; }
.pro-opening-stage { padding: 13px; }.pro-opening-head { min-height: 58px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.pro-opening-family { color: var(--cyan); letter-spacing: .1em; font-size: 8px; font-weight: 900; }.pro-opening-head h2 { margin: 3px 0; font-size: 18px; }.pro-opening-head p { margin: 0; color: #7890a8; font-size: 9px; }.pro-level { padding: 6px 9px; border: 1px solid rgba(246,184,79,.24); border-radius: 20px; color: var(--amber); background: rgba(246,184,79,.07); font-size: 8px; font-weight: 850; }
.pro-opening-board { width: min(100%,58dvh,610px); }.pro-study-controls { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }.pro-study-controls button { min-width: 38px; }.pro-study-controls .pro-autoplay { min-width: 78px; color: #07131c; border-color: var(--cyan); background: linear-gradient(135deg,var(--cyan-2),var(--cyan)); }
.pro-training-feedback { min-height: 46px; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(126,168,201,.14); border-radius: 9px; background: rgba(4,15,27,.55); }.pro-training-feedback strong,.pro-training-feedback span { display: block; }.pro-training-feedback strong { font-size: 11px; }.pro-training-feedback span { margin-top: 3px; color: #839aaf; font-size: 9px; line-height: 1.4; }.pro-training-feedback.correct { border-color: rgba(106,212,157,.35); background: rgba(106,212,157,.08); }.pro-training-feedback.correct strong { color: var(--green); }.pro-training-feedback.wrong { border-color: rgba(255,112,118,.35); background: rgba(255,112,118,.08); animation: pro-shake .22s linear; }.pro-training-feedback.wrong strong { color: #ff8f94; }
@keyframes pro-shake { 33% { transform: translateX(-4px); } 66% { transform: translateX(4px); } }
.pro-opening-notes > section { margin: 12px; padding: 12px; border: 1px solid rgba(126,168,201,.13); border-radius: 9px; background: rgba(4,15,27,.46); }.pro-opening-notes small { color: var(--cyan); letter-spacing: .1em; font-size: 8px; font-weight: 900; }.pro-opening-notes p { margin: 7px 0 0; color: #b1c2d2; font-size: 10px; line-height: 1.6; }.pro-side-choice div { display: flex; gap: 6px; margin-top: 8px; }.pro-side-choice button { flex: 1; }.pro-side-choice button.active { color: #06131c; background: var(--cyan-2); border-color: var(--cyan-2); }
.pro-opening-moves { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }.pro-opening-moves button { padding: 4px 6px; border: 0; border-radius: 5px; color: #7f94aa; background: #0d2033; font-size: 8.5px; cursor: pointer; }.pro-opening-moves button.played { color: #07131c; background: var(--cyan-2); }.pro-opening-notes > .primary-button { width: calc(100% - 24px); margin: 0 12px 12px; }
.pro-speed-panel { display: none; margin: 0 12px 12px; padding: 12px; border: 1px solid rgba(246,184,79,.22); border-radius: 10px; background: rgba(246,184,79,.07); align-items: baseline; gap: 7px; }.pro-speed-panel.active { display: flex; }.pro-speed-panel strong { color: var(--amber); font-size: 28px; }.pro-speed-panel span { color: #9aaec1; font-size: 9px; }.pro-speed-panel b { margin-left: auto; color: #dce8f4; font-size: 9px; }.pro-speed-panel i { color: var(--amber); font-style: normal; }

@media (max-width: 1380px) and (min-width: 901px) {
  .pro-opening-layout { grid-template-columns: minmax(210px,.45fr) minmax(460px,1fr); }
  .pro-opening-notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 10px; }
  .pro-opening-notes .pro-card-title { grid-column: 1 / -1; }.pro-opening-notes > section { margin: 0; }.pro-opening-notes > .primary-button { align-self: stretch; width: auto; margin: 0; }.pro-speed-panel { margin: 0; }
}
@media (max-width: 1150px) and (min-width: 901px) {
  .pro-analysis-layout { grid-template-columns: 1fr; }.pro-analysis-side { grid-template-columns: repeat(2,minmax(0,1fr)); }.pro-import-card { grid-column: 1 / -1; }
  .pro-board-host { width: min(100%,64dvh,650px); }
}
@media (max-width: 900px) {
  .pro-page-heading { min-height: 0; padding: 14px 3px 18px; flex-direction: column; align-items: flex-start; }.pro-page-heading h1 { font-size: 34px; }.pro-page-heading p { font-size: 12px; }
  .pro-analysis-layout,.pro-opening-layout { grid-template-columns: 1fr; }.pro-analysis-side { grid-template-columns: repeat(2,minmax(0,1fr)); }.pro-import-card { grid-column: 1 / -1; }
  .pro-opening-library { order: 2; }.pro-opening-stage { order: 1; }.pro-opening-notes { order: 3; }.pro-opening-list { max-height: 300px; }
  .pro-board-host,.pro-opening-board { width: min(100%,68dvh,650px); }
}
@media (max-width: 620px) {
  .pro-mode-tabs { display: grid; grid-template-columns: 1fr; }.pro-mode-tabs button { width: 100%; }
  .pro-analysis-side { grid-template-columns: 1fr; }.pro-import-card { grid-column: auto; }
  .pro-board-panel,.pro-opening-stage { padding: 8px; }.pro-board-status { align-items: flex-start; flex-direction: column; gap: 3px; }
  .pro-board-host,.pro-opening-board { width: 100%; }.pro-toolbar button { flex: 1; }.pro-rank,.pro-file { font-size: 8px; }
  .pro-opening-stats { width: 100%; justify-content: space-between; }.pro-promotion-picker button { width: 64px; height: 64px; }
}
