/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #070e1b;
  --surface:     #0c1525;
  --surface2:    #111e30;
  --cell-empty:  #0f1d35;
  --cell-border: #1a2d4a;
  --accent:      #0ea5e9;
  --accent2:     #6c5fff;
  --gold:        #fbbf24;
  --green:       #34d399;
  --text:        #e8edf8;
  --text-dim:    #8892aa;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,.6);
}

html {
  height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── App shell ────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: min(100dvh, 900px);
  max-width: 480px;
  padding: env(safe-area-inset-top, 8px) 12px env(safe-area-inset-bottom, 8px);
  gap: 8px;
}

/* ── Header ───────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 0;
}

.logo {
  font-size: clamp(1.1rem, 5vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
}

.scores {
  display: flex;
  gap: 12px;
}

.score-box {
  text-align: center;
  line-height: 1.1;
}

.score-box .label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  display: block;
}

.score-box .value {
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.header-btns {
  display: flex;
  gap: 6px;
}

.icon-btn {
  background: var(--surface2);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:active { transform: scale(0.9); background: var(--surface); }

/* ── Pattern meter ────────────────────────────────────────── */
.meter-section {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#meter-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 52px;
}

#meter-count {
  min-width: 36px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.meter-track {
  flex: 1;
  height: 8px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

#meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

#meter-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: shimmer 2s infinite;
}

.meter-stars {
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
}

#app-version {
  color: rgba(245, 247, 251, 0.42);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Board ────────────────────────────────────────────────── */
#board-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

#board {
  /* Square board constrained by the app width and viewport height. */
  width: min(100%, calc(100dvh - 268px));
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 3px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.05);
}

.cell {
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: transform 0.05s;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.cell.empty {
  background: var(--cell-empty);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.cell.filled {
  background: var(--pc);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.2),
    0 2px 4px rgba(0,0,0,.3);
}

/* Empty pattern cell — strong gold border + subtle tint */
.cell.pattern-hint.empty {
  background:
    radial-gradient(circle at center, rgba(251,191,36,.10), transparent 60%),
    var(--cell-empty);
  box-shadow: inset 0 0 0 2px rgba(251,191,36,.75);
}

/* Already-hit pattern cell cleared by a line — faint border, visually done */
.cell.pattern-hint.pattern-found.empty {
  background: var(--cell-empty);
  box-shadow: inset 0 0 0 1px rgba(251,191,36,.22);
}


.cell.pattern-missing-focus {
  box-shadow:
    inset 0 0 0 2px rgba(251,191,36,.9),
    0 0 12px rgba(251,191,36,.42);
}

.cell.pattern-missing-focus::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 5px;
  border: 2px dashed rgba(251,191,36,.86);
  background: rgba(251,191,36,.08);
  pointer-events: none;
  z-index: 2;
  animation: patternMissingPulse 0.9s ease-in-out infinite alternate;
}

.cell.bomb-preview:not(.bomb-cell)::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 4px;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(249,115,22,.22), transparent 62%);
  box-shadow:
    inset 0 0 0 1px rgba(251,191,36,.24),
    0 0 10px rgba(249,115,22,.18);
  pointer-events: none;
}

.cell.bomb-preview.empty:not(.bomb-cell) {
  background:
    radial-gradient(circle at center, rgba(249,115,22,.16), transparent 58%),
    var(--cell-empty);
}

.cell.bomb-cell::before {
  content: "💣";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  animation: bombPulse 0.9s ease-in-out infinite alternate;
  pointer-events: none;
}

.cell.bomb-cell[data-bomb-turns="2"]::before {
  font-size: clamp(1.0rem, 3.8vw, 1.3rem);
}

.cell.bomb-cell[data-bomb-turns="1"]::before {
  font-size: clamp(0.7rem, 2.8vw, 0.9rem);
  animation-duration: 0.42s;
}

.cell.bomb-cell::after {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  z-index: 3;
  border: 2px solid rgba(251,191,36,.6);
  box-shadow: 0 0 22px rgba(249,115,22,.65);
  animation: bombRing 1.4s ease-out infinite;
  pointer-events: none;
}

.cell.bomb-cell.bomb-low::after {
  border-color: rgba(239,68,68,.8);
  box-shadow: 0 0 22px rgba(239,68,68,.75);
}

.cell.ghost {
  background:
    radial-gradient(circle at center, rgba(255,255,255,.16), transparent 58%),
    color-mix(in srgb, var(--accent) 46%, transparent);
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 0 14px rgba(124,58,237,.45);
  animation: ghostPulse 0.8s ease-in-out infinite alternate;
}

