@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,700;1,400&display=swap');

@font-face {
  font-family: 'hostregular';
  src: url('../css/host.woff2') format('woff2'), url('../css/host.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: #0a0a0a;
  color: #ccc;
  font-family: 'Alegreya', Georgia, serif;
  height: 100%;
  overflow: hidden;
}

#tutorial-root {
  max-width: 95vw;
  height: 100vh;
  margin: 0 auto;
  padding: 0.5vh 0.75rem;
  display: flex;
  flex-direction: column;
}

/* Wrapper fills root */
.tutorial-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header */
.tutorial-header {
  height: 3.5vh;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid #444;
  border-radius: 4px;
  margin-bottom: 0.4vh;
  flex-shrink: 0;
}

.tutorial-lesson-name {
  font-size: 1rem;
  color: #ddd;
}

.tutorial-step-progress {
  color: #888;
  font-size: 0.8rem;
  margin-left: 0.75rem;
}

/* Game area (hands + board grouped for centering) */
.tutorial-game-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Board */
.tutorial-board {
  display: flex;
  flex-direction: column;
  gap: 0.3vh;
  flex: 1;
  min-height: 0;
}

.tutorial-player-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.4vh 0.5rem;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid #333;
  border-radius: 4px;
  flex: 1;
  min-height: 0;
}

.tutorial-opponent-area {
  border-color: #2980b9;
}

.tutorial-player-area:not(.tutorial-opponent-area) {
  border-color: #e74c3c;
}

/* Card size variable — all card zones use this */
:root {
  --card-w: 7vh;
}

/* Side zones (deck + drop) */
.tutorial-side-zones {
  display: flex;
  flex-direction: column;
  gap: 0.3vh;
  justify-content: center;
  flex-basis: min-content;
}

.tutorial-side-slot {
  height: 50%;
  aspect-ratio: 5 / 7;
  border: 1px dashed #555;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.tutorial-side-slot .tutorial-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 3px;
}

.tutorial-side-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.45rem;
  color: #ccc;
  background: rgba(0, 0, 0, 0.75);
  padding: 0.05rem 0;
  z-index: 1;
  line-height: 1.2;
}

/* Damage zone (fills remaining space in res+dmg column) */
.tutorial-damage-zone {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 50%;
  aspect-ratio: 5 / 7;
}

.tutorial-damage-zone .tutorial-side-slot {
  height: 100%;
  aspect-ratio: 5 / 7;
}

.tutorial-damage-zone .tutorial-side-slot .tutorial-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Resources + Damage column */
.tutorial-res-dmg-col {
  display: flex;
  flex-direction: column;
  gap: 0.3vh;
  flex-basis: min-content;
}

/* Form zone */
.tutorial-form-zone {
  display: flex;
  flex-direction: column;
  gap: 0.3vh;
}

.tutorial-form-zone .tutorial-side-slot {
  aspect-ratio: 5 / 7;
}

/* Resources bar */
.tutorial-resources {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1vh;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
  border-radius: 3px;
  padding: 0.2vh 0.25rem;
  transition: all 0.3s;
  flex-shrink: 0;
}

.tutorial-zone-label {
  color: #888;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.1rem;
}

.tutorial-resource {
  display: inline-block;
  font-weight: bold;
  font-size: 0.85rem;
  margin-right: 0.3rem;
}

.tutorial-resource-empty {
  color: #555;
  font-style: italic;
  font-size: 0.65rem;
}

.tutorial-zone-count span {
  font-size: 0.9rem;
  font-weight: bold;
  color: #aaa;
}

/* Opponent hand (face-down cards) */
.tutorial-opponent-hand {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-55%);
  display: flex;
  z-index: 50;
}

.tutorial-opponent-hand-card {
  width: 6vh;
  overflow: hidden;
  flex-shrink: 0;
}

.tutorial-opponent-hand-card .tutorial-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0.7);
}

/* Board slots */
.tutorial-board-slots {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3vh;
  min-height: 0;
}

.tutorial-row {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  flex: 1;
  min-height: 0;
}

/* Slots */
.tutorial-slot {
  height: 100%;
  aspect-ratio: 5 / 7;
  border: 1px dashed #333;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tutorial-slot-empty:hover {
  border-color: #555;
  background: rgba(255, 255, 255, 0.02);
}

