/* Награды за вход (первая неделя): ui/calendarUI.js. Стиль «Охотничий домик». */
.cal-over { position: fixed; inset: 0; z-index: 70; pointer-events: auto; display: flex; align-items: center; justify-content: center; background: rgba(8, 4, 2, .8); padding: calc(env(safe-area-inset-top) + 10px) 12px calc(env(safe-area-inset-bottom) + 10px); }
.cal-card { position: relative; width: 100%; max-width: 380px; max-height: 100%; overflow-y: auto; padding: 16px 12px 14px; border-radius: 14px; background: var(--leather); border: 2px solid var(--bronze); box-shadow: var(--bevel), 0 18px 44px rgba(0, 0, 0, .7); animation: pop .3s cubic-bezier(.2, 1.4, .4, 1) both; }
.cal-title { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 20px; padding: 0 22px; }
.cal-title .ui-ico { width: 28px; height: 28px; }
.cal-sub { text-align: center; font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cal-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 104px; padding: 6px 4px; border-radius: 10px; background: linear-gradient(180deg, rgba(34, 20, 12, .85), rgba(14, 8, 4, .9)); border: 2px solid var(--bronze); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45); text-align: center; }
.cal-d { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cal-pic { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 2px 0; }
.cal-emo { font-size: 30px; line-height: 1; display: inline-flex; }
.cal-emo .ui-ico { width: 38px; height: 38px; }
.cal-chest { width: 46px; height: auto; }
.cal-txt { font-size: 13px; font-weight: 600; line-height: 1.1; color: #ffe08a; }
.cal-tile .gun-ico { width: 100%; height: 44px; }
.cal-tile.got { opacity: .6; border-color: rgba(169, 116, 58, .55); }
.cal-tile.got .cal-pic, .cal-tile.got .cal-txt { filter: grayscale(.6); }
.cal-tick { position: absolute; top: 50%; left: 50%; margin: -13px 0 0 -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--leather); border: 2px solid var(--bronze-hi); color: var(--bronze-hi); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: var(--bevel); }
.cal-tick .ui-ico { width: 16px; height: 16px; }
.cal-tile.today { border-color: var(--bronze-hi); background: linear-gradient(180deg, rgba(96, 60, 30, .85), rgba(34, 20, 12, .92)); box-shadow: 0 0 14px rgba(226, 176, 106, .55); animation: calPulse 1.4s ease-in-out infinite; }
.cal-tile.today .cal-d { color: #ffe08a; }
.cal-tile.future, .cal-tile.next { opacity: .6; }
.cal-tile.last { grid-column: span 2; min-height: 116px; border-color: var(--bronze-hi); background: linear-gradient(180deg, rgba(110, 70, 28, .5), rgba(30, 18, 10, .92)); }
.cal-tile.last .cal-d { color: var(--gold2); } .cal-tile.last .cal-txt { font-size: 14px; color: #ffe08a; }
.cal-tile.last .gun-ico { height: 58px; filter: drop-shadow(0 0 8px rgba(226, 176, 106, .6)); }
.cal-tile.last.today { opacity: 1; }
.cal-claim { margin-top: 14px; font-size: 18px; }
.cal-wait { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); }
@keyframes calPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
/* плашка на главном экране */
.cal-chip { position: relative; align-self: center; flex: none; padding: 6px 14px; border-radius: 12px; border: 2px solid var(--bronze); background: var(--leather); color: #ffe08a; font-size: 13px; font-weight: 600; }
.cal-chip .cal-dot { display: none; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(180deg, #ffb86a, #b4480f); border: 2px solid #26160b; }
.cal-chip.ready .cal-dot { display: block; }
.cal-chip.ready { animation: calPulse 1.4s ease-in-out infinite; }
/* большое открытие винтовки */
.cal-reveal { flex-direction: column; gap: 10px; z-index: 80; cursor: pointer; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(120, 72, 30, .96), rgba(8, 4, 2, .98) 75%); }
.cal-rays { position: absolute; width: 140vmax; height: 140vmax; left: 50%; top: 45%; margin: -70vmax 0 0 -70vmax; background: repeating-conic-gradient(rgba(230, 178, 74, .2) 0 8deg, transparent 8deg 24deg); animation: calSpin 14s linear infinite; pointer-events: none; }
.cal-rv-title { position: relative; font-size: 26px; font-weight: 700; color: var(--gold2); text-transform: uppercase; text-shadow: 0 2px 8px #000; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.cal-rv-gun { position: relative; width: min(86vw, 340px); animation: pop .7s .15s cubic-bezier(.2, 1.6, .4, 1) both; }
.cal-rv-gun .gun-ico { width: 100%; height: 130px; filter: drop-shadow(0 0 16px rgba(226, 176, 106, .8)); }
.cal-rv-gun .gun-ico svg { width: 100%; height: 100%; }
.cal-rv-name { position: relative; font-size: 24px; color: var(--text); text-shadow: 0 2px 6px #000; }
.cal-rv-sub { position: relative; font-size: 14px; color: var(--muted); }
.cal-skip { position: relative; margin-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
@keyframes calSpin { to { transform: rotate(360deg); } }
/* Шапка главного экрана: справа «Задания», под ними кнопка календаря */
.hh-right { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hh-right .cal-chip { justify-content: center; align-self: auto; height: 52px; }
.hh-right .cal-chip .mis-ico { font-size: 28px; line-height: 1; }
.hh-right .cal-chip.ready { animation: calPulse 1.4s ease-in-out infinite; }
/* «Охотничий журнал» (ui/journalUI.js): 28 клеток 7 × 4, вехи 7/14/21/28 */
.jr-card { max-width: 400px; }
.jr-main { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 10px; border-radius: 10px; border: 2px solid var(--bronze-hi); background: linear-gradient(180deg, rgba(110, 70, 28, .5), rgba(30, 18, 10, .92)); }
.jr-main-gun { flex: none; width: 112px; }
.jr-main-gun .gun-ico { width: 100%; height: 46px; filter: drop-shadow(0 0 8px rgba(226, 176, 106, .6)); }
.jr-main-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jr-main-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gold2); }
.jr-main-txt b { font-size: 14px; color: #ffe08a; line-height: 1.15; }
.jr-bar { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(169, 116, 58, .6); overflow: hidden; }
.jr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b4561a, #f0a24a); }
.jr-prog { font-size: 12px; color: var(--muted); }
.jr-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.jr-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 62px; padding: 2px 1px 3px; border-radius: 7px; background: linear-gradient(180deg, rgba(34, 20, 12, .85), rgba(14, 8, 4, .9)); border: 1.5px solid rgba(169, 116, 58, .7); text-align: center; min-width: 0; }
.jr-n { font-size: 10px; font-weight: 600; color: var(--muted); line-height: 1.1; }
.jr-pic { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.jr-emo .ui-ico { width: 22px; height: 22px; }
.jr-chest { width: 30px; height: auto; }
.jr-cell .gun-ico { width: 100%; height: 22px; }
.jr-txt { font-size: 11px; font-weight: 700; line-height: 1; color: #ffe08a; }
.jr-cell.ms { border-color: var(--bronze-hi); background: linear-gradient(180deg, rgba(110, 70, 28, .55), rgba(30, 18, 10, .92)); }
.jr-cell.ms .jr-n { color: var(--gold2); }
.jr-cell.got { opacity: .5; } .jr-cell.got .jr-pic { filter: grayscale(.7); }
.jr-tick { position: absolute; top: 50%; left: 50%; margin: -10px 0 0 -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--leather); border: 2px solid var(--bronze-hi); display: flex; align-items: center; justify-content: center; color: var(--bronze-hi); font-size: 11px; }
.jr-tick .ui-ico { width: 12px; height: 12px; }
.jr-cell.today { border-color: var(--bronze-hi); box-shadow: 0 0 10px rgba(226, 176, 106, .6); animation: calPulse 1.4s ease-in-out infinite; z-index: 1; }
.jr-cell.today .jr-n { color: #ffe08a; }
.cal-next { flex: none; margin: 0 calc(var(--sar) + 12px) 0 calc(var(--sal) + 12px); text-align: center; font-size: 11.5px; font-weight: 500; line-height: 1.2; color: var(--muted); touch-action: manipulation; }
.home-body.fit1 .cal-next { display: none !important; }   /* тесный экран (320x568): строку прячем, иначе кнопка тура уходит под режимы */
