:root {
  --navy-950: #061a2e;
  --navy-900: #082742;
  --navy-800: #0b3b65;
  --navy-700: #0c5688;
  --sky-500: #22aee8;
  --cream-50: #fffdf4;
  --cream-100: #fff7dc;
  --cream-200: #f5dfaa;
  --cream-300: #e9c97f;
  --gold-300: #ffd86a;
  --gold-400: #ffbd2e;
  --gold-500: #ed9315;
  --ink: #10233a;
  --success: #62bd42;
  --danger: #a92f2b;
  --paper-row: url("assets/lawyer-tycoon/menu/menu_satiri_normal.svg");
  --paper-row-hover: url("assets/lawyer-tycoon/menu/menu_satiri_hover.svg");
  --paper-row-active: url("assets/lawyer-tycoon/menu/menu_satiri_active.svg");
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--navy-950);
  font-family: var(--font-ui);
}

body {
  min-width: 320px;
  min-height: 560px;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid #56c9ff;
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

#app {
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.game-shell {
  --office-background: url("assets/backgrounds/bg_02_starter_office.png");
  position: relative;
  display: grid;
  grid-template-columns: clamp(238px, 15vw, 286px) minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy-950);
}

.game-sidebar,
.game-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
}

/* Sol taraftaki fiziksel ray ve kâğıt sekmeler */
.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: clamp(7px, .75vh, 11px);
  padding: 11px 13px 10px 8px;
  overflow: hidden;
  border-right: 7px solid #071b2d;
  background:
    linear-gradient(90deg, rgba(5, 22, 39, .98), rgba(10, 58, 96, .91)),
    url("assets/lawyer-tycoon/menu/sol_panel_arka_plan_tile_1024.png") center / 430px auto repeat-y;
  box-shadow: 9px 0 22px rgba(1, 12, 23, .38);
}

.game-sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 2px;
  background: linear-gradient(transparent, #e4b847 8%, #fff0a8 50%, #e4b847 92%, transparent);
  opacity: .8;
  pointer-events: none;
}