.tutorial-host-slot {
  border-color: #555;
  border-style: solid;
}

/* Cards on board */
.tutorial-card {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}

.tutorial-card-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 3px;
  object-fit: contain;
}

.tutorial-card-facedown .tutorial-card-img {
  filter: brightness(0.7);
}

.tutorial-card-delayed {
  opacity: 0.6;
}

.tutorial-card-damage {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  font-weight: bold;
  font-size: 0.65rem;
  padding: 0.1rem 0.25rem;
  border-radius: 2px;
}

/* Middle info bar */
.tutorial-middle-info {
  display: flex;
  flex-direction: column;
  gap: 0.2vh;
  padding: 0.3vh 0.75rem;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid #444;
  border-radius: 3px;
  flex-shrink: 0;
}

.tutorial-middle-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.tutorial-phase {
  font-size: 0.85rem;
  color: #ddd;
  padding: 0.1rem 0.6rem;
  border: 1px solid #555;
  border-radius: 3px;
  transition: all 0.3s;
}

.tutorial-turn {
  color: #888;
  font-size: 0.75rem;
}

.tutorial-ap {
  color: #ccc;
  font-size: 0.8rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid #555;
  border-radius: 3px;
  transition: all 0.3s;
}

.tutorial-ap strong {
  color: #f1c40f;
  font-size: 0.95rem;
}

