.home { position: relative; isolation: isolate; }

.home-hero {
  position: relative;
  height: 0;
  padding-bottom: 53%;
  overflow: hidden;
}

.home-hero-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.home-hero:before,
.home-hero:after,
.home-hero-dim,
.home-hero-sheen {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.home-hero:before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(120% 95% at 50% 42%, transparent 52%, rgba(7, 5, 4, .6) 100%);
}

.home-hero:after {
  top: 90%;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(transparent, var(--bg));
}

.home-hero-dim { top: 0; right: 0; bottom: 0; left: 0; background: #050302; opacity: 0; }

.home-hero-sheen {
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 226, 170, .3) 50%, transparent 82%);
  mix-blend-mode: screen;
  opacity: .12;
}

.home-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 0 16px;
}

.home-store-head { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.home-store-logo { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.home-store-head b { min-width: 0; color: #fff4ef; font-size: 17px; letter-spacing: 2px; }

.home-switch {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  color: var(--text-3);
  font-size: 12px;
}

.home-switch:active { color: var(--gold-soft); }

.home-flourish { position: relative; width: 136px; height: 7px; }

.home-flourish:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 163, 106, .55) 35%, rgba(198, 163, 106, .55) 65%, transparent);
}

.home-flourish i {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.home-entries { display: flex; gap: 10px; padding: 12px 16px 0; }

.home-entry {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  border: 1px solid rgba(255, 240, 214, .07);
  border-radius: var(--radius, 14px);
  background: linear-gradient(160deg, #1f1915, #15110e 58%, #100d0b);
  box-shadow: inset 0 1px rgba(255, 236, 200, .09), 0 12px 22px -14px rgba(0, 0, 0, .9);
  color: inherit;
  text-align: left;
}

.home-entry-main {
  flex: 1;
  min-width: 0;
  min-height: 132px;
  border-color: rgba(198, 163, 106, .4);
  background: radial-gradient(110% 80% at 88% 100%, rgba(150, 24, 20, .36), transparent 62%), linear-gradient(165deg, #261b13, #17110d 58%, #110d0a);
}

.home-entry-col { flex: 1.15; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.home-entry-col .home-entry { flex: 1; min-height: 62px; }

.home-entry-art {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 54px;
  height: 54px;
  opacity: 1;
  pointer-events: none;
}

.home-entry-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-entry-art-order { right: 9px; bottom: 10px; width: 42px; height: 74px; }
.home-entry-art-cellar { width: 54px; height: 54px; }
.home-entry-art-recharge { width: 55px; height: 52px; }

.home-entry-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
}

.home-entry-en {
  color: var(--gold-dim);
  font: 8px/1.5 Didot, "Bodoni MT", "Times New Roman", Georgia, serif;
  letter-spacing: 2px;
  opacity: .85;
}

.home-entry-title { color: #f5ead7; font-size: 15px; font-weight: 600; letter-spacing: 2px; }
.home-entry-sub { color: #a99d8c; font-size: 10px; line-height: 1.6; letter-spacing: .5px; white-space: nowrap; }
.home-entry-col .home-entry-sub { max-width: calc(100% - 60px); white-space: normal; }

.home-entry-link {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}

.home-arrow {
  display: block;
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
}

.home-shortcuts {
  position: relative;
  display: flex;
  margin: 8px 16px 8px;
  padding: 8px 0;
}

.home-shortcuts:before,
.home-shortcuts:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 163, 106, .26) 22%, rgba(198, 163, 106, .26) 78%, transparent);
}

.home-shortcuts:before { top: 0; }
.home-shortcuts:after { bottom: 0; }

.home-shortcut {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 0;
  color: #d6bc92;
}

.home-shortcut span { color: #a59c90; font-size: 11px; letter-spacing: .5px; white-space: nowrap; }

.home-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  min-height: 52px;
  margin: 0 16px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 240, 214, .07);
  border-radius: var(--radius, 14px);
  background: linear-gradient(100deg, #1b1410, #221810 60%, #15100d);
  box-shadow: inset 0 1px rgba(255, 236, 200, .08);
  color: inherit;
  text-align: left;
}

.home-banner-suits {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(198, 163, 106, .12);
  font: 28px Georgia, serif;
  letter-spacing: 8px;
}

.home-banner-copy { position: relative; display: flex; flex-direction: column; gap: 6px; }
.home-banner-title { color: #d4c4aa; font-size: 14px; letter-spacing: 2px; }
.home-banner-sub { color: #9c8f7e; font-size: 11px; letter-spacing: 1.5px; }
.home-bottom-space { height: 24px; }

.app-shell.has-tabs {
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
}

.tab-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: var(--app-max, 480px);
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding: 4px 12px calc(4px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%);
  background: rgba(22, 15, 11, .94);
  border-top: 1px solid rgba(255, 240, 214, .1);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .19);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  border-radius: 12px;
  color: #aaa29b;
}

.tab-item span { font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: .04em; }
.tab-item.is-active { color: #e34246; }
.tab-item.is-active span { font-weight: 650; }

.tab-combo {
  flex: none;
  display: flex;
  width: 126px;
  height: 54px;
  margin-top: -26px;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .45);
}

.tab-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff8f3;
  font-size: 12px;
  font-weight: 600;
}

.tab-half.is-battle { background: #c0161b; }
.tab-half.is-queue { background: #1687a3; }

.home .beian { margin-top: 20px; }