.profile-card {
  position: relative;
  flex: 0 0 clamp(135px, 17vh, 166px);
  width: calc(100% - 7px);
  margin: 0 0 1px 4px;
  padding: 7px 7px 38px;
  overflow: hidden;
  cursor: pointer;
  color: var(--cream-50);
  border: 4px solid #071827;
  border-radius: 24px 18px 22px 18px;
  background:
    radial-gradient(circle at 50% 16%, rgba(88, 208, 255, .92), rgba(16, 111, 167, .92) 52%, #0a355d 100%);
  box-shadow:
    inset 0 0 0 3px var(--gold-400),
    inset 0 0 0 6px #eff9ee,
    0 6px 0 #041321,
    0 10px 18px rgba(0, 0, 0, .35);
  transition: transform .16s ease, filter .16s ease;
}

.profile-card::before {
  content: "KARAKTERİNİ DÜZENLE";
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 10px;
  padding: 3px 7px;
  color: #fff5c1;
  border: 1px solid rgba(255, 222, 101, .75);
  border-radius: 999px;
  background: rgba(6, 31, 54, .75);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .16s ease, transform .16s ease;
}

.profile-card:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.profile-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.profile-card:active {
  transform: translateY(3px);
}

.avatar-stage {
  position: relative;
  overflow: hidden;
}

.profile-stage {
  position: absolute;
  inset: 0 0 35px;
}

.profile-stage .avatar-base {
  top: -8%;
}

.profile-stage .avatar-hair-image {
  top: -8%;
}

.avatar-base {
  position: absolute;
  z-index: 1;
  top: -15%;
  left: -62%;
  width: 225%;
  height: 225%;
  object-fit: contain;
  pointer-events: none;
}

.avatar-hair-tint {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .14s ease;
  clip-path: polygon(17% 0, 83% 0, 82% 12%, 75% 15%, 79% 21%, 72% 25%, 67% 21%, 59% 17%, 50% 16%, 42% 18%, 35% 24%, 28% 31%, 20% 27%, 14% 18%);
}

.avatar-hair-image {
  position: absolute;
  top: -15%;
  left: -62%;
  width: 225%;
  height: 225%;
  object-fit: contain;
}

.avatar-stage[data-gender="female"] .avatar-hair-tint {
  clip-path: polygon(8% 0, 93% 0, 98% 17%, 97% 70%, 82% 80%, 72% 68%, 65% 49%, 61% 30%, 45% 27%, 35% 43%, 29% 66%, 19% 81%, 5% 70%, 2% 18%);
  -webkit-mask-image: radial-gradient(ellipse 21% 27% at 53% 43%, transparent 0 95%, #000 100%);
  mask-image: radial-gradient(ellipse 21% 27% at 53% 43%, transparent 0 95%, #000 100%);
}

.avatar-glasses,
.avatar-moustache,
.avatar-beard {
  position: absolute;
  z-index: 3;
  display: none;
  pointer-events: none;
}

.avatar-glasses {
  top: 34%;
  left: 42%;
  width: 29%;
  height: 13%;
}

.avatar-glasses::before,
.avatar-glasses::after,
.avatar-glasses i {
  content: "";
  position: absolute;
  display: block;
  border: 3px solid #15202a;
  background: rgba(143, 221, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.avatar-glasses i {
  top: 0;
  width: 42%;
  height: 100%;
  border-radius: 45%;
}

.avatar-glasses i:first-child {
  left: 0;
}

.avatar-glasses i:last-child {
  right: 0;
}

.avatar-glasses::before {
  top: 38%;
  left: 40%;
  width: 20%;
  height: 0;
  border-width: 2px 0 0;
  background: none;
}

.avatar-glasses::after {
  top: 22%;
  left: -13%;
  width: 126%;
  height: 0;
  border-width: 2px 0 0;
  background: none;
}

.avatar-moustache {
  top: 48%;
  left: 50%;
  width: 18%;
  height: 7%;
  border-radius: 65% 35% 55% 30%;
  background: #322017;
  transform: rotate(-2deg);
  box-shadow: 8px 1px 0 #322017;
}

.avatar-beard {
  top: 47%;
  left: 46%;
  width: 30%;
  height: 27%;
  border-radius: 20% 25% 54% 50%;
  background: linear-gradient(130deg, transparent 0 29%, rgba(47, 31, 22, .88) 31% 77%, transparent 79%);
}

.avatar-stage.has-glasses .avatar-glasses,
.avatar-stage.has-moustache .avatar-moustache,
.avatar-stage.has-beard .avatar-beard {
  display: block;
}

.profile-copy {
  position: absolute;
  z-index: 5;
  right: 7px;
  bottom: 7px;
  left: 7px;
  display: grid;
  min-height: 30px;
  place-content: center;
  padding: 4px 8px;
  border: 2px solid #081c2e;
  border-radius: 8px 8px 13px 9px;
  background: linear-gradient(#fffdf4, #f2dfa6);
  box-shadow: inset 0 0 0 2px #fff6ce;
  text-align: center;
  line-height: 1.05;
}

.profile-copy small {
  color: #72540d;
  font-size: clamp(7px, .6vw, 9px);
  font-weight: 900;
  letter-spacing: .12em;
}

.profile-copy strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--navy-950);
  font-size: clamp(11px, .9vw, 14px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-menu {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: clamp(3px, .55vh, 8px);
  padding: 2px 0 2px 19px;
}

.paper-menu::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1%;
  bottom: 1%;
  left: 21px;
  width: 8px;
  border: 2px solid #091b28;
  border-radius: 999px;
  background: linear-gradient(90deg, #a76a20, #ffe079 45%, #8f5315);
  box-shadow: 2px 1px 0 rgba(255, 248, 184, .55), 0 0 0 2px rgba(5, 17, 28, .35);
}

.paper-menu-row {
  --menu-tilt: 0deg;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  width: calc(100% + 2px);
  min-height: clamp(45px, 6.1vh, 61px);
  padding: 5px 25px 5px 11px;
  cursor: pointer;
  color: #132941;
  border: 0;
  background: var(--paper-row) center / 100% 100% no-repeat;
  filter: drop-shadow(0 4px 1px rgba(0, 0, 0, .42));
  transform: rotate(var(--menu-tilt));
  transform-origin: 12% 50%;
  transition: transform .14s ease, filter .14s ease;
}

.paper-menu-row::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 15px;
  height: 15px;
  border: 3px solid #091b28;
  border-radius: 50%;
  background: #f2d17a;
  box-shadow: inset 0 0 0 2px #fff2ad;
}

.paper-menu-row img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .7));
}

.paper-menu-row span {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.22vw, 21px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-menu-row:hover {
  z-index: 3;
  background-image: var(--paper-row-hover);
  filter: drop-shadow(0 6px 2px rgba(0, 0, 0, .45)) brightness(1.04);
  transform: translateX(5px) rotate(0deg);
}

.paper-menu-row:active {
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45));
  transform: translate(4px, 3px) rotate(0deg);
}

.paper-menu-row.active {
  z-index: 2;
  color: #fff;
  background-image: var(--paper-row-active);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55);
  transform: translateX(4px) rotate(0deg);
}

.paper-menu-row.active::before {
  background: #ffad21;
  box-shadow: inset 0 0 0 2px #ffe987, 0 0 10px #ffb834;
}

.sound-button {
  display: flex;
  flex: 0 0 37px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: calc(100% - 9px);
  margin-left: 6px;
  cursor: pointer;
  color: #e6f5ff;
  border: 2px solid #051a2c;
  border-radius: 12px;
  background: linear-gradient(#0b416b, #082945);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 3px 0 #041521;
  font-size: 12px;
  font-weight: 800;
}

.sound-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sound-button.muted {
  filter: grayscale(1);
  opacity: .72;
}

.account-strip {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: calc(100% - 9px);
  margin-left: 6px;
  padding: 4px 5px 4px 9px;
  color: #d8efff;
  border-top: 1px solid rgba(255, 224, 122, .38);
  font-size: 10px;
}

.account-strip span {
  display: grid;
  min-width: 0;
}

.account-strip small {
  color: #8fc2e2;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.account-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-strip button {
  padding: 5px 7px;
  cursor: pointer;
  color: #fff2bf;
  border: 1px solid #bb8b27;
  border-radius: 7px;
  background: #7f2a24;
  font-size: 9px;
  font-weight: 900;
}

/* Ana sahne */
.game-main {
  display: grid;
  grid-template-rows: clamp(112px, 14.2vh, 148px) minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 18, 32, .35), transparent 13% 87%, rgba(2, 18, 32, .23)),
    linear-gradient(rgba(233, 247, 249, .12), rgba(7, 31, 49, .24)),
    var(--office-background) center / cover no-repeat;
}

