/* Albatross OS 9.3: фото проектов, новые значки, мини-игры */
.app-ic--ph { background: #dfe8f5; }
.app-ic--ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.app-ic--ph::after { z-index: 1; background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 40%); }
.files { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.file { align-items: stretch; text-align: left; padding: 8px 8px 10px; gap: 6px; }
.file .app-ic { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 12px; box-shadow: 0 10px 22px -14px rgba(26, 43, 111, 0.6); transition: translate 0.25s var(--ease), box-shadow 0.25s; }
.file .app-ic svg { width: 30%; height: 30%; }
.file:hover .app-ic { translate: 0 -3px; box-shadow: 0 16px 28px -14px rgba(26, 43, 111, 0.7); }
.file b, .file small { padding: 0 2px; }
.cover.has-img b { display: block; position: relative; z-index: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.cover.has-img::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 42%, rgba(8, 12, 24, 0.66)); }

.g-crm { background: linear-gradient(140deg, #22c1a4, #0066ff); }
.g-auto { background: linear-gradient(140deg, #ffb020, #ff5f3d); }
.g-seo { background: linear-gradient(140deg, #3ddc84, #0a9d6a); }
.g-support { background: linear-gradient(140deg, #ff6a9a, #6d3bff); }
.g-arcade { background: linear-gradient(140deg, #ff7ac3, #ffb020); }
.g-snake { background: linear-gradient(140deg, #4cd97b, #0a9d6a); }
.g-2048 { background: linear-gradient(140deg, #ffcf4d, #ff8a00); }
.g-mines { background: linear-gradient(140deg, #8a94a6, #2b3f8f); }
.g-memory { background: linear-gradient(140deg, #ff6a9a, #8a5bff); }

/* мини-игры */
.mg { height: 100%; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mg__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); flex-wrap: wrap; }
.mg__bar > b { font: 800 18px/1.2 var(--brand); color: var(--ink); margin-right: auto; }
.mg__st { display: grid; justify-items: center; min-width: 64px; padding: 5px 10px 6px; border-radius: 12px; background: rgba(26, 43, 111, 0.07); line-height: 1.1; }
.mg__st small { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.mg__bar em { font: 800 18px/1.15 var(--brand); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; display: inline-block; }
.mg__bar .pbtn { height: 40px; padding: 0 14px; font-size: 14px; }
.mg__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 12px; touch-action: none; container-type: size; }
.mg__cv { border-radius: 14px; background: #fff; box-shadow: 0 12px 30px -20px rgba(26, 43, 111, 0.6); }
.mg__msg { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; margin: 0; padding: 10px 18px; border-radius: 99px; background: rgba(13, 17, 23, 0.86); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.mg__msg[hidden] { display: none; }

/* Змейка: поле во всю ширину, под ним крестовина (на сенсорных экранах) */
.mg--snake .mg__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; container-type: normal; }
.sn__box { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; display: grid; place-items: center; container-type: size; touch-action: none; }
.sn__box .mg__cv { display: block; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
.sn__pad { display: none; flex: none; grid-template-columns: repeat(3, 68px); grid-template-rows: repeat(2, 60px); gap: 8px; touch-action: none; }
.sn__pad button { border: 0; border-radius: 18px; background: #fff; color: var(--blue); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 6px 16px -8px rgba(26, 43, 111, 0.5), 0 0 0 1px rgba(26, 43, 111, 0.08); display: grid; place-items: center; touch-action: none; transition: transform 0.1s, background 0.1s; }
.sn__pad button svg { width: 30px; height: 30px; }
.sn__pad button.is-hit, .sn__pad button:active { transform: scale(0.94); background: var(--blue); color: #fff; }
.sn__pad [data-d='U'] { grid-column: 2; grid-row: 1; }
.sn__pad [data-d='L'] { grid-column: 1; grid-row: 2; }
.sn__pad [data-d='D'] { grid-column: 2; grid-row: 2; }
.sn__pad [data-d='R'] { grid-column: 3; grid-row: 2; }
@media (pointer: coarse), (max-width: 760px) { .sn__pad { display: grid; } }

/* 2048: яркие плитки с объёмом */
.t48 { --g: clamp(6px, 2.4cqmin, 12px); position: relative; width: min(100cqw - 4px, 100cqh - 4px, 460px); aspect-ratio: 1; border-radius: 18px; background: #c9d7ee; padding: var(--g); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); box-shadow: 0 18px 40px -24px rgba(26, 43, 111, 0.55); }
.t48 i { border-radius: 12px; background: #e3ebf8; }
.t48 b { --tw: calc((100% - 5 * var(--g)) / 4); position: absolute; width: var(--tw); height: var(--tw); left: calc(var(--g) + var(--c) * (var(--tw) + var(--g))); top: calc(var(--g) + var(--r) * (var(--tw) + var(--g)));
  display: grid; place-items: center; border-radius: 12px; font: 800 clamp(20px, 8cqmin, 44px)/1 var(--brand); color: #fff; background: #4fc8ff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14), inset 0 2px 0 rgba(255, 255, 255, 0.35); transition: left 0.11s ease-out, top 0.11s ease-out; }
.t48 b[data-v='2'] { background: #ffffff; color: #1a2b6f; text-shadow: none; box-shadow: inset 0 -4px 0 rgba(26, 43, 111, 0.12); }
.t48 b[data-v='4'] { background: #d6ecff; color: #0b4fc4; text-shadow: none; box-shadow: inset 0 -4px 0 rgba(26, 43, 111, 0.14); }
.t48 b[data-v='8'] { background: #2ec5ff; }
.t48 b[data-v='16'] { background: #0aa2ff; }
.t48 b[data-v='32'] { background: #0070ff; }
.t48 b[data-v='64'] { background: #2f45ff; }
.t48 b[data-v='128'] { background: #6b3bff; font-size: clamp(18px, 6.6cqmin, 36px); }
.t48 b[data-v='256'] { background: #a234ff; font-size: clamp(18px, 6.6cqmin, 36px); }
.t48 b[data-v='512'] { background: #e434d2; font-size: clamp(18px, 6.6cqmin, 36px); }
.t48 b[data-v='1024'] { background: #ff3d7f; font-size: clamp(15px, 5.4cqmin, 30px); }
.t48 b[data-v='2048'], .t48 b[data-v='4096'] { background: linear-gradient(140deg, #ffd23f, #ff8a00); font-size: clamp(15px, 5.4cqmin, 30px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14), 0 0 30px rgba(255, 176, 32, 0.7); }

.ms { display: grid; grid-template-columns: repeat(var(--w), 1fr); grid-template-rows: repeat(var(--w), 1fr); gap: 4px; width: min(100cqw - 8px, 100cqh - 8px, 380px); aspect-ratio: 1; }
.ms button { border-radius: 7px; background: linear-gradient(180deg, #ffffff, #e6edf8); box-shadow: inset 0 -2px 0 rgba(26, 43, 111, 0.12); font: 800 clamp(12px, 4.2cqmin, 20px)/1 var(--brand); cursor: pointer; display: grid; place-items: center; touch-action: manipulation; }
.ms button:hover:not(.is-open) { background: linear-gradient(180deg, #ffffff, #d8e6ff); }
.ms .is-open { background: rgba(26, 43, 111, 0.06); box-shadow: none; cursor: default; }
.ms [data-n='1'] { color: #0066ff; }
.ms [data-n='2'] { color: #0a9d6a; }
.ms [data-n='3'] { color: #e5397a; }
.ms [data-n='4'] { color: #6d3bff; }
.ms [data-n='5'] { color: #ff7a00; }
.ms [data-n='6'], .ms [data-n='7'], .ms [data-n='8'] { color: #1a2b6f; }
.ms .is-flag::before { content: ''; width: 46%; height: 52%; background: linear-gradient(#ff4b3e, #ff4b3e) 2px 0 / 70% 55% no-repeat, linear-gradient(#1a2b6f, #1a2b6f) 0 0 / 2px 100% no-repeat; }
.ms .is-mine::before, .ms .is-boom::before { content: ''; width: 46%; height: 46%; border-radius: 50%; background: #1a2b6f; box-shadow: 0 0 0 3px rgba(26, 43, 111, 0.2); }
.ms .is-boom { background: #ffdad6; }

.mem { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 10px; width: min(100cqw - 8px, 100cqh - 8px, 420px); aspect-ratio: 1; perspective: 900px; }
.mem__c { position: relative; cursor: pointer; }
.mem__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.45s var(--ease); }
.mem__c.is-up .mem__in { transform: rotateY(180deg); }
.mem__f, .mem__b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; display: grid; place-items: center; }
.mem__f { background: linear-gradient(140deg, #ffffff, #e2ecfb); box-shadow: inset 0 0 0 1px rgba(26, 43, 111, 0.1), 0 8px 18px -12px rgba(26, 43, 111, 0.6); }
.mem__f img { width: 56%; opacity: 0.8; }
.mem__b.app-ic { width: auto; height: auto; transform: rotateY(180deg); }
.mem__c.is-done .mem__b { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); }

.arc { padding: 18px 20px; }
.arc h4 { margin: 0 0 12px; font: 800 22px var(--brand); }
.arc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.arc button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; text-align: left; cursor: pointer; transition: background 0.15s; }
.arc button:hover { background: rgba(0, 102, 255, 0.07); }
.arc .app-ic { width: 52px; height: 52px; border-radius: 13px; }
.arc span:not(.app-ic) { flex: 1; display: grid; }
.arc b { font-size: 15px; }
.arc small { color: var(--ink-3); font-size: var(--fs-s); }
.arc em { font-style: normal; font-size: var(--fs-s); font-weight: 600; color: var(--blue); white-space: nowrap; }

@media (max-width: 760px) {
  .dock__it[data-key="arcade"] { display: none; }
  .files { grid-template-columns: repeat(2, 1fr); }
  .arc em { display: none; }
}
html[data-theme='brutal'] :is(.t48, .t48 b, .t48 i, .ms button, .mem__f, .mem__b, .mg__cv) { border-radius: 0; }
html[data-theme='brutal'] .file .app-ic { box-shadow: 0 0 0 2px #0d1117, 4px 4px 0 #0d1117; }
html[data-theme='swiss'] :is(.t48, .t48 b, .t48 i, .ms button, .mem__f, .mem__b, .mg__cv, .file .app-ic) { border-radius: 2px; }

.about__stats div:nth-child(3) b { font-size: 24px; line-height: 1.55; white-space: nowrap; }

/* радио: живые станции */
.radio { grid-template-rows: 1fr auto auto; }
.radio__st { list-style: none; margin: 0; padding: 4px 18px 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.radio__st::-webkit-scrollbar { display: none; }
.radio__st button { display: grid; gap: 1px; text-align: left; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s; }
.radio__st button:hover { background: #fff; }
.radio__st button b { font-size: 13px; }
.radio__st button small { font-size: var(--fs-xs); color: var(--ink-3); }
.radio__st button.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.radio__st button.is-on small { color: rgba(255, 255, 255, 0.8); }
.radio__st button.is-gen:not(.is-on) { background: linear-gradient(140deg, rgba(255, 122, 195, 0.15), rgba(109, 59, 255, 0.15)); }
.radio__nav { width: 36px; height: 36px; border-radius: 50%; background: rgba(26, 43, 111, 0.08); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); flex: none; }
.radio__nav:hover { background: rgba(26, 43, 111, 0.14); }
.radio__bar b.r-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme='brutal'] :is(.radio__st button, .radio__nav) { border-radius: 0; border: 2px solid #0d1117; }

/* Бухгалтерия */
.g-acc { background: linear-gradient(140deg, #2fd27a, #0a7a5a); }
.acc { padding: 24px 26px 26px; display: grid; gap: 16px; height: 100%; overflow: auto; align-content: start; }
.acc__hd h4 { margin: 6px 0 6px; font: 800 28px/1.1 var(--brand); }
.acc__hd p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.acc__tag { display: inline-block; font-size: var(--fs-s); font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(47, 210, 122, 0.16); color: #0a7a5a; }
.acc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acc__tile { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(127, 127, 127, 0.08); border: 1px solid rgba(127, 127, 127, 0.16); }
.acc__tile i { font: 500 var(--fs-s) var(--mono); font-style: normal; color: #0a7a5a; }
.acc__tile b { font-size: 15px; }
.acc__tile span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.acc__progs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acc__progs span { font-size: var(--fs-s); font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.acc__progs em { font-style: normal; font-size: 13px; padding: 4px 10px; border-radius: 8px; background: rgba(127, 127, 127, 0.1); }
.acc__crm { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(13, 17, 23, 0.92); color: #d6deeb; }
.acc__crm p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.acc__crm p b { color: #fff; }
.acc__led { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-family: var(--mono); }
.acc__led small { display: block; font-size: var(--fs-xs); color: #8b98ad; }
.acc__led b { font-size: 14px; font-weight: 500; color: #4cc9ff; white-space: nowrap; }
.acc__led i { grid-column: 1 / -1; font-style: normal; font-size: var(--fs-s); color: #2fd27a; }
.acc__row { display: flex; flex-wrap: wrap; gap: 8px; }
.acc__tg { display: inline-flex; align-items: center; gap: 8px; }
.acc__tgic { display: inline-flex; width: 20px; height: 20px; }
.acc__tgic svg { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .acc { padding: 18px 16px 22px; }
  .acc__hd h4 { font-size: 23px; }
  .acc__grid { grid-template-columns: 1fr; }
  .acc__crm { grid-template-columns: 1fr; }
}

/* обложки-картинки со своим названием внутри (книга, Alba Connect): без подписи поверх и без обрезки */
.cover.is-bare { aspect-ratio: 16 / 10 !important; padding: 0 !important; }
.cover.is-bare::before, .cover.is-bare b { display: none !important; }

/* в папке «Проекты»: настоящий значок приложения по центру карточки */
.file .app-ic--logo { background: linear-gradient(160deg, #f4f7fd, #e3ebf8); display: grid; place-items: center; }
.file .app-ic--logo img { position: absolute; inset: 0; margin: auto; translate: none; width: auto; height: 62%; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 10px 22px -12px rgba(13, 17, 23, 0.55); }

/* Связь: фирменный значок, название, кнопка */
.ct { padding: 22px 22px 26px; }
.ct__h { margin: 0; font: 800 24px/1.15 var(--brand); color: var(--ink); }
.ct__sub { margin: 8px 0 18px; font-size: var(--fs-m); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.ct__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ct__r { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px rgba(26, 43, 111, 0.08), 0 10px 24px -20px rgba(26, 43, 111, 0.6); }
.ct__ic { flex: none; width: 48px; height: 48px; border-radius: 13px; overflow: hidden; box-shadow: 0 0 0 1px rgba(26, 43, 111, 0.08); }
.ct__ic svg { display: block; width: 100%; height: 100%; }
.ct__t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ct__t b { font: 700 16px/1.2 var(--ui); color: var(--ink); }
.ct__t small { font-size: var(--fs-s); color: var(--ink-3); }
.ct__num { font: 600 15px/1.3 var(--ui); color: var(--blue); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct__go { flex: none; height: 40px; padding: 0 18px; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .ct { padding: 18px 16px 120px; } .ct__go { height: 44px; padding: 0 16px; } }
