/* Result screen: final card display plus share/restart actions. */
.br-result-title {
  position: absolute;
  left: 50%;
  top: 50px;
  transform: translateX(-50%);
  width: 620px;
  height: 130px;
  background: url("../../images/title-chao-phien-ban-moi.png") center / contain no-repeat;
}
.br-result-card {
  position: absolute;
  left: 50%;
  top: 190px;
  transform: translateX(-50%);
  width: 320px;
  height: 426px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 22px;
  /* The card artwork is a plain rectangle now (no baked-in rounded corners),
     so clip it to this same border-radius. */
  overflow: hidden;
  /* outline (not border) - the name/slogan text below is positioned in
     pixels tuned against this box's unpadded edges, so a real border would
     shrink the box and shift the text out of alignment. outline-offset
     pulls the ring inward without touching the box model. */
  outline: 1px solid transparent;
  outline-offset: -1px;
  filter: drop-shadow(0px 0px 6.27219px rgba(0, 49, 197, 0.3));
}
#screen-result[data-color="pink"]   .br-result-card { outline-color: #FF81C7; }
#screen-result[data-color="orange"] .br-result-card { outline-color: #F19646; }
#screen-result[data-color="green"]  .br-result-card { outline-color: #00B231; }
#screen-result[data-color="purple"] .br-result-card { outline-color: #7B50FF; }
#screen-result[data-color="blue"]   .br-result-card { outline-color: #1A92F8; }
.br-result-card .br-name {
  position: absolute;
  top: 23px;
  left: 0;
  right: 0;
  text-align: center;
  color: #007521;
  font-family: "Dearpix", "Press Start 2P", monospace;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: -1px -1px 0 #fff, 0 -1px 0 #fff, 1px -1px 0 #fff, -1px 0 0 #fff, 1px 0 0 #fff, -1px 1px 0 #fff, 0 1px 0 #fff, 1px 1px 0 #fff, 0 2px 4px rgba(0,0,0,0.35);
}
.br-result-card .br-slogan {
  position: absolute;
  bottom: 62px;
  left: 76px;
  right: 76px;
  text-align: center;
  color: #006622;
  font-weight: 800;
  font-size: 12px;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 2px 4px rgba(0,0,0,0.35);
  line-height: 1.35;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
  height: 4.05em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  -webkit-box-pack: center;
}
.br-result-actions {
  position: absolute;
  left: 50%;
  top: 632px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.br-result-actions-row {
  display: flex;
  gap: 40px;
}

@media (max-width: 720px) {
  .br-result-title {
    position: static;
    top: auto;
    transform: none;
    margin: 22px auto 16px;
    width: 100%;
    max-width: 320px;
    height: 74px;
  }
  .br-result-card {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto 30px;
    width: 220px;
    height: 292px;
    border-radius: 15px;
  }
  .br-result-card .br-name   { font-size: 15px; top: 16px; }
  /* 9px let the longest preset slogan wrap to 4 lines, which the 3-line
     clamp below then hard-cut mid-sentence - the box shrank by the same
     ~0.68 factor as bottom/left/right, but this was left at desktop's 12px
     * 0.75 (a smaller scale-down) instead, so it read as proportionally too
     big. 8.5px keeps every preset (and the desktop card) at 3 lines. */
  .br-result-card .br-slogan { font-size: 8.5px; bottom: 42px; left: 52px; right: 52px; }
  .br-result-actions-row {
    gap: 16px;
  }
  .br-result-actions {
    position: static;
    top: auto;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 20px auto 0;
  }
}