.game-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, transparent 0 25%, rgba(3, 23, 38, .11) 82%),
    linear-gradient(180deg, rgba(255, 242, 188, .05), rgba(4, 26, 44, .22));
}

.tycoon-topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 1.32fr) minmax(155px, .94fr) minmax(70px, .44fr) minmax(92px, .58fr) minmax(235px, 1.16fr);
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  margin: 10px 14px 5px;
  padding: 10px;
  border: 5px solid #071d32;
  border-radius: 29px 23px 27px 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .66), transparent 27%),
    linear-gradient(#fffdf3, #f0d796);
  box-shadow:
    inset 0 0 0 3px #e8a92c,
    inset 0 0 0 6px #fff4c6,
    0 7px 0 #062036,
    0 12px 24px rgba(1, 16, 29, .38);
}

.tycoon-topbar::before {
  content: "";
  position: absolute;
  right: 4%;
  bottom: -10px;
  left: 4%;
  height: 6px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #ffbd2e 15% 85%, transparent);
  opacity: .7;
}

.brand-block,
.cash-panel,
.top-stat,
.buy-selector {
  position: relative;
  min-width: 0;
  border: 2px solid #9e6a18;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}

.brand-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 12px;
  color: #fff6cf;
  border: 3px solid #071d32;
  border-radius: 19px 13px 17px 12px;
  background:
    radial-gradient(circle at 50% -15%, #1d76aa, transparent 52%),
    linear-gradient(#0e5b8c, #082f53);
  box-shadow:
    inset 0 0 0 3px #f0b72c,
    inset 0 0 0 5px #092442,
    0 4px 0 #c27e16;
  text-align: center;
  text-shadow: 0 3px 0 #031424;
}

.brand-gavel {
  color: #ffc338;
  font-size: clamp(30px, 3vw, 49px);
  filter: drop-shadow(0 3px 0 #5c3607);
  transform: rotate(-7deg);
}

.brand-block > div {
  display: grid;
  min-width: 0;
}

.brand-block strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 36px);
  font-weight: 900;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.brand-block small {
  color: #c7ebff;
  font-size: clamp(7px, .58vw, 10px);
  font-weight: 900;
  letter-spacing: .17em;
}

.cash-panel,
.top-stat {
  display: grid;
  place-content: center;
  padding: 5px 9px;
  border-radius: 14px 10px 14px 10px;
  background: linear-gradient(145deg, #fffefa, #f5dda5);
  text-align: center;
}

.cash-panel span,
.top-stat span,
.buy-selector > span {
  color: #6a4a10;
  font-size: clamp(9px, .75vw, 13px);
  font-weight: 1000;
  letter-spacing: .08em;
}

.cash-panel strong {
  overflow: hidden;
  color: #082642;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.1vw, 50px);
  line-height: .95;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 #fff, 0 4px 0 rgba(224, 169, 52, .42);
  white-space: nowrap;
}

.cash-panel small {
  color: #31732e;
  font-size: clamp(8px, .67vw, 11px);
  font-weight: 900;
  white-space: nowrap;
}

.top-stat strong {
  overflow: hidden;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 38px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: 5px;
  padding: 6px;
  border: 3px solid #071d32;
  border-radius: 17px 12px 17px 12px;
  background: linear-gradient(#0e5686, #082e50);
  box-shadow: inset 0 0 0 3px #d99519, 0 3px 0 #061b2e;
}

.buy-selector > span {
  grid-column: 1 / -1;
  color: #fff3c2;
  text-align: center;
  text-shadow: 0 2px 0 #04182a;
}

.buy-selector button {
  min-width: 0;
  padding: 4px 2px;
  cursor: pointer;
  color: #102742;
  border: 2px solid #6b470e;
  border-radius: 9px 7px 10px 7px;
  background: linear-gradient(#fff596, #ffbd30 52%, #e38c13);
  box-shadow: inset 0 0 0 2px #fff9c7, 0 3px 0 #6d3d0a;
  font-size: clamp(9px, .77vw, 13px);
  font-weight: 1000;
  white-space: nowrap;
  transition: transform .12s ease, filter .12s ease;
}

.buy-selector button:hover {
  filter: brightness(1.09);
  transform: translateY(-1px);
}

.buy-selector button:active {
  box-shadow: inset 0 0 0 2px #fff9c7, 0 1px 0 #6d3d0a;
  transform: translateY(2px);
}

.buy-selector button[aria-pressed="true"] {
  color: #fff7ce;
  border-color: #021729;
  background: linear-gradient(#1684bd, #075080);
  box-shadow: inset 0 0 0 2px #6dd5ff, 0 3px 0 #031a2c;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55);
}

.game-content {
  min-width: 0;
  min-height: 0;
  padding: 8px 14px 13px;
}

.game-view {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.office-view {
  display: grid;
}

.venture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1vh, 11px) clamp(9px, .9vw, 15px);
  min-height: 0;
}

.venture-card {
  --accent: #1597c7;
  --accent-dark: #0a4d71;
  position: relative;
  display: grid;
  grid-template-columns: clamp(112px, 8.3vw, 145px) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: visible;
  border: 4px solid #071a2b;
  border-radius: 27px 15px 22px 30px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .85), transparent 28%),
    linear-gradient(#fffced, #f0d893);
  box-shadow:
    inset 0 0 0 3px #f0b72e,
    inset 0 0 0 6px #fff4c3,
    0 5px 0 #071d31,
    0 9px 18px rgba(1, 17, 29, .34);
}

.venture-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 7px;
  bottom: 4px;
  left: 45%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .35;
}

.venture-logo {
  position: relative;
  z-index: 3;
  align-self: center;
  width: clamp(107px, 8vw, 139px);
  aspect-ratio: 1;
  margin-left: 4px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 5px 0 rgba(3, 21, 35, .75)) drop-shadow(0 8px 8px rgba(0, 0, 0, .27));
  transition: transform .14s ease, filter .14s ease;
}

.venture-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.venture-logo:hover:not(:disabled) {
  filter: drop-shadow(0 6px 0 rgba(3, 21, 35, .75)) drop-shadow(0 10px 10px rgba(0, 0, 0, .3)) brightness(1.07);
  transform: scale(1.025) rotate(-1deg);
}

.venture-logo:active:not(:disabled) {
  transform: translateY(3px) scale(.99);
}

.level-badge {
  position: absolute;
  right: 5%;
  bottom: -1%;
  left: 5%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  color: #fff9dc;
  border: 3px solid #061a2d;
  border-radius: 10px 8px 12px 8px;
  background: linear-gradient(var(--accent), var(--accent-dark));
  box-shadow: inset 0 0 0 2px #ffd55d, 0 3px 0 rgba(2, 17, 28, .8);
  line-height: 1;
}

.level-badge small {
  padding: 6px 5px;
  color: #fff1b8;
  font-size: clamp(6px, .45vw, 8px);
  font-weight: 1000;
  letter-spacing: .08em;
}

.level-badge b {
  padding: 3px 4px;
  border-left: 1px solid rgba(255, 255, 255, .35);
  font-size: clamp(15px, 1.2vw, 20px);
  text-align: center;
}

.venture-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(34px, auto) minmax(38px, 1fr) minmax(34px, auto);
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding: 7px 8px 7px 2px;
}

.venture-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 2px solid #071d31;
  border-radius: 13px 8px 12px 7px;
  background:
    linear-gradient(90deg, var(--accent), var(--accent-dark));
  box-shadow: inset 0 0 0 2px rgba(255, 229, 125, .68);
}