/* AP action buttons */
.tutorial-ap-buttons {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.tutorial-ap-btn {
  padding: 0.2rem 0.6rem;
  background: rgba(241, 196, 15, 0.1);
  border: 1px solid #555;
  border-radius: 3px;
  color: #ccc;
  font-family: 'Alegreya', Georgia, serif;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tutorial-ap-btn:hover {
  background: rgba(241, 196, 15, 0.25);
  border-color: #f1c40f;
  color: #fff;
}

.tutorial-ap-btn-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tutorial-ap-btn-disabled:hover {
  background: rgba(241, 196, 15, 0.1);
  border-color: #555;
  color: #ccc;
}

/* Player hand */
.tutorial-hand {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 50;
}

.tutorial-hand-card {
  width: 10vh;
  border: none;
  border-radius: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(55%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-hand-card:hover {
  transform: translateY(20%);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.tutorial-hand-card.highlighted {
  transform: translateY(5%);
  z-index: 3;
}

.tutorial-hand-card .tutorial-card-img {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: block;
  object-fit: contain;
}

.tutorial-hand-card-name {
  padding: 0.15rem 0.3rem;
  color: #ccc;
  font-size: 0.55rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

/* Modal overlay */
.tutorial-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 1vh 1vw;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}

.tutorial-modal-overlay.tutorial-middle {
  align-items: center;
}

.tutorial-modal-overlay.tutorial-right {
  justify-content: flex-end;
}

.tutorial-modal-overlay.tutorial-right .tutorial-guide-wrap {
  flex-direction: row-reverse;
}

.tutorial-modal-overlay .tutorial-guide-wrap {
  pointer-events: auto;
}

/* Guide wrapper: avatar + speech bubble side by side */
.tutorial-guide-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 45vw;
  animation: bubbleIn 0.3s ease-out;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Avatar */
.tutorial-guide-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 5.5vw;
}

.tutorial-guide-avatar {
  width: 4.5vw;
  height: 4.5vw;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 2px solid #f1c40f;
  object-fit: cover;
  object-position: top;
  background: #1a1a1a;
}

.tutorial-guide-name {
  color: #f1c40f;
  font-size: clamp(0.5rem, 0.7vw, 0.75rem);
  margin-top: 0.3vh;
  text-align: center;
}

/* Speech bubble */
.tutorial-speech-bubble {
  position: relative;
  background: #1a1a1a;
  border: 2px solid #f1c40f;
  border-radius: 0 10px 10px 10px;
  padding: 1.2vh 1vw;
  margin-left: 0.4rem;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Speech tail pointing left toward avatar */
.tutorial-speech-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid #f1c40f;
}

.tutorial-speech-bubble::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 7px solid #1a1a1a;
}

/* Flipped speech bubble (tail on right, for opponent speaking) */
.tutorial-right .tutorial-speech-bubble {
  border-radius: 10px 0 10px 10px;
  margin-left: 0;
  margin-right: 0.4rem;
}

.tutorial-right .tutorial-speech-bubble::before {
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 10px solid #f1c40f;
}

.tutorial-right .tutorial-speech-bubble::after {
  left: auto;
  right: -6px;
  border-right: none;
  border-left: 7px solid #1a1a1a;
}

.tutorial-modal-title {
  font-size: clamp(0.9rem, 1.2vw, 1.4rem);
  color: #f1c40f;
  margin-bottom: 0.6vh;
  padding-bottom: 0.5vh;
  border-bottom: 1px solid #333;
}

.tutorial-modal-text {
  color: #ccc;
  line-height: 1.6;
  font-size: clamp(0.75rem, 0.9vw, 1rem);
}

.tutorial-modal-text b {
  color: #fff;
}

.tutorial-modal-text i {
  color: #999;
}

/* Modal content (image + callouts) */
.tutorial-modal-content {
  display: flex;
  gap: 1vw;
  margin-bottom: 1vh;
  align-items: flex-start;
}

.tutorial-modal-image-wrap {
  flex-shrink: 0;
  width: 10vw;
  min-width: 100px;
}

.tutorial-modal-image {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.tutorial-modal-caption {
  color: #888;
  font-size: clamp(0.5rem, 0.6vw, 0.7rem);
  text-align: center;
  margin-top: 0.3vh;
}

.tutorial-modal-callouts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tutorial-modal-callout {
  display: flex;
  gap: 0.5vw;
  align-items: flex-start;
  font-size: clamp(0.65rem, 0.8vw, 0.9rem);
  color: #ccc;
  line-height: 1.4;
}

.tutorial-modal-callout b {
  color: #ddd;
}

.tutorial-callout-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(16px, 1.2vw, 22px);
  height: clamp(16px, 1.2vw, 22px);
  border-radius: 50%;
  background: #f1c40f;
  color: #111;
  font-weight: bold;
  font-size: clamp(0.55rem, 0.65vw, 0.75rem);
  flex-shrink: 0;
  margin-top: 1px;
}

.tutorial-callout-desc {
  color: #aaa;
  font-size: clamp(0.6rem, 0.75vw, 0.85rem);
}

/* Floating speech bubble (no overlay, board is interactive) */
.tutorial-bubble-floating {
  position: fixed;
  top: 1vh;
  left: 1vw;
  z-index: 100;
  pointer-events: none;
}

.tutorial-bubble-floating.tutorial-middle {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.tutorial-bubble-floating.tutorial-right {
  left: auto;
  right: 1vw;
}

.tutorial-bubble-floating.tutorial-right .tutorial-guide-wrap {
  flex-direction: row-reverse;
}

.tutorial-bubble-floating .tutorial-guide-wrap {
  pointer-events: auto;
}

/* Buttons */
.tutorial-next-btn {
  display: inline-block;
  margin-top: 0.8vh;
  padding: 0.5vh 1.2vw;
  background: rgba(241, 196, 15, 0.15);
  border: 1px solid #f1c40f;
  border-radius: 3px;
  color: #f1c40f;
  font-family: 'Alegreya', Georgia, serif;
  font-size: clamp(0.75rem, 0.9vw, 1rem);
  cursor: pointer;
  transition: all 0.2s;
}

.tutorial-next-btn:hover {
  background: rgba(241, 196, 15, 0.3);
}

/* Host font symbols */
.sym {
  font-family: 'hostregular';
  font-style: normal;
}

/* ===== ANIMATIONS ===== */

/* Attack arrow overlay */
.tutorial-attack-arrow {
  position: absolute;
  z-index: 60;
  pointer-events: none;
}

.tutorial-attack-arrow svg {
  overflow: visible;
}

.tutorial-attack-arrow line {
  stroke: #e74c3c;
  stroke-width: 3;
  stroke-dasharray: 8 4;
  animation: arrowDash 0.6s linear infinite;
}

.tutorial-attack-arrow polygon {
  fill: #e74c3c;
}

@keyframes arrowDash {
  to {
    stroke-dashoffset: -12;
  }
}

/* Card entering the field */
.anim-enter-field {
  animation: enterField 0.5s ease-out;
}

.anim-enter-field::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 5px;
  pointer-events: none;
  animation: enterFieldFlash 0.6s ease-out;
}

@keyframes enterField {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(10px);
  }

  60% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes enterFieldFlash {
  0% {
    box-shadow: 0 0 20px 10px rgba(241, 196, 15, 0.8);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(241, 196, 15, 0);
  }
}

/* Card being destroyed / sent to drop zone (disintegrate) */
.anim-destroy {
  animation: disintegrate 1s ease-in forwards;
}

@keyframes disintegrate {
  0% {
    opacity: 1;
    filter: brightness(1);
    clip-path: inset(0 0 0 0);
  }

  20% {
    opacity: 1;
    filter: brightness(1.5) saturate(0.5);
  }

  40% {
    opacity: 0.8;
    filter: brightness(1.2) saturate(0.3);
    clip-path: polygon(0% 0%, 100% 0%, 100% 95%, 85% 100%, 70% 92%, 55% 100%, 40% 95%, 25% 100%, 10% 93%, 0% 100%);
  }

  60% {
    opacity: 0.5;
    filter: brightness(1.4) saturate(0.1);
    clip-path: polygon(5% 0%, 95% 5%, 100% 80%, 75% 85%, 60% 75%, 45% 85%, 30% 78%, 15% 88%, 0% 80%);
  }

  80% {
    opacity: 0.2;
    filter: brightness(2) saturate(0);
    clip-path: polygon(10% 5%, 90% 10%, 85% 60%, 65% 55%, 50% 65%, 35% 55%, 20% 65%, 5% 55%);
  }

  100% {
    opacity: 0;
    filter: brightness(2) saturate(0);
    clip-path: polygon(20% 10%, 80% 15%, 70% 40%, 55% 35%, 40% 45%, 25% 35%);
  }
}

/* Host taking damage (shake) */
.anim-shake {
  animation: shakeCard 0.4s ease-in-out;
}

@keyframes shakeCard {

  0%,
  100% {
    transform: translateX(0);
  }

  15% {
    transform: translateX(-4px) rotate(-1deg);
  }

  30% {
    transform: translateX(4px) rotate(1deg);
  }

  45% {
    transform: translateX(-3px);
  }

  60% {
    transform: translateX(3px);
  }

  75% {
    transform: translateX(-2px);
  }

  90% {
    transform: translateX(2px);
  }
}

/* Deck draw pulse */
.anim-draw-pulse {
  animation: drawPulse 0.4s ease-out;
}

@keyframes drawPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.6);
  }

  50% {
    box-shadow: 0 0 12px 4px rgba(241, 196, 15, 0.4);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(241, 196, 15, 0);
  }
}

