@font-face {
  font-family: 'Lilita One';
  src: url('./fonts/LilitaOne.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --parch: #f3e3c3;
  --parch-light: #fbf1dc;
  --ink: #3c2314;
  --ink-soft: #6b4a2b;
  --gold: #e8b830;
  --turq: #4fc3cf;
  --danger: #c0392b;
  --ok: #3b9e4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #1a1420;
  overflow: hidden;
  font-family: 'Lilita One', 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game { position: absolute; inset: 0; }
#game canvas { display: block; margin: 0 auto; }

/* Overlay sits over the canvas; sized by JS to match the scaled game area */
#overlay {
  position: absolute;
  left: 0; top: 0;
  width: 1280px; height: 720px;
  transform-origin: 0 0;
  pointer-events: none;
  color: var(--ink);
}
#overlay > * { pointer-events: auto; }

.hidden { display: none !important; }

/* ---------- Parchment panels & buttons ---------- */
.panel {
  background: var(--parch);
  border: 4px solid var(--ink);
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px var(--parch-light), 0 8px 24px rgba(40, 20, 10, 0.35);
  padding: 18px 22px;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: linear-gradient(#ffe38a, var(--gold));
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 8px 20px;
  cursor: pointer;
  box-shadow: 0 4px 0 #8a5a12;
  transition: transform 0.06s, box-shadow 0.06s;
  text-transform: uppercase;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a5a12; }
.btn.secondary { background: linear-gradient(#fff5df, #ecd9b4); box-shadow: 0 4px 0 #9a7a4a; }
.btn.small { font-size: 16px; padding: 5px 12px; border-width: 2px; box-shadow: 0 3px 0 #8a5a12; }
.btn.danger { background: linear-gradient(#ff9a8a, #d9534f); color: #fff; box-shadow: 0 4px 0 #7a1f1a; }
.btn.turq { background: linear-gradient(#a8ecf2, var(--turq)); box-shadow: 0 4px 0 #1f7a82; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.active { outline: 4px solid #ff6b6b; }

/* ---------- Title screen ---------- */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
}
.title-card { text-align: center; min-width: 500px; max-width: 520px; }
.game-title {
  font-size: 56px;
  line-height: 1;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 4px 0 var(--gold), 0 8px 0 rgba(0,0,0,0.15);
  letter-spacing: 1px;
}
.game-subtitle { font-size: 20px; color: var(--ink-soft); margin: 6px 0 22px; letter-spacing: 2px; }
.menu-buttons { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.menu-footer { margin-top: 12px; font-size: 14px; color: var(--ink-soft); display: flex; gap: 14px; justify-content: center; }
.menu-footer button { background: none; border: none; font-family: inherit; color: var(--ink-soft); cursor: pointer; font-size: 14px; text-decoration: underline; }

/* ---------- Level select ---------- */
.levels-wrap { width: 1180px; max-height: 660px; display: flex; flex-direction: column; }
.levels-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.levels-head h2 { margin: 0; font-size: 34px; flex: 1; }
.tabs { display: flex; gap: 6px; }
.tab { font-family: inherit; font-size: 18px; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 8px; background: #ecd9b4; cursor: pointer; color: var(--ink); }
.tab.active { background: var(--gold); }
.levels-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  overflow-y: auto;
  padding: 4px;
}
.level-card {
  background: var(--parch-light);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 10px 10px 8px;
  cursor: pointer;
  min-height: 92px;
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.level-card:hover { background: #fff8e8; transform: translateY(-2px); }
.level-card.locked { opacity: 0.55; cursor: not-allowed; }
.level-card .num { font-size: 26px; line-height: 1; }
.level-card .name { font-size: 14px; color: var(--ink-soft); line-height: 1.1; }
.level-card .stars { font-size: 16px; color: var(--gold); text-shadow: 0 1px 0 var(--ink); }
.level-card .tag { position: absolute; right: 8px; top: 8px; font-size: 12px; background: var(--ink); color: var(--parch); padding: 2px 6px; border-radius: 6px; }
.level-card .actions { display: flex; gap: 4px; margin-top: 4px; }
.empty-note { color: var(--ink-soft); font-size: 18px; padding: 20px; grid-column: 1 / -1; text-align: center; }

/* ---------- Dialogs ---------- */
.dialog { text-align: center; min-width: 460px; }
.dialog h2 { margin: 0 0 8px; font-size: 40px; }
.dialog p { margin: 6px 0; font-size: 20px; color: var(--ink-soft); }
.dialog .row { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.dialog .big-stars { font-size: 44px; letter-spacing: 6px; color: var(--gold); text-shadow: 0 3px 0 var(--ink); margin: 6px 0; }
.dialog .big-stars .off { color: #cdb894; text-shadow: none; }
.dialog textarea { width: 100%; height: 120px; font-family: monospace; font-size: 12px; }
.dialog input[type=text] { font-family: inherit; font-size: 20px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 8px; width: 100%; }

/* ---------- In-game top-left controls ---------- */
.hud-controls { position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; }
.hud-bottom { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; align-items: flex-end; }
/* every control the same width: the glyphs differ (arrows, +, an SVG, a hand,
   a bulb) and sizing by content made a ragged row */
.rot-btn { font-size: 30px; width: 76px; padding: 4px 0; line-height: 1; text-align: center; box-sizing: border-box; }
.rot-btn.icon-btn .icon { margin: 0 auto; }
.hud-hint { font-size: 14px; line-height: 1.25; color: #fff; text-shadow: 0 2px 2px rgba(0,0,0,0.5); background: rgba(40,20,10,0.45); padding: 6px 10px; border-radius: 8px; max-width: 540px; }
.hud-level { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-size: 20px; color: #fff; text-shadow: 0 2px 2px rgba(0,0,0,0.55); background: rgba(40,20,10,0.45); padding: 6px 16px; border-radius: 10px; white-space: nowrap; }

/* ---------- Editor ---------- */
.editor-top {
  position: absolute; left: 0; top: 0; right: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(60, 35, 20, 0.85);
  border-bottom: 3px solid var(--ink);
}
.editor-top input[type=text] { font-family: inherit; font-size: 18px; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 6px; width: 220px; }
.editor-top input[type=number] { font-family: inherit; font-size: 16px; width: 56px; padding: 3px 4px; border: 2px solid var(--ink); border-radius: 6px; }
.editor-top label { color: var(--parch); font-size: 16px; display: flex; align-items: center; gap: 4px; }
.editor-top .spacer { flex: 1; }

.editor-left {
  position: absolute; left: 0; top: 54px; bottom: 0;
  width: 230px;
  background: rgba(60, 35, 20, 0.85);
  border-right: 3px solid var(--ink);
  padding: 8px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.tool-group { color: var(--parch); font-size: 14px; letter-spacing: 1px; margin-top: 4px; opacity: 0.8; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tool {
  font-family: inherit; font-size: 12px; line-height: 1.1;
  padding: 6px 2px; height: 58px;
  border: 2px solid var(--ink); border-radius: 8px;
  background: var(--parch); color: var(--ink);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.tool canvas { width: 30px; height: 30px; }
.tool.active { background: var(--gold); outline: 3px solid #ff6b6b; }
.tool.wide { grid-column: span 3; height: 30px; flex-direction: row; }
.group-pick { display: flex; gap: 3px; flex-wrap: wrap; }
.group-pick button { width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; font-family: inherit; color: #fff; text-shadow: 0 1px 1px #000; }
.group-pick button.active { outline: 3px solid #fff; }
.dir-pick { display: flex; gap: 3px; }
.dir-pick button { flex: 1; font-family: inherit; font-size: 16px; border: 2px solid var(--ink); border-radius: 6px; background: var(--parch); cursor: pointer; }
.dir-pick button.active { background: var(--gold); }

.editor-status {
  position: absolute; left: 240px; bottom: 10px; right: 300px;
  color: #fff; font-size: 15px; text-shadow: 0 2px 2px rgba(0,0,0,0.6);
  background: rgba(40,20,10,0.55); padding: 6px 10px; border-radius: 8px;
  pointer-events: none;
}
.editor-right {
  position: absolute; right: 0; top: 54px; width: 290px;
  padding: 10px;
  background: rgba(60, 35, 20, 0.85);
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  border-radius: 0 0 0 12px;
  color: var(--parch);
  font-size: 15px;
  display: flex; flex-direction: column; gap: 6px;
}
.editor-right .btn { align-self: stretch; }
.editor-right .val { font-size: 14px; line-height: 1.3; }
.editor-right .val.ok { color: #9ef29e; }
.editor-right .val.bad { color: #ffb0a0; }

.file-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; text-align: left; }
.file-row { display: flex; align-items: center; gap: 8px; background: var(--parch-light); border: 2px solid var(--ink); border-radius: 8px; padding: 6px 10px; }
.file-row .n { flex: 1; font-size: 18px; }
.file-row .m { font-size: 13px; color: var(--ink-soft); }

/* gamepad focus ring */
.pad-focus { outline: 4px solid #4fc3cf !important; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(79,195,207,0.35) !important; }

/* keys chip in the game HUD */
.hud-keys { position: absolute; left: 16px; top: 64px; display: flex; align-items: center; gap: 6px; font-size: 20px; background: var(--parch); border: 3px solid var(--ink); border-radius: 10px; padding: 2px 10px; box-shadow: 0 3px 0 #9a7a4a; }

/* toast */
.toast {
  position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%);
  background: var(--ink); color: var(--parch); padding: 8px 18px; border-radius: 10px;
  font-size: 18px; border: 3px solid var(--gold);
  animation: toast-in 0.25s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* icon buttons (recenter) */
.icon-btn .icon { display: block; width: 1em; height: 1em; }
.icon-btn .icon svg { display: block; width: 100%; height: 100%; }
.btn.small.icon-btn { font-size: 20px; padding: 3px 8px; }
.title-screen { align-items: flex-start; padding-left: 60px; justify-content: center; }
#overlay > .title-screen { pointer-events: none; }
.title-screen > .panel { pointer-events: auto; }

/* ---------- Shop ---------- */
.shop-list { display: flex; flex-direction: column; margin: 6px 0 10px; }
.shop-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 2px; border-bottom: 2px dashed rgba(90,60,30,0.18); }
.shop-item:last-of-type { border-bottom: none; }
.shop-item.owned { opacity: 0.8; }
.shop-text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.shop-text b { font-size: 20px; }
.shop-text span { font-size: 14px; color: #7a5a3a; line-height: 1.3; }
.shop-item .btn.small { white-space: nowrap; }
.portrait .shop-text b { font-size: 27px; }
.portrait .shop-text span { font-size: 20px; }
.portrait .shop-item .btn.small { font-size: 22px; padding: 10px 14px; }

/* ---------- Portrait (phone held upright): overlay gets .portrait ----------
   The 720px-wide overlay is shown at ~0.55x on a phone, so everything a finger
   touches is drawn about twice the landscape size. */
.portrait .title-screen { align-items: center; padding: 0 0 70px; justify-content: flex-end; }
.portrait .title-card { min-width: 0; width: 660px; max-width: 660px; padding: 26px 28px; }
.portrait .game-title { font-size: 70px; }
.portrait .game-subtitle { font-size: 25px; margin-bottom: 26px; }
.portrait .menu-buttons { gap: 16px; }
.portrait .menu-buttons .btn { font-size: 36px; padding: 16px 20px; border-width: 4px; }
.portrait .menu-footer { gap: 22px; margin-top: 18px; }
.portrait .menu-footer button { font-size: 23px; padding: 8px 2px; }

.portrait .levels-wrap { width: 696px; max-height: calc(100% - 32px); padding: 20px; }
.portrait .levels-head { flex-wrap: wrap; gap: 12px; }
.portrait .levels-head h2 { font-size: 46px; }
.portrait .levels-head .btn.small { font-size: 26px; padding: 10px 18px; border-width: 3px; }
.portrait .tab { font-size: 24px; padding: 10px 14px; }
.portrait .levels-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.portrait .level-card { min-height: 140px; padding: 14px 14px 10px; }
.portrait .level-card .num { font-size: 42px; }
.portrait .level-card .name { font-size: 20px; }
.portrait .level-card .stars { font-size: 26px; }
.portrait .level-card .actions .btn.small { font-size: 26px; padding: 8px 14px; }
.portrait .empty-note { font-size: 24px; }

.portrait .dialog { min-width: 0; width: 660px; max-width: 680px; padding: 28px 24px; }
.portrait .dialog h2 { font-size: 52px; }
.portrait .dialog p { font-size: 25px; }
.portrait .dialog .row { gap: 14px; }
.portrait .dialog .btn { font-size: 30px; padding: 14px 24px; border-width: 4px; }
.portrait .dialog .big-stars { font-size: 64px; }
.portrait .dialog textarea { height: 200px; font-size: 18px; }
.portrait .toast { font-size: 26px; bottom: 260px; padding: 12px 22px; }

.portrait .hud-controls { left: 16px; right: 16px; gap: 12px; }
.portrait .hud-controls .btn.small { flex: 1; font-size: 27px; padding: 13px 8px; border-width: 3px; box-shadow: 0 4px 0 #9a7a4a; }
.portrait .hud-level { top: 96px; font-size: 24px; max-width: 690px; overflow: hidden; text-overflow: ellipsis; }
.portrait .hud-keys { left: auto; right: 16px; top: 330px; font-size: 30px; padding: 4px 16px; }
.portrait .hud-keys canvas { width: 34px !important; height: 34px !important; }
.portrait .hud-bottom { right: 16px; flex-wrap: wrap; gap: 12px; }
.portrait .hud-bottom .rot-btn { flex: 1; width: auto; font-size: 50px; padding: 12px 0; text-align: center; }
.portrait .hud-bottom .icon-btn .icon { margin: 0 auto; }
.portrait .hud-hint { order: -1; flex-basis: 100%; max-width: none; font-size: 22px; padding: 8px 12px; }

.portrait .editor-top { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; }
.portrait .editor-top .btn.small { font-size: 22px; padding: 8px 12px; }
.portrait .editor-top input[type=text] { width: 190px; font-size: 22px; }
.portrait .editor-top input[type=number] { width: 62px; font-size: 22px; }
.portrait .editor-top label { font-size: 20px; }
.portrait .editor-right { top: 128px; left: 0; right: 0; width: auto; height: auto; max-height: 360px; overflow-y: auto; border-left: none; border-radius: 0; font-size: 19px; }
.portrait .editor-right .btn.small { font-size: 22px; padding: 8px 12px; }
.portrait .editor-right .val { font-size: 18px; }
.portrait .editor-right input[type=text] { font-size: 20px !important; }
.portrait .editor-right .help { display: none; }
.portrait .editor-left { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 30%; border-right: none; border-top: 3px solid var(--ink); padding: 10px; gap: 8px; }
.portrait .tool-group { font-size: 19px; }
.portrait .tools { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.portrait .tool { height: 92px; font-size: 17px; }
.portrait .tool canvas { width: 44px; height: 44px; }
.portrait .dir-pick button { font-size: 28px; padding: 6px 0; }
.portrait .group-pick { gap: 8px; }
.portrait .group-pick button { width: 52px; height: 52px; font-size: 22px; }
.portrait .editor-left label { font-size: 19px !important; }
.portrait .editor-left select { font-size: 20px; }
.portrait .editor-status { left: 10px; right: 10px; bottom: calc(30% + 10px); font-size: 19px; }

/* ---------- coach marks (tutorial) ---------- */
#overlay > .coach { pointer-events: none; position: absolute; inset: 0; }
.coach-hand { position: absolute; font-size: 46px; line-height: 1; margin-left: -18px; filter: drop-shadow(0 3px 2px rgba(0,0,0,0.35)); animation: coach-tap 1s ease-in-out infinite; }
.coach-hand.drag { margin-left: -24px; animation: coach-drag 1.6s ease-in-out infinite; }
@keyframes coach-tap { 0%, 100% { transform: translateY(6px) scale(1); } 50% { transform: translateY(-6px) scale(0.92); } }
@keyframes coach-drag { 0% { transform: translateX(-70px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(70px); opacity: 0; } }
.coach-bubble { position: absolute; pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 460px; background: var(--parch); border: 3px solid var(--ink); border-radius: 12px; padding: 10px 12px 10px 16px; font-size: 20px; box-shadow: 0 6px 18px rgba(40,20,10,0.35); animation: toast-in 0.25s ease-out; }
.portrait .coach-hand { font-size: 76px; margin-left: -30px; }
.portrait .coach-bubble { font-size: 27px; max-width: 640px; }

/* ---------- win dialog extras ---------- */
.dialog .challenge-row { margin: 6px auto 0; font-size: 19px; color: var(--ink-soft); background: rgba(255,255,255,0.4); border-radius: 10px; padding: 6px 12px; display: inline-block; }
.dialog .challenge-row.done { color: #2f7a1f; background: rgba(120,220,110,0.25); }
.dialog .rank-box { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.dialog .rank-box input[type=text] { max-width: 260px; }
.portrait .dialog .challenge-row { font-size: 25px; }

/* ---------- settings, looks, daily, community ---------- */
.settings-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; text-align: left; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 20px; background: rgba(255,255,255,0.35); border-radius: 10px; padding: 6px 10px; }
.settings-row .btn.small { min-width: 130px; }
.settings-row a { color: var(--ink); }
.portrait .settings-row { font-size: 25px; padding: 10px 14px; }
.portrait .settings-row .btn.small { min-width: 170px; font-size: 22px; padding: 10px 12px; }

.skin-head { font-size: 20px; color: var(--ink-soft); margin-bottom: 8px; }
.skin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.skin-card { background: var(--parch-light); border: 3px solid var(--ink); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.skin-card.current { outline: 4px solid var(--turq); }
.skin-card.locked canvas { filter: grayscale(1) brightness(0.55); }
.skin-card canvas { width: 120px; height: 140px; }
.skin-card .skin-name { font-size: 18px; }
.skin-card .skin-need { font-size: 15px; color: var(--ink-soft); }
.portrait .skin-card canvas { width: 170px; height: 196px; }
.portrait .skin-card .skin-name { font-size: 24px; }
.portrait .skin-card .skin-need { font-size: 20px; }

.daily-card { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.daily-card .daily-meta { font-size: 18px; color: var(--ink-soft); }
.daily-top { list-style: none; margin: 0; padding: 0; text-align: left; max-height: 300px; overflow-y: auto; }
.daily-top li { display: flex; justify-content: space-between; font-size: 19px; padding: 4px 10px; border-bottom: 1px dashed rgba(60,35,20,0.25); }
.daily-top li.me { background: rgba(79,195,207,0.25); border-radius: 8px; }
.portrait .daily-card .daily-meta { font-size: 24px; }
.portrait .daily-top li { font-size: 25px; padding: 8px 12px; }
.portrait .daily-top { max-height: 560px; }

.ep-head { grid-column: 1 / -1; font-size: 20px; color: var(--ink-soft); margin: 8px 2px 0; letter-spacing: 1px; text-transform: uppercase; }
.portrait .ep-head { font-size: 26px; }
.level-card .crown { position: absolute; right: 8px; top: 6px; font-size: 20px; }
.portrait .level-card .crown { font-size: 30px; }
.level-card .thumb { width: 100%; height: auto; border-radius: 6px; background: linear-gradient(#bfe3f1, #f1dfb8); }
.level-card .meta { font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.level-card .like-on { background: linear-gradient(#ffc0cf, #ff7a9a); }
.portrait .level-card .meta { font-size: 19px; }
.sort-row { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 10px; }
.sort-row .tab { font-size: 15px; padding: 4px 10px; }
.portrait .sort-row .tab { font-size: 22px; padding: 8px 12px; }
.levels-grid.community { grid-template-columns: repeat(4, 1fr); }
.portrait .levels-grid.community { grid-template-columns: repeat(2, 1fr); }
.sync-code { font-size: 40px; letter-spacing: 4px; background: #fff8e8; border: 3px dashed var(--ink); border-radius: 12px; padding: 8px 18px; user-select: all; -webkit-user-select: all; }
.portrait .sync-code { font-size: 54px; }

/* ---------- hints ---------- */
.hint-btn { position: relative; }
.hint-btn .hint-count { position: absolute; right: -8px; top: -10px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: #2faa4e; color: #fff; font-size: 16px; line-height: 26px; border: 2px solid var(--ink); text-shadow: none; }
.hint-btn .hint-count.none { background: #b0563a; }
.btn.pulse { animation: btn-pulse 0.7s ease-in-out infinite; outline: 4px solid #46d77c; }
@keyframes btn-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.portrait .hint-btn .hint-count { min-width: 40px; height: 40px; line-height: 40px; font-size: 24px; border-radius: 20px; top: -14px; right: -6px; }
.btn.active-pan { background: linear-gradient(#a8ecf2, var(--turq)); outline: 4px solid #46d77c; }