.venture-heading > span:first-child {
  display: grid;
  min-width: 0;
  padding: 3px 8px 3px 11px;
}

.venture-heading strong {
  overflow: hidden;
  color: #fff9df;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.22vw, 21px);
  line-height: 1.05;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55);
  white-space: nowrap;
}

.venture-heading > span:first-child small {
  overflow: hidden;
  color: rgba(255, 250, 222, .84);
  font-size: clamp(6px, .47vw, 8px);
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revenue-chip {
  display: grid;
  min-width: clamp(78px, 5.8vw, 104px);
  align-self: stretch;
  place-content: center;
  padding: 2px 7px;
  color: #14263b;
  border-left: 2px solid #071d31;
  background: linear-gradient(145deg, #fff8c2, #ffc447);
  text-align: center;
}

.revenue-chip small {
  color: #67450a;
  font-size: clamp(6px, .48vw, 8px);
  font-weight: 1000;
  letter-spacing: .09em;
}

.revenue-chip b {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.05vw, 18px);
  line-height: 1;
  white-space: nowrap;
}

.run-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 4px 12px;
  cursor: pointer;
  color: #fff9df;
  border: 3px solid #071b2d;
  border-radius: 14px 9px 15px 8px;
  background:
    linear-gradient(rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(#1488bd, #08608f);
  box-shadow: inset 0 0 0 2px #8ee3ff, 0 3px 0 #061a2b;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .58);
  transition: transform .12s ease, filter .12s ease;
}

.run-button:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.run-button:active:not(:disabled) {
  box-shadow: inset 0 0 0 2px #8ee3ff, 0 1px 0 #061a2b;
  transform: translateY(2px);
}

.run-button:disabled {
  cursor: default;
}

.run-fill {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 0;
  border-right: 2px solid rgba(255, 255, 255, .75);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .12) 0 8px, transparent 8px 16px),
    linear-gradient(#86dd4e, #37a62e);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, .28);
  transition: width .08s linear;
}

.run-label,
.run-button em {
  position: relative;
  z-index: 1;
}

.run-label {
  overflow: hidden;
  font-size: clamp(13px, 1.12vw, 19px);
  font-weight: 1000;
  letter-spacing: .02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-button em {
  font-family: Arial, sans-serif;
  font-size: clamp(18px, 1.5vw, 26px);
  font-style: normal;
  letter-spacing: -.2em;
}

.venture-footer {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) auto clamp(51px, 4vw, 66px);
  gap: 5px;
  min-width: 0;
}

.buy-button,
.timer-pill,
.manager-shortcut {
  min-width: 0;
  border: 2px solid #071b2d;
  border-radius: 10px 7px 11px 7px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .56), 0 2px 0 rgba(4, 20, 32, .75);
}

.buy-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 3px 8px;
  cursor: pointer;
  color: #18320e;
  background: linear-gradient(#adf170, #5ebf3a);
  font-weight: 1000;
  transition: filter .12s ease, transform .12s ease;
}