.cell.ghost-bad {
  background:
    repeating-linear-gradient(45deg, rgba(239,68,68,.24) 0 6px, rgba(239,68,68,.1) 6px 12px),
    rgba(239,68,68,.22);
  box-shadow:
    inset 0 0 0 2px #ef4444,
    0 0 10px rgba(239,68,68,.35);
}

/* ── Feedback overlay ─────────────────────────────────────── */
#feedback {
  position: absolute;
  top: calc(50% - 18px);
  left: 0;
  right: 0;
  font-size: 1.4rem;
  font-weight: 800;
  pointer-events: none;
  z-index: 10;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
  opacity: 0;
  padding: 0 10px;
  overflow-wrap: anywhere;
  contain: paint;
  will-change: opacity;
}

#feedback.score-feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.05;
}

.feedback-points {
  color: var(--gold);
  font-size: 1.75rem;
  font-weight: 950;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.feedback-label {
  color: rgba(245, 247, 251, 0.86);
  font-size: 0.92rem;
  font-weight: 800;
}

#feedback.feedback-anim {
  animation: feedbackFloat 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Pieces row ───────────────────────────────────────────── */
#pieces-row {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  height: clamp(90px, 15vh, 130px);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.piece-slot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.piece-slot:hover { background: rgba(255,255,255,.04); }
.piece-slot.selected {
  background: rgba(124,58,237,.15);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.piece-slot.dragging { opacity: 0.3; }
.piece-slot.used {
  opacity: .55;
}

.piece-used-label {
  color: var(--text-dim);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.piece-slot.piece-new {
  animation: pieceNew 0.42s cubic-bezier(0.34,1.56,0.64,1);
}

.piece-slot.unplayable {
  opacity: .38;
  filter: grayscale(.55);
}

.piece-slot.unplayable::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), rgba(239,68,68,.85) 50%, transparent calc(50% + 1px));
  pointer-events: none;
}

.piece-mini {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  gap: 2px;
}

.piece-cell {
  --cs2: min(calc((100vw - 80px) / 3 / 5), 22px);
  width: var(--cs2);
  height: var(--cs2);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.2);
}

/* Drag float fills its JS-computed container */
.drag-mini .piece-cell {
  width: auto;
  height: auto;
  border-radius: 5px;
}

/* ── Drag float ───────────────────────────────────────────── */
.drag-float {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.7));
  transition: opacity 0.1s;
  left: 0;
  top: 0;
  will-change: transform, opacity;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop.hidden { display: none; }

.modal-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-card h2 {
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
  margin-top: -8px;
}

.intro-card {
  max-width: 380px;
}

.intro-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.25;
}

