/* ==========================================================================
   Spin & Find: Shape Safari - style.css
   1. Base   2. Loader   3. Home   4. Game   5. Dialogs   6. Effects   7. Responsive
   ========================================================================== */

/* ---------- 1. Base ---------- */
@font-face {
  font-family: Fredoka;
  src: url('../assets/fonts/fredoka.ttf');
  font-display: swap;
}
:root {
  --ink: #36515c;
  --brown: #846447;
  --teal: #349d9c;
  --teal-dark: #237978;
  --orange: #f2a13c;
  --orange-dark: #b9742c;
  --cream: #fff3db;
  --cream-line: #fff9ed;
  --gold: #ffd45b;
  --hd: #258c90;       /* header colour, changed per world */
  --pn: #ffebc7;       /* panel heading colour, changed per world */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: #e3bf92; color: var(--ink);
  font-family: Fredoka, system-ui, sans-serif; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 4px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.ico.star { color: var(--gold); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px;
  border-radius: 20px; background: #fff8e4; color: #7a5a2c; font-size: 14px; font-weight: 700;
  border: 2px solid #f3d9a6; white-space: nowrap;
}
.chip b { font-weight: 700; }
.chip .ico { width: 20px; height: 20px; }

/* ---------- 2. Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 12px; padding: 16px;
  background: #318f9a; color: #fff; text-align: center;
}
#loader img { width: 90px; animation: bob 1s ease-in-out infinite alternate; }
#loader b { font-size: clamp(26px, 5vw, 40px); line-height: 1; color: #fff1c9; text-shadow: 0 4px #236771; }
#loader .bar { width: min(240px, 70vw); height: 14px; border-radius: 15px; background: #1f6e76; overflow: hidden; }
#loader i { display: block; width: 0; height: 100%; background: #ffcf5a; transition: width 0.15s linear; }
#loader span { font-size: 13px; color: #d7f3f1; }
@keyframes bob { to { transform: translateY(-10px) rotate(12deg); } }

/* ---------- 3. Home ---------- */
#home {
  height: 100dvh; display: flex; align-items: center; justify-content: space-between;
  gap: 22px; padding: 3% 5%; overflow: hidden;
  background: url('../assets/images/worlds/menu.jpg') center / cover no-repeat;
}
.hero { align-self: flex-start; margin-top: 1.5vh; color: #fff4cf; text-shadow: 0 4px #985a3c, 0 8px 8px #362a26b0; min-width: 0; }
.hero small { font-size: 14px; letter-spacing: 2px; font-weight: 700; color: #ffe4a0; text-transform: uppercase; }
.hero h1 { font-size: clamp(42px, 5.4vw, 80px); line-height: 0.94; letter-spacing: -2px; margin: 12px 0; }
.hero h1 span, .hero h1 em { color: #ffcd52; }
.hero h1 em { font-size: 0.68em; letter-spacing: -1px; font-style: normal; white-space: nowrap; }
.hero p { font-size: clamp(16px, 2vw, 23px); font-weight: 700; margin: 0; }

.menu {
  width: min(400px, 100%); flex: none; text-align: center; padding: 16px 20px 14px;
  background: linear-gradient(145deg, #fff9e8, #ffe4b0); border: 5px solid #fff8ea;
  border-radius: 25px; box-shadow: 0 8px #aa7049, 0 16px 35px #2e272970;
}
.menu h2 { margin: 8px 0 10px; font-size: 24px; }
.wallet { display: flex; justify-content: center; gap: 8px; }
.menu button, header button, .big, .dialog button:not(#close), #hint, .small-btn {
  border: 2px solid #fff3d1; border-radius: 13px; background: var(--teal);
  box-shadow: 0 4px var(--teal-dark); color: #fff; font-weight: 700;
}
.menu button:active, .big:active, #hint:active, .dialog button:active { transform: translateY(2px); box-shadow: 0 2px var(--teal-dark); }
.menu .main, .big { width: 100%; min-height: 56px; font-size: 19px; }
.orange, .menu .main { background: var(--orange) !important; box-shadow: 0 4px var(--orange-dark) !important; }
.menu button img, header img { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.menu button .ico { width: 24px; height: 24px; margin-right: 6px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.menu-grid button { min-height: 54px; font-size: 13px; display: flex; align-items: center; justify-content: center; padding: 4px 6px; }
.menu-grid button:disabled { opacity: 0.55; cursor: default; }
.icon-row { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.menu .round { width: 54px; height: 54px; padding: 0; border-radius: 50%; position: relative; }
.menu .round img { width: 28px; height: 28px; margin: 0; }
.menu .round[aria-pressed="false"] { background: #a9b7b3; box-shadow: 0 4px #7f8d89; }
.menu .round[aria-pressed="false"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 4px; border-radius: 3px;
  background: #fff; transform: rotate(-40deg); box-shadow: 0 0 0 1px #7f8d89;
}
#home-progress { font-size: 12px; margin: 10px 0 0; color: #9d7658; font-weight: 600; }

/* ---------- 4. Game ---------- */
#game {
  overflow: hidden; height: 100dvh; display: flex; flex-direction: column; position: relative;
  background: url('../assets/images/worlds/map.jpg') center / cover no-repeat;
}
#game[data-world="1"] { --hd: #2c7fb8; --pn: #dcf0ff; }
#game[data-world="2"] { --hd: #4b3f8f; --pn: #e6e0ff; }
#game[data-world="3"] { --hd: #b34a74; --pn: #ffe0ec; }
#game[data-world="4"] { --hd: #7a5a3a; --pn: #f3e3c8; }
#game[data-world="5"] { --hd: #3d7c5f; --pn: #dff3e6; }
#game[data-world="0"] { --hd: #258c90; --pn: #ffebc7; }

header {
  display: flex; align-items: center; gap: 10px; background: var(--hd); color: #fff;
  border-bottom: 4px solid #ffd18b; min-height: 64px; padding: 7px 14px; flex: none;
}
header button { width: 46px; height: 46px; flex: none; padding: 5px; }
header button img { margin: 0; }
.level-title { display: flex; flex-direction: column; min-width: 120px; }
header small { font-size: 11px; letter-spacing: 1px; color: #ffe5ac; }
header b { font-size: 18px; }
.progress { margin-left: auto; width: min(230px, 22vw); min-width: 80px; }
.progress div { height: 10px; background: #00000040; border-radius: 9px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.25s; }
.hearts { display: flex; gap: 2px; }
.hearts .ico { width: 24px; height: 24px; color: #ff5e6c; filter: drop-shadow(0 2px #00000040); }
.hearts .lost { color: #ffffff55; filter: none; }
header .chip { padding: 2px 9px 2px 5px; }

.layout {
  display: flex; gap: 14px; padding: 12px 3%; flex: 1; min-height: 0; width: 100%;
  max-width: 1650px; margin: 0 auto;
}
.wheel-panel, .board-panel {
  background: var(--cream); border: 4px solid var(--cream-line); border-radius: 22px;
  box-shadow: 0 6px #bd8656; min-height: 0;
}
.wheel-panel {
  width: min(31%, 355px); flex: none; padding: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(#f3ecff, #d9ecff); overflow: hidden;
}
.wheel-header { text-align: center; display: flex; flex-direction: column; }
.wheel-header small, .board-heading small { font-size: 11px; color: #a56a8f; letter-spacing: 1px; font-weight: 700; }
.wheel-header b { font-size: 20px; }
.wheel-wrap { width: min(100%, 270px); aspect-ratio: 1; position: relative; filter: drop-shadow(0 6px 4px #79583b55); flex: none; }
#wheel { width: 100%; height: 100%; transition: transform 2.5s cubic-bezier(0.14, 0.67, 0.2, 1); }
.pointer {
  position: absolute; z-index: 2; left: 50%; top: -8px; transform: translateX(-50%); width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 27px solid #f06c5c;
  filter: drop-shadow(0 2px #9f4b40);
}
.pointer.tick { animation: tick 0.5s ease; }
@keyframes tick { 30% { transform: translateX(-50%) rotate(-14deg); } 60% { transform: translateX(-50%) rotate(8deg); } }
.wheel-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff1cd;
  border: 4px solid #fff; border-radius: 50%; width: 20%; height: 20%; display: grid; place-items: center;
}
.wheel-center img { width: 80%; height: 80%; object-fit: contain; }
#spin { font-size: 16px; max-width: 250px; min-height: 48px; }
.small-btn { font-size: 12px; min-height: 36px; padding: 4px 14px; background: #8a6cc7; box-shadow: 0 3px #5f4a91; }
.big:disabled, #hint:disabled, .small-btn:disabled { opacity: 0.5; cursor: default; }
#wheel-status { text-align: center; color: #8a6a86; font-size: 13px; font-weight: 700; min-height: 18px; }

.board-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.board-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 16px; background: var(--pn); flex: none;
}
.mission-text { display: flex; flex-direction: column; min-width: 0; }
.board-heading b { font-size: clamp(16px, 1.7vw, 23px); }
.board-heading span { font-size: 12px; color: #7f6a58; }
.clue-box { display: flex; align-items: center; gap: 8px; flex: none; }
#shape-clue { display: flex; gap: 6px; }
#shape-clue img { width: 52px; height: 52px; object-fit: contain; }
.timer .ico { color: #f08c1a; }
.timer.low .ico, .timer.low b { color: #d4412e; }
.timer.out { opacity: 0.55; }

#board {
  flex: 1; min-height: 0; display: grid; gap: 7px; padding: 10px;
  background: #fff1d6 center / cover;
}
.picture {
  min-width: 0; min-height: 0; border: 3px solid #f0c698; border-radius: 15px; background: #fffdf4;
  padding: 3px; box-shadow: 0 4px #d5a674; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1px; position: relative; color: var(--brown);
}
.picture img { width: 100%; flex: 1; object-fit: contain; min-height: 0; transition: filter 0.25s; }
.picture span { font-size: clamp(10px, 1vw, 13px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-weight: 700; }
.picture.found { border-color: #58b976; background: #d9f5dc; box-shadow: 0 4px #83bd84; animation: pop-in 0.35s ease; }
.picture.found::after {
  content: ""; position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: #3fae62 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.picture.flash { outline: 4px solid #ffb32e; animation: pulse 0.5s alternate infinite; }
.picture.wrong { animation: shake 0.4s; border-color: #e0685f; background: #ffe6e2; }
.picture:disabled { cursor: default; }
/* Shadow Fog: pictures are dark silhouettes until revealed */
.picture.shadow:not(.found):not(.peek):not(.flash) img { filter: brightness(0) opacity(0.78); }
.picture.shadow:not(.found):not(.peek) span { visibility: hidden; }
.picture.flash img, .picture.peek img { filter: none !important; }
.placeholder { border: 2px dashed #e9cba6; border-radius: 15px; background: #fff7e8b0; }
.coin-pop {
  position: absolute; left: 50%; top: 20%; transform: translateX(-50%); font-weight: 700; color: #b87800;
  text-shadow: 0 1px #fff; pointer-events: none; animation: float-up 0.9s ease forwards; font-size: 16px; z-index: 3;
}
@keyframes pop-in { 40% { transform: scale(1.08); } }
@keyframes pulse { to { transform: scale(1.04); } }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes float-up { to { transform: translate(-50%, -34px); opacity: 0; } }

.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; background: #ffedcd; flex: none; }
#feedback { font-size: 14px; color: #a77754; font-weight: 700; min-width: 0; }
#hint { font-size: 12px; min-height: 38px; padding: 5px 14px; background: #e8964b; box-shadow: 0 3px #b36d34; flex: none; }

/* ---------- 5. Dialogs ---------- */
#overlay {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 10px;
  background: #243a46b8;
}
.dialog {
  position: relative; background: #fff4dd; border: 5px solid #fff; border-radius: 24px;
  width: min(540px, 100%); max-height: calc(100dvh - 20px); overflow: auto; padding: 20px;
  text-align: center; box-shadow: 0 8px #b67d50;
}
.dialog h2 { font-size: 28px; color: #d8834b; margin: 0 28px 8px; line-height: 1.1; }
.dialog h3 { font-size: 15px; margin: 14px 0 6px; color: #8a5a3c; text-align: left; }
.dialog p { line-height: 1.4; margin: 6px 0; }
.dialog button:not(#close) { min-height: 44px; padding: 8px 17px; margin: 4px; font-size: 14px; }
#close { position: absolute; right: 8px; top: 3px; border: 0; background: none; font-size: 32px; color: #a77c5e; width: 44px; height: 44px; }
.muted { font-size: 12px; background: #ae9074 !important; box-shadow: 0 4px #866b56 !important; }
.new-note .badge {
  display: inline-block; background: #ff6b6b; color: #fff; font-weight: 700; padding: 2px 12px;
  border-radius: 14px; font-size: 13px; letter-spacing: 1px; margin-bottom: 6px;
}
.result-img { width: 90px; height: 90px; object-fit: contain; }
.stars-row { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.stars-row .ico { width: 44px; height: 44px; color: #d9c9b0; }
.stars-row .on { color: var(--gold); filter: drop-shadow(0 3px #c78d1a); animation: pop-in 0.5s ease backwards; }
.stars-row .on:nth-child(2) { animation-delay: 0.15s; }
.stars-row .on:nth-child(3) { animation-delay: 0.3s; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; }
.facts .chip { font-size: 13px; }
.facts .chip.hit { background: #fff1b8; border-color: #f2c94c; }
.note { font-size: 13px; color: #9b6b3d; background: #fff0d2; border-radius: 12px; padding: 6px 10px; }

/* level select */
.world-block { margin: 10px 0; text-align: left; }
.world-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #7a4f35; margin-bottom: 4px; }
.world-head small { font-size: 12px; color: #a0805f; font-weight: 600; }
.world-block.locked .lv-row { opacity: 0.55; }
.lv-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lv-row button { min-width: 0; overflow: hidden; }
.dialog .lv-row button { margin: 0; padding: 3px 2px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 17px; line-height: 1.1; }
.lv-row button:disabled { opacity: 0.45; cursor: default; }
.lv-row .boss { background: #d9663f; box-shadow: 0 4px #a2462a; }
.lv-stars { display: flex; gap: 1px; height: 12px; }
.lv-stars .ico { width: 12px; height: 12px; color: #ffffff55; }
.lv-stars .on { color: var(--gold); }
.lv-row .ico.mark { width: 14px; height: 14px; }

/* shop */
.shop-row { display: flex; align-items: center; gap: 10px; background: #fffaf0; border: 2px solid #f0d6ad; border-radius: 14px; padding: 8px 10px; margin: 6px 0; text-align: left; }
.shop-row .shop-ico { width: 38px; height: 38px; flex: none; color: #8a6cc7; display: grid; place-items: center; }
.shop-row .shop-ico .ico { width: 34px; height: 34px; }
.shop-row .txt { flex: 1; min-width: 0; font-size: 14px; }
.shop-row .txt b { display: block; font-size: 15px; color: #6b4a33; }
.shop-row .txt span { color: #8c7258; font-size: 12px; line-height: 1.25; display: block; }
.dialog .shop-row button { margin: 0; min-width: 82px; flex: none; padding: 6px 8px; }
.dialog .shop-row button.owned { background: #7fb88a; box-shadow: 0 4px #5a9467; }
.dialog .shop-row button:disabled:not(.owned) { opacity: 0.5; }
.theme-dot { display: flex; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 0 0 2px #cfa77a; flex: none; }
.theme-dot i { flex: 1; }
.shop-top { display: flex; justify-content: center; margin-bottom: 4px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-weight: 700; }

/* ---------- 6. Effects ---------- */
#confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 25; }
#confetti i {
  position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px;
  animation: confetti-fall 2.2s ease-in forwards;
}
@keyframes confetti-fall { to { transform: translateY(105vh) rotate(720deg); opacity: 0.9; } }

@media (prefers-reduced-motion: reduce) {
  #wheel { transition-duration: 0.4s; }
  #confetti i, .picture.found, .coin-pop, .stars-row .on { animation: none; }
  #loader img { animation: none; }
}

/* ---------- 7. Responsive ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(36px, 6.5vw, 60px); }
}
@media (max-width: 700px) and (min-height: 521px), (max-width: 559px) {
  #home { flex-direction: column; justify-content: space-evenly; padding: 10px 12px; gap: 4px; }
  .hero { text-align: center; }
  .hero small { display: none; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); margin: 4px 0; }
  .hero p { margin: 2px; font-size: 15px; }
  .menu { padding: 10px 12px; max-width: 380px; }
  .menu h2 { display: none; }
  .wallet { margin-bottom: 8px; }
  .menu-grid { gap: 7px; margin-top: 8px; }
  .menu-grid button { min-height: 50px; font-size: 12px; }
  .menu .main { min-height: 52px; }
  .menu .round { width: 50px; height: 50px; }
  .icon-row { margin-top: 9px; gap: 12px; }

  header { gap: 5px; padding: 5px 6px; min-height: 56px; }
  header button { width: 42px; height: 42px; }
  .level-title { min-width: 0; flex: none; }
  header small { font-size: 9px; }
  header b { font-size: 14px; }
  .progress { width: auto; flex: 1; min-width: 40px; margin-left: 0; }
  .progress small { display: none; }
  .hearts .ico { width: 17px; height: 17px; }
  header .chip { font-size: 12px; padding: 1px 6px 1px 3px; gap: 3px; }
  header .chip .ico { width: 16px; height: 16px; }
  #listen { display: none; }

  .layout { flex-direction: column-reverse; padding: 5px; gap: 6px; }
  .wheel-panel {
    width: 100%; height: 128px; flex: none; display: grid; grid-template-columns: 112px 1fr;
    grid-template-rows: 1fr auto auto; gap: 2px 10px; padding: 6px 10px; align-content: center;
  }
  .wheel-wrap { width: 108px; grid-row: 1 / 4; justify-self: center; align-self: center; }
  .pointer { top: -4px; border-left-width: 8px; border-right-width: 8px; border-top-width: 16px; }
  .wheel-header { text-align: left; align-self: end; }
  .wheel-header b { font-size: 15px; }
  .wheel-header small { font-size: 9px; }
  #spin { grid-column: 2; font-size: 13px; min-height: 40px; width: 100%; max-width: none; }
  .small-btn { grid-column: 2; min-height: 30px; font-size: 11px; }
  #wheel-status { display: none; }
  .board-heading { padding: 5px 9px; }
  .board-heading span { font-size: 10px; }
  .board-heading small { display: none; }
  #shape-clue img { width: 38px; height: 38px; }
  #board { gap: 4px; padding: 5px; }
  .picture { border-width: 2px; border-radius: 9px; padding: 2px; box-shadow: 0 3px #d5a674; }
  .picture span { font-size: 10px; }
  .board-foot { padding: 5px 8px; }
  #feedback { font-size: 12px; }
  #hint { min-height: 36px; font-size: 11px; padding: 4px 10px; }
  .dialog { padding: 14px; }
  .dialog h2 { font-size: 23px; }
}
@media (max-width: 400px) {
  .level-title small { display: none; }
  .level-title { overflow: hidden; }
  header { gap: 4px; padding: 4px; }
  header button { width: 38px; height: 38px; }
  header .chip b { font-size: 12px; }
  .picture span { display: none; }
  #shape-clue img { width: 32px; height: 32px; }
  .hearts .ico { width: 14px; height: 14px; }
  .chip .ico { width: 15px; height: 15px; }
}
@media (max-height: 560px) and (max-width: 559px) {
  .hero { display: none; }
  #home { justify-content: center; }
}
/* phones held sideways */
@media (max-height: 520px) and (min-width: 560px) {
  #home { padding: 6px 4%; gap: 12px; }
  .hero small { display: none; }
  .hero h1 { font-size: clamp(30px, 8vh, 56px); margin: 4px 0; }
  .hero p { font-size: 14px; }
  .menu { padding: 7px 12px; width: min(340px, 52vw); }
  .menu h2 { display: none; }
  .wallet { margin-bottom: 5px; }
  .menu-grid { gap: 5px; margin-top: 5px; }
  .menu-grid button { min-height: 40px; font-size: 12px; }
  .menu .main { min-height: 42px; font-size: 16px; }
  .menu .round { width: 40px; height: 40px; }
  .menu .round img { width: 22px; height: 22px; }
  .icon-row { margin-top: 6px; gap: 10px; }
  #home-progress { margin-top: 4px; }

  header { min-height: 48px; padding: 3px 8px; border-bottom-width: 3px; gap: 8px; }
  header button { width: 38px; height: 38px; }
  header b { font-size: 15px; }
  .hearts .ico { width: 18px; height: 18px; }
  .layout { padding: 4px; gap: 6px; }
  .wheel-panel { width: min(30%, 200px); padding: 5px; gap: 3px; }
  .wheel-header b { font-size: 13px; }
  .wheel-header small { display: none; }
  .wheel-wrap { width: min(34vh, 140px); }
  #spin { font-size: 11px; min-height: 34px; }
  .small-btn { min-height: 28px; font-size: 10px; }
  #wheel-status { display: none; }
  .board-heading { padding: 3px 9px; }
  .board-heading small, .board-heading span { display: none; }
  .board-heading b { font-size: 15px; }
  #shape-clue img { width: 34px; height: 34px; }
  #board { padding: 4px; gap: 4px; }
  .picture span { display: none; }
  .board-foot { padding: 3px 8px; }
  #feedback { font-size: 11px; }
  #hint { min-height: 30px; font-size: 10px; }
  .dialog { padding: 12px; }
  .dialog h2 { font-size: 21px; margin-bottom: 4px; }
  .result-img { width: 52px; height: 52px; }
  .stars-row .ico { width: 32px; height: 32px; }
}