.buy-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.buy-button:active:not(:disabled) {
  transform: translateY(2px);
}

.buy-button span {
  overflow: hidden;
  font-size: clamp(9px, .75vw, 13px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-button strong {
  color: #14263b;
  font-size: clamp(10px, .84vw, 14px);
  white-space: nowrap;
}

.buy-button:disabled {
  cursor: not-allowed;
  color: #646b69;
  border-color: #38454e;
  background: linear-gradient(#e6e6df, #abaeaa);
  box-shadow: inset 0 0 0 2px #f5f2e7, 0 2px 0 #2a3339;
  filter: grayscale(.3);
}

.buy-button:disabled strong {
  color: #596063;
}

.timer-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 6px;
  color: #15283d;
  background: linear-gradient(#fff7bd, #ffc443);
  font-weight: 1000;
  white-space: nowrap;
}

.timer-pill i {
  color: #7f5608;
  font-style: normal;
}

.timer-pill b {
  font-size: clamp(9px, .7vw, 12px);
}

.manager-shortcut {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: 2px 3px;
  cursor: pointer;
  color: #e4f5ff;
  background: linear-gradient(#0f5b88, #092f50);
}

.manager-shortcut img {
  width: 28px;
  height: 34px;
  margin: -5px -3px -5px -3px;
  object-fit: contain;
}

.manager-shortcut span {
  overflow: hidden;
  font-size: clamp(5px, .4vw, 7px);
  font-weight: 1000;
  letter-spacing: .03em;
  text-overflow: ellipsis;
}

.manager-shortcut:hover {
  filter: brightness(1.12);
}

.manager-shortcut.hired {
  color: #efffdc;
  background: linear-gradient(#5cbb3c, #337e28);
}

.venture-card.locked .venture-logo img {
  filter: grayscale(.92) saturate(.25) opacity(.64);
}

.venture-card.locked .venture-heading,
.venture-card.locked .run-button {
  filter: grayscale(.95) brightness(.75);
}

.venture-card.locked .level-badge {
  color: #e8e8e8;
  background: linear-gradient(#737a7c, #40484e);
}

.venture-card.managed {
  box-shadow:
    inset 0 0 0 3px #99dc68,
    inset 0 0 0 6px #fff4c3,
    0 5px 0 #071d31,
    0 0 18px rgba(113, 213, 67, .36);
}

.venture-card.running .venture-logo {
  animation: workingPulse 1.1s ease-in-out infinite alternate;
}

.payout-pop {
  position: absolute;
  z-index: 10;
  top: 32%;
  right: 18%;
  color: #f9ffcf;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 1000;
  text-shadow: 0 2px 0 #285413, 0 0 8px #74d53d;
  pointer-events: none;
  animation: payout 1s ease-out forwards;
}

/* Alt sayfalar */
.secondary-view {
  overflow: auto;
  padding: clamp(12px, 1.3vw, 20px);
  border: 4px solid #071c30;
  border-radius: 26px 18px 24px 17px;
  background:
    linear-gradient(rgba(255, 252, 234, .97), rgba(240, 215, 153, .96)),
    url("assets/lawyer-tycoon/menu/sol_panel_arka_plan_tile_1024.png");
  box-shadow: inset 0 0 0 3px #d69c24, inset 0 0 0 6px #fff4c5, 0 7px 0 #061b2d;
  scrollbar-color: #d39925 #f6e4b3;
  scrollbar-width: thin;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
  padding: 11px 14px;
  color: #fff5c8;
  border: 3px solid #061a2d;
  border-radius: 18px 11px 18px 11px;
  background: linear-gradient(100deg, #0b4b78, #072b4b);
  box-shadow: inset 0 0 0 2px #e5ac2b, 0 4px 0 #061a2d;
}

.section-heading > div {
  display: grid;
}

.section-heading span {
  color: #61c8f0;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .16em;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 38px);
  line-height: 1;
}

.section-heading p {
  margin: 4px 0 0;
  color: #d4eaf4;
  font-size: clamp(10px, .9vw, 14px);
}

.section-back,
.shop-card button,
.manager-card button,
.prestige-panel button,
.office-shop button,
.danger-zone button,
.modal-primary,
.modal-secondary,
.tutorial-finish {
  cursor: pointer;
  border: 2px solid #061a2d;
  border-radius: 10px 7px 11px 7px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .56), 0 3px 0 #061a2d;
  font-weight: 1000;
  transition: filter .12s ease, transform .12s ease;
}

.section-back {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #15283e;
  background: linear-gradient(#fff59e, #ffbd2f);
}

.section-back:hover,
.shop-card button:hover:not(:disabled),
.manager-card button:hover:not(:disabled),
.prestige-panel button:hover:not(:disabled),
.office-shop button:hover:not(:disabled),
.modal-primary:hover,
.modal-secondary:hover,
.tutorial-finish:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.unlock-grid,
.shop-grid,
.manager-grid,
.office-shop,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.unlock-card,
.shop-card,
.manager-card,
.prestige-panel,
.stat-grid article,
.office-shop article,
.danger-zone {
  min-width: 0;
  border: 3px solid #0a263d;
  border-radius: 18px 12px 18px 12px;
  background: linear-gradient(145deg, #fffef6, #f4dfa9);
  box-shadow: inset 0 0 0 2px #e2a928, 0 4px 0 #092238;
}

.unlock-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
}

.unlock-card > img {
  grid-row: 1 / 3;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.unlock-card > div:nth-child(2) {
  display: grid;
}

.unlock-card strong,
.shop-card strong,
.manager-card strong,
.office-shop strong {
  color: #0b355b;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.2vw, 21px);
}

.unlock-card small,
.manager-card small {
  color: #6b572d;
}

.milestone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.milestone-pills > span {
  display: grid;
  min-width: 41px;
  padding: 4px 6px;
  color: #667077;
  border: 1px solid #767b7c;
  border-radius: 7px;
  background: #d9dbd6;
  text-align: center;
  font-weight: 900;
}

.milestone-pills > span.done {
  color: #fff6ce;
  border-color: #205a21;
  background: #4d9f32;
}

.milestone-pills small {
  font-size: 7px;
}

.shop-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
}

.shop-card > img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.shop-card p,
.manager-card p {
  margin: 3px 0 0;
  color: #506072;
  font-size: 11px;
}

.shop-card button,
.manager-card button,
.prestige-panel button,
.office-shop button {
  min-width: 112px;
  padding: 9px 11px;
  color: #17320f;
  background: linear-gradient(#a8ee6d, #5bbb3b);
}

.shop-card button:disabled,
.manager-card button:disabled,
.prestige-panel button:disabled,
.office-shop button:disabled {
  cursor: not-allowed;
  color: #676b69;
  background: linear-gradient(#e8e5dc, #b9b9b2);
  filter: grayscale(.5);
}

.manager-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manager-card {
  display: grid;
  grid-template-rows: 105px minmax(110px, 1fr) auto;
  padding: 9px;
  overflow: hidden;
  text-align: center;
}

.manager-card > img {
  width: 100%;
  height: 112px;
  margin-top: -7px;
  object-fit: contain;
}

.manager-card > div {
  display: grid;
  align-content: start;
}

.manager-card > div > span {
  color: #956212;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .07em;
}

.manager-card button {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}

.manager-card.hired {
  box-shadow: inset 0 0 0 3px #6dbe47, 0 4px 0 #123f22;
}

.prestige-panel {
  display: grid;
  grid-template-columns: 130px 1fr 1fr auto;
  align-items: center;
  gap: 14px;
  max-width: 1050px;
  margin: 7vh auto 0;
  padding: 20px;
}

.prestige-panel > img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.prestige-panel > div {
  display: grid;
  text-align: center;
}

.prestige-panel span {
  color: #6b5018;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.prestige-panel strong {
  color: #0a355a;
  font-family: var(--font-display);
  font-size: 42px;
}

.stat-grid article {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.stat-grid span {
  color: #725416;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stat-grid strong {
  color: #0a355a;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 34px);
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 14px;
  border-color: #6b201d;
  background: linear-gradient(#fff4e9, #ecc5aa);
}

.danger-zone button {
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(#c6483e, #8f2924);
}

.office-shop article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
}

.office-shop img {
  width: 84px;
  height: 65px;
  border-radius: 9px;
  object-fit: cover;
}

/* Karakter ve onay pencereleri */
#modalRoot {
  position: relative;
  z-index: 5000;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 17, 29, .77);
  backdrop-filter: blur(6px);
}

.game-modal {
  position: relative;
  width: min(720px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 20px;
  border: 5px solid #061a2d;
  border-radius: 27px 18px 25px 17px;
  background: linear-gradient(145deg, #fffef5, #f1d89e);
  box-shadow: inset 0 0 0 3px #e6a929, inset 0 0 0 6px #fff4c6, 0 15px 0 #051a2b, 0 28px 60px rgba(0, 0, 0, .45);
}

.game-modal > header {
  padding: 2px 42px 12px 3px;
  border-bottom: 2px solid #c99527;
}

.game-modal h2 {
  margin: 0;
  color: #0a365c;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 38px);
}

.game-modal p {
  margin: 4px 0 0;
  color: #5f5b50;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: #fff;
  border: 2px solid #061a2d;
  border-radius: 50%;
  background: #a6312c;
  box-shadow: inset 0 0 0 2px #e87362;
  font-size: 23px;
  font-weight: 900;
}

.modal-body {
  padding: 17px 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.modal-primary,
.modal-secondary {
  padding: 10px 17px;
}

.modal-primary {
  color: #102d12;
  background: linear-gradient(#b3f379, #5bbb3b);
}

.modal-secondary {
  color: #142b43;
  background: linear-gradient(#fff8c3, #f4c54d);
}

.avatar-editor {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  gap: 18px;
}

.avatar-preview {
  display: grid;
  min-height: 320px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 3px solid #061a2d;
  border-radius: 21px 13px 21px 13px;
  background: radial-gradient(circle at 50% 20%, #75d2f2, #0b5b8b);
  box-shadow: inset 0 0 0 3px #f0be3f;
}

.customizer-stage {
  min-height: 270px;
}

.avatar-preview > span {
  position: relative;
  z-index: 5;
  padding: 9px;
  color: #102942;
  border-top: 2px solid #061a2d;
  background: linear-gradient(#fffef4, #f1d89f);
  font-family: var(--font-display);
  font-weight: 900;
  text-align: center;
}

.avatar-controls {
  display: grid;
  align-content: start;
  gap: 10px;
}

.avatar-controls fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 10px;
  border: 2px solid #9f7424;
  border-radius: 13px;
  background: rgba(255, 254, 244, .62);
}

.avatar-controls legend {
  padding: 0 6px;
  color: #0a365c;
  font-weight: 1000;
}

.avatar-controls fieldset > button,
.avatar-controls label {
  padding: 8px 10px;
  cursor: pointer;
  color: #1e3449;
  border: 2px solid #8a6d2c;
  border-radius: 9px;
  background: #fff8db;
  font-weight: 900;
}

.avatar-controls fieldset > button.selected,
.avatar-controls label:has(input:checked) {
  color: #fff;
  border-color: #061a2d;
  background: #0b5b8b;
  box-shadow: inset 0 0 0 2px #65c9ed;
}

.avatar-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hair-swatches {
  display: flex;
  gap: 8px;
}

.hair-swatches button {
  width: 38px;
  height: 38px;
  cursor: pointer;
  border: 3px solid #fff6d5;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #725218, 0 3px 0 #4b3713;
}

.hair-swatches button.selected {
  box-shadow: 0 0 0 3px #18a5df, 0 4px 0 #06466b;
  transform: translateY(-2px);
}

/* Kısa etkileşimli öğretici */
.tutorial-layer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
}

.tutorial-shade {
  display: none;
}

.tutorial-spotlight {
  position: fixed;
  border: 4px solid #ffd14e;
  border-radius: 15px;
  box-shadow:
    0 0 0 9999px rgba(2, 15, 26, .74),
    0 0 0 7px rgba(255, 232, 116, .26),
    0 0 28px #ffd34f;
  transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease;
}

.tutorial-widget {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  padding: 18px;
  pointer-events: auto;
  color: #14283d;
  border: 4px solid #061a2d;
  border-radius: 20px 12px 20px 12px;
  background: linear-gradient(145deg, #fffef4, #f2d797);
  box-shadow: inset 0 0 0 3px #e5a72a, 0 8px 0 #061a2d, 0 18px 35px rgba(0, 0, 0, .38);
}

.tutorial-widget::before {
  content: "";
  position: absolute;
  top: 33px;
  left: -17px;
  width: 24px;
  height: 24px;
  border: solid #061a2d;
  border-width: 0 0 4px 4px;
  background: #fff5d5;
  transform: rotate(45deg);
}

.tutorial-eyebrow {
  color: #b06f0c;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
}

.tutorial-title {
  margin: 4px 0 7px;
  color: #0a365c;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.05;
}

.tutorial-text {
  margin: 0;
  color: #3f5263;
  font-size: 13px;
  line-height: 1.45;
}

.tutorial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #c69c4b;
}

.tutorial-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #654c20;
  font-size: 11px;
  font-weight: 800;
}

.tutorial-finish {
  padding: 8px 12px;
  color: #183314;
  background: linear-gradient(#b1f276, #5bbc3c);
}

/* Bildirimler */
#toasts {
  position: fixed;
  z-index: 6000;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(380px, calc(100vw - 36px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 11px 13px;
  color: #eaf8ff;
  border: 2px solid #071a2b;
  border-radius: 12px 8px 12px 8px;
  background: linear-gradient(#0d567f, #082f50);
  box-shadow: inset 0 0 0 1px #5fc7e9, 0 4px 0 #051a2a, 0 10px 25px rgba(0, 0, 0, .35);
  font-size: 12px;
  font-weight: 800;
  animation: toastIn .22s ease-out both;
}

.toast.important {
  color: #182d14;
  background: linear-gradient(#c3f58e, #6bbf42);
  box-shadow: inset 0 0 0 1px #e9ffd2, 0 4px 0 #174221, 0 10px 25px rgba(0, 0, 0, .35);
}

.toast.out {
  animation: toastOut .3s ease-in both;
}

@keyframes workingPulse {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

@keyframes payout {
  0% { opacity: 0; transform: translateY(14px) scale(.8); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-38px) scale(1.08); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(28px); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(30px); }
}

@media (max-width: 1320px) {
  .game-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .game-sidebar {
    padding-left: 6px;
  }

  .tycoon-topbar {
    grid-template-columns: minmax(175px, 1.2fr) minmax(135px, .9fr) minmax(58px, .38fr) minmax(80px, .54fr) minmax(200px, 1.05fr);
    gap: 6px;
    margin-right: 10px;
    margin-left: 10px;
    padding: 8px;
  }

  .brand-block {
    gap: 5px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .brand-block strong {
    font-size: clamp(18px, 2vw, 28px);
  }

  .venture-card {
    grid-template-columns: clamp(102px, 8.5vw, 122px) minmax(0, 1fr);
  }

  .venture-logo {
    width: clamp(98px, 8.2vw, 119px);
  }

  .venture-footer {
    grid-template-columns: minmax(116px, 1fr) auto 49px;
  }

  .manager-shortcut {
    display: block;
    padding: 0;
  }

  .manager-shortcut img {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .manager-shortcut span {
    position: absolute;
    inset: auto 1px 1px;
    padding: 1px;
    color: #fff;
    background: rgba(5, 31, 51, .78);
    text-align: center;
  }

  .manager-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .game-shell {
    min-height: 560px;
  }

  .game-main {
    grid-template-rows: 105px minmax(0, 1fr);
  }

  .tycoon-topbar {
    margin-top: 7px;
    padding: 7px;
  }

  .profile-card {
    flex-basis: 112px;
  }

  .paper-menu-row {
    min-height: 39px;
  }

  .paper-menu-row img {
    width: 31px;
    height: 31px;
  }

  .venture-body {
    grid-template-rows: minmax(29px, auto) minmax(31px, 1fr) minmax(29px, auto);
    gap: 2px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .venture-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .venture-logo {
    width: 91px;
  }

  .venture-heading > span:first-child small {
    display: none;
  }

  .game-content {
    padding-top: 5px;
  }
}

@media (max-width: 980px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  .game-shell {
    display: block;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  .game-sidebar {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr) 42px;
    grid-template-rows: auto auto;
    gap: 7px 10px;
    min-height: 165px;
    padding: 9px;
    overflow: visible;
    border-right: 0;
    border-bottom: 6px solid #061a2d;
  }

  .profile-card {
    grid-row: 1 / 3;
    width: 178px;
    height: 148px;
    margin: 0;
  }

  .paper-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(105px, 1fr));
    align-self: center;
    gap: 4px;
    padding: 0;
  }

  .paper-menu::before,
  .paper-menu-row::before {
    display: none;
  }

  .paper-menu-row {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 51px;
    width: 100%;
    padding: 4px 15px 4px 5px;
    transform: none;
  }

  .paper-menu-row img {
    width: 28px;
    height: 28px;
  }

  .paper-menu-row span {
    font-size: 14px;
  }

  .sound-button {
    grid-column: 3;
    grid-row: 1 / 3;
    width: 42px;
    height: 100%;
    margin: 0;
    flex-direction: column;
  }

  .sound-button span {
    writing-mode: vertical-rl;
    font-size: 9px;
  }

  .account-strip {
    grid-column: 2;
    width: 100%;
    height: 30px;
    margin: 0;
  }

  .game-main {
    min-height: 820px;
    grid-template-rows: 128px minmax(0, 1fr);
  }

  .tycoon-topbar {
    grid-template-columns: 1.2fr .9fr .42fr .55fr 1fr;
  }

  .venture-grid {
    grid-template-rows: repeat(4, 160px);
  }
}

@media (max-width: 720px) {
  .game-sidebar {
    grid-template-columns: 140px minmax(0, 1fr);
    min-height: 240px;
  }

  .profile-card {
    width: 140px;
    height: 145px;
  }

  .paper-menu {
    grid-template-columns: repeat(2, minmax(105px, 1fr));
  }

  .paper-menu-row {
    min-height: 42px;
  }

  .sound-button {
    grid-column: 1;
    grid-row: 3;
    width: 140px;
    height: 36px;
    flex-direction: row;
  }

  .sound-button span {
    writing-mode: horizontal-tb;
  }

  .account-strip {
    grid-column: 2;
    grid-row: 3;
  }

  .game-main {
    min-height: 1520px;
    grid-template-rows: 230px minmax(0, 1fr);
  }

  .tycoon-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 72px 58px 69px;
    gap: 6px;
  }

  .brand-block {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .cash-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .cash-panel + .top-stat {
    grid-column: 2;
    grid-row: 2;
  }

  .cash-panel + .top-stat + .top-stat {
    grid-column: 1;
    grid-row: 3;
  }

  .buy-selector {
    grid-column: 2;
    grid-row: 3;
  }

  .venture-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 148px);
  }

  .venture-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .venture-logo {
    width: 106px;
  }

  .venture-heading > span:first-child small {
    display: none;
  }

  .venture-footer {
    grid-template-columns: minmax(105px, 1fr) auto 44px;
  }

  .unlock-grid,
  .shop-grid,
  .manager-grid,
  .office-shop,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .shop-card,
  .office-shop article {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .shop-card > img,
  .office-shop img {
    width: 54px;
    height: 54px;
  }

  .shop-card button,
  .office-shop button {
    grid-column: 1 / -1;
  }

  .prestige-panel {
    grid-template-columns: 80px 1fr;
    margin-top: 10px;
  }

  .prestige-panel > img {
    width: 75px;
    height: 75px;
  }

  .prestige-panel button {
    grid-column: 1 / -1;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .avatar-editor {
    grid-template-columns: 1fr;
  }

  .avatar-preview {
    min-height: 280px;
  }
}

@media (max-width: 450px) {
  .game-sidebar {
    grid-template-columns: 116px minmax(0, 1fr);
    padding: 6px;
  }

  .profile-card,
  .sound-button {
    width: 116px;
  }

  .paper-menu-row {
    grid-template-columns: 24px minmax(0, 1fr);
    padding-right: 9px;
  }

  .paper-menu-row img {
    width: 23px;
    height: 23px;
  }

  .paper-menu-row span {
    font-size: 11px;
  }

  .game-content {
    padding-right: 6px;
    padding-left: 6px;
  }

  .venture-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .venture-logo {
    width: 86px;
  }

  .level-badge small,
  .manager-shortcut span {
    display: none;
  }

  .level-badge {
    grid-template-columns: 1fr;
  }

  .venture-heading strong {
    font-size: 12px;
  }

  .revenue-chip {
    min-width: 65px;
  }

  .buy-button {
    display: grid;
    padding: 2px 4px;
  }

  .buy-button span,
  .buy-button strong {
    font-size: 8px;
  }

  .timer-pill {
    padding-right: 3px;
    padding-left: 3px;
  }
}

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