.intro-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0d1a;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #f97316);
  box-shadow: 0 0 16px rgba(251,191,36,.28);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-item {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.result-item .r-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.result-item .r-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.result-item.highlight .r-value {
  background: linear-gradient(135deg, var(--gold), #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:active { opacity: 0.85; transform: scale(0.97); }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:active { background: var(--cell-empty); transform: scale(0.97); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

@keyframes ghostPulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

@keyframes feedbackFloat {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  68%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes cellSnap {
  0%   { transform: scale(0.7); opacity: 0.6; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pieceNew {
  0%   { transform: translateY(12px) scale(.9); opacity: .35; }
  65%  { transform: translateY(-3px) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes cellClear {
  0%   { transform: scale(1); opacity: 1; }
  30%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes cellPatternHit {
  0%   { box-shadow: 0 0 0 0 rgba(251,191,36,.95), inset 0 0 0 2px rgba(251,191,36,.9); transform: scale(1.1); }
  50%  { box-shadow: 0 0 0 12px rgba(251,191,36,.0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); transform: scale(1); }
}

@keyframes floatScore {
  0%   { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
  60%  { transform: translateX(-50%) translateY(-24px) scale(1.15); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-44px) scale(0.9); opacity: 0; }
}

.floating-score {
  position: fixed;
  pointer-events: none;
  z-index: 300;
  font-size: clamp(0.8rem, 3.2vw, 1rem);
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  animation: floatScore 0.85s ease-out forwards;
  white-space: nowrap;
}

@keyframes meterPulse {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(1.7) saturate(1.4); }
}

.meter-pulse { animation: meterPulse 0.35s ease-out; }

@keyframes cellPatternFlash {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(251,191,36,0); }
  18%  { transform: scale(1.14); box-shadow: 0 0 18px 6px rgba(251,191,36,.85); }
  45%  { transform: scale(1.06); box-shadow: 0 0 12px 3px rgba(251,191,36,.5); }
  70%  { transform: scale(1.11); box-shadow: 0 0 16px 5px rgba(251,191,36,.65); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(251,191,36,0); }
}

/* Board dim during pattern celebration */
#board.pattern-celebrating .cell:not(.pattern-hint) {
  opacity: 0.18;
  transition: opacity 0.22s ease;
}
#board.pattern-celebrating .cell.pattern-hint {
  transition: opacity 0.22s ease;
}

/* Big centered score on pattern complete */
.pattern-complete-score {
  font-size: clamp(2rem, 8vw, 2.8rem) !important;
  color: #fbbf24 !important;
  text-shadow: 0 0 24px rgba(251,191,36,.7), 0 2px 10px rgba(0,0,0,.9) !important;
  animation: floatScoreBig 1.1s ease-out forwards !important;
}

@keyframes floatScoreBig {
  0%   { transform: translateX(-50%) translateY(-50%) scale(0.4); opacity: 0; }
  22%  { transform: translateX(-50%) translateY(-50%) scale(1.18); opacity: 1; }
  55%  { transform: translateX(-50%) translateY(-65%) scale(1);    opacity: 1; }
  100% { transform: translateX(-50%) translateY(-85%) scale(0.85); opacity: 0; }
}

@keyframes cellPatternReveal {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes patternMissingPulse {
  from { opacity: .62; }
  to   { opacity: 1; }
}

@keyframes cellDrop {
  0%   { transform: translateY(-76%) scale(.94); opacity: .68; filter: brightness(1.28); box-shadow: 0 -14px 18px rgba(251,191,36,.22), inset 0 1px 0 rgba(255,255,255,.25); }
  68%  { transform: translateY(6%) scale(1.03); opacity: 1; filter: brightness(1.08); box-shadow: 0 -5px 10px rgba(251,191,36,.14), inset 0 1px 0 rgba(255,255,255,.25); }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: brightness(1); }
}

@keyframes fallCue {
  0%   { opacity: 0; transform: translate(-50%, -80%) scaleY(.7); }
  30%  { opacity: .58; }
  100% { opacity: 0; transform: translate(-50%, 20%) scaleY(1); }
}

@keyframes bombPulse {
  from { transform: scale(.92); }
  to   { transform: scale(1.08); }
}

@keyframes bombRing {
  0%   { transform: scale(.75); opacity: .8; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes cellBombBlast {
  0%   { transform: scale(1); opacity: 1; }
  34%  { transform: scale(1.18); opacity: .92; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes bombWave {
  0%   { box-shadow: inset 0 0 0 0 rgba(251,191,36,.0), 0 0 0 rgba(249,115,22,0); }
  35%  { box-shadow: inset 0 0 0 3px rgba(251,191,36,.95), 0 0 18px rgba(249,115,22,.75); }
  100% { box-shadow: inset 0 0 0 0 rgba(251,191,36,0), 0 0 0 rgba(249,115,22,0); }
}

@keyframes cellRemove {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

@keyframes modalIn {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.cell-snap         { animation: cellSnap 0.2s cubic-bezier(0.34,1.56,0.64,1) both; }
.cell-clear        { animation: cellClear 0.3s ease-in forwards; }
.cell-pattern-hit  { animation: cellPatternHit 0.6s ease-out; }
.cell-pattern-flash{ animation: cellPatternFlash 1.0s ease-in-out; }
.cell-pattern-reveal{ animation: cellPatternReveal 0.75s ease-out; }
.cell-drop         { animation: cellDrop 0.68s cubic-bezier(0.2,0.8,0.2,1); z-index: 2; }
.cell-drop::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -34%;
  width: 3px;
  height: 58%;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(251,191,36,0), rgba(251,191,36,.72), rgba(251,191,36,0));
  pointer-events: none;
  animation: fallCue 0.68s ease-out both;
}
.cell-bomb-blast   { animation: cellBombBlast 0.36s ease-in forwards; }
.cell-bomb-wave    { animation: bombWave 0.48s ease-out var(--blast-delay, 0ms) both; }
.cell-remove       { animation: cellRemove 0.4s cubic-bezier(0.4,0,1,1) forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Scrollbar hidden ─────────────────────────────────────── */
::-webkit-scrollbar { display: none; }

/* ── Tilbake-lenke i header ───────────────────────────────── */
.logo { display: flex; align-items: center; gap: 6px; }
.logo-back {
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s, -webkit-text-fill-color 0.15s, background 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-back:hover {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background: rgba(255,255,255,0.08);
}
.header-player {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.01em;
}


