:root {
  color-scheme: dark;
  --backdrop: #161d27;
  --surface: #192437;
  --panel: #202e44;
  --line: #33435a;
  --text: #f0f3fa;
  --muted: #bec9d9;
  --mint: #72e0ce;
  --ink: #10232b;
  --edge: 12px;
}
html body { background: var(--backdrop); }
.gf-app {
  width: 100%; max-width: 430px; height: 100vh; height: 100dvh;
  margin-inline: auto; background: var(--backdrop) !important;
}
.gf-app header {
  padding: env(safe-area-inset-top) var(--edge) 0 !important;
  border-color: var(--line) !important;
  background: #192336;
}
.gf-app header button[title], .gf-app header button[aria-label="Добавить демо-звёзды"] {
  border-color: #3a4b64 !important;
  background: #242f43 !important;
  font-variant-numeric: tabular-nums;
}
.gf-app header button[aria-label="На главную"] img { width: 28px; height: 28px; }
.gf-main {
  width: 100%; flex: 1; min-height: 0; overflow-y: auto;
  padding: 14px var(--edge) 24px; box-sizing: border-box;
}
.gf-lobby { display: grid; gap: 20px; }
.gf-feature-grid { display: grid; gap: 9px; }
.gf-feature {
  min-height: 168px; position: relative; overflow: hidden; box-sizing: border-box;
  background: radial-gradient(ellipse at 86% 54%, #2d656d, transparent 56%), #223a58;
  border: 1px solid #446477; border-radius: 17px;
  padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 37%); gap: 6px; align-items: center;
}
.gf-feature-copy { min-width: 0; }
.gf-feature h1, .gf-cases-heading h1 {
  margin: 0; font: 700 clamp(24px, 6vw, 26px)/1.14 Unbounded, Manrope, sans-serif;
  letter-spacing: -.025em;
}
.gf-feature h1 { font: 800 29px/1.08 Manrope, system-ui, sans-serif; }
.gf-feature p { margin: 8px 0 16px; color: #d7edee; font-size: 14px; font-weight: 700; }
.gf-feature-image {
  width: 100%; height: auto; max-height: 144px; justify-self: end;
  filter: drop-shadow(0 11px 12px #080f1ba6);
}
.gf-action {
  min-height: 42px; padding: 0 14px; border: 0; border-radius: 9px;
  background: var(--mint); color: var(--ink); font: 800 13px Manrope, sans-serif;
}
.gf-collection-feature {
  min-height: 68px; min-width: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px;
  border: 1px solid #485b76; border-radius: 14px; color: var(--text);
  background: #25364e; font: inherit; text-align: left;
}
.gf-collection-copy { display: grid; gap: 3px; margin-right: auto; }
.gf-collection-copy strong { font-size: 18px; font-weight: 800; }
.gf-collection-copy > span { color: #d0d9eb; font-size: 12px; }
.gf-collection-feature img { width: 51px; height: 51px; margin-block: -5px; }
.gf-collection-feature svg { flex-shrink: 0; }
.gf-recent {
  min-width: 0; display: flex; align-items: center; gap: 10px;
  background: #182336; border-radius: 12px; padding: 8px 10px; min-height: 38px;
}
.gf-recent h2 { flex: 0 0 auto; max-width: 130px; margin: 0; font-size: 12px; line-height: 1.15; }
.gf-recent p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.25; }
.gf-recent-strip { display: flex; gap: 8px; overflow-x: auto; }
.gf-recent-strip:empty { display: none; }
.gf-recent-item {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 3px 8px; background: #263650; border-radius: 8px; font-size: 12px;
}
.gf-recent-item strong { color: #ffd177; white-space: nowrap; }
.gf-section-title { margin: 0 0 10px; font: 800 25px/1.16 Manrope, system-ui, sans-serif; }
.gf-game-grid, .gf-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.gf-game-card {
  display: grid; grid-template-rows: auto 1fr; align-content: start;
  min-width: 0; overflow: hidden; box-sizing: border-box; padding: 0;
  border: 1px solid #40526d; border-radius: 14px; background: #1b293e;
  text-align: left; font: inherit; color: var(--text);
}
.gf-game-card .gf-game-art {
  display: block; width: 100%; min-width: 0; height: auto; aspect-ratio: 1;
  object-fit: contain;
}
.gf-game-copy {
  display: grid; align-content: start; gap: 3px; padding: 8px 10px 10px;
}
.gf-game-copy strong {
  font: 800 18px/1.15 Manrope, system-ui, sans-serif; letter-spacing: -.015em;
}
.gf-game-copy > span { color: #d7dded; font: 650 12px/1.3 Manrope, system-ui, sans-serif; }
.gf-case-shelf { display: grid; gap: 17px; }
.gf-cases-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
}
.gf-cases-heading p { color: var(--muted); margin: 5px 0 0; font-size: 12px; }
.gf-case-sort { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.gf-case-sort select {
  max-width: 100%; font: 700 12px Manrope, sans-serif; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  padding: 0 6px; border-radius: 8px; min-height: 34px;
}
.gf-case-card {
  min-width: 0; padding: 0 0 8px; border: 0; border-radius: 15px;
  background: transparent; color: var(--text); display: grid; justify-items: center;
  gap: 7px; font: 800 14px Manrope, sans-serif;
}
.gf-case-visual {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 15px;
  background: radial-gradient(ellipse at 52% 42%, color-mix(in srgb, var(--case-tone, #6485b9) 54%, #202c41), #202c41 76%);
  border: 1px solid #44546f; box-sizing: border-box;
}
.gf-case-visual img { width: 90%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 10px 10px #0c152380); }
.gf-case-price {
  background: #28374e; border-radius: 8px; padding: 4px 9px;
  display: inline-flex; gap: 5px; align-items: center; font-variant-numeric: tabular-nums;
}
.gf-nav {
  height: calc(60px + env(safe-area-inset-bottom)); flex-shrink: 0; display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px;
  border-top: 1px solid var(--line); background: #192336;
  padding: 4px 7px calc(5px + env(safe-area-inset-bottom)); box-sizing: border-box;
}
.gf-nav-link {
  min-width: 0; border: 0; border-radius: 10px; background: transparent; color: #b7c2d6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font: 800 11px Manrope, sans-serif; padding: 0;
}
.gf-nav-link.is-active { color: #a7f5e7; background: #273f52; }
.gf-nav-icon {
  width: 26px; height: 26px; display: block; object-fit: contain;
  filter: saturate(.78); pointer-events: none;
}
.gf-nav-link.is-active .gf-nav-icon,
.gf-nav-link:focus-visible .gf-nav-icon { filter: none; }
.gf-app :is(button,input,select,a):focus-visible { outline: 2px solid #b2f6ec; outline-offset: -2px; }
.gf-main h1 { letter-spacing: -.02em; }
gifter-catalog .nft-card { background: var(--surface); border-color: var(--line); }
gifter-catalog .nft-tabs button[aria-pressed="true"] { color: #bbfbef; background: #263e52; border-color: #64baa9; }
gifter-catalog .nft-controls :is(input,select) { background: #1c283c; border-color: var(--line); }
@media (max-width: 359px) {
  .gf-cases-heading { align-items: start; }
  .gf-recent h2 { max-width: 80px; }
}
@media (min-width: 480px) {
  .gf-app {
    height: min(820px, calc(100vh - 40px));
    height: min(820px, calc(100dvh - 40px));
    margin-block: max(20px, calc((100vh - 820px) / 2));
    margin-block: max(20px, calc((100dvh - 820px) / 2));
    border: 1px solid #33435a;
    border-radius: 22px;
  }
}




.gf-case-range { font-size: 11px; font-weight: 600; color: var(--muted); }
.gf-case-intro { max-width: 34ch; margin: 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); }
.gf-prize-heading { margin: 0; font-size: 16px; }
.gf-drop-table { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gf-drop-row { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) 71px 41px; gap: 5px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.gf-drop-row:last-child { border-bottom: 0; }
.gf-drop-row > :first-child { text-align: left; }
.gf-drop-head { color: var(--muted); background: var(--panel); }
.gf-drop-prize { display: flex; align-items: center; gap: 7px; min-width: 0; }
.gf-drop-prize strong, .gf-drop-prize small { display: block; overflow-wrap: anywhere; }
.gf-drop-prize small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.gf-drop-value { color: #ffd177; }

.up-dial { position: relative; width: min(204px,80%); aspect-ratio: 1; isolation: isolate; }
.up-disc { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 3px #091d30,0 0 0 4px #79b8ca; }
.up-ticks {
  position: absolute; inset: 3px; border-radius: 50%;
  background: repeating-conic-gradient(from -.5deg, #1f172bba 0deg 1deg, transparent 1deg 6deg);
  mask-image: radial-gradient(closest-side,transparent 93%,#000 94%);
}
.up-core {
  position: absolute; inset: 19px; border-radius: 50%; display: flex; gap: 4px;
  flex-direction: column; justify-content: center; align-items: center;
  background: radial-gradient(ellipse at 50% 35%,#294d68,#102539 78%);
  border: 1px solid #749bab; box-shadow: 0 0 0 3px #13263a;
}
.up-core strong { font: 700 14px/1.2 Manrope,sans-serif; color: #e8fcff; }
.up-pointer {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  width: 17px; height: 21px; background: #fff6b6;
  clip-path: polygon(50% 0,100% 77%,73% 100%,27% 100%,0 77%);
}
.up-meter { width: min(225px,86%); }
.up-caption { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; }
.up-caption strong { color: #abf4d7; font-variant-numeric: tabular-nums; }
.up-track { margin-top: 6px; height: 6px; overflow: hidden; background: #34546b; border-radius: 6px; }
.up-track i { display: block; height: 100%; background: #74ebc1; border-radius: inherit; transition: width .24s ease-out; }
@keyframes gfReveal { from { opacity: .45; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gfUnwrap { from { transform: translate(5px,5px) rotate(-5deg); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .gf-main > div, .nft-detail[open] { animation: gfReveal .24s ease-out; }
  .gf-feature-image, .gf-nav-link.is-active .gf-nav-icon { animation: gfUnwrap .4s cubic-bezier(.2,.8,.2,1); }
  .gf-game-art, .gf-case-visual img { transition: scale .22s ease; }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .gf-game-card:hover .gf-game-art, .gf-case-card:hover img { scale: 1.025; }
}
@media (prefers-reduced-motion: reduce) {
  .gf-app *, .gf-app *::before, .gf-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (min-width:480px) { .gf-app { border-color: #65889a; box-shadow: 0 20px 76px #08070a70; } }
.up-selection > div { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.up-orbit { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.up-orbit .up-pointer { box-shadow: inset 0 -4px 4px #e2a939; }
.gf-daily > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width:359px) {
  .gf-main .gf-daily { display: grid !important; grid-template-columns: 42px minmax(0,1fr); gap: 8px 12px !important; }
  .gf-daily > img { width: 42px; height: 42px; }
  .gf-daily > button { grid-column: 2; justify-self: start; }
}

/* Surface tints and rim highlights define the glass against the matte background. */
:root {
  --text: #f2fbff;
  --muted: #c2dbea;
  --mint: #8ceadf;
  --ink: #092635;
  --surface: #163148b8;
  --panel: #214159cb;
  --line: #a8d7ee40;
  --edge: clamp(12px,3.6vw,16px);
  --glass: linear-gradient(146deg,#badcf329,#5589a313 42%,#4d9ac524 80%,#b3e2f430),#0f273b60;
  --rim: inset 0 1px 1px #ebffff80,inset 1px 0 1px #d2edff32,inset 0 -2px 3px #7dd4fc29,0 5px 14px #04102240;
}
.gf-app {
  isolation: isolate; box-sizing: border-box; color: var(--text);
}
.gf-app header, .gf-nav {
  background: linear-gradient(125deg,#98d7f12a,#2d486676 55%,#6398b44d),#0b1b308f;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--rim); border: 1px solid var(--line);
}
.gf-app header { border-width: 0 0 1px; }
.gf-app header button[aria-label="Добавить демо-звёзды"] {
  background: var(--glass) !important; border-color: var(--line) !important; box-shadow: var(--rim); border-radius: 24px !important;
}
.gf-app header button[aria-label="Добавить демо-звёзды"] > span:last-child { border-radius: 50% !important; }
.gf-app header [aria-label="На главную"] + span { background: #203e4b9c !important; color: #b1f7e5 !important; border-color: #91d3cd55 !important; }
.gf-main { overscroll-behavior: contain; }
.gf-lobby { gap: 17px; }
.gf-feature, .gf-collection-feature, .gf-case-visual, .up-instrument, .nft-detail, gifter-catalog .nft-card, .gf-drop-table, .gf-catalog-link {
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--rim); border-radius: 20px;
}
.gf-feature {
  isolation: isolate; padding: 18px; color: var(--text); min-height: 172px;
  grid-template-columns: minmax(0,1fr) minmax(0,38%);
  background: radial-gradient(ellipse at 91% 18%,#97f8ff48,transparent 64%),linear-gradient(115deg,#0d243aa6,#21486642 60%,#b3eaff26);
  border-color: #b5e9ff79; border-radius: 28px;
}
.gf-feature::before, .gf-collection-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  backdrop-filter: blur(3px) saturate(1.45); -webkit-backdrop-filter: blur(3px) saturate(1.45);
}
@supports (backdrop-filter: url("#glass-rim")) {
  .gf-feature::before, .gf-collection-feature::before { backdrop-filter: url("#glass-rim") blur(1.4px) saturate(1.4); }
}
.gf-feature::after {
  content: ""; position: absolute; z-index: -1; width: 48%; aspect-ratio: 1; right: -3%; top: -8%;
  border-radius: 50%; transform: rotate(-25deg);
  background: radial-gradient(ellipse at 40% 12%,#d1ffff88,transparent 19%),radial-gradient(ellipse at 53% 43%,transparent 51%,#b9f6ff54 76%,#97d7fd16 81%);
  box-shadow: inset 0 1px 2px #d1ffff8c,inset 0 -3px 12px #86d7ff5e;
}
.gf-feature h1 { font: 700 clamp(25px,6.5vw,32px)/1.05 Unbounded,sans-serif; letter-spacing: -.035em; text-shadow: 0 2px 10px #0b1a35; }
.gf-feature p { color: #e3f6ff; font-size: 13px; }
.gf-feature-image { filter: drop-shadow(0 7px 10px #10253485); }
.gf-feature .gf-action, button[style*="background: rgb(140, 234, 223)"] {
  color: var(--ink); border-radius: 24px; background: linear-gradient(155deg,#d1fff2,#87e7df 56%,#6cbabe);
  box-shadow: inset 0 1px 2px #fff,inset 0 -2px 3px #2c869876,0 3px 8px #0c233f55;
}
.gf-collection-feature { isolation: isolate; background: linear-gradient(120deg,#1d5266ac,#2a42666b); }
.gf-collection-copy > span, .gf-game-copy > span { color: #d4e9f3; }
.gf-recent { background: #091d306b; border-left: 2px solid #87d4dcaa; border-radius: 2px 12px 12px 2px; }
.gf-game-grid, .gf-case-grid { gap: 11px; }
.gf-game-card {
  display: grid; grid-template: 1fr / 1fr; position: relative; isolation: isolate; aspect-ratio: 1;
  border-radius: 22px; border-color: #c5ecff65; box-shadow: var(--rim); background: #182c44;
}
.gf-game-card .gf-game-art { grid-area: 1/1; width: 100%; height: 100%; }
.gf-game-copy {
  grid-area: 1/1; align-self: end; min-width: 0; margin: 0 5px 5px; padding: 6px 9px 7px; gap: 1px;
  background: linear-gradient(125deg,#21334ec9,#112333af); backdrop-filter: blur(13px) saturate(1.6);
  -webkit-backdrop-filter: blur(13px) saturate(1.6); border: 1px solid #cbeaeb4a; border-radius: 15px;
  box-shadow: inset 0 1px 1px #e4f5ff60; color: #fff;
}
.gf-game-copy strong { font-size: 17px; }
.gf-game-copy > span { font-size: 11px; }
.gf-nav {
  border-radius: 26px; flex-shrink: 0; height: 58px; padding: 3px;
  margin: 0 9px max(6px,env(safe-area-inset-bottom)); gap: 0; z-index: 1;
}
.gf-nav-link { border-radius: 22px; color: #d7e9f6; }
.gf-nav-link.is-active { color: white; background: linear-gradient(145deg,#c7f1ff47,#4d858f38); box-shadow: var(--rim); }
.gf-nav-icon { width: 24px; height: 24px; filter: none; }
.gf-route-heading { padding: 2px 2px 13px; border-bottom: 1px solid var(--line); }
.gf-route-heading h1, #nft-title, .gf-cases-heading h1 { color: #f1fcff; text-shadow: 0 2px 8px #071a2b80; }
.gf-case-visual { background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb,var(--case-tone) 44%,transparent),#10263a73); }
.gf-case-price { border-radius: 16px; background: #284759b0; box-shadow: var(--rim); }
.up-instrument {
  display: grid; justify-items: center; gap: 20px; padding: 20px 14px 17px; border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%,#9ee6fa28,transparent 64%),var(--glass);
}
.up-core {
  background: radial-gradient(ellipse at 27% 11%,#b9edff55,transparent 46%),radial-gradient(ellipse at 64% 95%,#5bafbe44,transparent 59%),#122b40;
  box-shadow: inset 0 2px 5px #a1dfed59,inset 0 -5px 12px #356a7c9c,0 0 0 3px #0c2232;
}
.gf-flight-chart { background: linear-gradient(#accce510 1px,transparent 1px) 0 0/100% 27px,var(--glass) !important; }
.gf-daily, .up-selection > div, .gf-slide, .gf-main div[style*="border-radius: 18px"][style*="padding: 16px"] { box-shadow: var(--rim); }
gifter-catalog .nft-tabs { gap: 2px; padding: 3px; border-radius: 25px; border: 1px solid var(--line); background: #142d43a1; }
gifter-catalog .nft-tabs button { border-radius: 22px; border: none; color: var(--muted); background: transparent; }
gifter-catalog .nft-tabs button[aria-pressed="true"] { background: linear-gradient(135deg,#bfe5ff52,#497c9357); color: #fff; box-shadow: var(--rim); }
gifter-catalog .nft-controls :is(input,select), .nft-pages button, .nft-detail form button { border-color: var(--line); background: #102a3dcf; color: var(--text); }
gifter-catalog .nft-card { padding: 9px 4px; border-radius: 17px; }
.nft-detail { background: linear-gradient(135deg,#25445be8,#11293ce8); backdrop-filter: blur(16px); }
.nft-card-set, .nft-status, .nft-sources, .nft-controls label, .nft-detail p { color: var(--muted); }
.gf-app a, .nft-detail a { color: #aaeade; }
.gf-app ::selection { background: #a2e9ff; color: #092438; }
star-label .gf-star { width: 1.05em; height: 1.05em; }
.gf-star-amount { white-space: nowrap; }
.gf-result-region {
  position: absolute; z-index: 10; inset: calc(67px + env(safe-area-inset-top)) 12px auto;
  pointer-events: none;
}
.gf-outcome {
  --signal: #9cf2d6; --tint: #234e4b;
  display: grid; grid-template-columns: 43px minmax(0,1fr) 37px; align-items: center;
  gap: 10px; padding: 11px 4px 11px 12px; color: #f4fbff;
  border: 1px solid color-mix(in srgb,var(--signal) 55%,#274754);
  border-radius: 21px; background: linear-gradient(115deg,var(--tint),#102538f7 72%);
  box-shadow: var(--rim),0 10px 25px #020d2280; backdrop-filter: blur(15px);
  animation: gfOutcomeIn .28s cubic-bezier(.18,.72,.23,1) both;
}
.gf-outcome-loss { --signal: #ffb5bd; --tint: #4f3444; }
.gf-outcome-even { --signal: #c4e0f7; --tint: #334b61; }
.gf-outcome-mark {
  width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center;
  color: var(--signal); background: radial-gradient(ellipse at 25% 6%,#ffffff36,transparent 75%),#ffffff0e;
  box-shadow: inset 0 1px 1px #ffffff6e,inset 0 -1px 2px #ffffff26;
}
.gf-outcome-copy { min-width: 0; }
.gf-outcome-game { color: var(--signal); font: 750 11px/1.3 Manrope,sans-serif; }
.gf-outcome-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 8px; margin: 1px 0 3px; }
.gf-outcome-title strong { font: 700 16px/1.2 Unbounded,sans-serif; }
.gf-outcome-title > span { color: var(--signal); font: 800 16px/1.25 Manrope,sans-serif; }
.gf-outcome-copy p { margin: 0; color: #dae9f3; font: 600 12px/1.4 Manrope,sans-serif; overflow-wrap: anywhere; }
.gf-outcome-close { pointer-events: auto; cursor: pointer; display: grid; place-items: center; align-self: start; width: 37px; height: 40px; border: none; border-radius: 14px; background: transparent; color: #e1eff7; }
.gf-outcome-close:hover { background: #ffffff16; }
.gf-round-record { color: var(--muted); text-align: center; font-size: 12px; }
.gf-funding-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 3px 8px; color: var(--muted); font: 700 12px Manrope,sans-serif; }
.gf-case-outcome { box-sizing: border-box; backdrop-filter: blur(15px); }
.gf-wallet { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 24px; background: var(--glass); font-weight: 800; }
.gf-online { display:grid; align-content:center; gap:1px; margin-left:4px; line-height:1.1; }
.gf-online strong { font-size:13px; font-variant-numeric:tabular-nums; }
.gf-online strong::before { content:""; display:inline-block; width:6px; height:6px; margin-right:5px; border-radius:50%; background:#7de4b5; vertical-align:2px; }
.gf-online small,.gf-recent-item small { display:block; color:#b6cad9; font-size:9px; }
.gf-recent { display:grid; gap:7px; padding:9px 10px; }
.gf-recent h2 { max-width:none; }
.gf-recent-item { max-width:245px; background:#203044; }
.gf-recent-item small { margin-bottom:2px; }
@media(max-width:359px){.gf-app header [aria-label="На главную"] img { display:none; }}
.up-workbench { display: grid; gap: 12px; }
.up-workbench h1,.up-workbench h2,.up-sheet h2 { margin: 0; font: 650 21px/1.24 Unbounded,sans-serif; color: var(--text); }
.up-workbench h2,.up-sheet h2 { font-size: 17px; }
.up-workbench .up-instrument { gap:14px; padding:6px 0 3px; border:0; background:none; box-shadow:none; }
.up-workbench .up-dial { width:min(218px,58vw); }
.up-workbench .up-core { cursor:pointer; color:var(--text); }
.up-plus { display:grid; place-items:center; width:42px;height:42px; border-radius:50%; border:1px solid #a1c4d964; font:400 24px Manrope,sans-serif; background:#b3e7f612; }
.up-caption { justify-content:center; align-items:baseline; gap:9px; }
.up-pair,.up-library { display:grid; gap:7px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.up-workbench button,.up-sheet button,.up-play { font-family:inherit; cursor:pointer; }
.up-slot,.up-item,.up-sort,.up-presets button,.up-sheet-head button,.up-empty button {
  color:var(--text); background:#203145; border:1px solid var(--line); border-radius:13px;
}
.up-slot { min-width:0; padding:10px 11px; display:grid; align-content:start; gap:3px; text-align:left; }
.up-slot:first-child { border-color:#73bcc2; }
.up-slot small,.up-muted,.up-presets>span,.up-sheet small { color:var(--muted); font-size:12px; }
.up-slot strong,.up-item strong { overflow-wrap:anywhere; }
.up-slot span { color:#c4dde7; font-size:12px; }
.up-presets,.up-list-heading,.up-sheet-head,.up-sheet-foot,.up-cash { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.up-presets { justify-content:start; }
.up-sort,.up-presets button,.up-empty button { padding:6px 10px; min-height:35px; font-size:12px; font-weight:750; }
.up-item[aria-pressed="true"],.up-presets button[aria-pressed="true"] { border-color:#8ceadf; background:#244451; box-shadow:inset 0 0 0 1px #8ceadf80; }
.up-search,.up-cash input { background:#111e2c; border:1px solid var(--line); border-radius:12px; min-width:0; color:var(--text); font:650 14px Manrope,sans-serif; padding:0 12px; height:40px; }
.up-library { grid-template-columns:repeat(3,minmax(0,1fr)); }
.up-item { min-width:0; padding:8px 5px; display:flex; flex-direction:column; gap:4px; align-items:center; font-size:11px; line-height:1.2; }
.up-item>span { margin-top:auto; color:#ffd885; }
.up-item:disabled,.up-presets button:disabled { opacity:.6; }
.up-sheet { position:fixed; inset:auto 0 0; margin:0 auto; box-sizing:border-box; width:min(430px,100%); max-width:100%; max-height:min(75dvh,530px); padding:0; border:1px solid #557187; border-radius:22px 22px 0 0; background:#19293a; color:var(--text); font-family:Manrope,sans-serif; }
.up-sheet::backdrop { background:#06101db5; }
.up-sheet-layout { display:flex; flex-direction:column; gap:12px; box-sizing:border-box; max-height:inherit; padding:15px 14px max(14px,env(safe-area-inset-bottom)); }
.up-sheet-body { overflow:auto; min-height:0; scrollbar-width:thin; padding:2px; }
.up-sheet-head button { width:37px;height:37px; font-size:23px; }
.up-cash { background:#203447; border-radius:14px; padding:9px 11px; }
.up-cash label,.up-sheet-foot>div { display:grid; gap:3px; font-size:14px; font-weight:750; }
.up-cash>div { display:flex; align-items:center; gap:5px; }
.up-cash input { width:65px; text-align:right; }
.up-error { margin:0; color:#ffccad; font-size:12px; }
.up-sheet-foot { padding-top:10px; border-top:1px solid var(--line); }
.up-sheet-foot button,.up-play { border:none; border-radius:14px; color:#0a2730; background:#8ceadf; padding:10px 17px; font:800 14px Manrope,sans-serif; min-height:42px; }
.up-sheet-foot button:disabled,.up-play:disabled { background:#27394a; color:#b6c8d6; cursor:default; }
.up-empty { display:grid; justify-items:center; gap:10px; padding:18px; }
.up-playbar { padding:5px var(--edge) 8px; }
.up-play { width:100%; }
@media(min-width:480px){.up-sheet { bottom:max(20px,calc((100dvh - 820px)/2)); border-radius:22px; }}
@keyframes gfOutcomeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width:480px) { .gf-app { border-color: #7fa8c263; box-shadow: 0 25px 80px #020d1cc2; } }
