@import url("/hgtips-v3.css?v=20260717-hgtips-editor-v2");

.hg-tip-exercise-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.hg-tip-exercise-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 11px;
  font: inherit;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.hg-tip-exercise-actions button:hover { transform: translateY(-1px); }

.hg-tip-exercise-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: none;
}
.hg-tip-notation-stack {
  display: block;
  width: 100%;
  min-width: 0;
}
.hg-tip-notation-variant {
  display: none;
  width: 100%;
  min-width: 0;
  gap: 9px;
}
.hg-tip-notation-variant.is-desktop {
  display: grid;
}
.hg-tip-notation-variant [data-hg-notation],
.hg-tip-notation-variant .hg-gongo-notation {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.hg-tip-notation {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.hg-note-staff { stroke: #adb5c0; stroke-width: 1; }
.hg-note-bar { stroke: #333; stroke-width: 1.8; }
.hg-note-head { fill: #050505; stroke: #050505; stroke-width: 1; }
.hg-note-beam,
.hg-note-flag,
.hg-note-rest-shape,
.hg-note-rest-block { fill: #050505; }
.hg-note-rest-stroke,
.hg-note-x,
.hg-note-stem,
.hg-note-roll,
.hg-note-grace-slash,
.hg-note-grace-slur {
  fill: none;
  stroke: #050505;
  stroke-width: 2;
  stroke-linecap: round;
}
.hg-note-roll { stroke-width: 3; }
.hg-note-grace-slash { stroke-width: 1.8; }
.hg-note-grace-slur { stroke-width: 1.5; }
.hg-note-empty-slot { fill: #98a2b3; }
.hg-note-sticking,
.hg-note-ghost {
  fill: #050505;
  font-weight: 900;
  text-anchor: middle;
}
.hg-note-sticking { font-size: 12px; }
.hg-note-ghost { font-size: 15px; }

.hg-tip-exercise-preview {
  border: 1px solid rgba(217, 130, 82, .72);
  background: rgba(217, 130, 82, .08);
  color: #f0a071;
}

.hg-tip-exercise-preview:hover,
.hg-tip-exercise-preview.is-playing {
  border-color: #e58b57;
  background: #d98252;
  color: #0f1115;
}

.hg-tip-exercise-practice {
  border: 1px solid rgba(246, 205, 155, .78);
  background: #f6cd9b;
  color: #0f1115;
  box-shadow: 0 0 20px rgba(246, 205, 155, .16);
}

.hg-tip-exercise-practice:hover {
  border-color: #ffd9a8;
  background: #ffd9a8;
}

.hg-tip-exercise-actions button:focus-visible,
.hg-tip-exercise-card:focus-visible {
  outline: 3px solid rgba(246, 205, 155, .48);
  outline-offset: 3px;
}

.hg-tip-access-lock .general-member-unlock p {
  margin: -5px 0 2px;
  color: #b8b8b8;
  font-size: 1rem;
  line-height: 1.6;
}

.hg-tip-access-lock .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
}

.hg-tip-access-lock .ghost-button:hover { border-color: #ffd9a8; color: #ffd9a8; }

.hg-tip-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 190;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid rgba(246, 205, 155, .38);
  border-radius: 11px;
  background: rgba(15, 17, 21, .96);
  color: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}

.hg-tip-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }

.hg-tip-layout {
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: clamp(24px, 3.2vw, 44px);
}

.hg-tip-layout .hg-tip-prose {
  width: 100%;
  max-width: none;
}

.hg-tip-draft-preview {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(620px, calc(100% - 32px));
  padding: 11px 12px 11px 16px;
  border: 1px solid rgba(246,205,155,.65);
  border-radius: 12px;
  background: #171a21;
  color: #fff;
}

.hg-tip-draft-preview span { flex: 1; color: #d5d7dc; font-size: .88rem; }
.hg-tip-draft-preview strong { color: #f6cd9b; }
.hg-tip-draft-preview a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 8px;
  background: #f6cd9b;
  color: #0f1115;
  font-size: .85rem;
  font-weight: 800;
}
.hg-tip-draft-preview a:hover { background: #ffd9a8; }

@media (max-width: 1000px) and (min-width: 561px) {
  .hg-tip-notation-variant.is-desktop { display: none; }
  .hg-tip-notation-variant.is-tablet { display: grid; }
}

@media (max-width: 850px) {
  .hg-tip-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .hg-tip-draft-preview { align-items: stretch; flex-direction: column; gap: 8px; }
  .hg-tip-draft-preview a { text-align: center; }
  .hg-tip-notation-variant.is-desktop { display: none; }
  .hg-tip-notation-variant.is-mobile { display: grid; }
  .hg-tip-exercise-card {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
  .hg-tip-notation {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .hg-tip-exercise-actions { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr); }
  .hg-tip-exercise-actions button { width: 100%; padding-inline: 10px; font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-tip-exercise-actions button { transition: none; }
}
