
    /* Basic resets */
    html,
    body {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    }

    /* Outer container with background image */
    .outer-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100vw;
      height: 100vh;
      background: url('/static/assets/images/fun/images//background.jpg') center/cover no-repeat;
    }

    /* Responsive 4x4 grid container */
    .grid-container {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(4, 1fr);
      width: 80vmin;
      height: 80vmin;
      border: 2px solid #ddd;
      background-color: #f8f9fa;
      position: relative;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    /* Each border image wrapper for overlay effects */
    .grid-item-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
    }

    /* Image styling inside the wrapper */
    .grid-item-wrapper .grid-item {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      box-sizing: border-box;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      border: 2px solid #fff;
      transition: border 0.2s ease, box-shadow 0.2s ease;
    }

    /* Full highlight for the current image */
    .grid-item-wrapper.highlighted .grid-item {
      border: 4px solid red;
      box-shadow: 0 0 15px 8px rgba(255, 0, 0, 0.6);
    }

    .grid-item-wrapper.highlighted::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(45deg, rgba(255, 0, 0, 0.4) 0%, rgba(255, 0, 0, 0.2) 100%);
      pointer-events: none;
      z-index: 3;
    }

    /* Trail effect on the immediate previous image */
    .grid-item-wrapper.trail-1 .grid-item {
      border: 3px solid rgba(255, 0, 0, 0.7);
      box-shadow: 0 0 10px 6px rgba(255, 0, 0, 0.4);
    }

    .grid-item-wrapper.trail-1::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(45deg, rgba(255, 0, 0, 0.3) 0%, rgba(255, 0, 0, 0.1) 100%);
      pointer-events: none;
      z-index: 3;
    }

    /* Fainter trail on the second previous image */
    .grid-item-wrapper.trail-2 .grid-item {
      border: 2.5px solid rgba(255, 0, 0, 0.5);
      box-shadow: 0 0 6px 4px rgba(255, 0, 0, 0.3);
    }

    .grid-item-wrapper.trail-2::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(45deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 0, 0, 0.05) 100%);
      pointer-events: none;
      z-index: 3;
    }

    /* Position classes for the 12 border images */
    .pos1 {
      grid-row: 1;
      grid-column: 1;
    }

    .pos2 {
      grid-row: 1;
      grid-column: 2;
    }

    .pos3 {
      grid-row: 1;
      grid-column: 3;
    }

    .pos4 {
      grid-row: 1;
      grid-column: 4;
    }

    .pos5 {
      grid-row: 2;
      grid-column: 4;
    }

    .pos6 {
      grid-row: 3;
      grid-column: 4;
    }

    .pos7 {
      grid-row: 4;
      grid-column: 4;
    }

    .pos8 {
      grid-row: 4;
      grid-column: 3;
    }

    .pos9 {
      grid-row: 4;
      grid-column: 2;
    }

    .pos10 {
      grid-row: 4;
      grid-column: 1;
    }

    .pos11 {
      grid-row: 3;
      grid-column: 1;
    }

    .pos12 {
      grid-row: 2;
      grid-column: 1;
    }

    /* Center image remains unwrapped and positioned as before */
    .center-img {
      grid-row: 2 / span 2;
      grid-column: 2 / span 2;
      border: 3px solid #fff;
      z-index: 1;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Play button container */
    .play-btn-container {
      width: 80vmin;
      margin-top: 1vmin;
    }

    /* Stylish, responsive Play button */
    .play-btn {
      width: 100%;
      height: 10vmin;
      font-size: 3vmin;
      border: none;
      border-radius: 4px;
      font-weight: 600;
      color: #fff;
      cursor: pointer;
      background: linear-gradient(45deg, #007bff, #0056d2);
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s ease, background 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .play-btn:hover:enabled {
      transform: scale(1.02);
      background: linear-gradient(45deg, #0062c7, #004bb0);
    }

    .play-btn:disabled {
      cursor: not-allowed;
      opacity: 0.6;
      background: #aaa;
      box-shadow: none;
      transform: none;
    }

    /* EXIT BUTTON (bottom-right corner) */
    .exit-btn-container {
      position: absolute;
      bottom: 20px;
      right: 20px;
    }

    .exit-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 1rem;
      height: 3rem;
      /* Adjust as you like */
      border: none;
      border-radius: 4px;
      font-size: 1rem;
      font-weight: 600;
      color: #fff;
      cursor: pointer;
      text-decoration: none;
      /* For anchor styling */
      background: linear-gradient(45deg, #ff416c, #ff4b2b);
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .exit-btn:hover {
      transform: scale(1.03);
      background: linear-gradient(45deg, #ff3b5f, #e63a24);
      text-decoration: none;
      color: #fff;
    }

    .exit-btn i {
      margin-right: 8px;
    }
