/* =========================================================
   MR Theory Board · Θεωρία 2 · Template 1 · Διαστήματα
   v0.7.8
   ========================================================= */

.mrtb-app[data-scene="t2-intervals"] .mrtb-values-section{
  display:none !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-sidebar{
  grid-template-columns:1fr !important;
  max-height:92px !important;
  overflow:visible !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-tools-section{
  overflow:visible !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-tools-one-line{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:4px !important;
  overflow:visible !important;
}

.mrtb-app[data-scene="t2-intervals"] [data-action="select-multi"],
.mrtb-app[data-scene="t2-intervals"] [data-action="add-staff"],
.mrtb-app[data-scene="t2-intervals"] [data-action="toggle-value-labels"]{
  display:none !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-staff-label,
.mrtb-app[data-scene="t2-intervals"] .mrtb-staff-hint{
  display:none !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-barline{
  display:none !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-mini-piano{
  top:396px;
}

/* =========================================================
   Αλλοιώσεις μέσα στην επάνω γραμμή εργαλείων
   ========================================================= */

.mrtb-t2i-toolbar-accidentals{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  margin-left:4px;
  padding-left:7px;
  border-left:2px solid rgba(38,48,68,.12);
}

.mrtb-t2i-toolbar-title{
  margin-right:1px;
  color:#536178;
  font-size:10px;
  line-height:1;
  font-weight:1000;
  white-space:nowrap;
  text-transform:uppercase;
  letter-spacing:.35px;
}

.mrtb-t2i-toolbar-accidentals button{
  min-width:34px !important;
  width:auto !important;
  min-height:28px !important;
  padding:2px 7px !important;
  border:0 !important;
  border-radius:9px !important;
  color:#263044 !important;
  background:linear-gradient(180deg,#fff,#eaf2ff) !important;
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.1),0 3px 7px rgba(35,72,92,.1) !important;
  font-family:"Times New Roman",serif !important;
  font-size:19px !important;
  line-height:1 !important;
  font-weight:900 !important;
  cursor:pointer !important;
}

.mrtb-t2i-toolbar-accidentals button[data-t2i-acc=""]{
  min-width:48px !important;
  font-family:inherit !important;
  font-size:9px !important;
  font-weight:950 !important;
}

.mrtb-t2i-toolbar-accidentals button:hover{
  transform:translateY(-1px);
}

.mrtb-t2i-toolbar-accidentals button.active{
  background:linear-gradient(180deg,#ffe88c,#ffbd3e) !important;
  outline:3px solid rgba(255,184,46,.3) !important;
}

.mrtb-t2i-toolbar-selected{
  max-width:155px;
  overflow:hidden;
  padding:5px 8px;
  border-radius:999px;
  color:#40506a;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(38,48,68,.08);
  font-size:9px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* =========================================================
   Κουμπιά Ανοδικά / Μαζί πάνω από το πεντάγραμμο
   ========================================================= */

.mrtb-t2i-staff-actions{
  position:absolute;
  left:278px;
  right:48px;
  top:38px;
  z-index:36;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  pointer-events:none;
}

.mrtb-t2i-staff-actions > *{
  pointer-events:auto;
}

.mrtb-t2i-staff-actions button{
  min-height:34px;
  padding:6px 12px;
  border:0;
  border-radius:12px;
  color:#263044;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.1),0 6px 13px rgba(35,72,92,.13);
  font:inherit;
  font-size:12px;
  font-weight:1000;
  cursor:pointer;
}

.mrtb-t2i-staff-actions button:hover{
  transform:translateY(-1px);
}

.mrtb-t2i-staff-actions .melodic{
  background:linear-gradient(180deg,#c2e8ff,#69b9ff);
}

.mrtb-t2i-staff-actions .harmonic{
  background:linear-gradient(180deg,#d9ffc8,#6de08a);
}

.mrtb-t2i-staff-actions .clear{
  background:linear-gradient(180deg,#fff,#e8eff8);
}

.mrtb-t2i-live-result{
  min-width:168px;
  max-width:290px;
  overflow:hidden;
  padding:8px 12px;
  border-radius:999px;
  color:#243044;
  background:linear-gradient(180deg,#fff7bd,#ffd563);
  border:2px solid rgba(255,184,46,.2);
  box-shadow:0 5px 12px rgba(35,72,92,.1),inset 0 -3px 0 rgba(0,0,0,.06);
  font-size:13px;
  line-height:1;
  font-weight:1000;
  text-align:center;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* =========================================================
   Διδακτική απεικόνιση επάνω στο πεντάγραμμο
   ========================================================= */

.mrtb-t2i-staff-guide-layer{
  position:absolute;
  inset:0;
  z-index:16;
  pointer-events:none;
}

.mrtb-t2i-interval-bracket{
  position:absolute;
  height:31px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  border-top:3px solid rgba(38,48,68,.5);
  color:#263044;
  pointer-events:none;
}

.mrtb-t2i-interval-bracket::before,
.mrtb-t2i-interval-bracket::after{
  content:"";
  position:absolute;
  top:-3px;
  width:3px;
  height:15px;
  border-radius:3px;
  background:rgba(38,48,68,.5);
}

.mrtb-t2i-interval-bracket::before{ left:0; }
.mrtb-t2i-interval-bracket::after{ right:0; }

.mrtb-t2i-interval-bracket strong{
  position:relative;
  top:-19px;
  max-width:82%;
  overflow:hidden;
  padding:7px 16px;
  border-radius:999px;
  color:#243044;
  background:linear-gradient(180deg,#fff7ba,#ffd05a);
  box-shadow:0 4px 10px rgba(35,72,92,.12);
  font-size:15px;
  line-height:1;
  font-weight:1000;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.mrtb-t2i-guide-note{
  position:absolute;
  z-index:19;
  width:56px;
  height:48px;
  opacity:.96;
  filter:drop-shadow(0 4px 5px rgba(35,72,92,.13));
}

.mrtb-t2i-guide-note.middle{
  opacity:.30;
  filter:none;
}

.mrtb-t2i-guide-note.half-neighbor.middle{
  opacity:.62;
}

.mrtb-t2i-guide-head{
  position:absolute;
  left:11px;
  top:12px;
  width:34px;
  height:23px;
  border:3px solid #263044;
  border-radius:50%;
  background:#263044;
  transform:rotate(-18deg);
}

.mrtb-t2i-guide-note.low .mrtb-t2i-guide-head{
  background:#4aa6f5;
  border-color:#225f9a;
  outline:5px solid rgba(70,151,255,.26);
  outline-offset:3px;
}

.mrtb-t2i-guide-note.high .mrtb-t2i-guide-head{
  background:#ffbf3f;
  border-color:#9e6811;
  outline:5px solid rgba(255,184,46,.28);
  outline-offset:3px;
}

.mrtb-t2i-guide-note.half-neighbor .mrtb-t2i-guide-head{
  box-shadow:0 0 0 6px rgba(255,85,145,.2);
}

.mrtb-t2i-guide-note.middle.half-neighbor .mrtb-t2i-guide-head{
  background:#ef5b93;
  border-color:#a8285c;
}

.mrtb-t2i-guide-label{
  position:absolute;
  left:50%;
  top:-16px;
  transform:translateX(-50%);
  min-width:34px;
  padding:3px 6px;
  border-radius:999px;
  color:#263044;
  background:rgba(255,255,255,.93);
  border:1px solid rgba(38,48,68,.1);
  font-size:10px;
  line-height:1;
  font-weight:1000;
  text-align:center;
  white-space:nowrap;
}

.mrtb-t2i-guide-order{
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  width:21px;
  height:21px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#263044;
  background:#fff;
  border:2px solid rgba(38,48,68,.13);
  font-size:9px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-guide-ledgers{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.mrtb-t2i-guide-ledgers i{
  position:absolute;
  left:3px;
  width:50px;
  height:3px;
  border-radius:3px;
  background:rgba(38,48,68,.78);
}

.mrtb-t2i-guide-connector{
  position:absolute;
  z-index:17;
  height:4px;
  border-radius:999px;
  transform-origin:0 50%;
  pointer-events:none;
}

.mrtb-t2i-guide-connector.whole{
  color:#2585d6;
  background:repeating-linear-gradient(
    90deg,
    rgba(37,133,214,.55) 0 11px,
    transparent 11px 17px
  );
}

.mrtb-t2i-guide-connector.half{
  color:#e13b7c;
  height:7px;
  background:linear-gradient(90deg,#ff9dc0,#e13b7c);
  box-shadow:0 0 0 5px rgba(255,85,145,.13);
}

.mrtb-t2i-guide-connector span{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) rotate(var(--counter-angle,0deg));
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:currentColor;
  background:#fff;
  border:2px solid currentColor;
  box-shadow:0 3px 7px rgba(35,72,92,.12);
  font-size:10px;
  line-height:1;
  font-weight:1000;
}

/* =========================================================
   Highlights στο υπάρχον πιανάκι
   ========================================================= */

.mrtb-app[data-scene="t2-intervals"] .mrtb-piano-label{
  min-height:23px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:3px 8px;
  border-radius:999px;
  color:#33445f;
  background:rgba(255,255,255,.65);
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key{
  transition:filter .16s ease,box-shadow .16s ease,background .16s ease,opacity .16s ease;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.white{
  position:relative;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.mrtb-t2i-piano-sequence{
  filter:saturate(1.04);
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.white.mrtb-t2i-piano-middle{
  background:linear-gradient(180deg,#f4fbff,#c9e8ff) !important;
  box-shadow:inset 0 -8px 0 rgba(49,130,198,.16),0 5px 10px rgba(35,72,92,.12) !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.black.mrtb-t2i-piano-middle{
  background:linear-gradient(180deg,#52728f,#24374d) !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.white.mrtb-t2i-piano-low{
  background:linear-gradient(180deg,#d9efff,#69b9ff) !important;
  color:#173b5f !important;
  box-shadow:inset 0 -8px 0 rgba(34,93,147,.24),0 5px 10px rgba(35,72,92,.12) !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.white.mrtb-t2i-piano-high{
  background:linear-gradient(180deg,#fff1b2,#ffc34a) !important;
  color:#4c3510 !important;
  box-shadow:inset 0 -8px 0 rgba(126,84,12,.18),0 5px 10px rgba(35,72,92,.12) !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.black.mrtb-t2i-piano-low{
  background:linear-gradient(180deg,#4e7193,#1d3651) !important;
  color:#fff !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.black.mrtb-t2i-piano-high{
  background:linear-gradient(180deg,#c99131,#72500e) !important;
  color:#fff6d7 !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.mrtb-t2i-piano-half{
  box-shadow:inset 0 0 0 3px rgba(235,57,126,.72),inset 0 -8px 0 rgba(0,0,0,.08) !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.white.mrtb-t2i-piano-natural-pair:not(.mrtb-t2i-piano-low):not(.mrtb-t2i-piano-high){
  background:linear-gradient(180deg,#ffe2ed,#ff9fc3) !important;
  color:#5b1735 !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.black.mrtb-t2i-piano-natural-pair:not(.mrtb-t2i-piano-low):not(.mrtb-t2i-piano-high){
  background:linear-gradient(180deg,#7b4055,#3f1727) !important;
  color:#ffdbe8 !important;
}

.mrtb-t2i-piano-badge{
  position:absolute;
  left:50%;
  top:7px;
  z-index:12;
  transform:translateX(-50%);
  min-width:22px;
  min-height:22px;
  display:grid;
  place-items:center;
  padding:2px 5px;
  border-radius:999px;
  color:#263044;
  background:rgba(255,255,255,.94);
  border:2px solid rgba(38,48,68,.12);
  box-shadow:0 3px 8px rgba(35,72,92,.13);
  font-size:9px;
  line-height:1;
  font-weight:1000;
  pointer-events:none;
}

.mrtb-key.black .mrtb-t2i-piano-badge{
  top:5px;
  min-width:19px;
  min-height:19px;
  font-size:8px;
}

/* =========================================================
   Κάτω επεξήγηση / αποτέλεσμα
   ========================================================= */

.mrtb-t2-intervals-scene{
  position:absolute;
  left:22px;
  right:22px;
  top:574px;
  z-index:12;
  min-height:590px;
  padding:16px;
  border-radius:28px;
  color:#263044;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(240,248,255,.92));
  border:2px solid rgba(255,255,255,.96);
  box-shadow:0 16px 34px rgba(35,72,92,.16),inset 0 0 0 3px rgba(255,255,255,.34);
}

.mrtb-t2i-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 16px;
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff,#fff2b8);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.06),0 8px 18px rgba(35,72,92,.09);
}

.mrtb-t2i-kicker{
  display:block;
  margin-bottom:4px;
  color:#65718a;
  font-size:11px;
  font-weight:950;
  letter-spacing:.7px;
  text-transform:uppercase;
}

.mrtb-t2i-head h2{
  margin:0;
  font-size:27px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-head p{
  margin:6px 0 0;
  max-width:720px;
  color:#526079;
  font-size:13px;
  font-weight:850;
}

.mrtb-t2i-head-legend{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
  max-width:430px;
}

.mrtb-t2i-head-legend span{
  position:relative;
  padding:6px 9px 6px 25px;
  border-radius:999px;
  color:#40506a;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(38,48,68,.08);
  font-size:9px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
}

.mrtb-t2i-head-legend span::before{
  content:"";
  position:absolute;
  left:8px;
  top:50%;
  width:11px;
  height:11px;
  transform:translateY(-50%);
  border-radius:50%;
  background:#b9c7d7;
}

.mrtb-t2i-head-legend .low::before{ background:#69b9ff; }
.mrtb-t2i-head-legend .middle::before{ opacity:.35; }
.mrtb-t2i-head-legend .half::before{ background:#ee5b94; }
.mrtb-t2i-head-legend .high::before{ background:#ffc34a; }

.mrtb-t2i-status{
  margin-top:12px;
  padding:10px 14px;
  border-radius:16px;
  font-size:13px;
  font-weight:950;
  text-align:center;
}

.mrtb-t2i-status.waiting{ background:#edf3fb; color:#66738a; }
.mrtb-t2i-status.ready{ background:#d9ffe5; color:#11723c; }
.mrtb-t2i-status.error{ background:#ffe0e0; color:#ad2929; }

.mrtb-t2i-result{
  display:grid;
  grid-template-columns:minmax(220px,1.25fr) repeat(3,minmax(145px,.72fr));
  gap:9px;
  margin-top:12px;
}

.mrtb-t2i-result[hidden],
.mrtb-t2i-counting[hidden],
.mrtb-t2i-explanation[hidden]{
  display:none !important;
}

.mrtb-t2i-result-main,
.mrtb-t2i-metric{
  min-height:100px;
  padding:12px;
  display:grid;
  align-content:center;
  gap:3px;
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#edf5ff);
  border:2px solid rgba(38,48,68,.07);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.05);
  text-align:center;
}

.mrtb-t2i-result-main{
  background:linear-gradient(180deg,#fff4b9,#ffc951);
}

.mrtb-t2i-metric.natural{
  background:linear-gradient(180deg,#ffe6f0,#ffb3cf);
}

.mrtb-t2i-metric.chromatic{
  background:linear-gradient(180deg,#dff4ff,#9edcff);
}

.mrtb-t2i-result-main span,
.mrtb-t2i-metric span{
  color:#5d6980;
  font-size:10px;
  font-weight:1000;
  letter-spacing:.5px;
  text-transform:uppercase;
}

.mrtb-t2i-result-main strong{
  font-size:24px;
  line-height:1.05;
  font-weight:1000;
}

.mrtb-t2i-metric strong{
  font-size:27px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-result-main small,
.mrtb-t2i-metric small{
  color:#59677f;
  font-size:10px;
  font-weight:900;
}

.mrtb-t2i-counting{
  margin-top:12px;
  padding:12px;
  border-radius:20px;
  background:rgba(255,255,255,.83);
  border:2px dashed rgba(38,48,68,.13);
}

.mrtb-t2i-section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.mrtb-t2i-section-title strong{
  font-size:14px;
  font-weight:1000;
}

.mrtb-t2i-section-title span{
  color:#68758d;
  font-size:11px;
  font-weight:850;
}

.mrtb-t2i-note-path{
  display:flex;
  align-items:center;
  gap:0;
  min-width:max-content;
  overflow-x:auto;
  padding:8px 4px 12px;
}

.mrtb-t2i-path-unit{
  display:flex;
  align-items:center;
}

.mrtb-t2i-path-note{
  width:58px;
  min-width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#edf4ff);
  border:2px solid rgba(38,48,68,.09);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.07),0 5px 10px rgba(35,72,92,.08);
}

.mrtb-t2i-path-note.low{
  background:linear-gradient(180deg,#d9eeff,#72bdff);
}

.mrtb-t2i-path-note.high{
  background:linear-gradient(180deg,#fff0b5,#ffc34b);
}

.mrtb-t2i-path-note.half-neighbor:not(.low):not(.high){
  background:linear-gradient(180deg,#ffe4ef,#ffafcd);
  border-color:rgba(225,59,124,.25);
}

.mrtb-t2i-path-note b{
  font-size:18px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-path-note small{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.8);
  font-size:10px;
  font-weight:1000;
}

.mrtb-t2i-step{
  position:relative;
  width:70px;
  min-width:70px;
  display:grid;
  place-items:center;
  gap:2px;
}

.mrtb-t2i-step::before{
  content:"";
  position:absolute;
  left:4px;
  right:4px;
  top:17px;
  height:5px;
  border-radius:999px;
  background:currentColor;
  opacity:.42;
}

.mrtb-t2i-step b{
  position:relative;
  z-index:1;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#fff;
  box-shadow:0 3px 8px rgba(35,72,92,.12);
  font-size:14px;
  font-weight:1000;
}

.mrtb-t2i-step small{
  margin-top:2px;
  font-size:8px;
  font-weight:950;
  white-space:nowrap;
}

.mrtb-t2i-step.whole{ color:#338edc; }
.mrtb-t2i-step.half{ color:#e43f80; }
.mrtb-t2i-step.half b{ background:#ffe0ec; }

.mrtb-t2i-explanation{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:9px;
  margin-top:12px;
}

.mrtb-t2i-explain-card{
  padding:12px 14px;
  border-radius:18px;
  background:#fff;
  border:2px solid rgba(38,48,68,.07);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.04);
}

.mrtb-t2i-explain-card.answer{
  background:linear-gradient(180deg,#e7ffef,#b9f3ca);
}

.mrtb-t2i-explain-card b{
  display:block;
  margin-bottom:5px;
  font-size:12px;
  font-weight:1000;
}

.mrtb-t2i-explain-card p{
  margin:0;
  color:#536178;
  font-size:11px;
  line-height:1.35;
  font-weight:850;
}

.mrtb-t2i-rules{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:12px;
}

.mrtb-t2i-rules article{
  padding:10px 11px;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#f1f6fd);
  border:2px solid rgba(38,48,68,.06);
}

.mrtb-t2i-rules strong{
  display:block;
  margin-bottom:4px;
  font-size:12px;
  font-weight:1000;
}

.mrtb-t2i-rules p{
  margin:0;
  color:#59677f;
  font-size:10px;
  line-height:1.32;
  font-weight:850;
}

/* Τα πραγματικά δύο άκρα που έγραψε ο χρήστης. */
.mrtb-app[data-scene="t2-intervals"] .mrtb-board-note.mrtb-t2i-low .mrtb-note-head{
  outline:5px solid rgba(70,151,255,.88) !important;
  outline-offset:5px !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-board-note.mrtb-t2i-high .mrtb-note-head{
  outline:5px solid rgba(255,184,46,.92) !important;
  outline-offset:5px !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-board-note.mrtb-t2i-ignored{
  opacity:.36;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-accidental{
  left:-31px !important;
  min-width:32px !important;
  font-size:35px !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width:1250px){
  .mrtb-app[data-scene="t2-intervals"] .mrtb-sidebar{
    max-height:126px !important;
  }

  .mrtb-t2i-toolbar-accidentals{
    width:100%;
    margin-left:0;
    padding-left:0;
    border-left:0;
  }

  .mrtb-t2i-staff-actions{
    left:210px;
    right:26px;
  }
}

@media (max-width:1100px){
  .mrtb-t2i-result{
    grid-template-columns:1fr 1fr;
  }

  .mrtb-t2i-explanation{
    grid-template-columns:1fr;
  }

  .mrtb-t2i-rules{
    grid-template-columns:1fr 1fr;
  }

  .mrtb-t2i-head{
    align-items:flex-start;
  }

  .mrtb-t2i-head-legend{
    max-width:300px;
  }
}

@media (max-width:900px){
  .mrtb-app[data-scene="t2-intervals"] .mrtb-sidebar{
    max-height:170px !important;
  }

  .mrtb-t2i-toolbar-title{
    display:none;
  }

  .mrtb-t2i-toolbar-selected{
    max-width:120px;
  }

  .mrtb-t2i-staff-actions{
    left:118px;
    right:18px;
    top:36px;
    flex-wrap:wrap;
    gap:4px;
  }

  .mrtb-t2i-live-result{
    order:-1;
    width:100%;
    max-width:none;
    min-width:0;
    padding:5px 9px;
    font-size:10px;
  }

  .mrtb-t2i-staff-actions button{
    min-height:29px;
    padding:4px 7px;
    border-radius:9px;
    font-size:10px;
  }

  .mrtb-t2-intervals-scene{
    left:10px;
    right:10px;
    top:518px;
    padding:10px;
    border-radius:20px;
  }

  .mrtb-t2i-head{
    display:grid;
    padding:11px;
    border-radius:17px;
  }

  .mrtb-t2i-head h2{
    font-size:22px;
  }

  .mrtb-t2i-head-legend{
    justify-content:flex-start;
    max-width:none;
  }

  .mrtb-t2i-result{
    grid-template-columns:1fr 1fr;
  }

  .mrtb-t2i-result-main{
    grid-column:1 / -1;
  }

  .mrtb-t2i-rules{
    grid-template-columns:1fr;
  }

  .mrtb-t2i-step{
    width:56px;
    min-width:56px;
  }

  .mrtb-t2i-path-note{
    width:52px;
    min-width:52px;
    height:52px;
  }

  .mrtb-t2i-guide-label{
    top:-12px;
    font-size:8px;
  }

  .mrtb-t2i-guide-order{
    bottom:-6px;
    width:18px;
    height:18px;
    font-size:8px;
  }

  .mrtb-t2i-interval-bracket strong{
    max-width:58%;
    font-size:9px;
  }
}


/* v0.7.3: τα highlights δεν αλλάζουν ποτέ μέγεθος/θέση πλήκτρων */
.mrtb-app[data-scene="t2-intervals"] .mrtb-key.white.mrtb-t2i-piano-sequence{
  transform:none !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.black.mrtb-t2i-piano-sequence{
  position:absolute !important;
  transform:translateX(-50%) !important;
  z-index:2 !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-key.black.mrtb-t2i-piano-sequence:active,
.mrtb-app[data-scene="t2-intervals"] .mrtb-key.black.mrtb-t2i-piano-sequence.playing{
  transform:translateX(-50%) translateY(4px) !important;
}


/* =========================================================
   v0.7.5 · Διπλή ύφεση καθαρά ορατή επάνω στη νότα
   ========================================================= */

.mrtb-app[data-scene="t2-intervals"]
.mrtb-accidental.mrtb-accidental-double-flat{
  left:-49px !important;
  top:8px !important;
  width:50px !important;
  min-width:50px !important;
  height:46px !important;
  display:inline-flex !important;
  align-items:flex-start !important;
  justify-content:flex-end !important;
  overflow:visible !important;
  white-space:nowrap !important;
  letter-spacing:0 !important;
  font-family:"Times New Roman",serif !important;
  font-size:38px !important;
  line-height:1 !important;
}

.mrtb-app[data-scene="t2-intervals"]
.mrtb-accidental.mrtb-accidental-double-flat i{
  display:block !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  font:inherit !important;
  font-style:normal !important;
  line-height:1 !important;
}

.mrtb-app[data-scene="t2-intervals"]
.mrtb-accidental.mrtb-accidental-double-flat i + i{
  margin-left:-8px !important;
}


/* =========================================================
   v0.7.6 · Multiplayer Interval Challenge
   ========================================================= */

.mrtb-t2i-game{
  margin-top:16px;
  padding:16px;
  border-radius:25px;
  color:#263044;
  background:linear-gradient(145deg,#f8fbff,#e9f3ff 58%,#fff4c7);
  border:2px solid rgba(255,255,255,.96);
  box-shadow:0 14px 32px rgba(35,72,92,.14),inset 0 0 0 2px rgba(83,136,187,.08);
}

.mrtb-t2i-game [hidden]{
  display:none !important;
}

.mrtb-t2i-game-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  border-radius:20px;
  background:linear-gradient(135deg,#19283d,#314d70);
  color:#fff;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.18),0 8px 18px rgba(35,72,92,.16);
}

.mrtb-t2i-game-head .mrtb-t2i-kicker{
  color:#a9c6e8;
}

.mrtb-t2i-game-head h3{
  margin:0;
  font-size:26px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-game-head p{
  margin:7px 0 0;
  color:#d6e6f7;
  font-size:12px;
  font-weight:850;
}

.mrtb-t2i-game-symbol-guide{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  max-width:520px;
}

.mrtb-t2i-game-symbol-guide span{
  padding:7px 9px;
  border-radius:11px;
  color:#dbeaff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  font-size:9px;
  line-height:1.25;
  font-weight:800;
}

.mrtb-t2i-game-symbol-guide b{
  display:block;
  margin-bottom:2px;
  color:#fff0a5;
  font-size:9px;
  font-weight:1000;
}

.mrtb-t2i-game-setup{
  margin-top:12px;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.8);
  border:2px solid rgba(38,48,68,.07);
}

.mrtb-t2i-game-setup-row{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:12px;
  align-items:stretch;
}

.mrtb-t2i-game-field{
  display:grid;
  align-content:center;
  gap:6px;
  padding:11px;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#eef5ff);
  border:2px solid rgba(38,48,68,.07);
}

.mrtb-t2i-game-field > span,
.mrtb-t2i-game-name-field > span{
  color:#5e6d84;
  font-size:10px;
  line-height:1;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.mrtb-t2i-game-field select,
.mrtb-t2i-game-name-field input{
  width:100%;
  min-height:39px;
  padding:8px 11px;
  border:2px solid rgba(57,92,132,.14);
  border-radius:12px;
  outline:none;
  color:#263044;
  background:#fff;
  font:inherit;
  font-size:12px;
  font-weight:950;
  box-sizing:border-box;
}

.mrtb-t2i-game-field select:focus,
.mrtb-t2i-game-name-field input:focus{
  border-color:#57a9f4;
  box-shadow:0 0 0 4px rgba(87,169,244,.15);
}

.mrtb-t2i-game-levels{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}

.mrtb-t2i-game-levels button{
  min-height:76px;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:2px;
  padding:9px;
  border:2px solid rgba(38,48,68,.07);
  border-radius:16px;
  color:#304059;
  background:linear-gradient(180deg,#fff,#edf4fd);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.06),0 5px 10px rgba(35,72,92,.08);
  font:inherit;
  cursor:pointer;
}

.mrtb-t2i-game-levels button:hover{
  transform:translateY(-1px);
}

.mrtb-t2i-game-levels button.active{
  color:#17263b;
  background:linear-gradient(180deg,#fff3a8,#ffc84e);
  border-color:rgba(231,164,31,.25);
  outline:4px solid rgba(255,192,62,.18);
}

.mrtb-t2i-game-levels b{
  font-size:14px;
  font-weight:1000;
}

.mrtb-t2i-game-levels span{
  font-size:12px;
  font-weight:1000;
}

.mrtb-t2i-game-levels small{
  color:#65748b;
  font-size:8px;
  font-weight:900;
}

.mrtb-t2i-game-player-names{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}

.mrtb-t2i-game-name-field{
  display:grid;
  gap:5px;
  padding:8px 9px;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#f4f8fd);
  border:1px solid rgba(38,48,68,.08);
}

.mrtb-t2i-game-start,
.mrtb-t2i-game-next,
.mrtb-t2i-game-replay{
  width:100%;
  min-height:46px;
  margin-top:12px;
  border:0;
  border-radius:15px;
  color:#fff;
  background:linear-gradient(180deg,#47bd78,#16884a);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.18),0 8px 15px rgba(28,128,72,.22);
  font:inherit;
  font-size:13px;
  font-weight:1000;
  cursor:pointer;
}

.mrtb-t2i-game-start:hover,
.mrtb-t2i-game-next:hover,
.mrtb-t2i-game-replay:hover{
  transform:translateY(-1px);
}

.mrtb-t2i-game-stage{
  margin-top:12px;
}

.mrtb-t2i-game-roundbar{
  display:grid;
  grid-template-columns:1fr 1.35fr 1fr;
  gap:8px;
}

.mrtb-t2i-game-roundbar > div{
  min-height:61px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:3px;
  padding:8px;
  border-radius:15px;
  background:linear-gradient(180deg,#fff,#edf5ff);
  border:2px solid rgba(38,48,68,.07);
  text-align:center;
}

.mrtb-t2i-game-roundbar > div.current{
  background:linear-gradient(180deg,#fff2af,#ffc94f);
}

.mrtb-t2i-game-roundbar span{
  color:#64738a;
  font-size:9px;
  line-height:1;
  font-weight:1000;
  text-transform:uppercase;
}

.mrtb-t2i-game-roundbar strong{
  font-size:14px;
  line-height:1.1;
  font-weight:1000;
}

.mrtb-t2i-game-scoreboard{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(82px,1fr);
  gap:6px;
  margin-top:8px;
  overflow-x:auto;
  padding-bottom:4px;
}

.mrtb-t2i-game-score{
  min-width:82px;
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:3px;
  padding:7px 8px;
  border-radius:12px;
  color:#42516a;
  background:rgba(255,255,255,.88);
  border:2px solid rgba(38,48,68,.06);
}

.mrtb-t2i-game-score.active{
  color:#173554;
  background:linear-gradient(180deg,#dff3ff,#9ed9ff);
  border-color:rgba(46,139,207,.24);
  box-shadow:0 0 0 3px rgba(65,156,224,.13);
}

.mrtb-t2i-game-score span{
  overflow:hidden;
  font-size:9px;
  font-weight:950;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.mrtb-t2i-game-score strong{
  font-size:17px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-game-score small{
  color:#6a7890;
  font-size:8px;
  font-weight:900;
}

.mrtb-t2i-game-question{
  margin-top:8px;
  padding:14px;
  border-radius:21px;
  background:linear-gradient(180deg,#fff,#f4f8fd);
  border:2px solid rgba(38,48,68,.07);
  box-shadow:inset 0 -5px 0 rgba(0,0,0,.035);
}

.mrtb-t2i-game-question-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.mrtb-t2i-game-question-count{
  color:#718098;
  font-size:9px;
  font-weight:1000;
  text-transform:uppercase;
}

.mrtb-t2i-game-question h4{
  margin:3px 0 0;
  font-size:20px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-game-listen{
  min-height:36px;
  padding:7px 12px;
  border:0;
  border-radius:12px;
  color:#173d64;
  background:linear-gradient(180deg,#dff3ff,#84caff);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.1),0 5px 10px rgba(35,72,92,.1);
  font:inherit;
  font-size:10px;
  font-weight:1000;
  cursor:pointer;
}

.mrtb-t2i-game-staff{
  position:relative;
  width:min(100%,390px);
  height:178px;
  margin:12px auto;
  overflow:hidden;
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#f7fbff);
  border:2px solid rgba(38,48,68,.08);
  box-shadow:inset 0 0 0 5px rgba(93,148,196,.04),0 8px 18px rgba(35,72,92,.08);
}

.mrtb-t2i-game-staff-line{
  position:absolute;
  left:43px;
  right:24px;
  top:calc(56px + (var(--line) * 18px));
  height:2px;
  border-radius:3px;
  background:#354258;
}

.mrtb-t2i-game-clef{
  position:absolute;
  left:48px;
  top:36px;
  z-index:3;
  color:#263044;
  font-family:"Times New Roman",serif;
  font-size:78px;
  line-height:1;
}

.mrtb-t2i-game-note{
  position:absolute;
  z-index:5;
  width:38px;
  height:42px;
  transform:translate(-50%,-50%);
}

.mrtb-t2i-game-notehead{
  position:absolute;
  left:8px;
  top:16px;
  width:28px;
  height:18px;
  border-radius:50%;
  background:#263044;
  transform:rotate(-18deg);
  box-shadow:0 2px 4px rgba(0,0,0,.2);
}

.mrtb-t2i-game-stem{
  position:absolute;
  width:3px;
  height:48px;
  border-radius:3px;
  background:#263044;
}

.mrtb-t2i-game-note.stem-up .mrtb-t2i-game-stem{
  left:33px;
  top:-26px;
}

.mrtb-t2i-game-note.stem-down .mrtb-t2i-game-stem{
  left:8px;
  top:27px;
}

.mrtb-t2i-game-accidental{
  position:absolute;
  right:31px;
  top:6px;
  min-width:30px;
  color:#263044;
  font-family:"Times New Roman",serif;
  font-size:31px;
  line-height:1;
  font-weight:900;
  font-style:normal;
  text-align:right;
  white-space:nowrap;
}

.mrtb-t2i-game-ledger{
  position:absolute;
  left:0;
  width:44px;
  height:2px;
  border-radius:3px;
  background:#354258;
}

.mrtb-t2i-game-answers{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(108px,1fr));
  gap:7px;
}

.mrtb-t2i-game-answers button{
  min-height:67px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:4px;
  padding:8px 5px;
  border:2px solid rgba(38,48,68,.08);
  border-radius:14px;
  color:#263044;
  background:linear-gradient(180deg,#fff,#eaf3ff);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.07),0 5px 10px rgba(35,72,92,.08);
  font:inherit;
  cursor:pointer;
}

.mrtb-t2i-game-answers button:hover:not(:disabled){
  transform:translateY(-2px);
  background:linear-gradient(180deg,#fff5bd,#ffd15b);
}

.mrtb-t2i-game-answers button:disabled{
  cursor:default;
}

.mrtb-t2i-game-answers button.correct{
  color:#0c6534;
  background:linear-gradient(180deg,#dffff0,#74e49a);
  border-color:rgba(21,149,76,.25);
  outline:4px solid rgba(63,207,118,.14);
}

.mrtb-t2i-game-answers button.wrong{
  color:#962727;
  background:linear-gradient(180deg,#ffe4e4,#ff9999);
  border-color:rgba(190,51,51,.23);
}

.mrtb-t2i-game-answers b{
  font-size:19px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-game-answers span{
  color:#607089;
  font-size:8px;
  line-height:1.1;
  font-weight:900;
  text-align:center;
}

.mrtb-t2i-game-feedback{
  margin-top:9px;
  padding:11px 13px;
  border-radius:14px;
  font-size:12px;
  font-weight:900;
  text-align:center;
}

.mrtb-t2i-game-feedback.correct{
  color:#11683a;
  background:#dfffea;
  border:2px solid rgba(43,166,92,.16);
}

.mrtb-t2i-game-feedback.wrong{
  color:#a12929;
  background:#ffe4e4;
  border:2px solid rgba(193,54,54,.14);
}

.mrtb-t2i-game-next{
  max-width:310px;
  display:block;
  margin-left:auto;
  margin-right:auto;
  background:linear-gradient(180deg,#4f9fef,#2268b0);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.16),0 8px 15px rgba(40,101,165,.2);
}

.mrtb-t2i-game-results{
  margin-top:12px;
  padding:16px;
  border-radius:21px;
  background:linear-gradient(145deg,#fff8c7,#ffd65e);
  border:2px solid rgba(211,150,25,.2);
  box-shadow:inset 0 -6px 0 rgba(0,0,0,.06),0 12px 25px rgba(141,100,22,.15);
}

.mrtb-t2i-game-results-title{
  text-align:center;
}

.mrtb-t2i-game-results-title span{
  color:#756127;
  font-size:10px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.mrtb-t2i-game-results-title h4{
  margin:5px 0 0;
  color:#3d3217;
  font-size:24px;
  line-height:1.1;
  font-weight:1000;
}

.mrtb-t2i-game-ranking{
  display:grid;
  gap:7px;
  max-width:680px;
  margin:13px auto 0;
}

.mrtb-t2i-game-rank{
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:10px;
  min-height:47px;
  padding:8px 12px;
  border-radius:14px;
  color:#3e4655;
  background:rgba(255,255,255,.76);
  border:2px solid rgba(100,76,19,.08);
}

.mrtb-t2i-game-rank.winner{
  color:#41330f;
  background:rgba(255,255,255,.96);
  box-shadow:0 6px 14px rgba(94,65,11,.12);
}

.mrtb-t2i-game-rank .place{
  font-size:19px;
  font-weight:1000;
  text-align:center;
}

.mrtb-t2i-game-rank strong{
  overflow:hidden;
  font-size:13px;
  font-weight:1000;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.mrtb-t2i-game-rank .points{
  padding:6px 9px;
  border-radius:999px;
  color:#fff;
  background:#263044;
  font-size:11px;
  font-weight:1000;
}

.mrtb-t2i-game-replay{
  max-width:330px;
  display:block;
  margin-left:auto;
  margin-right:auto;
  color:#fff;
  background:linear-gradient(180deg,#384f70,#1d2c41);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.2),0 8px 15px rgba(35,53,77,.2);
}

@media (max-width:1100px){
  .mrtb-t2i-game-head{
    display:grid;
  }

  .mrtb-t2i-game-symbol-guide{
    max-width:none;
  }

  .mrtb-t2i-game-player-names{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .mrtb-t2i-game-answers{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:760px){
  .mrtb-t2i-game{
    padding:10px;
    border-radius:18px;
  }

  .mrtb-t2i-game-head{
    padding:12px;
    border-radius:16px;
  }

  .mrtb-t2i-game-head h3{
    font-size:21px;
  }

  .mrtb-t2i-game-symbol-guide{
    grid-template-columns:1fr;
  }

  .mrtb-t2i-game-setup-row{
    grid-template-columns:1fr;
  }

  .mrtb-t2i-game-levels{
    grid-template-columns:1fr;
  }

  .mrtb-t2i-game-levels button{
    min-height:58px;
  }

  .mrtb-t2i-game-player-names{
    grid-template-columns:1fr;
  }

  .mrtb-t2i-game-roundbar{
    grid-template-columns:1fr 1fr;
  }

  .mrtb-t2i-game-roundbar > div.current{
    grid-column:1 / -1;
    grid-row:1;
  }

  .mrtb-t2i-game-question-top{
    align-items:flex-start;
  }

  .mrtb-t2i-game-listen{
    padding:6px 8px;
    font-size:9px;
  }

  .mrtb-t2i-game-staff{
    height:168px;
  }

  .mrtb-t2i-game-answers{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* =========================================================
   v0.7.7 · Το παιχνίδι ανοίγει σε ξεχωριστή scene
   ========================================================= */

/* Στη σκηνή του παιχνιδιού μένει ορατό μόνο το game UI. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-sidebar,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-values-section,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-staff,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-mini-piano,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-board-note,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-note-beam,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-board-tuplet,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-chord-stem-link,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2-intervals-scene,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-staff-actions,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-staff-guide-layer,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-toolbar-accidentals,
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-draw-canvas{
  display:none !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-shell{
  grid-template-rows:auto minmax(0,1fr) !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-board-wrap{
  min-height:760px !important;
  overflow:auto !important;
  background:
    radial-gradient(circle at 11% 10%,rgba(255,255,255,.78) 0 36px,transparent 38px),
    radial-gradient(circle at 88% 12%,rgba(255,255,255,.62) 0 52px,transparent 54px),
    linear-gradient(180deg,#80d9ff 0%,#bdeeff 46%,#c7f387 100%) !important;
}

.mrtb-t2i-game-scene{
  position:absolute;
  left:18px;
  right:18px;
  top:18px;
  z-index:130;
  min-height:720px;
  padding:0 0 30px;
  color:#263044;
}

.mrtb-t2i-game-scene-inner{
  width:min(1180px,100%);
  margin:0 auto;
}

.mrtb-t2i-game-scene .mrtb-t2i-game{
  position:relative;
  margin:0 !important;
  min-height:680px;
}

.mrtb-t2i-game-scene .mrtb-t2i-game-head{
  position:relative;
  padding-right:62px;
}

.mrtb-t2i-game-close{
  position:absolute;
  right:14px;
  top:14px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:13px;
  color:#fff;
  background:linear-gradient(180deg,#ff7b83,#e94355);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.16),0 7px 14px rgba(14,25,42,.24);
  font:inherit;
  font-size:18px;
  font-weight:1000;
  cursor:pointer;
}

.mrtb-t2i-game-close:hover{
  transform:translateY(-1px);
}

/* Η κανονική σκηνή μαθήματος δεν περιέχει πλέον το παιχνίδι. */
.mrtb-app[data-scene="t2-intervals"] .mrtb-t2-intervals-scene > .mrtb-t2i-game{
  display:none !important;
}

@media (max-width:900px){
  .mrtb-t2i-game-scene{
    left:8px;
    right:8px;
    top:10px;
  }

  .mrtb-t2i-game-scene .mrtb-t2i-game-head{
    padding-right:48px;
  }

  .mrtb-t2i-game-close{
    right:8px;
    top:8px;
    width:34px;
    height:34px;
    border-radius:11px;
  }
}


/* =========================================================
   v0.7.8 · Μεγάλος συμβολισμός στο μάθημα
   ========================================================= */

.mrtb-t2i-result-symbol{
  display:block;
  margin:2px auto 0;
  color:#17263b;
  font-family:Georgia,"Times New Roman",serif;
  font-size:44px;
  line-height:.92;
  font-weight:1000;
  letter-spacing:-1.5px;
  text-shadow:0 3px 0 rgba(255,255,255,.7),0 6px 12px rgba(92,62,8,.16);
}

.mrtb-t2i-live-result{
  display:grid;
  grid-template-rows:auto auto;
  justify-items:center;
  gap:1px;
  padding-top:5px;
  padding-bottom:6px;
}

.mrtb-t2i-live-result > b{
  display:block;
  color:#17263b;
  font-family:Georgia,"Times New Roman",serif;
  font-size:23px;
  line-height:.9;
  font-weight:1000;
}

.mrtb-t2i-live-result > span{
  display:block;
  max-width:100%;
  overflow:hidden;
  font-size:11px;
  line-height:1;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.mrtb-t2i-interval-bracket{
  height:42px;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}

.mrtb-t2i-bracket-symbol{
  position:relative;
  z-index:2;
  top:-47px;
  min-width:64px;
  padding:4px 15px 3px;
  border-radius:16px 16px 8px 8px;
  color:#17263b;
  background:linear-gradient(180deg,#fffdf0,#ffd45d);
  box-shadow:0 6px 12px rgba(35,72,92,.15),inset 0 -3px 0 rgba(0,0,0,.06);
  font-family:Georgia,"Times New Roman",serif;
  font-size:31px;
  line-height:1;
  font-weight:1000;
  text-align:center;
  white-space:nowrap;
}

.mrtb-t2i-interval-bracket strong{
  top:-47px;
  z-index:1;
  margin-top:2px;
  padding:6px 15px;
  border-radius:8px 8px 999px 999px;
  font-size:13px;
}

/* =========================================================
   v0.7.8 · Όλοι οι παίκτες παίζουν ταυτόχρονα
   ========================================================= */

.mrtb-t2i-game-scene-inner{
  width:100%;
  max-width:none;
}

.mrtb-t2i-game-scene .mrtb-t2i-game{
  min-height:calc(100vh - 96px);
}

.mrtb-t2i-game-players-grid{
  display:grid;
  gap:10px;
  margin-top:10px;
  align-items:stretch;
}

.mrtb-t2i-game-players-grid[data-count="1"]{
  grid-template-columns:minmax(0,1fr);
}

.mrtb-t2i-game-players-grid[data-count="2"]{
  grid-template-columns:repeat(2,minmax(0,1fr));
  min-height:calc(100vh - 265px);
}

.mrtb-t2i-game-players-grid[data-count="3"]{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.mrtb-t2i-game-players-grid[data-count="4"]{
  grid-template-columns:repeat(2,minmax(0,1fr));
  min-height:calc(100vh - 265px);
}

.mrtb-t2i-game-players-grid[data-count="5"]{
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.mrtb-t2i-game-players-grid[data-count="5"] > .mrtb-t2i-player-card{
  grid-column:span 2;
}
.mrtb-t2i-game-players-grid[data-count="5"] > .mrtb-t2i-player-card:nth-child(4){
  grid-column:2 / span 2;
}
.mrtb-t2i-game-players-grid[data-count="5"] > .mrtb-t2i-player-card:nth-child(5){
  grid-column:4 / span 2;
}

.mrtb-t2i-game-players-grid[data-count="6"],
.mrtb-t2i-game-players-grid[data-count="9"]{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.mrtb-t2i-game-players-grid[data-count="7"]{
  grid-template-columns:repeat(8,minmax(0,1fr));
}
.mrtb-t2i-game-players-grid[data-count="7"] > .mrtb-t2i-player-card{
  grid-column:span 2;
}
.mrtb-t2i-game-players-grid[data-count="7"] > .mrtb-t2i-player-card:nth-child(5){
  grid-column:2 / span 2;
}
.mrtb-t2i-game-players-grid[data-count="7"] > .mrtb-t2i-player-card:nth-child(6){
  grid-column:4 / span 2;
}
.mrtb-t2i-game-players-grid[data-count="7"] > .mrtb-t2i-player-card:nth-child(7){
  grid-column:6 / span 2;
}

.mrtb-t2i-game-players-grid[data-count="8"]{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.mrtb-t2i-player-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  padding:11px;
  border-radius:20px;
  color:#263044;
  background:linear-gradient(180deg,#fff,#eef6ff);
  border:2px solid rgba(38,48,68,.08);
  box-shadow:inset 0 -5px 0 rgba(0,0,0,.035),0 8px 18px rgba(35,72,92,.09);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.mrtb-t2i-game-players-grid[data-count="1"] .mrtb-t2i-player-card,
.mrtb-t2i-game-players-grid[data-count="2"] .mrtb-t2i-player-card{
  justify-content:space-between;
  min-height:clamp(470px,calc(100vh - 300px),690px);
}

.mrtb-t2i-game-players-grid[data-count="4"] .mrtb-t2i-player-card{
  min-height:clamp(340px,calc((100vh - 300px)/2),480px);
}

.mrtb-t2i-player-card.is-correct{
  border-color:rgba(30,165,84,.36);
  box-shadow:0 0 0 5px rgba(62,210,118,.12),0 10px 22px rgba(35,72,92,.11);
}

.mrtb-t2i-player-card.is-wrong{
  border-color:rgba(207,66,66,.3);
  box-shadow:0 0 0 5px rgba(234,80,80,.1),0 10px 22px rgba(35,72,92,.11);
}

.mrtb-t2i-player-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 9px;
  border-radius:14px;
  background:linear-gradient(135deg,#1f324b,#3b5e84);
  color:#fff;
}

.mrtb-t2i-player-card-head span{
  display:block;
  margin-bottom:2px;
  color:#bcd2ea;
  font-size:8px;
  line-height:1;
  font-weight:950;
  text-transform:uppercase;
}

.mrtb-t2i-player-card-head h4{
  max-width:220px;
  overflow:hidden;
  margin:0;
  font-size:16px;
  line-height:1.05;
  font-weight:1000;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.mrtb-t2i-player-score{
  flex:0 0 auto;
  min-width:54px;
  min-height:43px;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:2px;
  padding:5px 8px;
  border-radius:12px;
  color:#17263b;
  background:linear-gradient(180deg,#fff4ad,#ffc84e);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.08);
}

.mrtb-t2i-player-score strong{
  font-size:23px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-player-score small{
  font-size:9px;
  font-weight:950;
}

.mrtb-t2i-player-question-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  margin-top:8px;
}

.mrtb-t2i-player-question-row > b{
  font-size:12px;
  font-weight:1000;
}

.mrtb-t2i-player-card .mrtb-t2i-game-listen{
  min-height:30px;
  padding:5px 8px;
  font-size:9px;
}

.mrtb-t2i-player-card .mrtb-t2i-game-staff{
  width:100%;
  height:154px;
  margin:8px auto;
  border-radius:15px;
}

.mrtb-t2i-player-card .mrtb-t2i-game-staff-line{
  left:38px;
  right:14px;
}

.mrtb-t2i-player-card .mrtb-t2i-game-clef{
  left:38px;
  font-size:70px;
}

.mrtb-t2i-player-card .mrtb-t2i-game-answers{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}

.mrtb-t2i-player-card .mrtb-t2i-game-answers button{
  min-height:51px;
  padding:6px 4px;
  border-radius:12px;
}

.mrtb-t2i-player-card .mrtb-t2i-game-answers b{
  font-size:17px;
}

.mrtb-t2i-player-card .mrtb-t2i-game-answers span{
  font-size:7px;
}

.mrtb-t2i-player-feedback{
  min-height:35px;
  display:grid;
  place-items:center;
  margin-top:7px;
  padding:7px 8px;
  border-radius:12px;
  font-size:10px;
  line-height:1.15;
  font-weight:900;
  text-align:center;
}

.mrtb-t2i-player-feedback.waiting{
  color:#66748a;
  background:#edf3fb;
}

.mrtb-t2i-player-feedback.correct{
  color:#11683a;
  background:#dfffea;
  border:2px solid rgba(43,166,92,.14);
}

.mrtb-t2i-player-feedback.wrong{
  color:#a12929;
  background:#ffe4e4;
  border:2px solid rgba(193,54,54,.13);
}

/* Πιο συμπαγής εμφάνιση όταν οι παίκτες είναι πολλοί. */
.mrtb-t2i-game-players-grid[data-count="5"] .mrtb-t2i-player-card,
.mrtb-t2i-game-players-grid[data-count="6"] .mrtb-t2i-player-card,
.mrtb-t2i-game-players-grid[data-count="7"] .mrtb-t2i-player-card,
.mrtb-t2i-game-players-grid[data-count="8"] .mrtb-t2i-player-card,
.mrtb-t2i-game-players-grid[data-count="9"] .mrtb-t2i-player-card{
  padding:8px;
  border-radius:16px;
}

.mrtb-t2i-game-players-grid[data-count="7"] .mrtb-t2i-player-card .mrtb-t2i-game-staff,
.mrtb-t2i-game-players-grid[data-count="8"] .mrtb-t2i-player-card .mrtb-t2i-game-staff,
.mrtb-t2i-game-players-grid[data-count="9"] .mrtb-t2i-player-card .mrtb-t2i-game-staff{
  height:138px;
  margin:6px auto;
}

.mrtb-t2i-game-players-grid[data-count="7"] .mrtb-t2i-player-card-head h4,
.mrtb-t2i-game-players-grid[data-count="8"] .mrtb-t2i-player-card-head h4,
.mrtb-t2i-game-players-grid[data-count="9"] .mrtb-t2i-player-card-head h4{
  font-size:13px;
}

.mrtb-t2i-game-next{
  position:sticky;
  bottom:10px;
  z-index:20;
  max-width:460px;
  margin-top:12px;
}

@media (max-width:1180px){
  .mrtb-t2i-game-players-grid[data-count="7"],
  .mrtb-t2i-game-players-grid[data-count="8"]{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .mrtb-t2i-game-players-grid[data-count="7"] > .mrtb-t2i-player-card,
  .mrtb-t2i-game-players-grid[data-count="8"] > .mrtb-t2i-player-card{
    grid-column:auto !important;
  }
}

@media (max-width:900px){
  .mrtb-t2i-result-symbol{
    font-size:35px;
  }

  .mrtb-t2i-game-players-grid,
  .mrtb-t2i-game-players-grid[data-count]{
    grid-template-columns:repeat(2,minmax(0,1fr));
    min-height:0;
  }

  .mrtb-t2i-game-players-grid[data-count] > .mrtb-t2i-player-card{
    grid-column:auto !important;
    min-height:0;
  }
}

@media (max-width:620px){
  .mrtb-t2i-game-players-grid,
  .mrtb-t2i-game-players-grid[data-count]{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   MR Theory Board · Θεωρία 2 · Διαστήματα
   v0.7.9 · FIX συμβολισμού / ονόματος επάνω από την αγκύλη

   Βάλε αυτό το block ΣΤΟ ΤΕΛΟΣ του υπάρχοντος CSS.
   Δεν αλλάζεις καθόλου το JavaScript.
   ========================================================= */

.mrtb-app[data-scene="t2-intervals"] .mrtb-t2i-interval-bracket{
  display:block !important;
  height:0 !important;
  overflow:visible !important;
  border-top:3px solid rgba(38,48,68,.58) !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-t2i-bracket-symbol{
  position:absolute !important;
  left:50% !important;
  top:auto !important;
  bottom:50px !important;
  z-index:4 !important;
  transform:translateX(-50%) !important;
  min-width:76px !important;
  margin:0 !important;
  padding:8px 20px 7px !important;
  border-radius:22px 22px 13px 13px !important;
  font-size:40px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.mrtb-app[data-scene="t2-intervals"] .mrtb-t2i-interval-bracket strong{
  position:absolute !important;
  left:50% !important;
  top:auto !important;
  bottom:9px !important;
  z-index:3 !important;
  transform:translateX(-50%) !important;
  width:max-content !important;
  max-width:90% !important;
  margin:0 !important;
  padding:7px 18px 8px !important;
  overflow:visible !important;
  border-radius:999px !important;
  font-size:14px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  text-overflow:clip !important;
}

/* Οι κάθετες άκρες ξεκινούν ακριβώς από τη γραμμή. */
.mrtb-app[data-scene="t2-intervals"] .mrtb-t2i-interval-bracket::before,
.mrtb-app[data-scene="t2-intervals"] .mrtb-t2i-interval-bracket::after{
  top:-3px !important;
  height:28px !important;
}

@media (max-width:900px){
  .mrtb-app[data-scene="t2-intervals"] .mrtb-t2i-bracket-symbol{
    bottom:43px !important;
    min-width:62px !important;
    padding:6px 14px 5px !important;
    border-radius:17px 17px 10px 10px !important;
    font-size:30px !important;
  }

  .mrtb-app[data-scene="t2-intervals"] .mrtb-t2i-interval-bracket strong{
    bottom:8px !important;
    max-width:78% !important;
    padding:6px 12px 7px !important;
    font-size:11px !important;
  }
}

/* =========================================================
   MR Theory Board · Θεωρία 2 · Παιχνίδι Διαστημάτων
   v0.7.10 · Compact fullscreen game layout

   Βάλε αυτό το block ΣΤΟ ΤΕΛΟΣ του υπάρχοντος CSS.
   ========================================================= */

/* Περισσότερος διαθέσιμος χώρος στην ξεχωριστή σκηνή. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-board-wrap{
  min-height:calc(100vh - 58px) !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-scene{
  left:6px !important;
  right:6px !important;
  top:5px !important;
  min-height:0 !important;
  padding:0 0 8px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game{
  min-height:0 !important;
  padding:7px !important;
  border-radius:18px !important;
}

/*
 * Όταν έχει ξεκινήσει το παιχνίδι ή εμφανίζονται τα αποτελέσματα,
 * εξαφανίζεται όλο το μεγάλο σκούρο επάνω header.
 * Το μικρό Χ παραμένει διαθέσιμο.
 */
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game:has(.mrtb-t2i-game-stage:not([hidden]))
.mrtb-t2i-game-head,
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game:has(.mrtb-t2i-game-results:not([hidden]))
.mrtb-t2i-game-head{
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  background:none !important;
  box-shadow:none !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game:has(.mrtb-t2i-game-stage:not([hidden]))
.mrtb-t2i-game-head > div,
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game:has(.mrtb-t2i-game-results:not([hidden]))
.mrtb-t2i-game-head > div{
  display:none !important;
}

/* Μικρό floating κουμπί επιστροφής. */
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game:has(.mrtb-t2i-game-stage:not([hidden]))
.mrtb-t2i-game-close,
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game:has(.mrtb-t2i-game-results:not([hidden]))
.mrtb-t2i-game-close{
  right:3px !important;
  top:3px !important;
  z-index:250 !important;
  width:29px !important;
  height:29px !important;
  border-radius:10px !important;
  font-size:14px !important;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.16),0 4px 8px rgba(14,25,42,.18) !important;
}

/* Η stage ξεκινά αμέσως από επάνω. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-stage{
  margin-top:0 !important;
}

/* Πολύ πιο μικρή μπάρα γύρου / προόδου / level. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-roundbar{
  grid-template-columns:110px minmax(180px,1fr) 95px !important;
  gap:4px !important;
  padding-right:34px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-roundbar > div{
  min-height:37px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  padding:4px 7px !important;
  border-radius:10px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-roundbar span{
  font-size:7px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-roundbar strong{
  font-size:11px !important;
  line-height:1 !important;
}

/* Το grid φτάνει σχεδόν μέχρι τα άκρα της οθόνης. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-players-grid{
  gap:6px !important;
  margin-top:5px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid[data-count="2"]{
  min-height:calc(100vh - 112px) !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid[data-count="4"]{
  min-height:calc(100vh - 112px) !important;
}

/* Συμπαγείς κάρτες χωρίς χαμένο λευκό χώρο. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-card{
  padding:7px !important;
  border-radius:15px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid[data-count="1"] .mrtb-t2i-player-card,
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid[data-count="2"] .mrtb-t2i-player-card{
  min-height:calc(100vh - 112px) !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid[data-count="4"] .mrtb-t2i-player-card{
  min-height:clamp(330px,calc((100vh - 120px) / 2),440px) !important;
}

/* Μικρότερη κεφαλίδα παίκτη. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-card-head{
  min-height:37px !important;
  padding:5px 7px !important;
  border-radius:11px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-card-head span{
  margin-bottom:1px !important;
  font-size:14px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-card-head h4{
  font-size:14px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-score{
  min-width:45px !important;
  min-height:33px !important;
  padding:3px 6px !important;
  border-radius:9px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-score strong{
  font-size:18px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-score small{
  font-size:12px !important;
}

/* Ερώτηση και κουμπί ακρόασης σε μία μικρή γραμμή. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-question-row{
  min-height:25px !important;
  margin-top:4px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-question-row > b{
  font-size:10px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-listen{
  min-height:25px !important;
  padding:3px 7px !important;
  border-radius:9px !important;
  font-size:8px !important;
}

/* Το πεντάγραμμο μένει ευανάγνωστο, αλλά με μικρότερα περιθώρια. */
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-staff{
  height:151px !important;
  margin:4px auto !important;
  border-radius:12px !important;
}

/* Μικρότερα κουμπιά απαντήσεων. */
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-answers{
  gap:4px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-answers button{
  min-height:38px !important;
  gap:1px !important;
  padding:3px 3px !important;
  border-radius:9px !important;
  border-width:1px !important;
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.06),0 2px 5px rgba(35,72,92,.07) !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-answers button:hover:not(:disabled){
  transform:translateY(-1px) !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-answers b{
  font-size:15px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-answers span{
  font-size:6px !important;
  line-height:1 !important;
}

/* Πολύ μικρό feedback ώστε να μη σπρώχνει την κάρτα προς τα κάτω. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-player-feedback{
  min-height:27px !important;
  margin-top:4px !important;
  padding:4px 6px !important;
  border-radius:9px !important;
  font-size:8px !important;
}

/* Μικρότερο κουμπί επόμενου γύρου. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-next{
  min-height:34px !important;
  max-width:340px !important;
  margin-top:6px !important;
  padding:5px 12px !important;
  border-radius:11px !important;
  font-size:10px !important;
}

/* Σε 5–9 παίκτες συμπιέζεται λίγο ακόμη. */
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid:is([data-count="5"],[data-count="6"],[data-count="7"],[data-count="8"],[data-count="9"])
.mrtb-t2i-player-card{
  padding:5px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid:is([data-count="5"],[data-count="6"],[data-count="7"],[data-count="8"],[data-count="9"])
.mrtb-t2i-player-card .mrtb-t2i-game-staff{
  margin:3px auto !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid:is([data-count="7"],[data-count="8"],[data-count="9"])
.mrtb-t2i-player-card .mrtb-t2i-game-answers button{
  min-height:33px !important;
}

@media (max-width:900px){
  .mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-roundbar{
    grid-template-columns:78px minmax(120px,1fr) 68px !important;
  }

  .mrtb-app[data-scene="t2-intervals-game"]
  .mrtb-t2i-game-players-grid[data-count] .mrtb-t2i-player-card{
    min-height:0 !important;
  }
}
/* =========================================================
   MR Theory Board · Θεωρία 2 · Παιχνίδι Διαστημάτων
   v0.7.11 · μικρότερο πεντάγραμμο + LV4/LV5

   Βάλε αυτό το block ΣΤΟ ΤΕΛΟΣ του υπάρχοντος CSS v0.7.10.
   ========================================================= */

/* Πέντε levels στην αρχική οθόνη του παιχνιδιού. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-levels{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:6px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-levels button{
  min-height:62px !important;
  padding:6px 4px !important;
  border-radius:12px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-levels b{
  font-size:12px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-levels span{
  font-size:9px !important;
  line-height:1.05 !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-levels small{
  font-size:7px !important;
  line-height:1.05 !important;
}

/*
 * Πιο μικρό πεντάγραμμο με τις πέντε γραμμές στο κέντρο.
 * Έτσι μένει πραγματικός χώρος και πάνω και κάτω για βοηθητικές γραμμές.
 */
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-staff{
  height:140px !important;
  min-height:140px !important;
  margin:3px auto !important;
  overflow:hidden !important;
  border-radius:11px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-staff-line{
  left:34px !important;
  right:12px !important;
  top:calc(43px + (var(--line) * 14px)) !important;
  height:2px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-player-card .mrtb-t2i-game-clef{
  left:30px !important;
  top:24px !important;
  font-size:60px !important;
}

/* Μικρότερες νότες, στελέχη και αλλοιώσεις. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-note{
  width:30px !important;
  height:34px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-notehead{
  left:6px !important;
  top:11px !important;
  width:22px !important;
  height:14px !important;
  box-shadow:0 1px 3px rgba(0,0,0,.18) !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-stem{
  width:2.5px !important;
  height:38px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-note.stem-up .mrtb-t2i-game-stem{
  left:26px !important;
  top:-16px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-note.stem-down .mrtb-t2i-game-stem{
  left:6px !important;
  top:22px !important;
}

.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-accidental{
  right:25px !important;
  top:2px !important;
  min-width:24px !important;
  font-size:25px !important;
}

/* Πολλαπλές βοηθητικές γραμμές πάνω και κάτω από το πεντάγραμμο. */
.mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-ledger{
  left:-2px !important;
  width:36px !important;
  height:2px !important;
  transform:translateY(-50%) !important;
}

/* Στα LV4 και LV5 υπάρχουν 6 επιλογές: 3 ανά σειρά για οικονομία χώρου. */
.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid:is([data-level="4"],[data-level="5"])
.mrtb-t2i-game-answers{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid:is([data-level="4"],[data-level="5"])
.mrtb-t2i-game-answers button{
  min-height:36px !important;
  padding:3px 2px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid:is([data-level="4"],[data-level="5"])
.mrtb-t2i-game-answers b{
  font-size:14px !important;
}

.mrtb-app[data-scene="t2-intervals-game"]
.mrtb-t2i-game-players-grid:is([data-level="4"],[data-level="5"])
.mrtb-t2i-game-answers span{
  font-size:5.5px !important;
}

@media (max-width:1100px){
  .mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-levels{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width:700px){
  .mrtb-app[data-scene="t2-intervals-game"] .mrtb-t2i-game-levels{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .mrtb-app[data-scene="t2-intervals-game"]
  .mrtb-t2i-game-players-grid:is([data-level="4"],[data-level="5"])
  .mrtb-t2i-game-answers{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* =========================================================
   MR Theory Board · Θεωρία 2 · Διαστήματα
   v0.7.13 · Compact «Φυσικά διαστήματα» με έμφαση στις βαθμίδες
   ========================================================= */

/* Το κουμπί βρίσκεται δίπλα στο «Βάλε 2 νότες». */
.mrtb-t2i-staff-actions .natural{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:6px 11px;
  color:#fff;
  background:linear-gradient(180deg,#6d82ee,#4c4fc3);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.16),0 6px 13px rgba(58,66,164,.2);
  white-space:nowrap;
}

.mrtb-t2i-staff-actions .natural span{
  font-size:15px;
  line-height:1;
}

/* Στη σκηνή μένει ορατό μόνο το εκπαιδευτικό περιεχόμενο. */
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-sidebar,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-values-section,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-staff,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-mini-piano,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-board-note,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-note-beam,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-board-tuplet,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-chord-stem-link,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-t2-intervals-scene,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-t2i-staff-actions,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-t2i-staff-guide-layer,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-t2i-toolbar-accidentals,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-draw-canvas{
  display:none !important;
}

.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-shell{
  grid-template-rows:auto minmax(0,1fr) !important;
}

.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-board-wrap{
  min-height:calc(100vh - 58px) !important;
  overflow:auto !important;
  background:
    radial-gradient(circle at 9% 8%,rgba(255,255,255,.68) 0 42px,transparent 44px),
    linear-gradient(180deg,#8adfff 0%,#c8f0ff 50%,#d7f5a4 100%) !important;
}

.mrtb-t2i-natural-scene{
  position:absolute;
  left:7px;
  right:7px;
  top:6px;
  z-index:130;
  padding:0 0 10px;
  color:#263044;
}

.mrtb-t2i-natural-scene-inner{
  width:100%;
  margin:0 auto;
}

.mrtb-t2i-natural-board{
  padding:8px;
  border:2px solid rgba(255,255,255,.96);
  border-radius:20px;
  background:linear-gradient(150deg,rgba(249,253,255,.98),rgba(232,245,255,.97) 62%,rgba(255,247,205,.96));
  box-shadow:0 14px 30px rgba(35,72,92,.16),inset 0 0 0 2px rgba(83,136,187,.06);
}

/* Μικρή κεφαλίδα, χωρίς το άσχετο section της κλίμακας. */
.mrtb-t2i-natural-head{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 11px;
  border-radius:15px;
  color:#fff;
  background:linear-gradient(135deg,#1c3049,#37658d 62%,#505bb0);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.15),0 7px 14px rgba(35,72,92,.16);
}

.mrtb-t2i-natural-head h2{
  margin:0;
  font-size:22px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-natural-head p{
  margin:4px 0 0;
  color:#dceafa;
  font-size:9px;
  line-height:1.15;
  font-weight:850;
}

.mrtb-t2i-natural-close{
  flex:0 0 auto;
  min-height:33px;
  padding:6px 11px;
  border:0;
  border-radius:10px;
  color:#263044;
  background:linear-gradient(180deg,#fff7b6,#ffc94e);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.1),0 5px 10px rgba(14,25,42,.2);
  font:inherit;
  font-size:9px;
  font-weight:1000;
  cursor:pointer;
}

/* Τέσσερα συμπαγή κουμπιά. Οι βαθμίδες είναι το βασικό στοιχείο. */
.mrtb-t2i-natural-cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  margin-top:7px;
}

.mrtb-t2i-natural-card{
  min-width:0;
  min-height:78px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  align-items:center;
  gap:7px;
  padding:6px;
  border:2px solid rgba(38,48,68,.07);
  border-radius:14px;
  color:#263044;
  background:linear-gradient(180deg,#fff,#edf5ff);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.05),0 5px 10px rgba(35,72,92,.07);
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.mrtb-t2i-natural-card:hover{
  transform:translateY(-1px);
}

.mrtb-t2i-natural-card.active{
  border-color:rgba(52,106,165,.25);
  outline:3px solid rgba(68,141,213,.11);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.06),0 8px 15px rgba(35,72,92,.12);
}

.mrtb-t2i-natural-card.pink.active{ background:linear-gradient(180deg,#fff0f6,#ffb6d1); }
.mrtb-t2i-natural-card.gold.active{ background:linear-gradient(180deg,#fff9c9,#ffd35e); }
.mrtb-t2i-natural-card.violet.active{ background:linear-gradient(180deg,#f5edff,#c4a4ff); }
.mrtb-t2i-natural-card.blue.active{ background:linear-gradient(180deg,#e8f7ff,#8fd2ff); }

.mrtb-t2i-natural-card-symbol{
  min-height:56px;
  display:grid;
  place-items:center;
  padding:3px;
  border-radius:11px;
  color:#17263b;
  background:rgba(255,255,255,.84);
  border:1px solid rgba(38,48,68,.08);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.05);
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
  line-height:.95;
  font-weight:1000;
  text-align:center;
  white-space:nowrap;
}

.mrtb-t2i-natural-card-copy{
  min-width:0;
  display:grid;
  gap:3px;
}

.mrtb-t2i-natural-card-copy b{
  overflow:hidden;
  font-size:10px;
  line-height:1.05;
  font-weight:1000;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.mrtb-t2i-natural-card-copy strong{
  color:#173653;
  font-family:Georgia,"Times New Roman",serif;
  font-size:14px;
  line-height:1;
  font-weight:1000;
  white-space:nowrap;
}

.mrtb-t2i-natural-card-copy small{
  overflow:hidden;
  color:#62718a;
  font-size:8px;
  line-height:1.05;
  font-weight:900;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* Επιλεγμένο διάστημα. */
.mrtb-t2i-natural-focus{
  margin-top:7px;
  padding:8px;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#f2f8ff);
  border:2px solid rgba(38,48,68,.08);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.03);
}

.mrtb-t2i-natural-focus[data-tone="pink"]{ background:linear-gradient(145deg,#fff,#fff1f6 68%,#ffd4e4); }
.mrtb-t2i-natural-focus[data-tone="gold"]{ background:linear-gradient(145deg,#fff,#fff9dc 68%,#ffe68d); }
.mrtb-t2i-natural-focus[data-tone="violet"]{ background:linear-gradient(145deg,#fff,#f8f1ff 68%,#dcc6ff); }
.mrtb-t2i-natural-focus[data-tone="blue"]{ background:linear-gradient(145deg,#fff,#effaff 68%,#bce7ff); }

.mrtb-t2i-natural-focus-head{
  display:grid;
  grid-template-columns:112px minmax(0,1fr) minmax(170px,240px);
  align-items:center;
  gap:9px;
}

.mrtb-t2i-natural-focus-symbol{
  min-height:66px;
  display:grid;
  place-items:center;
  padding:5px;
  border-radius:13px;
  color:#17263b;
  background:rgba(255,255,255,.9);
  border:2px solid rgba(38,48,68,.08);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.05),0 5px 10px rgba(35,72,92,.07);
  font-family:Georgia,"Times New Roman",serif;
  font-size:31px;
  line-height:.95;
  font-weight:1000;
  text-align:center;
}

.mrtb-t2i-natural-focus-copy{
  min-width:0;
}

.mrtb-t2i-natural-focus-copy > small{
  display:block;
  margin-bottom:3px;
  color:#6b7890;
  font-size:7px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.45px;
}

.mrtb-t2i-natural-focus-copy h3{
  margin:0;
  font-size:17px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-natural-focus-copy > strong{
  display:block;
  margin-top:6px;
  color:#153b5d;
  font-family:Georgia,"Times New Roman",serif;
  font-size:25px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.2px;
}

.mrtb-t2i-natural-inversion{
  margin:0;
  padding:8px 10px;
  border-radius:11px;
  color:#5a3d09;
  background:linear-gradient(180deg,#fff9d1,#ffe487);
  border:1px solid rgba(174,126,24,.13);
  font-size:9px;
  line-height:1.15;
  font-weight:1000;
  text-align:center;
}

/* Οι διαδρομές βαθμίδων είναι το κεντρικό οπτικό στοιχείο. */
.mrtb-t2i-natural-examples{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  gap:7px;
  margin-top:8px;
}

.mrtb-t2i-natural-route{
  min-height:82px;
  display:grid;
  grid-template-columns:minmax(145px,.9fr) minmax(120px,1fr) auto;
  align-items:center;
  gap:9px;
  padding:7px 9px;
  border-radius:13px;
  background:rgba(255,255,255,.91);
  border:2px solid rgba(38,48,68,.07);
}

.mrtb-t2i-natural-degree-pair{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.mrtb-t2i-natural-degree-pair b{
  min-width:54px;
  min-height:50px;
  display:grid;
  place-items:center;
  padding:4px 8px;
  border-radius:12px;
  color:#173653;
  background:linear-gradient(180deg,#e6f5ff,#8fd0ff);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.06);
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-natural-degree-pair span{
  color:#596980;
  font-size:22px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-natural-note-pair{
  min-width:0;
  display:grid;
  gap:4px;
}

.mrtb-t2i-natural-note-pair strong{
  color:#263044;
  font-size:13px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-natural-note-pair small{
  color:#67758b;
  font-size:8px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
}

.mrtb-t2i-natural-route button{
  min-height:31px;
  padding:5px 8px;
  border:0;
  border-radius:9px;
  color:#173d64;
  background:linear-gradient(180deg,#dff3ff,#84caff);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.1),0 4px 8px rgba(35,72,92,.09);
  font:inherit;
  font-size:8px;
  font-weight:1000;
  cursor:pointer;
  white-space:nowrap;
}

.mrtb-t2i-natural-route button:hover{
  transform:translateY(-1px);
}

.mrtb-t2i-natural-explanation{
  margin:7px 2px 0;
  padding:7px 9px;
  border-radius:10px;
  color:#4f5e76;
  background:rgba(255,255,255,.7);
  font-size:9px;
  line-height:1.25;
  font-weight:850;
}

@media (max-width:1100px){
  .mrtb-t2i-natural-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .mrtb-t2i-natural-focus-head{
    grid-template-columns:100px minmax(0,1fr);
  }

  .mrtb-t2i-natural-inversion{
    grid-column:1 / -1;
    padding:6px 9px;
  }
}

@media (max-width:900px){
  .mrtb-t2i-staff-actions .natural{
    min-height:29px;
    padding:4px 7px;
    border-radius:9px;
    font-size:9px;
  }
}

@media (max-width:700px){
  .mrtb-t2i-natural-scene{
    left:4px;
    right:4px;
    top:4px;
  }

  .mrtb-t2i-natural-board{
    padding:6px;
    border-radius:15px;
  }

  .mrtb-t2i-natural-head{
    min-height:0;
    padding:8px;
    border-radius:12px;
  }

  .mrtb-t2i-natural-head h2{
    font-size:18px;
  }

  .mrtb-t2i-natural-head p{
    font-size:8px;
  }

  .mrtb-t2i-natural-close{
    min-height:29px;
    padding:5px 8px;
    font-size:8px;
  }

  .mrtb-t2i-natural-cards{
    grid-template-columns:1fr 1fr;
  }

  .mrtb-t2i-natural-card{
    min-height:70px;
    grid-template-columns:50px minmax(0,1fr);
  }

  .mrtb-t2i-natural-card-symbol{
    min-height:49px;
    font-size:18px;
  }

  .mrtb-t2i-natural-card-copy b{
    font-size:8px;
  }

  .mrtb-t2i-natural-card-copy strong{
    font-size:11px;
  }

  .mrtb-t2i-natural-focus-head{
    grid-template-columns:78px minmax(0,1fr);
  }

  .mrtb-t2i-natural-focus-symbol{
    min-height:55px;
    font-size:23px;
  }

  .mrtb-t2i-natural-focus-copy h3{
    font-size:14px;
  }

  .mrtb-t2i-natural-focus-copy > strong{
    font-size:18px;
  }

  .mrtb-t2i-natural-route{
    grid-template-columns:1fr auto;
  }

  .mrtb-t2i-natural-degree-pair{
    justify-content:flex-start;
  }

  .mrtb-t2i-natural-degree-pair b{
    min-width:47px;
    min-height:43px;
    font-size:20px;
  }

  .mrtb-t2i-natural-note-pair{
    grid-column:1 / -1;
    grid-row:2;
  }

  .mrtb-t2i-natural-route button{
    grid-column:2;
    grid-row:1;
  }
}


/* =========================================================
   MR Theory Board · Θεωρία 2 · Φυσικά διαστήματα
   v0.7.14 · οπτική θέση μέσα στην κλίμακα Ντο Ionian
   ========================================================= */

.mrtb-t2i-natural-scale-box{
  margin-top:8px;
  padding:8px;
  border-radius:14px;
  background:rgba(255,255,255,.78);
  border:2px solid rgba(38,48,68,.07);
}

.mrtb-t2i-natural-scale-box-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:7px;
}

.mrtb-t2i-natural-scale-box-head b{
  font-size:11px;
  line-height:1.1;
  font-weight:1000;
}

.mrtb-t2i-natural-scale-box-head span{
  color:#173b5d;
  font-family:Georgia,"Times New Roman",serif;
  font-size:14px;
  line-height:1;
  font-weight:1000;
  white-space:nowrap;
}

.mrtb-t2i-natural-scale-map{
  display:flex;
  align-items:center;
  gap:0;
  overflow-x:auto;
  padding:6px 2px 10px;
}

.mrtb-t2i-natural-scale-unit{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}

.mrtb-t2i-natural-scale-note{
  position:relative;
  width:62px;
  min-width:62px;
  height:62px;
  display:grid;
  place-items:center;
  gap:2px;
  border-radius:18px;
  color:#263044;
  background:linear-gradient(180deg,#fff,#edf4ff);
  border:2px solid rgba(38,48,68,.08);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.05),0 4px 9px rgba(35,72,92,.06);
}

.mrtb-t2i-natural-scale-note b{
  font-size:16px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-natural-scale-note small{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:#50617a;
  background:rgba(255,255,255,.94);
  font-size:9px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-natural-scale-note i{
  position:absolute;
  left:50%;
  bottom:-8px;
  width:10px;
  height:10px;
  transform:translateX(-50%);
  border-radius:50%;
  background:transparent;
}

.mrtb-t2i-natural-scale-note.is-start{
  background:linear-gradient(180deg,#dff2ff,#89ceff);
  border-color:rgba(44,131,203,.25);
}

.mrtb-t2i-natural-scale-note.is-start i{
  background:#58aef7;
  box-shadow:0 0 0 5px rgba(88,174,247,.18);
}

.mrtb-t2i-natural-scale-note.is-end{
  background:linear-gradient(180deg,#fff1bf,#ffc958);
  border-color:rgba(186,130,18,.22);
}

.mrtb-t2i-natural-scale-note.is-end i{
  background:#ffbf3f;
  box-shadow:0 0 0 5px rgba(255,191,63,.18);
}

.mrtb-t2i-natural-scale-note.is-between:not(.is-start):not(.is-end){
  background:linear-gradient(180deg,#f9fbff,#e4eef9);
  opacity:.72;
}

.mrtb-t2i-natural-step{
  position:relative;
  width:34px;
  min-width:34px;
  height:30px;
  display:grid;
  place-items:center;
  color:#4d6b89;
}

.mrtb-t2i-natural-step::before{
  content:"";
  position:absolute;
  left:4px;
  right:4px;
  top:13px;
  height:4px;
  border-radius:999px;
  background:currentColor;
  opacity:.28;
}

.mrtb-t2i-natural-step b{
  position:relative;
  z-index:1;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  border:2px solid currentColor;
  font-size:8px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-natural-step.half{
  color:#df4f86;
}

.mrtb-t2i-natural-scale-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
}

.mrtb-t2i-natural-scale-legend span{
  position:relative;
  padding-left:16px;
  color:#607089;
  font-size:8px;
  line-height:1;
  font-weight:1000;
  text-transform:uppercase;
}

.mrtb-t2i-natural-scale-legend span::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:10px;
  height:10px;
  transform:translateY(-50%);
  border-radius:50%;
}

.mrtb-t2i-natural-scale-legend .start::before{ background:#58aef7; }
.mrtb-t2i-natural-scale-legend .end::before{ background:#ffbf3f; }

.mrtb-t2i-natural-scale-routes{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:7px;
}

.mrtb-t2i-natural-scale-route-chip{
  display:grid;
  gap:2px;
  padding:6px 8px;
  border-radius:10px;
  color:#263044;
  background:linear-gradient(180deg,#fff,#edf4ff);
  border:1px solid rgba(38,48,68,.08);
}

.mrtb-t2i-natural-scale-route-chip b{
  color:#173b5d;
  font-family:Georgia,"Times New Roman",serif;
  font-size:13px;
  line-height:1;
  font-weight:1000;
}

.mrtb-t2i-natural-scale-route-chip small{
  color:#65748b;
  font-size:8px;
  line-height:1;
  font-weight:900;
}

@media (max-width:900px){
  .mrtb-t2i-natural-scale-box-head{
    display:grid;
  }

  .mrtb-t2i-natural-scale-box-head span{
    font-size:12px;
  }

  .mrtb-t2i-natural-scale-note{
    width:54px;
    min-width:54px;
    height:54px;
    border-radius:15px;
  }

  .mrtb-t2i-natural-scale-note b{
    font-size:13px;
  }

  .mrtb-t2i-natural-step{
    width:28px;
    min-width:28px;
  }
}

@media (max-width:700px){
  .mrtb-t2i-natural-scale-box{
    padding:6px;
  }

  .mrtb-t2i-natural-scale-box-head b{
    font-size:10px;
  }

  .mrtb-t2i-natural-scale-map{
    padding-bottom:8px;
  }

  .mrtb-t2i-natural-scale-note{
    width:48px;
    min-width:48px;
    height:48px;
    border-radius:13px;
  }

  .mrtb-t2i-natural-scale-note b{
    font-size:12px;
  }

  .mrtb-t2i-natural-scale-note small{
    width:20px;
    height:20px;
    font-size:8px;
  }

  .mrtb-t2i-natural-step{
    width:24px;
    min-width:24px;
  }

  .mrtb-t2i-natural-scale-route-chip b{
    font-size:11px;
  }
}


/* =========================================================
   MR Theory Board · Θεωρία 2 · Φυσικά διαστήματα
   v0.7.15 · draw + τόξα + σύνοψη
   ========================================================= */

/* Στη σκηνή φυσικών διαστημάτων μένει ορατή η επάνω γραμμή εργαλείων και το draw. */
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-sidebar,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-t2i-toolbar-accidentals,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-draw-canvas{
  display:block !important;
}

.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-sidebar{
  grid-template-columns:1fr !important;
  max-height:96px !important;
  overflow:visible !important;
}

.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-tools-section,
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-tools-one-line{
  overflow:visible !important;
}

.mrtb-t2i-natural-scene{
  top:102px !important;
}

.mrtb-t2i-natural-card{
  grid-template-columns:68px minmax(0,1fr) !important;
}

.mrtb-t2i-natural-card-symbol{
  min-height:58px !important;
}

.mrtb-t2i-natural-card.semitone .mrtb-t2i-natural-card-symbol{
  font-size:19px !important;
  line-height:.88 !important;
}

.mrtb-t2i-natural-card-copy b{
  white-space:normal !important;
}

.mrtb-t2i-natural-card-copy strong{
  display:block;
  white-space:normal !important;
  line-height:1.02 !important;
  font-size:13px !important;
}

.mrtb-t2i-natural-card-copy small{
  white-space:normal !important;
  line-height:1.05 !important;
}

.mrtb-t2i-natural-scale-map{
  position:relative;
  min-height:138px;
  align-items:flex-end !important;
  padding:54px 2px 10px !important;
}

.mrtb-t2i-natural-scale-arcs{
  position:absolute;
  left:0;
  top:0;
  right:0;
  height:66px;
  pointer-events:none;
}

.mrtb-t2i-natural-arc{
  position:absolute;
  top:8px;
  border-top:4px solid var(--arc-color,#f1b93d);
  border-left:4px solid var(--arc-color,#f1b93d);
  border-right:4px solid var(--arc-color,#f1b93d);
  border-radius:999px 999px 0 0;
  box-sizing:border-box;
}

.mrtb-t2i-natural-arc::after{
  content:"";
  position:absolute;
  right:-6px;
  bottom:-4px;
  width:0;
  height:0;
  border-left:12px solid var(--arc-color,#f1b93d);
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
}

.mrtb-t2i-natural-arc::before{
  content:"";
  position:absolute;
  left:-5px;
  bottom:-6px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--arc-color,#f1b93d);
  box-shadow:0 0 0 4px rgba(255,255,255,.9);
}

.mrtb-t2i-natural-arc span{
  position:absolute;
  left:50%;
  top:-12px;
  transform:translateX(-50%);
  padding:3px 8px;
  border-radius:999px;
  color:#173653;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(38,48,68,.08);
  font-family:Georgia,"Times New Roman",serif;
  font-size:10px;
  line-height:1;
  font-weight:1000;
  white-space:nowrap;
}

.mrtb-t2i-natural-arc[data-tone="pink"],
.mrtb-t2i-natural-focus[data-tone="pink"] .mrtb-t2i-natural-arc{
  --arc-color:#e95b92;
}

.mrtb-t2i-natural-focus[data-tone="gold"] .mrtb-t2i-natural-arc{
  --arc-color:#f0b93d;
}

.mrtb-t2i-natural-focus[data-tone="violet"] .mrtb-t2i-natural-arc{
  --arc-color:#8d69d9;
}

.mrtb-t2i-natural-focus[data-tone="blue"] .mrtb-t2i-natural-arc{
  --arc-color:#43a9e9;
}

.mrtb-t2i-natural-summary{
  margin-top:8px;
  padding:9px 10px;
  border-radius:14px;
  background:linear-gradient(180deg,#fffef0,#fff4c7);
  border:2px solid rgba(235,192,62,.16);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.03);
}

.mrtb-t2i-natural-summary-head{
  margin-bottom:7px;
  color:#67531b;
  font-size:11px;
  line-height:1;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.mrtb-t2i-natural-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}

.mrtb-t2i-natural-summary-grid article{
  min-width:0;
  padding:8px 10px;
  border-radius:11px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(38,48,68,.08);
}

.mrtb-t2i-natural-summary-grid b{
  display:block;
  color:#243044;
  font-size:11px;
  line-height:1.15;
  font-weight:1000;
}

.mrtb-t2i-natural-summary-grid span{
  display:block;
  margin-top:4px;
  color:#173b5d;
  font-family:Georgia,"Times New Roman",serif;
  font-size:16px;
  line-height:1;
  font-weight:1000;
}

@media (max-width:1100px){
  .mrtb-t2i-natural-scene{
    top:128px !important;
  }

  .mrtb-t2i-natural-summary-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .mrtb-t2i-natural-scene{
    top:150px !important;
  }

  .mrtb-t2i-natural-scale-map{
    min-height:126px;
    padding-top:48px !important;
  }

  .mrtb-t2i-natural-arc span{
    font-size:8px;
  }
}


/* =========================================================
   MR Theory Board · Θεωρία 2 · Φυσικά διαστήματα
   v0.7.16 · αφαίρεση κενού κάτω από τη γραμμή εργαλείων
   ========================================================= */

/* Με ορατή τη sidebar χρειάζονται τρεις πραγματικές σειρές. */
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-shell{
  grid-template-rows:auto auto minmax(0,1fr) !important;
  row-gap:0 !important;
}

/* Η σκηνή ξεκινά αμέσως μέσα στο board-wrap. */
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-t2i-natural-scene{
  top:6px !important;
}

/* Καμία πρόσθετη επάνω απόσταση από το board area. */
.mrtb-app[data-scene="t2-intervals-natural"] .mrtb-board-wrap{
  margin-top:0 !important;
  padding-top:0 !important;
}

@media (max-width:1100px){
  .mrtb-app[data-scene="t2-intervals-natural"] .mrtb-t2i-natural-scene{
    top:6px !important;
  }
}

@media (max-width:700px){
  .mrtb-app[data-scene="t2-intervals-natural"] .mrtb-t2i-natural-scene{
    top:4px !important;
  }
}


/* =========================================================
   MR Theory Board · Θεωρία 2 · Φυσικά διαστήματα
   v0.7.17 · διόρθωση κάρτας ♭2 / ♭9
   ========================================================= */

/* Το σύμβολο δεν επιτρέπεται να ξεχειλίζει μέσα στα γράμματα. */
.mrtb-t2i-natural-card-symbol{
  width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}

.mrtb-t2i-natural-card.semitone{
  grid-template-columns:78px minmax(0,1fr) !important;
}

.mrtb-t2i-natural-card.semitone .mrtb-t2i-natural-card-symbol{
  min-height:64px !important;
  padding:4px 3px !important;
  white-space:normal !important;
}

.mrtb-t2i-natural-card-symbol-stack{
  width:100%;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  justify-items:center;
  gap:2px;
  color:#17263b;
  font-family:Georgia,"Times New Roman",serif;
  line-height:1;
}

.mrtb-t2i-natural-card-symbol-stack b{
  display:block;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  color:inherit !important;
  font:inherit !important;
  font-size:18px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.mrtb-t2i-natural-card.sharp4 .mrtb-t2i-natural-card-symbol{
  font-size:17px !important;
}

.mrtb-t2i-natural-card-symbol-stack i{
  display:block;
  color:#65748b;
  font:inherit;
  font-size:17px;
  line-height:1;
  font-style:normal;
  font-weight:900;
}

.mrtb-t2i-natural-card.semitone .mrtb-t2i-natural-card-copy{
  position:relative;
  z-index:2;
  min-width:0 !important;
  padding-left:2px;
}

.mrtb-t2i-natural-card.semitone .mrtb-t2i-natural-card-copy b,
.mrtb-t2i-natural-card.semitone .mrtb-t2i-natural-card-copy strong,
.mrtb-t2i-natural-card.semitone .mrtb-t2i-natural-card-copy small{
  position:relative;
  z-index:2;
  max-width:100%;
  overflow:hidden;
}

@media (max-width:700px){
  .mrtb-t2i-natural-card.semitone{
    grid-template-columns:66px minmax(0,1fr) !important;
  }

  .mrtb-t2i-natural-card-symbol-stack b{
    font-size:18px !important;
  }

  .mrtb-t2i-natural-card-symbol-stack i{
    font-size:14px;
  }
}
