@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
html,
body {
  margin: 0px;
  min-height: 100%;
      background-image: url(BG.png);
            background-size: cover;
    background-position: 50% 50%;
}
/* a blue color as a generic focus style */
button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}
a {
  text-decoration: none;
}
/* @FONTWARNING[{"type": "restricted", "family": "Vividly-Regular", "weight": "400", "style": "normal", "allowsCrossOrigin": false}] */

@font-face {
  font-family: "Vividly-Regular";
  src: local("Vividly-Regular");
}
/* @FONTWARNING[{"type": "restricted", "family": "Black Future-Regular", "weight": "400", "style": "normal", "allowsCrossOrigin": false}] */

@font-face {
  font-family: "Black Future-Regular";
  src: local("Black Future-Regular");
}
/* @FONTWARNING[{"type": "restricted", "family": "Peperrito Ornaments-Regular", "weight": "400", "style": "normal", "allowsCrossOrigin": false}] */

@font-face {
  font-family: "Peperrito Ornaments Regular";
  src: local("Peperrito Ornaments Regular");
}

@font-face {
  font-family: "Peperrito Ornaments Regular";
  src: url("./PeperritoOrnaments-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Peperrito Ornaments Regular";
  src: url("./PeperritoOrnaments-Regular.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Vividly-Regular";
  src: url("./Vividly-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "KNMaiyuan-Regular";
  src: url("KNMaiyuan-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

.speaking {
  width: 390px;
  min-width: 390px;
  min-height: 1019px;
  position: relative;
                margin-left: auto;
  margin-right: auto;
}

.speaking .rectangle {
  position: absolute;
  top: 857px;
  left: calc(50.00% - 151px);
  width: 303px;
  height: 88px;
}

.speaking .text-wrapper {
  position: absolute;
  top: 875px;
  left: calc(50.00% - 24px);
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 9px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .div {
  position: absolute;
  top: 904px;
  left: calc(50.00% - 110px);
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .text-wrapper-2 {
  position: absolute;
  top: 904px;
  left: calc(50.00% - 55px);
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .text-wrapper-3 {
  position: absolute;
  top: 904px;
  left: calc(50.00% + 9px);
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .little-world-of {
  position: absolute;
  top: 890px;
  left: calc(50.00% - 36px);
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 8px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .text-wrapper-4 {
  position: absolute;
  top: 904px;
  left: calc(50.00% + 90px);
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .element-rabbitly-all {
  position: absolute;
  top: 918px;
  left: calc(50.00% - 118px);
  width: 236px;
  font-family: "Black Future-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 8px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.speaking .span {
  font-family: "Black Future-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 8px;
  letter-spacing: 0;
}

.speaking .text-wrapper-5 {
  font-family: "Vividly-Regular", Helvetica;
}

.speaking .vector {
  position: absolute;
  top: 899px;
  left: 83px;
  width: 6px;
  height: 6px;
  object-fit: contain;
}

.speaking .img {
  position: absolute;
  top: 901px;
  left: 82px;
  width: 8px;
  height: 2px;
    object-fit: contain;

}

.speaking .vector-2 {
  position: absolute;
  top: 899px;
  left: 138px;
  width: 6px;
  height: 6px;
    object-fit: contain;

}

.speaking .vector-3 {
  position: absolute;
  top: 901px;
  left: 137px;
  width: 8px;
  height: 2px;
    object-fit: contain;

}

.speaking .vector-4 {
  position: absolute;
  top: 899px;
  left: 201px;
  width: 6px;
  height: 6px;
    object-fit: contain;

}

.speaking .vector-5 {
  position: absolute;
  top: 901px;
  left: 200px;
  width: 8px;
  height: 2px;
    object-fit: contain;

}

.speaking .vector-6 {
  position: absolute;
  top: 899px;
  left: 282px;
  width: 6px;
  height: 6px;
    object-fit: contain;

}

.speaking .vector-7 {
  position: absolute;
  top: 901px;
  left: 281px;
  width: 8px;
    object-fit: contain;

  height: 2px;
}

.speaking .rectangle-2 {
  position: absolute;
  top: 778px;
  left: calc(50.00% - 135px);
  width: 269px;
  height: 54px;
}

.speaking .gemini-generated {
  position: absolute;
  top: 787px;
  left: calc(50.00% - 14px);
  width: 30px;
  height: 34px;
    object-fit: contain;

  aspect-ratio: 0.89;
}

.speaking .gemini-generated-2 {
  top: 791px;
  left: calc(50.00% + 31px);
  width: 22px;
  height: 25px;
    object-fit: contain;

  position: absolute;
  aspect-ratio: 0.89;
}

.speaking .gemini-generated-3 {
  top: 791px;
  left: calc(50.00% - 51px);
    object-fit: contain;

  width: 22px;
  height: 25px;
  position: absolute;
  aspect-ratio: 0.89;
}

.speaking .vector-8 {
  position: absolute;
  top: 780px;
  left: 112px;
  width: 10px;
    object-fit: contain;

  height: 4px;
}

.speaking .vector-9 {
  position: absolute;
  top: 780px;
  left: 112px;
  width: 10px;
    object-fit: contain;

  height: 4px;
}

.speaking .vector-10 {
  position: absolute;
  top: 824px;
  left: 270px;
  width: 10px;
    object-fit: contain;

  height: 4px;
}

.speaking .vector-11 {
  position: absolute;
  top: 824px;
  left: 270px;
    object-fit: contain;

  width: 10px;
  height: 4px;
}

.speaking .rectangle-3 {
  position: absolute;
  top: 55px;
  left: calc(50.00% - 135px);
  width: 269px;
  height: 54px;
}

.speaking .gemini-generated-4 {
  top: 65px;
  left: calc(50.00% - 14px);
  width: 30px;
  height: 34px;
  position: absolute;
  object-fit: contain;
  aspect-ratio: 0.89;
}

.speaking .gemini-generated-5 {
  top: 69px;
  left: calc(50.00% + 31px);
  width: 22px;
    object-fit: contain;

  height: 25px;
  position: absolute;
  aspect-ratio: 0.89;
}

.speaking .gemini-generated-6 {
  top: 69px;
  left: calc(50.00% - 51px);
  width: 22px;
  height: 25px;
    object-fit: contain;

  position: absolute;
  aspect-ratio: 0.89;
}

.speaking .vector-12 {
  position: absolute;
  top: 58px;
  left: 112px;
  width: 10px;
  height: 4px;
    object-fit: contain;

}

.speaking .vector-13 {
  position: absolute;
  top: 58px;
  left: 112px;
  width: 10px;
    object-fit: contain;

  height: 4px;
}

.speaking .vector-14 {
  position: absolute;
  top: 102px;
  left: 270px;
  width: 10px;
    object-fit: contain;

  height: 4px;
}

.speaking .vector-15 {
  position: absolute;
  top: 102px;
  left: 270px;
  width: 10px;
    object-fit: contain;

  height: 4px;
}

.speaking .text-wrapper-6 {
  top: 127px;
  left: 72px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  z-index: 0;
}

.speaking .decor {
  left: 109px;
  position: absolute;
  top: 172px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-7 {
  position: absolute;
  top: 246px;
  left: 68px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  z-index: 22;
}

.speaking .text-wrapper-8 {
  top: 127px;
  left: 210px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .decor-2 {
  left: 247px;
  position: absolute;
  top: 172px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-9 {
  position: absolute;
  top: 246px;
  left: 206px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.speaking .text-wrapper-10 {
  top: 248px;
  left: 72px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .decor-3 {
  top: 293px;
  position: absolute;
  left: 109px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-11 {
  position: absolute;
  top: 366px;
  left: 68px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.speaking .text-wrapper-12 {
  top: 248px;
  left: 210px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .decor-4 {
  top: 293px;
  position: absolute;
  left: 247px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-13 {
  position: absolute;
  top: 366px;
  left: 206px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.speaking .text-wrapper-14 {
  top: 368px;
  left: 72px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .decor-5 {
  top: 413px;
  position: absolute;
  left: 109px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-15 {
  position: absolute;
  top: 487px;
  left: 68px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.speaking .text-wrapper-16 {
  top: 368px;
  left: 210px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .decor-6 {
  top: 413px;
  position: absolute;
  left: 247px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-17 {
  position: absolute;
  top: 487px;
  left: 206px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.speaking .text-wrapper-18 {
  top: 489px;
  left: 72px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .decor-7 {
  top: 534px;
  position: absolute;
  left: 109px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-19 {
  position: absolute;
  top: 607px;
  left: 68px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.speaking .text-wrapper-20 {
  top: 489px;
  left: 210px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .decor-8 {
  top: 534px;
  position: absolute;
  left: 247px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-21 {
  position: absolute;
  top: 607px;
  left: 206px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.speaking .text-wrapper-22 {
  top: 609px;
  left: 72px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .decor-9 {
  top: 654px;
  position: absolute;
  left: 109px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-23 {
  position: absolute;
  top: 728px;
  left: 68px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.speaking .text-wrapper-24 {
  top: 609px;
  left: 210px;
  position: absolute;
  filter: blur(8px);
  font-family: "Peperrito Ornaments Regular";
  font-weight: 400;
  color: #ffc5de;
  font-size: 113px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.speaking .decor-10 {
  top: 654px;
  position: absolute;
  left: 247px;
  width: 59px;
  height: 61px;
  aspect-ratio: 0.95;
  object-fit: contain;
}

.speaking .text-wrapper-25 {
  position: absolute;
  top: 728px;
  left: 206px;
  width: 116px;
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #FF71AE;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}


@media (min-width: 890px) {

  .speaking{
    transform: scale(1.45);
    transform-origin: top center;
    margin-bottom: 450px;
  }

}

@media (min-width: 1024px) {

  .speaking{
    transform: scale(1.55);
    transform-origin: top center;
    margin-bottom: 450px;
  }

}


/* ============================================================
   RABBITLY POPUP — Korean Speaking Practice
   ============================================================ */

/* Font overrides: Korean = Single Day, English = Vividly */
.korean, .say-this {
  font-family: "Single Day", cursive !important;
}
.roman, .translation, .meaning, .name, .status,
.label, .mic-hint, .btn-again,
.turn-card .label, .turn-card .roman, .turn-card .meaning,
.done-screen h3, .done-screen p {
  font-family: "Vividly-Regular", Helvetica, sans-serif;
}

/* ============================================================
   MAKE CATEGORY LABELS CLICKABLE
   ============================================================ */
.text-wrapper-7, .text-wrapper-9, .text-wrapper-11,
.text-wrapper-13, .text-wrapper-15, .text-wrapper-17,
.text-wrapper-19, .text-wrapper-21, .text-wrapper-23,
.text-wrapper-25 {
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease;
}
.text-wrapper-7:hover, .text-wrapper-9:hover, .text-wrapper-11:hover,
.text-wrapper-13:hover, .text-wrapper-15:hover, .text-wrapper-17:hover,
.text-wrapper-19:hover, .text-wrapper-21:hover, .text-wrapper-23:hover,
.text-wrapper-25:hover {
  transform: scale(1.15);
  color: #ff5fa2 !important;
}

/* ============================================================
   OVERLAY
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}
.popup-overlay.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes popIn {
  0%   { transform: scale(0.7) translateY(30px); opacity: 0; }
  60%  { transform: scale(1.05) translateY(-5px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}

/* ============================================================
   PHONE FRAME
   ============================================================ */
.phone {
  width: 100%;
  max-width: 350px;
  height: 89vh;
  max-height: 700px;
  background: linear-gradient(180deg, #fff5fa 0%, #ffe4f0 100%);
  border: 4px solid #FF71AE;
  border-radius: 36px;
  position: relative;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================================
   TOP BAR
   ============================================================ */

   .top-bar .shuffle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #ff5fa2;
  border: none;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  margin-right: 6px;
}
.top-bar .shuffle:hover { transform: rotate(-20deg) scale(1.15); }
.top-bar .shuffle:active { transform: scale(0.95); }

.top-bar {
  background-color: #ffcde2;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid #fff;
  flex-shrink: 0;
}
.top-bar .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #ffc5de;
  border: 3px solid #fff;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.top-bar .avatar img { width: 66%; height: 66%; object-fit: contain; }
.top-bar .info { flex: 1; }
.top-bar .name {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.top-bar .status {
  color: #fff0f7;
  font-size: 10px;
  display: flex; align-items: center; gap: 4px;
}
.top-bar .status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fffefe;
  display: inline-block;
}
.top-bar .close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #ff5fa2;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  font-family: Arial, sans-serif;
  line-height: 1;
}
.top-bar .close:hover { transform: rotate(90deg) scale(1.1); }

/* ============================================================
   CHAT AREA
   ============================================================ */
.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 20% 15%, #fff0f7 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, #ffeaf4 0%, transparent 40%),
    hsl(334, 100%, 95%);

      /* 🚫 Hide scrollbar (still scrollable) */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge */
}
.chat-box::-webkit-scrollbar {
  display: none;                /* Chrome / Safari / Edge */
  width: 0;
  height: 0;
}




/* ============================================================
   MESSAGES
   ============================================================ */
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  animation: msgIn 0.4s ease;
  max-width: 100%;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-row.user { flex-direction: row-reverse; }

.msg-row .mini-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #ffd6e8;
  border: 2px solid #FF71AE;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  overflow: hidden;
}
.msg-row .mini-avatar img { width: 66%; height: 66%; object-fit: contain; }

.bubble {
  max-width: 72%;
  padding: 9px 13px;
  border-radius: 20px;
  font-size: 12.5px;
  line-height: 1.4;
  word-wrap: break-word;
}
.msg-row.rabbitte .bubble {
  background: #fff;
  color: #ff5fa2;
  border: 2px solid #FF71AE;
  border-bottom-left-radius: 6px;
  box-shadow: 0 3px 10px rgba(255, 160, 200, 0.18);
}
.msg-row.user .bubble {
  background-color: #ffc7e1;
  color: #fff;
  border-bottom-right-radius: 6px;
}

/* ============================================================
   🔊 CUTE VOLUME REPLAY BUTTON
   ============================================================ */
.bubble {
  position: relative;       /* so the vol button anchors to it */
}

.vol-btn {
  position: absolute;
  bottom: 3px;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  object-fit: contain;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 2;
}

.vol-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;   /* click still hits the button */
  display: block;
}
/* Rabbitte bubble → button on the right */
.msg-row.rabbitte .vol-btn {
  right: 5px;
  object-fit: contain;
}

/* User bubble → button on the left */
.msg-row.user .vol-btn {
  left: 7777px;
  z-index: 0;
}




/* Mixed line (Korean + English together) — inline, stays on one line */
.bubble .line-ko {
  display: block;
  font-size: 17px;
  margin-bottom: 2px;
  line-height: 1.4;
}
.bubble .line-ko .korean,
.turn-card .say-this .korean {
  font-family: "Single Day" !important;
  font-size: 17px;
}
.bubble .line-ko .roman,
.turn-card .say-this .roman {
  font-family: "Vividly-Regular", Helvetica, sans-serif !important;
  font-size: 14px;
  opacity: 0.95;
}

/* Romanization row — only this goes on its own line */
.bubble > .roman {
  display: block;
  font-size: 10px;
  opacity: 0.85;
  font-family: "Vividly-Regular", Helvetica;
  margin-top: 2px;
}

.bubble .translation {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
  border-top: 1px dashed rgba(255,255,255,0.4);
  padding-top: 3px;
  font-family: "Vividly-Regular", Helvetica;
}
.msg-row.rabbitte .bubble .translation {
  border-top-color: rgba(255, 150, 200, 0.4);
}


/* ============ TURN CARD TEXT ============ */
.turn-card .say-this {
  font-size: 22px;
  color: #ff4d99;
  margin-bottom: 4px;
  line-height: 1.3;
}
.turn-card .say-this .korean {
  font-family: "Single Day" !important;
  font-size: 22px;
}
.turn-card .say-this .roman {
  font-family: "Vividly-Regular", Helvetica, sans-serif !important;
  font-size: 22px;
  opacity: 0.95;
}

/* ============================================================
   YOUR TURN CARD
   ============================================================ */
.turn-card {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  border: 3px solid #FF71AE;
  border-radius: 22px;
  padding: 14px 16px;
  margin: 6px 4px;
  text-align: center;
  animation: popIn 0.4s ease;
}
.turn-card .label {
  font-size: 10px;
  color: #ff5fa2;
  letter-spacing: 2px;
  margin-bottom: 6px;
    font-family: "Vividly-Regular", Helvetica;

}

.turn-card .roman {
  font-size: 12px;
  color: #ff8fc0;
    font-family: "Vividly-Regular", Helvetica;

  margin-bottom: 4px;
}
.turn-card .meaning {
  font-size: 11px;
    font-family: "Vividly-Regular", Helvetica;

  color: #FF71AE;
}

/* ============================================================
   MIC AREA
   ============================================================ */
.mic-area {
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffe3ef, #ffe3ef);
  border-top: 3px solid #ffd6e8;
  padding: 12px 14px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mic-btn img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  pointer-events: none;  /* so clicking the img still triggers the button */
}
.mic-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background-color: #ffd5e7;
  border: 4px solid #FF71AE;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.mic-btn:hover { transform: scale(1.08); }
.mic-btn:active { transform: scale(0.95); }
.mic-btn.listening {
  animation: pulse 1.2s infinite;
  background: linear-gradient(135deg, #ff7bb8, #ff4d99);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 120, 180, 0.7), 0 8px 22px rgba(255,120,180,0.5); }
  70%  { box-shadow: 0 0 0 20px rgba(255, 120, 180, 0), 0 8px 22px rgba(255,120,180,0.5); }
  100% { box-shadow: 0 0 0 0 rgba(255, 120, 180, 0), 0 8px 22px rgba(255,120,180,0.5); }
}
.mic-hint {
  font-size: 10.5px;
  color: #ff8fc0;
  text-align: center;
  min-height: 14px;
}

/* Progress paws */
.progress-paws {
  text-align: center;
  font-size: 12px;
  letter-spacing: 3px;
  margin-top: 2px;
}
.progress-paws .done { color: #ff4d99; }
.progress-paws .todo { color: #ffd6e8; }

/* ============================================================
   DONE SCREEN
   ============================================================ */
.done-screen {
  text-align: center;
  padding: 30px 14px;
  animation: popIn 0.5s ease;
}
.done-screen .emoji { font-size: 52px; }
.done-screen h3 {
  color: #ff5fa2;
  font-size: 20px;
  margin: 10px 0 6px;
}
.done-screen p { color: #FF71AE; font-size: 12px; margin-bottom: 16px; }
.btn-again {
  background: linear-gradient(135deg, #FF71AE, #ff7bb8);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 20px;
  padding: 11px 26px;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,120,180,0.45);
  transition: transform 0.2s;
}
.btn-again:hover { transform: scale(1.05); }