/* Bright glow pulse to draw attention to a zone change */
.anim-glow {
  position: relative;
}

.anim-glow::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0);
  pointer-events: none;
  animation: glowPulse 0.8s ease-in-out 2;
}

@keyframes glowPulse {

  0%,
  100% {
    border-color: rgba(255, 255, 255, 0);
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.1);
  }

  50% {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.5), 0 0 40px 16px rgba(241, 196, 15, 0.25);
  }
}

/* Highlight pulse */
.highlighted {
  animation: highlightPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.5);
  border-color: #f1c40f !important;
}

@keyframes highlightPulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.6);
  }
}

/* Completion screens */
.tutorial-complete-screen {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid #444;
  border-radius: 6px;
  margin-top: 2rem;
}

.tutorial-complete-screen h2 {
  color: #f1c40f;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.tutorial-complete-screen p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 1rem;
}


/* Responsive - tablet */
@media (max-width: 900px) {
  .tutorial-middle-top {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}

/* Responsive - mobile */






@media (max-width: 600px) {
  #tutorial-root { padding: 0.3vh 0.4rem; }
  .tutorial-header { height: 3vh; padding: 0 0.4rem; }
  .tutorial-lesson-name { font-size: 0.8rem; }
  .tutorial-step-progress { font-size: 0.65rem; }

  /* Game area centers the whole group */
  .tutorial-game-area { flex: 0 0 auto; margin: auto 0; }

  /* Board - block, no margin */
  .tutorial-board { display: block; flex: none; }

  .tutorial-player-area { gap: 0.25rem; padding: 0.3vh 0.3rem; flex: 0 0 auto; margin-bottom: 0.3vh; }

  /* Side zones */
  .tutorial-side-zones { flex-basis: auto !important; max-width: none; display: block; }
  .tutorial-res-dmg-col { flex-basis: auto !important; max-width: none; }
  .tutorial-side-slot { height: auto; width: 8vw; aspect-ratio: 5 / 7; }
  .tutorial-side-label { font-size: 0.3rem; }
  .tutorial-damage-zone .tutorial-side-slot { height: auto; width: 8vw; aspect-ratio: unset; }

  /* Board slots */
  .tutorial-board-slots { gap: 0.15vh; }
  .tutorial-row { gap: 0.15rem; flex: 0 0 auto; }
  .tutorial-slot { height: auto; width: 14vw; aspect-ratio: 5 / 7; }

  /* Middle info */
  .tutorial-middle-info { padding: 0.2vh 0.4rem; margin-bottom: 0.3vh; }
  .tutorial-middle-top { gap: 0.5rem; }
  .tutorial-phase { font-size: 0.65rem; padding: 0.05rem 0.3rem; }
  .tutorial-turn { font-size: 0.6rem; }
  .tutorial-ap { font-size: 0.65rem; padding: 0.05rem 0.3rem; }
  .tutorial-ap strong { font-size: 0.75rem; }
  .tutorial-ap-buttons { gap: 0.2rem; }
  .tutorial-ap-btn { font-size: 0.55rem; padding: 0.15rem 0.3rem; }

  .tutorial-resources { padding: 0.1vh 0.1rem; width: 8vw; }
  .tutorial-zone-label { font-size: 0.4rem; }
  .tutorial-resource { font-size: 0.6rem; }

  /* Player hand - directly below board */
  .tutorial-hand { position: relative; bottom: auto; left: auto; transform: none; justify-content: center; }
  .tutorial-hand-card { width: 14vw; transform: none; }
  .tutorial-hand-card:hover { transform: translateY(-10%); }
  .tutorial-hand-card.highlighted { transform: translateY(-20%); }
  .tutorial-hand-card-name { font-size: 0.4rem; padding: 0.1rem 0.15rem; }

  /* Opponent hand - directly above board */
  .tutorial-opponent-hand { position: relative; top: auto; left: auto; transform: none; justify-content: center; }
  .tutorial-opponent-hand-card { width: 8vw; transform: none; }

  /* Speech bubble */
  .tutorial-guide-wrap { max-width: 75vw; }
  .tutorial-guide-avatar-wrap { width: 10vw; }
  .tutorial-guide-avatar { width: 8vw; height: 8vw; }
  .tutorial-guide-name { font-size: 0.45rem; }
  .tutorial-speech-bubble { padding: 0.8vh 2vw; }
  .tutorial-modal-title { font-size: 0.85rem; margin-bottom: 0.3vh; padding-bottom: 0.3vh; }
  .tutorial-modal-text { font-size: 0.75rem; line-height: 1.4; }
  .tutorial-modal-content { gap: 0.5vw; margin-bottom: 0.5vh; }
  .tutorial-modal-image-wrap { width: 15vw; min-width: 60px; }
  .tutorial-modal-callout { font-size: 0.65rem; }
  .tutorial-callout-num { min-width: 14px; height: 14px; font-size: 0.5rem; }
  .tutorial-callout-desc { font-size: 0.6rem; }
  .tutorial-next-btn { font-size: 0.75rem; padding: 0.3vh 2vw; margin-top: 0.5vh; }

  .tutorial-bubble-floating { top: 0.5vh; left: 0.5vw; }
  .tutorial-bubble-floating.tutorial-middle { top: 50%; transform: translateY(-50%); }
  .tutorial-bubble-floating.tutorial-right { left: auto; right: 0.5vw; }
  .tutorial-right .tutorial-speech-bubble { margin-right: 0.3rem; }
}
