strong {
  color: var(--gold);
}
.label {
  color: var(--muted);
  font-size: .85rem;
}
.center9 {
  display: flex;
  justify-content: center;
  margin: 20px 0px 40px 0px;
}
.ORTIR-container {
	margin: 0;
	padding: 0;
}
:root {
  --bg: #05060d;
  --bg2: #101827;
  --panel: rgba(20, 24, 38, .82);
  --glass: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .12);
  --white: #ffffff;
  --text: #e9eef8;
  --muted: #a7b0c5;
  --cyan: #3edcff;
  --blue: #3d73ff;
  --green: #00ff9f;
  --red: #ff4d6d;
  --gold: #ffd54f;
  --radius: 18px;
  --shadow:
    0 15px 35px rgba(0, 0, 0, .45), 0 0 40px rgba(62, 220, 255, .10);
  #tir9backgroundGlow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
      radial-gradient(circle, rgba(62, 220, 255, .08), transparent 70%);
    filter: blur(80px);
  }
  .tir9container {
    width: min(1050px, 95%);
    margin: auto;
    padding: 15px;
  }
  .tir9screen {
    display: none;
    animation: fade .7s ease;
  }
  .tir9screen.active {
    display: block;
  }
  #tir9welcomeScreen {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
  }
  .tir9logo {
    width: 120px;
    height: 120px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--cyan);
    border: 2px solid rgba(62, 220, 255, .25);
    background: rgba(62, 220, 255, .05);
    box-shadow: 0 0 50px rgba(62, 220, 255, .18);
    margin-bottom: 30px;
  }
  .tir9intro9 {
    max-width: 760px;
    margin: 30px auto;
    line-height: 1.9;
    color: var(--muted);
    font-size: 1.1rem;
  }
  .tir9infoBox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 45px auto;
    max-width: 700px;
  }
  .tir9infoBox div {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(14px);
    transition: .35s;
    box-shadow: var(--shadow);
  }
  .tir9infoBox div:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 0 25px rgba(62, 220, 255, .22);
  }
  .tir9progressContainer {
    padding: 15px;
    margin: 15px 0;
  }
  .tir9messageBox {
    padding: 0px;
    margin-top: 10px;
  }
  .tir9statusPanel {
    padding: 15px;
    margin-top: 15px;
  }
  .tir9label {
    color: var(--muted);
    font-size: .85rem;
  }
  @media(max-width:900px) {
    .tir9infoBox {
      grid-template-columns: 1fr;
    }
    .tir9container {
      width: 96%;
      padding: 20px;
    }
    .tir9logo {
      width: 90px;
      height: 90px;
      font-size: 45px;
    }
  }
  #tir9cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0px;
    margin: 0px;
    perspective: 1500px;
    max-width: 700px;
    align-items: center;
  }
  .tir9card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, .05);
    border: 2px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    transition: transform .35s, box-shadow .35s, border-color .35s, filter .35s;
    transform-style: preserve-3d;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
    aspect-ratio: 336 / 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    max-width: 110px;
  }
  .tir9card img {
    object-fit: cover;
    display: block;
    margin: auto;
    pointer-events: none;
    user-select: none;
    width: 100%;
    height: 100%;
  }
  .tir9card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, .20), transparent 35%, transparent 60%, rgba(255, 255, 255, .12));
    opacity: 0;
    transition: .4s;
  }
  .tir9card:hover::before {
    opacity: 1;
  }
  .tir9card::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(62, 220, 255, .30), transparent 65%);
    opacity: 0;
    transition: .4s;
    filter: blur(25px);
  }
  .tir9card:hover::after {
    opacity: 1;
  }
  .tir9card:hover {
    transform: translateY(-12px) rotateX(6deg) rotateY(-5deg) scale(1.04);
    border-color: var(--cyan);
    box-shadow: 0 0 40px rgba(62, 220, 255, .35), 0 25px 45px rgba(0, 0, 0, .45);
  }
  .tir9card.tir9selected {
    border-color: var(--gold);
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 0 45px rgba(255, 213, 79, .65), 0 15px 45px rgba(0, 0, 0, .50);
  }
  .tir9card.tir9correct {
    animation: goodPulse .9s ease;
    border-color: var(--green);
    box-shadow: 0 0 50px rgba(0, 255, 159, .70), 0 0 80px rgba(0, 255, 159, .35);
  }
  .tir9card.tir9wrong {
    animation: wrongShake .55s;
    border-color: var(--red);
    box-shadow: 0 0 45px rgba(255, 77, 109, .55);
  }
  .tir9card.tir9disabled {
    cursor: default;
    opacity: .45;
    filter: grayscale(.5);
  }
  .tir9card.tir9disabled:hover {
    transform: none;
  }
  .tir9card.tir9hidden img {
    opacity: 0;
  }
  .tir9card.tir9hidden {
    background: linear-gradient(135deg, #111827, #18233d);
  }
  .tir9card.tir9hidden::before {
    opacity: .3;
  }
  .tir9card.tir9flip {
    animation: flipCard .8s ease;
  }
  @keyframes flipCard {
    0% {
      transform: rotateY(0deg);
    }
    50% {
      transform: rotateY(90deg);
    }
    100% {
      transform: rotateY(0deg);
    }
  }
  @keyframes goodPulse {
    0% {
      transform: scale(.9);
    }
    50% {
      transform: scale(1.08);
    }
    100% {
      transform: scale(1);
    }
  }
  @keyframes wrongShake {
    0% {
      transform: translateX(0);
    }
    20% {
      transform: translateX(-8px);
    }
    40% {
      transform: translateX(8px);
    }
    60% {
      transform: translateX(-8px);
    }
    80% {
      transform: translateX(8px);
    }
    100% {
      transform: translateX(0);
    }
  }
  #tir9revealArea {
    margin-top: 50px;
    text-align: center;
  }
  #tir9revealedCard {
    width: 140px;
    height: 190px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    border: 2px solid rgba(255, 255, 255, .08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .45);
    transition: .45s;
  }
  #tir9revealedCard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #tir9revealedCard.tir9show {
    animation: revealCard .8s ease;
    border-color: var(--green);
    box-shadow: 0 0 55px rgba(0, 255, 159, .55);
  }
  @keyframes revealCard {
    0% {
      opacity: 0;
      transform: scale(.7) rotateY(90deg);
    }
    60% {
      transform: scale(1.05);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  .tir9messageBox {
    padding: 30px;
    margin-top: 30px;
    text-align: center;
  }
  .tir9messageBox h2 {
    margin-bottom: 10px;
  }
  .tir9messageBox p {
    color: var(--muted);
    line-height: 1.7;
  }
  #tir9feedback {
    text-align: center;
    font-size: 1.1rem;
    padding: 0px;
    font-weight: 500;
  }
  #tir9feedback.tir9success {
    color: var(--green);
  }
  #tir9feedback.tir9error {
    color: var(--red);
  }
  #tir9feedback.tir9wait {
    color: var(--gold);
  }
  p.conclusion {
    margin-top: 20px;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #eaf6ff;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
  }
  p.conclusion.good {
    border-color: #00ff9f;
    background: rgba(0, 255, 159, 0.08);
    box-shadow:
      0 0 10px rgba(0, 255, 159, 0.35), 0 0 40px rgba(0, 255, 159, 0.25), inset 0 0 10px rgba(0, 255, 159, 0.15);
    color: #bfffe6;
  }
  p.conclusion.bad {
    border-color: #ff4d6d;
    background: rgba(255, 77, 109, 0.08);
    box-shadow:
      0 0 10px rgba(255, 77, 109, 0.35), 0 0 40px rgba(255, 77, 109, 0.25), inset 0 0 10px rgba(255, 77, 109, 0.15);
    color: #ffd0d8;
  }
  @media (max-width:1100px) {
    #tir9cards {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width:700px) {
    #tir9cards {
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
    }
    #tir9revealedCard {
      width: 170px;
      height: 230px;
    }
  }
  @media (max-width:480px) {
    #tir9cards {
      grid-template-columns: 1fr;
      max-width: 260px;
    }
    .tir9card {
      max-width: 220px;
      margin: auto;
    }
  }
  .tir9topBar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
  }
  .tir9topBar div {
    padding: 5px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: .35s;
  }
  .tir9topBar div:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
  }
  .tir9topBar span {
    display: block;
  }
  .tir9topBar .tir9label {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 0px;
  }
  #tir9trialNumber, #tir9score, #tir9percentage {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
  }
  .tir9progressContainer {
    margin: 0px;
    padding: 0px;
  }
  .tir9progressBar {
    position: relative;
    width: 100%;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
  }
  #tir9progress {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
    transition: width .55s ease;
    box-shadow: 0 0 20px rgba(62, 220, 255, .6);
  }
  #tir9progress::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, .65), transparent);
    animation: progressGlow 2s linear infinite;
  }
  @keyframes progressGlow {
    0% {
      transform: translateX(-120px);
    }
    100% {
      transform: translateX(100px);
    }
  }
  #tir9progressText {
    margin-top: 0px;
    text-align: center;
    color: var(--muted);
    letter-spacing: 1px;
  }
  .tir9statusPanel {
    margin-top: 35px;
    padding: 25px;
  }
  .tir9statusPanel strong {
    color: var(--green);
  }
  .tir9counterFlash {
    animation: counterFlash .5s;
  }
  @keyframes counterFlash {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.25);
      color: var(--gold);
    }
    100% {
      transform: scale(1);
    }
  }
  .tir9toast {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 18px 24px;
    border-radius: 16px;
    color: white;
    background: rgba(20, 24, 38, .92);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(18px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .45);
    z-index: 999;
    animation: toastIn .45s, toastOut .45s 3.8s forwards;
  }
  @keyframes toastIn {
    from {
      opacity: 0;
      transform: translateX(120px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes toastOut {
    to {
      opacity: 0;
      transform: translateX(120px);
    }
  }
  .tir9loader {
    width: 65px;
    height: 65px;
    margin: 35px auto;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .15);
    border-top: 4px solid var(--cyan);
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  .tir9pulse {
    animation: pulse 1.2s infinite;
  }
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  .tir9fadeIn {
    animation: fadeIn .6s;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @media (max-width:900px) {
    .tir9topBar {
      grid-template-columns: 1fr;
    }
    .tir9progressContainer {
      padding: 0px;
    }
  }
  @media (max-width:600px) {
    #tir9trialNumber, #tir9score, #tir9percentage {
      font-size: 1.6rem;
    }
    .tir9progressBar {
      height: 14px;
    }
    .tir9toast {
      right: 10px;
      left: 10px;
    }
  }
  #tir9resultScreen {
    max-width: 1200px;
    margin: auto;
    animation: fade .8s ease;
  }
  .tir9resultsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0px;
    padding: 10px;
  }
  .tir9resultBox {
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: .35s;
  }
  .tir9resultBox:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 0 35px rgba(62, 220, 255, .20);
  }
  .tir9resultBox .tir9value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0px;
  }
  .tir9resultBox .tir9title {
    font-size: .7rem;
    color: var(--muted);
  }
  #tir9analysis {
    margin-top: 15px;
    padding: 15px;
    line-height: 1.6;
    font-size: .95rem;
    color: var(--text);
  }
  #tir9resultScreen {
    overflow-y: auto;
  }
  #tir9analysis h3 {
    color: var(--gold);
    margin-bottom: 10px;
  }
  #tir9analysis p {
    margin-bottom: 0px;
  }
  #tir9graphContainer {
    margin-top: 0px;
    padding: 30px;
    height: 420px; 
    position: relative;
  }
  #tir9performanceChart {
    width: 100% !important;
    height: 100% !important;
  }
  .tir9badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    margin: 12px 6px;
    letter-spacing: .5px;
  }
  .tir9badge.tir9normal {
    background: #2d3748;
    color: #d6d6d6;
  }
  .tir9badge.tir9good {
    background: #009966;
    color: #fff;
  }
  .tir9badge.tir9excellent {
    background: #0066ff;
    color: #fff;
  }
  .tir9badge.tir9exceptional {
    background: linear-gradient(135deg, #ffb400, #ffde59);
    color: #222;
  }
  #tir9sigmaValue {
    color: var(--gold);
  }
  .tir9conclusion {
    margin-top: 35px;
    padding: 30px;
    border-radius: 18px;
    border-left: 5px solid var(--cyan);
    background: rgba(255, 255, 255, .05);
  }
  .tir9separator {
    width: 180px;
    height: 2px;
    margin: 40px auto;
    background: linear-gradient(to right, transparent, var(--cyan), transparent);
  }
  .tir9stars {
    text-align: center;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 10px;
    margin: 25px 0;
  }
  .tir9particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    pointer-events: none;
    animation: particle 1.5s linear forwards;
  }
  @keyframes particle {
    0% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translateY(-180px) scale(0);
    }
  }
  .tir9finishAnimation {
    animation: finish 1.2s ease;
  }
  @keyframes finish {
    0% {
      transform: scale(.95);
      opacity: 0;
    }
    60% {
      transform: scale(1.03);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  .tir9infoBox {
    gap: 8px;
    margin: 15px auto;
  }
  .tir9infoBox div {
    padding: 8px 12px;
    font-size: 0.85rem;
    line-height: 1.1;
  }
   @media print {
    button {
      display: none;
    }
    #tir9backgroundGlow {
      display: none;
    }
    .tir9resultsGrid, #tir9analysis, #tir9graphContainer {
      box-shadow: none;
      border: 1px solid #ccc;
      background: #fff;
    }
  }
  .tir9card.tir9selected {
    transform: scale(1.06);
    transition: 0.15s ease;
  }
  @media (max-width:1000px) {
    .tir9resultsGrid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width:700px) {
    .tir9resultsGrid {
      grid-template-columns: 1fr;
    }
    .tir9resultBox .tir9value {
      font-size: 1.8rem;
    }
    #tir9analysis {
      padding: 20px;
    }
    #tir9graphContainer {
      padding: 15px;
    }
  }
  .tir9glow {
    animation: glow 2s infinite alternate;
  }
  @keyframes glow {
    from {
      box-shadow: 0 0 10px rgba(62, 220, 255, .15);
    }
    to {
      box-shadow: 0 0 35px rgba(62, 220, 255, .45);
    }
  }
  @media (max-width:700px) {
    #tir9cards {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 6px;
      margin: 15px auto;
    }
    .tir9card {
      max-width: 58px;
      border-radius: 10px;
    }
    #tir9revealedCard {
      width: 90px;
      height: 120px;
    }
    #tir9trialNumber, #tir9score, #tir9percentage {
      font-size: 1rem;
    }
    .tir9messageBox {
      padding: 0px;
    }
    #tir9feedback {
      font-size: .9rem;
    }
  }
  .tir9container {
    padding: 0px;
  }
  header {
    padding: 5px;
    margin-bottom: 10px;
  }
  .tir9topBar div {
    padding: 10px;
  }
  #tir9trialNumber, #tir9score, #tir9percentage {
    font-size: 1.1rem;
  }
  .tir9progressContainer {
    padding: 0px;
    margin: 0px;
  }
  .tir9progressBar {
    height: 12px;
  }
  .tir9messageBox {
    padding: 0px;
    margin-top: 0px;
  }
  .tir9messageBox h2 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  .tir9messageBox p {
    font-size: .9rem;
    line-height: 1.2;
  }
  #tir9cards {
    margin: 10px auto;
    gap: 8px;
  }
  .tir9card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  #tir9revealArea {
    margin-top: 15px;
  }
  #tir9revealedCard {
    width: 110px;
    height: 150px;
    margin: 10px auto;
  }
  #tir9feedback {
    padding: 0px;
    font-size: .95rem;
  }
  @media (max-height:750px) {
    .tir9infoBox {
      margin: 15px auto;
      gap: 10px;
    }
    .tir9card {
      border-radius: 10px;
    }
    #tir9cards {
      gap: 6px;
    }
    .tir9messageBox {
      padding: 8px;
    }
    #tir9revealedCard {
      width: 90px;
      height: 120px;
    }
  }
  .tir9flash {
    animation: flash .3s;
  }
  @keyframes flash {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  @media (max-width: 700px) {
    .tir9topBar {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: stretch;
      gap: 5px;
    }
    .tir9topBar div {
      flex: 1;
      padding: 0px;
      font-size: 0.7rem;
      text-align: center;
    }
    .tir9topBar .tir9label {
      font-size: 0.65rem;
      margin-bottom: 0px;
    }
    #tir9trialNumber, #tir9score, #tir9percentage {
      font-size: 0.95rem;
    }
    .tir9topBar {
      flex-wrap: nowrap;
     
    }
    .tir9topBar div {
      min-width: 33%;
      flex: 0 0 auto;
    }
    .tir9intro9 {
      font-size: 0.85rem;
      line-height: 1.4;
      margin: 10px auto;
      padding: 0 8px;
    }
    body {
      overflow-y: auto;
      overflow-x: hidden;
    }
    .tir9container {
      padding-bottom: 60px;
    }
    .tir9progressContainer {
      display: none;
    }
    #tir9graphContainer {
      display: none;
    }
    #tir9cards {
      margin-bottom: 40px;
    }
    .tir9infoBox {
      display: none;
    }
  }