.header-actions { display: flex; align-items: center; gap: 1.3rem; }
.web-home { color: #bfb6cf; font-size: .9rem; }
.cloud-main { padding-bottom: 4rem; }
.cloud-heading { position: relative; display: flex; align-items: center; min-height: 20rem; overflow: hidden; isolation: isolate; }
.cloud-heading > div { position: relative; z-index: 1; padding-block: 2.8rem; }
.cloud-eyebrow { color: #b69ae8; font-size: .83rem; font-weight: 580; letter-spacing: .075em; text-transform: uppercase; }
.cloud-heading h1 { font-size: clamp(2.8rem, 4.7vw, 4.5rem); margin-block: .8rem 1rem; }
.cloud-heading p:last-child { color: #bdb4cd; line-height: 1.5; }
.cloud-heading > img { position: absolute; width: min(58%, 40rem); right: 0; top: -25%; z-index: -1; opacity: .7; mask-image: linear-gradient(90deg, transparent, #000 32%, #000 88%, transparent), linear-gradient(#000 10%, transparent 85%); mask-composite: intersect; }
.access-card { border: 1px solid #49365d; border-radius: 1rem; background: linear-gradient(115deg, #21192f, #15151f 70%); padding: 1.6rem; display: grid; grid-template-columns: 1fr auto; gap: 1.1rem 2rem; }
.account-copy { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.account-copy h2 { font-size: 1.3rem; font-weight: 620; letter-spacing: -.03em; }
.account-copy p { color: #b5aac5; font-size: .94rem; line-height: 1.5; margin-top: .3rem; overflow-wrap: anywhere; }
.account-symbol { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; flex: none; font-weight: 720; font-size: 1rem; border-radius: .9rem; border: 1px solid #725887; color: #dec8ff; background: #31203e; }
.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex-wrap: wrap; }
.text-action { background: transparent; padding: .5rem .1rem; color: #c9b8e4; border: 0; font-size: .88rem; text-decoration: underline; text-underline-offset: .23em; }
.text-action:hover { color: #efe5ff; }
.license-line { grid-column: 1 / -1; display: flex; gap: 1rem; justify-content: space-between; align-items: center; border-top: 1px solid #ffffff12; padding-top: .7rem; }
.license-label { font-size: .9rem; color: #d3bdf1; }
.license-form { grid-column: 1 / -1; border-top: 1px solid #4a355c; padding-top: 1.25rem; }
.license-form label, .add-game label { display: block; margin-bottom: .5rem; font-size: .88rem; color: #cbbfdb; }
.license-form > div { display: flex; gap: .75rem; }
.license-form input { flex: 1; }
.license-form > p { font-size: .85rem; color: #a99db7; line-height: 1.5; margin-top: .7rem; }
.cloud-main input, .panel-dialog input { color: #f0eafa; background: #0e111c; border: 1px solid #4c405c; border-radius: .5rem; padding: .8rem .9rem; min-width: 0; font: inherit; outline-offset: 3px; }
.cloud-main input::placeholder, .panel-dialog input::placeholder { color: #898097; }
.panel-notice { min-height: 1.5rem; margin-block: .9rem 1.2rem; font-size: .94rem; line-height: 1.5; color: #d4bfdc; }
.panel-notice.error { color: #ffb1b8; }
.cloud-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.cloud-stats article { display: grid; grid-template-columns: 1fr; gap: .4rem; padding: 1.25rem 1.4rem; border: 1px solid #363045; border-radius: .8rem; background: #15141f; }
.cloud-stats p { font-size: .87rem; color: #bcb2cd; }
.cloud-stats strong { color: #d9c4ff; font-size: clamp(1.7rem, 2.5vw, 2.3rem); font-weight: 650; letter-spacing: -.05em; }
.cloud-stats span { font-size: .81rem; color: #a599b7; }
.cloud-stats article:first-child strong { color: #e6deef; }
.farm-card { border: 1px solid #3b314b; background: #13131d; border-radius: 1rem; overflow: hidden; }
.farm-card-heading { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; gap: 1rem; }
.farm-card-heading h2 { font-size: 1.35rem; letter-spacing: -.035em; font-weight: 640; }
.farm-card-heading p { color: #a99cb8; font-size: .9rem; margin-top: .4rem; }
.add-game { display: flex; align-items: flex-end; gap: .7rem; padding: 0 1.5rem 1.5rem; }
.add-game > div { width: min(100%, 28rem); }
.add-game input { width: 100%; }
.table-scroll { position: relative; overflow-x: auto; }
.farm-table { border-collapse: collapse; width: 100%; min-width: 660px; text-align: left; }
.farm-table th { font-size: .81rem; color: #a9a0b7; font-weight: 500; background: #1b1925; padding: .8rem 1rem; }
.farm-table th:first-child, .farm-table td:first-child { width: 2.9rem; padding-left: 1.5rem; padding-right: 0; }
.farm-table th:last-child, .farm-table td:last-child { text-align: right; padding-right: 1.5rem; }
.farm-table td { border-bottom: 1px solid #292432; padding: .95rem 1rem; vertical-align: middle; font-size: .94rem; }
.farm-table tr:last-child td { border-bottom: 0; }
.farm-table input[type=checkbox] { accent-color: #b59ae9; width: 1rem; height: 1rem; cursor: pointer; }
.game-name { display: flex; align-items: center; gap: .8rem; min-width: 12rem; }
.game-cover { display: block; width: 5.2rem; height: 2.5rem; flex: none; overflow: hidden; border-radius: .3rem; background: #282031; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-name strong { font-weight: 550; }
.game-name small { color: #9c90aa; display: block; margin-top: .25rem; font-size: .76rem; }
.goal-cell { white-space: nowrap; }
.goal-cell input { padding: .55rem; width: 5.2rem; font-size: .88rem; }
.goal-cell > span { color: #9f94ae; font-size: .82rem; padding-left: .4rem; }
.progress-cell { min-width: 11rem; }
.progress-cell strong { display: block; font-size: .85rem; font-weight: 520; margin-bottom: .35rem; color: #d2c3e3; }
.progress-cell progress { width: 100%; height: .4rem; appearance: none; border: 0; border-radius: 1rem; background: #2f273b; display: block; }
.progress-cell progress::-webkit-progress-bar { background: #2f273b; border-radius: 1rem; }
.progress-cell progress::-webkit-progress-value { background: #a284dc; border-radius: 1rem; }
.progress-cell progress::-moz-progress-bar { background: #a284dc; border-radius: 1rem; }
.progress-cell small { display: block; font-size: .76rem; color: #9d8eaf; margin-top: .35rem; }
.remove-game { font: inherit; font-size: 1.3rem; color: #b59ac1; border: 1px solid #43334d; background: #211926; width: 1.9rem; height: 1.9rem; border-radius: .4rem; line-height: 1; }
.farm-footer { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; padding: 1.4rem 1.5rem; border-top: 1px solid #2e2638; background: #17141e; }
.farm-footer > p { color: #aa9cb8; font-size: .85rem; line-height: 1.55; max-width: 28rem; }
.farm-footer button { flex: none; min-width: 13.5rem; }
.background-note { color: #92879f; font-size: .82rem; line-height: 1.6; margin-top: 1rem; }
.empty-games { padding: 2rem 1rem; text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid #584068; border-radius: .8rem; color: #c9a9ee; font-size: 1.4rem; margin: 0 auto .8rem; background: #271d32; }
.empty-games h3 { font-size: 1rem; font-weight: 580; }
.empty-games p { color: #9e91ac; font-size: .86rem; margin-top: .4rem; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button:disabled, input:disabled { opacity: .45; cursor: default; transform: none !important; }
.panel-dialog { color: #ece3f8; background: #17131f; border: 1px solid #6b4d7e; border-radius: 1rem; padding: 2rem; max-width: min(calc(100% - 2rem), 25rem); max-height: calc(100dvh - 2rem); overflow-y: auto; }
.panel-dialog::backdrop { background: #05040bd6; backdrop-filter: blur(7px); }
.panel-dialog h2 { font-size: 1.35rem; font-weight: 610; margin-right: 1rem; letter-spacing: -.035em; }
.panel-dialog > p { font-size: .9rem; color: #bdabcc; line-height: 1.6; margin-top: 1rem; }
.dialog-close { position: absolute; right: .7rem; top: .55rem; width: 2rem; height: 2rem; font-size: 1.6rem; border: 0; background: transparent; color: #ceb8de; }
#qr-image { margin: 1.3rem auto 0; width: 100%; max-width: 17.5rem; height: auto; border-radius: .6rem; }
.panel-dialog > .dialog-hint { font-size: .8rem; color: #93809f; }
.library-dialog { width: 58rem; max-width: calc(100% - 2rem); }
.library-dialog input { width: 100%; margin-top: 1.2rem; }
.library-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.library-game { border: 1px solid #3a2b47; background: #211829; border-radius: .6rem; overflow: hidden; display: flex; flex-direction: column; }
.library-game img { aspect-ratio: 460 / 215; width: 100%; object-fit: cover; background: #33283d; }
.library-game > div { padding: .85rem; display: flex; flex-direction: column; flex: 1; }
.library-game h3 { font-size: .9rem; font-weight: 550; line-height: 1.4; margin-bottom: .65rem; }
.library-game p { color: #a394b4; font-size: .77rem; margin: auto 0 .7rem; }
.library-game button { width: 100%; padding: .6rem; min-height: 2.4rem; font-size: .85rem; }
@media(max-width: 820px) {
 .access-card { grid-template-columns: 1fr; padding: 1.25rem; }
 .account-actions { justify-content: flex-start; }
 .cloud-stats { gap: .6rem; }
 .cloud-stats article { padding: 1rem; }
 .cloud-heading > img { width: 80%; right: -15%; opacity: .4; }
 .farm-footer { align-items: stretch; flex-direction: column; gap: 1rem; }
 .farm-footer > p { max-width: none; }
 .library-games { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 580px) {
 .farm-table { min-width: 0; }
 .farm-table thead { display: none; }
 .farm-table tbody { display: block; }
 .farm-table tr { display: grid; grid-template-columns: 1.1rem minmax(0,1fr) 1.9rem; gap: .9rem .65rem; padding: 1.1rem; border-top: 1px solid #302637; }
 .farm-table td { border: 0; padding: 0; }
 .farm-table td:first-child { grid-column: 1; grid-row: 1; padding: 0; width: auto; align-self: center; }
 .farm-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
 .farm-table td:nth-child(3) { grid-column: 2 / -1; grid-row: 2; }
 .farm-table td:nth-child(4) { grid-column: 2 / -1; grid-row: 3; }
 .farm-table td:last-child { grid-column: 3; grid-row: 1; padding: 0; align-self: center; }
 .game-name { min-width: 0; gap: .6rem; }
 .game-name strong { font-size: .85rem; overflow-wrap: anywhere; }
 .game-cover { width: 3.9rem; height: 2rem; }
 .game-name small { font-size: .7rem; }
 .goal-cell::before { content: 'Do nabicia '; color: #b7a5c5; font-size: .8rem; margin-right: .4rem; }
 .progress-cell { min-width: 0; }
 .cloud-heading { min-height: 16rem; }
 .cloud-heading > div { padding-block: 2rem; }
 .cloud-heading > img { display: none; }
 .header-actions { gap: .7rem; }
 .web-home { display: none; }
 .cloud-stats { grid-template-columns: 1fr; }
 .cloud-stats article { grid-template-columns: 1fr auto; align-items: center; gap: .3rem .6rem; }
 .cloud-stats strong { grid-row: span 2; grid-column: 2; font-size: 1.6rem; }
 .cloud-stats span { grid-column: 1; }
 .license-form > div { flex-direction: column; }
 .account-copy { align-items: flex-start; gap: .7rem; }
 .account-symbol { width: 2.65rem; height: 2.65rem; border-radius: .7rem; }
 .account-copy h2 { font-size: 1.13rem; }
 .account-actions .button { width: 100%; }
 .farm-card-heading { padding: 1.1rem; align-items: flex-start; flex-direction: column; }
 .farm-card-heading .button { width: 100%; }
 .add-game { padding: 0 1.1rem 1.2rem; flex-direction: column; align-items: stretch; }
 .add-game > div { width: 100%; }
 .license-line { align-items: flex-start; flex-direction: column; gap: .3rem; }
 .farm-footer { padding: 1.1rem; }
 .panel-dialog { padding: 1.4rem; }
 .library-games { gap: .6rem; }
}
